/frameworks/base/native/android/ |
sensor.cpp | 17 #define LOG_TAG "sensor" 21 #include <android/sensor.h> 27 #include <gui/Sensor.h> 34 using android::Sensor; 49 Sensor const* const* l; 64 Sensor const* const* sensorList; 99 int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor) 102 static_cast<Sensor const*>(sensor)); 105 int ASensorEventQueue_disableSensor(ASensorEventQueue* queue, ASensor const* sensor) [all...] |
/frameworks/base/core/java/android/hardware/ |
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 274 Sensor sensor = sHandleToSensor.get(handle); local 382 final Sensor sensor = sHandleToSensor.get(handle); local 411 final Sensor sensor = sHandleToSensor.get(handle); local 449 final Sensor sensor = sHandleToSensor.get(handle); local [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 string describing an accelerometer sensor type. 45 public static final String STRING_TYPE_ACCELEROMETER = "android.sensor.accelerometer"; 48 * A constant describing a magnetic field sensor type. 55 * A constant string describing a magnetic field sensor type. 59 public static final String STRING_TYPE_MAGNETIC_FIELD = "android.sensor.magnetic_field"; 62 * A constant describing an orientation sensor type. 73 * A constant string describing an orientation sensor type [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/ |
SingleSensorTests.java | 20 import android.hardware.Sensor; 39 * For each sensor that reports continuously, it takes a set of samples. The test suite verifies 40 * that the event ordering, frequency, and jitter pass for the collected sensor events. It 41 * additionally tests that the mean, standard deviation, and magnitude are correct for the sensor 44 * The event ordering test verifies the ordering of the sampled data reported by the Sensor under 45 * test. This test is used to guarantee that sensor data is reported in the order it occurs, and 49 * if the sensor sampled data is not timestamped at the hardware level. Or events sampled at high 52 * The frequency test verifies that the sensor under test can sample and report data at the maximum 55 * susceptible to errors if the sensor is not capable to sample data at the maximum rate it 56 * supports, or the sensor events are not timestamped at the hardware level 117 Sensor sensor = sensorManager.getDefaultSensor(entry.getKey()); local [all...] |
SensorTest.java | 23 import android.hardware.Sensor; 44 private List<Sensor> mSensorList; 58 mSensorList = mSensorManager.getSensorList(Sensor.TYPE_ALL); 66 List<Sensor> sensors = mSensorManager.getSensorList(Sensor.TYPE_ALL); 68 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 71 // accelerometer sensor is optional 73 assertEquals(Sensor.TYPE_ACCELEROMETER, sensor.getType()) 209 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 218 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 227 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); local 237 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local [all...] |
SensorBatchingTests.java | 19 import android.hardware.Sensor; 36 * Each test is expected to pass even if batching is not supported for a particular sensor. This is 59 runBatchingSensorTest(Sensor.TYPE_ACCELEROMETER, RATE_FASTEST, BATCHING_10S); 63 runBatchingSensorTest(Sensor.TYPE_ACCELEROMETER, RATE_50HZ, BATCHING_10S); 67 runFlushSensorTest(Sensor.TYPE_ACCELEROMETER, RATE_FASTEST, BATCHING_10S); 71 runFlushSensorTest(Sensor.TYPE_ACCELEROMETER, RATE_50HZ, BATCHING_10S); 75 runBatchingSensorTest(Sensor.TYPE_MAGNETIC_FIELD, RATE_FASTEST, BATCHING_10S); 79 runBatchingSensorTest(Sensor.TYPE_MAGNETIC_FIELD, RATE_50HZ, BATCHING_10S); 83 runFlushSensorTest(Sensor.TYPE_MAGNETIC_FIELD, RATE_FASTEST, BATCHING_10S); 87 runFlushSensorTest(Sensor.TYPE_MAGNETIC_FIELD, RATE_50HZ, BATCHING_10S) [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
SensorNotSupportedException.java | 19 import android.hardware.Sensor; 22 * Exception that indicates that a given sensor is not supported in the device. 26 super("Sensor '%s' of type %d is not supported.", getSensorName(sensorType), sensorType); 36 case Sensor.TYPE_ACCELEROMETER: 38 case Sensor.TYPE_MAGNETIC_FIELD: 40 case Sensor.TYPE_ORIENTATION: 42 case Sensor.TYPE_GYROSCOPE: 44 case Sensor.TYPE_LIGHT: 46 case Sensor.TYPE_PRESSURE: 48 case Sensor.TYPE_TEMPERATURE [all...] |
TestSensorEnvironment.java | 20 import android.hardware.Sensor; 28 * The environment is self contained and carries its state around all the sensor test framework. 32 private final Sensor mSensor; 38 * Constructs an environment for sensor testing. 41 * @param sensorType The type of the sensor under test 42 * @param samplingPeriodUs The requested collection period for the sensor under test 49 * Constructs an environment for sensor testing. 52 * @param sensorType The type of the sensor under test 53 * @param samplingPeriodUs The requested collection period for the sensor under test 54 * @param maxReportLatencyUs The requested collection report latency for the sensor under tes 226 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local [all...] |
/development/samples/AccelerometerPlay/ |
_index.jd | 1 page.keywords="Sensor", "Games", "Accelerometer" 2 page.tags="Sensor", "Games", "Accelerometer"
|
/device/lge/hammerhead/ |
thermal-engine-8974.conf | 5 sensor batt_therm 14 sensor xo_therm_pu2 23 sensor batt_therm 32 sensor cpu0 41 sensor cpu1 50 sensor cpu2 59 sensor cpu3
|
/external/qemu/android/ |
hw-sensors.h | 17 /* initialize sensor emulation */ 20 /* NOTE: Sensor status Error definition, It will be used in the Sensors Command 23 * SENSOR_STATUS_DISABLED: sensor is disabled. 24 * SENSOR_STATUS_UNKNOWN: wrong sensor name. 25 * SENSOR_STATUS_OK: Everything is OK to the current sensor. 55 extern void android_hw_sensor_enable( AndroidSensor sensor ); 66 /* get sensor values */ 69 /* set sensor values */ 72 /* Get sensor id from sensor name * [all...] |
/sdk/testapps/testSensors/src/com/android/tests/testsensors/ |
TestSensorsActivity.java | 23 import android.hardware.Sensor; 41 * Encapsulates a sensor. 44 /** Sensor to monitor. */ 45 private final Sensor mSensor; 46 /** Check box representing the sensor on the screen. */ 48 /** Text view displaying the value of the sensor. */ 56 * @param sensor Sensor to monitor. 58 MonitoredSensor(Sensor sensor) { [all...] |
/frameworks/base/docs/html/guide/topics/sensors/ |
sensors_overview.jd | 10 <li>Learn about the sensors that Android supports and the Android sensor framework.</li> 11 <li>Find out how to list sensors, determine sensor capabilities, and monitor sensor data.</li> 17 <li><a href="#sensors-identify">Identifying Sensors and Sensor Capabilities</a></li> 18 <li><a href="#sensors-monitor">Monitoring Sensor Events</a></li> 19 <li><a href="#sensors-configs">Handling Different Sensor Configurations</a></li> 20 <li><a href="#sensors-coords">Sensor Coordinate System</a></li> 25 <li>{@link android.hardware.Sensor}</li> 57 game might track readings from a device's gravity sensor to infer complex user gestures 59 device's temperature sensor and humidity sensor to calculate and report the dewpoint, or a trave [all...] |
/developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/res/values/ |
strings.xml | 21 <string name="batching_queue_title">Background sensor batching</string> 22 <string name="batching_queue_description">Batching allows the sensor to report sensor events at 27 while the CPU is awake. If the CPU is asleep and a batched sensor event listener is still 28 registered, the sensor will continue to collect events until it runs out of memory and 29 overwrites old values. This use case is not covered by this sample. (The sensor event queue 31 collected while the app is running and the CPU is awake. In this case the sensor will 35 <string name="explanation_description">The age of a sensor event describes the delay between 36 when it was recorded by the sensor until it was delivered to the SensorEventListener. 39 <string name="register_detector_title">Register step detector sensor</string [all...] |
/developers/samples/android/sensors/BatchStepSensor/Application/src/main/res/values/ |
strings.xml | 21 <string name="batching_queue_title">Background sensor batching</string> 22 <string name="batching_queue_description">Batching allows the sensor to report sensor events at 27 while the CPU is awake. If the CPU is asleep and a batched sensor event listener is still 28 registered, the sensor will continue to collect events until it runs out of memory and 29 overwrites old values. This use case is not covered by this sample. (The sensor event queue 31 collected while the app is running and the CPU is awake. In this case the sensor will 35 <string name="explanation_description">The age of a sensor event describes the delay between 36 when it was recorded by the sensor until it was delivered to the SensorEventListener. 39 <string name="register_detector_title">Register step detector sensor</string [all...] |
/development/samples/browseable/BatchStepSensor/res/values/ |
strings.xml | 21 <string name="batching_queue_title">Background sensor batching</string> 22 <string name="batching_queue_description">Batching allows the sensor to report sensor events at 27 while the CPU is awake. If the CPU is asleep and a batched sensor event listener is still 28 registered, the sensor will continue to collect events until it runs out of memory and 29 overwrites old values. This use case is not covered by this sample. (The sensor event queue 31 collected while the app is running and the CPU is awake. In this case the sensor will 35 <string name="explanation_description">The age of a sensor event describes the delay between 36 when it was recorded by the sensor until it was delivered to the SensorEventListener. 39 <string name="register_detector_title">Register step detector sensor</string [all...] |
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/handlers/ |
SensorChannel.java | 24 import android.hardware.Sensor; 46 * The target update time per sensor. Ignored if 0 or negative. 47 * Sensor updates that arrive faster than this delay are ignored. 59 /** Sensor manager. */ 67 * Sensor "enabled by emulator" state has changed. Parameter {@code obj} is 72 * Sensor display value has changed. Parameter {@code obj} is the 86 List<Sensor> sensors = mSenMan.getSensorList(Sensor.TYPE_ALL); 89 Sensor avail_sensor = sensors.get(n); 93 // The first sensor we've got for the given type is no 252 final MonitoredSensor sensor = getSensorByEFN(name); local 273 MonitoredSensor sensor = getSensorByEFN(name); local [all...] |
/docs/source.android.com/src/devices/sensors/ |
interaction.jd | 20 <p>From the perspective of Android applications, every Android sensor is an 25 underlying physical sensor </li> 28 <li> This is also true for wake-up and non-wake-up versions of the same sensor </li> 31 another. That is, any action on one Android sensor must not impact the behavior 35 <li> activating a sensor </li> 36 <li> deactivating a sensor </li> 37 <li> changing the sampling frequency of a sensor </li> 38 <li> changing the maximum reporting latency of a sensor </li> 42 <li> another activated sensor to stop working </li> 43 <li> another activated sensor to change sampling rate </li [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowSensorManager.java | 3 import android.hardware.Sensor; 25 public boolean registerListener(SensorEventListener listener, Sensor sensor, int rate) { 37 public void unregisterListener(SensorEventListener listener, Sensor sensor) {
|
/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 77 * Sensor Reporting Modes. 98 * A sensor event. 122 int32_t sensor; member in struct:AMetaDataEvent 152 int32_t sensor; member in struct:ASensorEvent 196 * Get a reference to the sensor manager. ASensorManager is a singleton. 212 * Returns the default sensor for the given type, or NULL if no senso [all...] |
/hardware/libhardware/include/hardware/ |
sensors.h | 41 * introduction to and detailed descriptions of Android sensor types: 90 * See sensor types for more details on what sensors should require this 97 * Sensor flags used in sensor_t.flags. 101 * Whether this sensor wakes up the AP from suspend mode when data is available. Whenever 102 * sensor events are delivered from a wake_up sensor, the driver needs to hold a wake_lock till 110 * Reporting modes for various sensors. Each sensor will have exactly one of these modes set. 121 * Mask and shift for reporting mode sensor flags defined above. 127 * Sensor type 129 * Each sensor has a type which defines what this sensor measures and ho 675 int32_t sensor; member in struct:meta_data_event 701 int32_t sensor; member in struct:sensors_event_t [all...] |
/prebuilts/ndk/9/platforms/android-19/arch-arm64/usr/include/android/ |
sensor.h | 38 * Structures and functions to receive and process sensor events in 54 * Sensor types 55 * (keep in sync with hardware/sensor.h) 67 * Sensor accuracy measure 78 * Sensor Reporting Modes. 99 * A sensor event. 123 int32_t sensor; member in struct:AMetaDataEvent 153 int32_t sensor; member in struct:ASensorEvent 197 * Get a reference to the sensor manager. ASensorManager is a singleton. 213 * Returns the default sensor for the given type, or NULL if no senso [all...] |
/prebuilts/ndk/9/platforms/android-19/arch-mips64/usr/include/android/ |
sensor.h | 38 * Structures and functions to receive and process sensor events in 54 * Sensor types 55 * (keep in sync with hardware/sensor.h) 67 * Sensor accuracy measure 78 * Sensor Reporting Modes. 99 * A sensor event. 123 int32_t sensor; member in struct:AMetaDataEvent 153 int32_t sensor; member in struct:ASensorEvent 197 * Get a reference to the sensor manager. ASensorManager is a singleton. 213 * Returns the default sensor for the given type, or NULL if no senso [all...] |
/prebuilts/ndk/9/platforms/android-19/arch-x86_64/usr/include/android/ |
sensor.h | 38 * Structures and functions to receive and process sensor events in 54 * Sensor types 55 * (keep in sync with hardware/sensor.h) 67 * Sensor accuracy measure 78 * Sensor Reporting Modes. 99 * A sensor event. 123 int32_t sensor; member in struct:AMetaDataEvent 153 int32_t sensor; member in struct:ASensorEvent 197 * Get a reference to the sensor manager. ASensorManager is a singleton. 213 * Returns the default sensor for the given type, or NULL if no senso [all...] |