| /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...]
 | 
| /cts/tests/tests/hardware/src/android/hardware/cts/helpers/ | 
| SensorCalibratedUncalibratedVerifier.java | 25  * A bundled sensor test operation/verification. 33 // is factored into: operation, verification, and listener as other sensor test operations
 115                     "Calibrated (%s) and Uncalibrated (%s) sensor readings are expected to satisfy:"
 118                     calibratedEvent.sensor.getName(),
 119                     uncalibratedEvent.sensor.getName(),
 
 | 
| /device/lge/hammerhead/libsensors/ | 
| ProximitySensor.cpp | 38     mPendingEvent.sensor = ID_PX; 121                 mPendingEvent.sensor = ID_PX;
 
 | 
| sensors.cpp | 52         .name       = "Light Sensor", 64         .name       = "Proximity Sensor",
 98         name: "LGE Sensor module",
 174     /* TODO: Handle external pressure sensor */
 184     // populate the sensor list
 229     /* Timer based sensor initialization */
 281             SensorBase* const sensor(mSensor[i]);
 285                     ((MPLSensor*) sensor)->buildMpuEvent();
 287                     nb = ((MPLSensor*) sensor)->readEvents(data, count);
 294                     ((MPLSensor*) sensor)->buildCompassEvent()
 [all...]
 | 
| LightSensor.cpp | 38     mPendingEvent.sensor = ID_L; 140                 mPendingEvent.sensor = ID_L;
 
 | 
| /frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ | 
| Balls.java | 41 import android.hardware.Sensor; 60         //android.util.Log.d("rs", "sensor: " + event.sensor + ", x: " + event.values[0] + ", y: " + event.values[1] + ", z: " + event.values[2]);
 62             if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
 70     public void onAccuracyChanged(Sensor sensor, int accuracy) {
 88                                         mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
 
 | 
| /device/samsung/manta/ | 
| device.mk | 66     frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ 67     frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
 68     frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
 69     frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
 70     frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml
 [all...]
 | 
| /device/htc/flounder/ | 
| device.mk | 87     frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ 88     frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
 89     frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
 90     frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
 91     frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml
 [all...]
 | 
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ | 
| StepCounterTestActivity.java | 25 import android.hardware.Sensor; 61     private Sensor mSensorStepCounter;
 62     private Sensor mSensorStepDetector;
 80         mSensorStepCounter = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER);
 81         mSensorStepDetector = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_DETECTOR);
 207             // sensor not supported, so no-op
 215             String sensorName = counterEvent.sensor.getName();
 243                         + TestSensorEnvironment.getSensorMaxDetectionLatencyNs(counterEvent.sensor);
 248                         counterEvent.sensor.getName());
 272                     counterEvent.sensor.getName())
 [all...]
 | 
| /developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/ | 
| BatchStepSensorFragment.java | 21 import android.hardware.Sensor; 84     // List of timestamps when sensor events occurred
 89     // pointer to next entry in sensor event list
 94     // Value of the step counter sensor when the listener was registered.
 102     // When a listener is registered, the batch sensor delay in microseconds
 135      * higher and has a step counter and step detector sensor.
 172                 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_COUNTER);
 175                 registerEventListener(BATCH_LATENCY_5s, Sensor.TYPE_STEP_COUNTER);
 178                 registerEventListener(BATCH_LATENCY_10s, Sensor.TYPE_STEP_COUNTER);
 183                 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_DETECTOR)
 257  Sensor sensor = sensorManager.getDefaultSensor(sensorType);  local
 468  String sensor = "-";  local
 [all...]
 | 
| /developers/samples/android/sensors/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/ | 
| BatchStepSensorFragment.java | 21 import android.hardware.Sensor; 84     // List of timestamps when sensor events occurred
 89     // pointer to next entry in sensor event list
 94     // Value of the step counter sensor when the listener was registered.
 102     // When a listener is registered, the batch sensor delay in microseconds
 135      * higher and has a step counter and step detector sensor.
 172                 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_COUNTER);
 175                 registerEventListener(BATCH_LATENCY_5s, Sensor.TYPE_STEP_COUNTER);
 178                 registerEventListener(BATCH_LATENCY_10s, Sensor.TYPE_STEP_COUNTER);
 183                 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_DETECTOR)
 257  Sensor sensor = sensorManager.getDefaultSensor(sensorType);  local
 468  String sensor = "-";  local
 [all...]
 | 
| /development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/ | 
| BatchStepSensorFragment.java | 21 import android.hardware.Sensor; 84     // List of timestamps when sensor events occurred
 89     // pointer to next entry in sensor event list
 94     // Value of the step counter sensor when the listener was registered.
 102     // When a listener is registered, the batch sensor delay in microseconds
 135      * higher and has a step counter and step detector sensor.
 172                 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_COUNTER);
 175                 registerEventListener(BATCH_LATENCY_5s, Sensor.TYPE_STEP_COUNTER);
 178                 registerEventListener(BATCH_LATENCY_10s, Sensor.TYPE_STEP_COUNTER);
 183                 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_DETECTOR)
 257  Sensor sensor = sensorManager.getDefaultSensor(sensorType);  local
 468  String sensor = "-";  local
 [all...]
 | 
| /packages/apps/Camera2/src/com/android/camera/one/v2/ | 
| AutoFocusHelper.java | 115     /** Compute 3A regions for a sensor-referenced touch coordinate. 123      * @param sensorOrientation sensor orientation as defined by
 133         // Compute the output MeteringRectangle in sensor space.
 135         // Crop region itself is specified in sensor coordinates.
 137         // Normalized coordinates, now rotated into sensor space.
 159      * Return AF region(s) for a sensor-referenced touch coordinate.
 175      * Return AE region(s) for a sensor-referenced touch coordinate.
 191      * Calculates sensor crop region for a zoom level (zoom >= 1.0).
 196         Rect sensor = characteristics.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE);  local
 197         int xCenter = sensor.width() / 2
 [all...]
 | 
| /device/lge/hammerhead/ | 
| device.mk | 82     frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ 83     frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
 84     frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
 85     frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
 86     frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml
 [all...]
 | 
| /device/moto/shamu/ | 
| device.mk | 70     frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ 71     frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
 72     frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
 73     frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
 74     frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml
 [all...]
 | 
| /cts/tests/tests/hardware/src/android/hardware/cts/ | 
| SensorIntegrationTests.java | 19 import android.hardware.Sensor; 44      * This test focuses in the interaction of continuous and batching clients for the same Sensor
 45      * under test. The verification ensures that sensor clients can interact with the System and
 53      * that the sensors must be independent. Activating one sensor should not cause another sensor
 61      * - the sensor type and sensor handle that caused the failure
 63      * It is important to look at the internals of the Sensor HAL to identify how the interaction
 72                 Sensor.TYPE_ACCELEROMETER,
 73                 Sensor.TYPE_MAGNETIC_FIELD
 88  Sensor sensor = TestSensorEnvironment.getSensor(context, sensorType);  local
 266  Sensor sensor = TestSensorEnvironment.getSensor(getContext(), sensorType);  local
 [all...]
 | 
| /development/ndk/platforms/android-17/samples/Teapot/jni/ | 
| TeapotRenderer.h | 35 #include <android/sensor.h> 
 | 
| /development/ndk/sources/android/ndk_helper/ | 
| gestureDetector.h | 25 #include <android/sensor.h> 
 | 
| /device/asus/grouper/ | 
| device-common.mk | 59     frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ 60     frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
 
 | 
| /external/chromium_org/chrome/browser/chromeos/timezone/ | 
| timezone_request.h | 71   // |sensor| if this location was determined using hardware sensor. 76                   bool sensor,
 
 | 
| /frameworks/base/core/java/com/android/internal/app/ | 
| IBatteryStats.aidl | 29     void noteStartSensor(int uid, int sensor); 30     void noteStopSensor(int uid, int sensor);
 
 | 
| /frameworks/native/services/sensorservice/ | 
| SensorInterface.h | 23 #include <gui/Sensor.h> 55     virtual Sensor getSensor() const = 0;
 65     Sensor mSensor;
 68     HardwareSensor(const sensor_t& sensor);
 80     virtual Sensor getSensor() const;
 
 | 
| SensorService.h | 33 #include <gui/Sensor.h> 73     virtual Vector<Sensor> getSensorList();
 92         // first wake_up sensor event in the buffer else return -1. This wake_up sensor event will
 116         // app that it has read events from a wake up sensor, decrement mWakeLockRefCount.
 120         // Increment mPendingFlushEventsToSend for the given sensor handle.
 153             // The number of flush complete events dropped for this sensor is stored here.
 157             // received, the events for the sensor are sent on that *connection*.
 161         // protected by SensorService::mLock. Key for this vector is the sensor handle.
 191         // A queue of all flush() calls made on this sensor. Flush complete events will b
 [all...]
 | 
| /hardware/ti/omap4-aah/camera/inc/ | 
| SensorListener.h | 20 * This defines API for camerahal to get sensor events 27 #include <android/sensor.h>
 28 #include <gui/Sensor.h>
 39  * SensorListner class - Registers with sensor manager to get sensor events
 
 | 
| /hardware/ti/omap4xxx/camera/inc/ | 
| SensorListener.h | 20 * This defines API for camerahal to get sensor events 27 #include <android/sensor.h>
 28 #include <gui/Sensor.h>
 36  * SensorListner class - Registers with sensor manager to get sensor events
 
 |