| /frameworks/base/core/java/android/hardware/ |
| SensorListener.java | 21 * sensor values have changed. 30 * <p>Called when sensor values have changed. 32 * depending on which sensor is being monitored. 34 * for details on possible sensor types. 87 * @param sensor The ID of the sensor being monitored 88 * @param values The new values for the sensor. 90 public void onSensorChanged(int sensor, float[] values); 93 * Called when the accuracy of a sensor has changed. 97 * @param sensor The ID of the sensor being monitore [all...] |
| SensorEventListener.java | 21 * sensor values have changed. 26 * Called when sensor values have changed. 28 * for details on possible sensor types. 42 * Called when the accuracy of a sensor has changed. 46 * @param accuracy The new accuracy of this sensor 48 public void onAccuracyChanged(Sensor sensor, int accuracy);
|
| SystemSensorManager.java | 34 * Sensor manager implementation that communicates with the built-in 41 private static native int nativeGetNextSensor(Sensor sensor, int next); 45 private static final ArrayList<Sensor> sFullSensorsList = new ArrayList<Sensor>(); 46 private static final SparseArray<Sensor> sHandleToSensor = new SparseArray<Sensor>(); 68 // initialize the sensor list 69 final ArrayList<Sensor> fullList = sFullSensorsList; 72 Sensor sensor = new Sensor() local 78 sHandleToSensor.append(sensor.getHandle(), sensor); local 247 Sensor sensor = sHandleToSensor.get(handle); local 340 final Sensor sensor = sHandleToSensor.get(handle); local 400 final Sensor sensor = sHandleToSensor.get(handle); local [all...] |
| SensorEvent.java | 20 * This class represents a {@link android.hardware.Sensor Sensor} event and 21 * holds informations such as the sensor's type, the time-stamp, accuracy and of 22 * course the sensor's {@link SensorEvent#values data}. 52 * @see Sensor 60 * which {@link android.hardware.Sensor sensor} type is being monitored (see 64 * <h4>{@link android.hardware.Sensor#TYPE_ACCELEROMETER 65 * Sensor.TYPE_ACCELEROMETER}:</h4> All values are in SI units (m/s^2) 74 * A sensor of this type measures the acceleration applied to the devic 491 public Sensor sensor; field in class:SensorEvent [all...] |
| TriggerEvent.java | 21 * associated with a Trigger Sensor. When the sensor detects a trigger 23 * {@link Sensor#TYPE_SIGNIFICANT_MOTION}, the {@link TriggerEventListener} 24 * is called with the TriggerEvent. The sensor is automatically canceled 27 * This class holds information such as the value of the sensor 29 * information regarding the Sensor itself. 33 * @see android.hardware.Sensor 39 * which {@link android.hardware.Sensor sensor} type is being monitored (see 42 * <h4> {@link Sensor#TYPE_SIGNIFICANT_MOTION} </h4 52 public Sensor sensor; field in class:TriggerEvent [all...] |
| Sensor.java | 23 * Class representing a sensor. Use {@link SensorManager#getSensorList} to get 31 public final class Sensor { 34 * A constant describing an accelerometer sensor type. 41 * A constant describing a magnetic field sensor type. 48 * A constant describing an orientation sensor type. 58 /** A constant describing a gyroscope sensor type. 64 * A constant describing a light sensor type. 70 /** A constant describing a pressure sensor type. 76 * A constant describing a temperature sensor type 79 * {@link android.hardware.Sensor#TYPE_AMBIENT_TEMPERATUR [all...] |
| /cts/tests/tests/hardware/src/android/hardware/cts/ |
| SensorTest.java | 25 import android.hardware.Sensor; 49 List<Sensor> sensors = mSensorManager.getSensorList(Sensor.TYPE_ALL); 51 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 54 // accelerometer sensor is optional 56 assertEquals(Sensor.TYPE_ACCELEROMETER, sensor.getType()); 57 assertSensorValues(sensor); 89 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 98 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 107 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); local 117 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local [all...] |
| /development/ndk/platforms/android-9/include/android/ |
| sensor.h | 38 * Structures and functions to receive and process sensor events in 53 * Sensor types 54 * (keep in sync with hardware/sensor.h) 66 * Sensor accuracy measure 87 * A sensor event. 112 int32_t sensor; member in struct:ASensorEvent 144 * Get a reference to the sensor manager. ASensorManager is a singleton. 160 * Returns the default sensor for the given type, or NULL if no sensor 166 * Creates a new sensor event queue and associate it with a looper [all...] |
| /frameworks/native/include/android/ |
| sensor.h | 38 * Structures and functions to receive and process sensor events in 53 * Sensor types 54 * (keep in sync with hardware/sensor.h) 66 * Sensor accuracy measure 87 * A sensor event. 112 int32_t sensor; member in struct:ASensorEvent 144 * Get a reference to the sensor manager. ASensorManager is a singleton. 160 * Returns the default sensor for the given type, or NULL if no sensor 166 * Creates a new sensor event queue and associate it with a looper [all...] |
| /prebuilts/ndk/5/platforms/android-9/arch-arm/usr/include/android/ |
| sensor.h | 38 * Structures and functions to receive and process sensor events in 53 * Sensor types 54 * (keep in sync with hardware/sensor.h) 66 * Sensor accuracy measure 87 * A sensor event. 112 int32_t sensor; member in struct:ASensorEvent 144 * Get a reference to the sensor manager. ASensorManager is a singleton. 160 * Returns the default sensor for the given type, or NULL if no sensor 166 * Creates a new sensor event queue and associate it with a looper [all...] |
| /prebuilts/ndk/6/platforms/android-9/arch-arm/usr/include/android/ |
| sensor.h | 38 * Structures and functions to receive and process sensor events in 53 * Sensor types 54 * (keep in sync with hardware/sensor.h) 66 * Sensor accuracy measure 87 * A sensor event. 112 int32_t sensor; member in struct:ASensorEvent 144 * Get a reference to the sensor manager. ASensorManager is a singleton. 160 * Returns the default sensor for the given type, or NULL if no sensor 166 * Creates a new sensor event queue and associate it with a looper [all...] |
| /prebuilts/ndk/6/platforms/android-9/arch-x86/usr/include/android/ |
| sensor.h | 38 * Structures and functions to receive and process sensor events in 53 * Sensor types 54 * (keep in sync with hardware/sensor.h) 66 * Sensor accuracy measure 87 * A sensor event. 112 int32_t sensor; member in struct:ASensorEvent 144 * Get a reference to the sensor manager. ASensorManager is a singleton. 160 * Returns the default sensor for the given type, or NULL if no sensor 166 * Creates a new sensor event queue and associate it with a looper [all...] |
| /prebuilts/ndk/7/platforms/android-14/arch-arm/usr/include/android/ |
| sensor.h | 38 * Structures and functions to receive and process sensor events in 53 * Sensor types 54 * (keep in sync with hardware/sensor.h) 66 * Sensor accuracy measure 87 * A sensor event. 112 int32_t sensor; member in struct:ASensorEvent 144 * Get a reference to the sensor manager. ASensorManager is a singleton. 160 * Returns the default sensor for the given type, or NULL if no sensor 166 * Creates a new sensor event queue and associate it with a looper [all...] |
| /prebuilts/ndk/7/platforms/android-14/arch-x86/usr/include/android/ |
| sensor.h | 38 * Structures and functions to receive and process sensor events in 53 * Sensor types 54 * (keep in sync with hardware/sensor.h) 66 * Sensor accuracy measure 87 * A sensor event. 112 int32_t sensor; member in struct:ASensorEvent 144 * Get a reference to the sensor manager. ASensorManager is a singleton. 160 * Returns the default sensor for the given type, or NULL if no sensor 166 * Creates a new sensor event queue and associate it with a looper [all...] |
| /prebuilts/ndk/7/platforms/android-9/arch-arm/usr/include/android/ |
| sensor.h | 38 * Structures and functions to receive and process sensor events in 53 * Sensor types 54 * (keep in sync with hardware/sensor.h) 66 * Sensor accuracy measure 87 * A sensor event. 112 int32_t sensor; member in struct:ASensorEvent 144 * Get a reference to the sensor manager. ASensorManager is a singleton. 160 * Returns the default sensor for the given type, or NULL if no sensor 166 * Creates a new sensor event queue and associate it with a looper [all...] |
| /prebuilts/ndk/7/platforms/android-9/arch-x86/usr/include/android/ |
| sensor.h | 38 * Structures and functions to receive and process sensor events in 53 * Sensor types 54 * (keep in sync with hardware/sensor.h) 66 * Sensor accuracy measure 87 * A sensor event. 112 int32_t sensor; member in struct:ASensorEvent 144 * Get a reference to the sensor manager. ASensorManager is a singleton. 160 * Returns the default sensor for the given type, or NULL if no sensor 166 * Creates a new sensor event queue and associate it with a looper [all...] |
| /prebuilts/ndk/8/platforms/android-14/arch-arm/usr/include/android/ |
| sensor.h | 38 * Structures and functions to receive and process sensor events in 53 * Sensor types 54 * (keep in sync with hardware/sensor.h) 66 * Sensor accuracy measure 87 * A sensor event. 112 int32_t sensor; member in struct:ASensorEvent 144 * Get a reference to the sensor manager. ASensorManager is a singleton. 160 * Returns the default sensor for the given type, or NULL if no sensor 166 * Creates a new sensor event queue and associate it with a looper [all...] |