/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
DozeService.java | 27 import android.hardware.Sensor; 120 mSigMotionSensor = new TriggerSensor(Sensor.TYPE_SIGNIFICANT_MOTION, 122 mPickupSensor = new TriggerSensor(Sensor.TYPE_PICK_UP_GESTURE, 359 .append(event.sensor.getName()); 424 private final Sensor mSensor; 486 setListening(true); // reregister, this sensor only fires once 499 if (mSensor.getType() == Sensor.TYPE_PICK_UP_GESTURE) { 525 final Sensor sensor = mSensors.getDefaultSensor(Sensor.TYPE_PROXIMITY) [all...] |
/hardware/akm/AK8975_FS/libsensors/ |
sensors.cpp | 40 #error "Sensor configuration ERROR: No sensor is defined." 64 { "AK8975 3-axis Magnetic field sensor", 76 { "AK8975 Orientation sensor", 88 { "AK8975 Orientation sensor", 117 .name = "AKM Sensor module", 149 * which sensor is implemented in AKMD program. 282 SensorBase* const sensor(mSensors[i]); 283 if ((mPollFds[i].revents & POLLIN) || (sensor->hasPendingEvents())) { 284 int nb = sensor->readEvents(data, count) [all...] |
AdxlSensor.cpp | 43 mPendingEvent.sensor = ID_A;
|
KionixSensor.cpp | 46 mPendingEvent.sensor = ID_A;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
HeartRateMonitorTestActivity.java | 21 import android.hardware.Sensor; 38 private Sensor mSensor; 54 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE); 111 public void onAccuracyChanged(Sensor sensor, int i) {
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Compass.java | 21 import android.hardware.Sensor; 34 private Sensor mSensor; 48 public void onAccuracyChanged(Sensor sensor, int accuracy) { 56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);
|
/device/asus/flo/ |
device-common.mk | 113 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ 114 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
|
/frameworks/base/core/java/android/view/ |
OrientationEventListener.java | 20 import android.hardware.Sensor; 38 private Sensor mSensor; 63 * @param rate at which sensor events are processed (see also 71 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 83 * Enables the OrientationEventListener so it will monitor the sensor and call 139 mOldListener.onSensorChanged(Sensor.TYPE_ACCELEROMETER, event.values); 147 public void onAccuracyChanged(Sensor sensor, int accuracy) { 153 * Returns true if sensor is enabled and false otherwise
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
MotionSensorWTime.java | 17 // Make values from a motion sensor (e.g., accelerometer) available as filter outputs. 22 import android.hardware.Sensor; 39 private Sensor mSensor = null; 62 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); 63 // TODO: currently, the type of sensor is hardcoded. Should be able to set the sensor 74 public final void onAccuracyChanged(Sensor sensor, int accuracy) { 75 // (Do we need to do something when sensor accuracy changes?)
|
/packages/apps/Dialer/src/com/android/dialer/ |
ProximitySensorManager.java | 20 import android.hardware.Sensor; 28 * Manages the proximity sensor and notifies a listener when enabled. 32 * Listener of the state of the proximity sensor. 34 * This interface abstracts two possible states for the proximity sensor, near and far. 36 * The actual meaning of these states depends on the actual sensor. 39 /** Called when the proximity sensor transitions from the far to the near state. */ 41 /** Called when the proximity sensor transitions from the near to the far state. */ 53 * sensor. 58 * The listener to the state of the sensor. 60 * Contains most of the logic concerning tracking of the sensor [all...] |
/packages/apps/InCallUI/src/com/android/incallui/ |
AccelerometerListener.java | 20 import android.hardware.Sensor; 39 private Sensor mSensor; 44 // mPendingOrientation is the latest orientation computed based on the sensor value. 69 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 118 // If some values are exactly zero, then likely the sensor is not powered up yet. 138 public void onAccuracyChanged(Sensor sensor, int accuracy) {
|
/packages/services/Telephony/src/com/android/phone/ |
AccelerometerListener.java | 20 import android.hardware.Sensor; 39 private Sensor mSensor; 44 // mPendingOrientation is the latest orientation computed based on the sensor value. 69 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 118 // If some values are exactly zero, then likely the sensor is not powered up yet. 138 public void onAccuracyChanged(Sensor sensor, int accuracy) {
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/ |
GLArrowSensorTestRenderer.java | 24 import android.hardware.Sensor; 39 * Renders a wedge to indicate the direction of sensor data. 89 if (mSensorType == Sensor.TYPE_ACCELEROMETER) { 157 public void onAccuracyChanged(Sensor arg0, int arg1) { 166 int type = event.sensor.getType(); 167 if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) { 183 } else if (type == Sensor.TYPE_ROTATION_VECTOR 184 || type == Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR 185 || type == Sensor.TYPE_GAME_ROTATION_VECTOR) [all...] |
/development/samples/Compass/src/com/example/android/compass/ |
CompassActivity.java | 30 import android.hardware.Sensor; 77 Sensor gsensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 78 Sensor msensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); 205 public void onAccuracyChanged(Sensor sensor, int accuracy) { 209 int type = event.sensor.getType(); 211 if (type == Sensor.TYPE_ACCELEROMETER) { 213 } else if (type == Sensor.TYPE_MAGNETIC_FIELD) [all...] |
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/ |
results_holder.c | 49 struct inv_sensor_cal_t *sensor; member in struct:results_t 273 * @param[in] sensor_cal New sensor data to process. 278 rh.sensor = sensor_cal;
|
/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...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
EyePosition.java | 20 import android.hardware.Sensor; 66 private Sensor mSensor; 86 mSensor = sManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); 89 mSensor = sManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 92 Log.w(TAG, "no sensor available"); 185 public void onAccuracyChanged(Sensor sensor, int accuracy) { 190 switch (event.sensor.getType()) { 191 case Sensor.TYPE_GYROSCOPE: { 196 case Sensor.TYPE_ACCELEROMETER: [all...] |
/external/qemu/android/ |
console.c | 2410 char sensor[strlen(args) + 1]; local 2460 char* sensor; local [all...] |
/hardware/libhardware/modules/sensors/ |
multihal.cpp | 58 * Comparable class that globally identifies a sensor, by module index and local handle. 60 * A local handle is the handle the sub-module assigns to a sensor. 104 // Returns the sub_hw_modules index of the module that contains the sensor associates with this 280 // A normal event's "sensor" field is a local handle. Convert it to a global handle. 281 // A meta-data event must have its sensor set to 0, but it has a nested event 286 // If it's a metadata event, rewrite the inner payload, not the sensor field. 287 // If the event's sensor field is unregistered for any reason, rewrite the sensor field 288 // with a -1, instead of writing an incorrect but plausible sensor number, because 291 full_handle.localHandle = dest->meta_data.sensor; [all...] |
/hardware/invensense/60xx/libsensors/ |
MPLSensor.cpp | 72 /* Base values for the sensor list, these need to be in the order defined in MPLSensor.h */ 132 * sensor class implementation 167 /* sensor list will be changed based on this variable */ 221 mPendingEvents[RotationVector].sensor = ID_RV; 225 mPendingEvents[LinearAccel].sensor = ID_LA; 229 mPendingEvents[Gravity].sensor = ID_GR; 233 mPendingEvents[Gyro].sensor = ID_GY; 237 mPendingEvents[Accelerometer].sensor = ID_A; 241 mPendingEvents[MagneticField].sensor = ID_M; 246 mPendingEvents[Orientation].sensor = ID_O [all...] |
/hardware/invensense/6515/libsensors_iio/ |
sensors_mpl.cpp | 131 /* TODO: Handle external pressure sensor */ 144 // populate the sensor list 205 flushCompleteEvent.sensor = 0; 207 flushCompleteEvent.meta_data.sensor = handle_element->handle; 212 flushCompleteEvent.meta_data.sensor); 413 /** Open a new instance of a sensor device using name */
|
/hardware/samsung_slsi/exynos5/libcamera2/ |
fimc-is-metadata.h | 662 struct camera2_sensor_ctl sensor; member in struct:camera2_ctl 685 struct camera2_sensor_dm sensor; member in struct:camera2_dm 706 struct camera2_sensor_sm sensor; member in struct:camera2_sm
|
/hardware/samsung_slsi/exynos5/original-kernel-headers/linux/ |
fimc-is-metadata.h | 108 /* android.sensor */ 715 struct camera2_sensor_ctl sensor; member in struct:camera2_ctl 734 struct camera2_sensor_dm sensor; member in struct:camera2_dm 752 struct camera2_sensor_sm sensor; member in struct:camera2_sm 790 User-defined control for sensor. 796 'sensor.exposureTime'+alpha and 'sensor.frameDuration'. 819 sensor, lens, flash category is empty value. 825 Set sensor, lens, flash control for next frame. 829 [1 bit] sensor [all...] |
/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/ |
AccelerometerPlayActivity.java | 25 import android.hardware.Sensor; 47 * @see Sensor 102 * release our sensor resources and wake locks 120 private Sensor mAccelerometer; 346 mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 379 if (event.sensor.getType() != Sensor.TYPE_ACCELEROMETER) 457 public void onAccuracyChanged(Sensor sensor, int accuracy) {
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
DeviceSensors.java | 8 import android.hardware.Sensor; 71 Sensor.TYPE_ROTATION_VECTOR); 74 Sensor.TYPE_ACCELEROMETER, 75 Sensor.TYPE_LINEAR_ACCELERATION, 76 Sensor.TYPE_GYROSCOPE); 88 * Start listening for sensor events. If this object is already listening 170 public void onAccuracyChanged(Sensor sensor, int accuracy) { 176 sensorChanged(event.sensor.getType(), event.values); 182 case Sensor.TYPE_ACCELEROMETER [all...] |