Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a0cb42f authored by Chris Tate's avatar Chris Tate Committed by The Android Open Source Project
Browse files

AI 144135: am: CL 144134 Fix issue 1750132 - SensorManager listener 'rate'...

AI 144135: am: CL 144134 Fix issue 1750132 - SensorManager listener 'rate' parameter units are undocumented
  Original author: ctate
  Merged from: //branches/cupcake/...

Automated import of CL 144135
parent 79ad6262
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -616,7 +616,8 @@ public class SensorManager extends IRotationWatcher.Stub
     * @param sensors a bit masks of the sensors to register to
     * @param rate rate of events. This is only a hint to the system. events
     * may be received faster or slower than the specified rate. Usually events
     * are received faster.
     * are received faster. The value must be one of {@link #SENSOR_DELAY_NORMAL},
     * {@link #SENSOR_DELAY_UI}, {@link #SENSOR_DELAY_GAME}, or {@link #SENSOR_DELAY_FASTEST}.
     *
     * @return true if the sensor is supported and successfully enabled
     */
@@ -785,7 +786,9 @@ public class SensorManager extends IRotationWatcher.Stub
     * @param sensor The {@link android.hardware.Sensor Sensor} to register to.
     * @param rate The rate {@link android.hardware.SensorEvent sensor events} are delivered at.
     * This is only a hint to the system. Events may be received faster or
     * slower than the specified rate. Usually events are received faster.
     * slower than the specified rate. Usually events are received faster. The value must be
     * one of {@link #SENSOR_DELAY_NORMAL}, {@link #SENSOR_DELAY_UI}, {@link #SENSOR_DELAY_GAME},
     * or {@link #SENSOR_DELAY_FASTEST}.
     *
     * @return true if the sensor is supported and successfully enabled.
     *
@@ -802,7 +805,9 @@ public class SensorManager extends IRotationWatcher.Stub
     * @param sensor The {@link android.hardware.Sensor Sensor} to register to.
     * @param rate The rate {@link android.hardware.SensorEvent sensor events} are delivered at.
     * This is only a hint to the system. Events may be received faster or
     * slower than the specified rate. Usually events are received faster.
     * slower than the specified rate. Usually events are received faster. The value must be one
     * of {@link #SENSOR_DELAY_NORMAL}, {@link #SENSOR_DELAY_UI}, {@link #SENSOR_DELAY_GAME}, or
     * {@link #SENSOR_DELAY_FASTEST}.
     * @param handler The {@link android.os.Handler Handler} the
     * {@link android.hardware.SensorEvent sensor events} will be delivered to.
     *