/device/google/dragon/sensor_hub/ |
sensors.h | 55 CrosECSensor *mSensor;
|
/frameworks/native/services/sensorservice/ |
SensorInterface.h | 66 virtual const Sensor& getSensor() const override { return mSensor; } 70 Sensor mSensor;
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
DummyDynamicAccelDaemon.h | 56 sensor_t mSensor;
|
DynamicSensorManager.h | 81 sensor_t mSensor;
|
/cts/tests/sensor/jni/ |
SensorTest.h | 77 TestSensor(ASensor const *s) : mSensor(s) { } 83 return ASensor_getType(mSensor); 90 return ASensor_isDirectChannelTypeSupported(mSensor, channelType); 97 return ASensor_getHighestDirectReportRateLevel(mSensor); 100 operator ASensor const * () { return mSensor; } 102 bool isValid() const { return mSensor != nullptr; } 104 ASensor const * mSensor;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
AsyncSensorManagerTest.java | 44 private FakeSensorManager.MockProximitySensor mSensor; 50 mSensor = mFakeSensorManager.getMockProximitySensor(); 56 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); 61 mSensor.sendProximityResult(true); 67 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); 73 mSensor.sendProximityResult(true); 79 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); 80 mAsyncSensorManager.unregisterListener(mListener, mSensor.getSensor()); 85 mSensor.sendProximityResult(true);
|
/frameworks/base/services/core/java/com/android/server/policy/ |
WakeGestureListener.java | 40 private Sensor mSensor; 46 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_WAKE_GESTURE); 53 return mSensor != null; 59 if (mSensor != null && !mTriggerRequested) { 61 mSensorManager.requestTriggerSensor(mListener, mSensor); 68 if (mSensor != null && mTriggerRequested) { 70 mSensorManager.cancelTriggerSensor(mListener, mSensor); 80 pw.println(prefix + "mSensor=" + mSensor);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
MotionSensor.java | 37 private Sensor mSensor = null; 56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); 59 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
MotionSensorWTime.java | 39 private Sensor mSensor = null; 62 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); 65 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI);
|
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/activities/ |
SensorActivity.java | 206 private MonitoredSensor mSensor; 211 mSensor = sensor; 233 if (mSensor != null) { 234 mSensor.onCheckedChanged(isChecked); 241 mSensor = null; 246 if (mChk != null && mSensor != null) { 247 mChk.setEnabled(mSensor.isEnabledByEmulator()); 248 mChk.setChecked(mSensor.isEnabledByUser()); 253 if (mVal != null && mSensor != null) { 254 mVal.setText(mSensor.getValue()) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
HeartRateMonitorTestActivity.java | 38 private Sensor mSensor; 54 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE); 61 if (!mSensorManager.registerListener(mSensorListener, mSensor, 71 mSensorManager.unregisterListener(mSensorListener, mSensor);
|
DynamicSensorDiscoveryTestActivity.java | 158 private Sensor mSensor = null; 168 mSensor = sensor; 177 if (mSensor == sensor) { 178 mSensor = null; 215 if (mSensor == null) { 231 eventCallback, mSensor, SensorManager.SENSOR_DELAY_FASTEST)) { 251 mSensorManager.getDynamicSensorList(Sensor.TYPE_ALL).contains(mSensor); 258 mSensorManager.getDynamicSensorList(mSensor.getType()).contains(mSensor); 262 return assumeSensorIsSet() ? mSensor.getId() : null [all...] |
GyroscopeTestActivity.java | 49 private Sensor mSensor; 76 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); 150 if (!mSensorManager.registerListener(mSensorListener, mSensor, 159 mSensorManager.unregisterListener(mSensorListener, mSensor);
|
RotationVectorTestActivity.java | 72 private final Sensor[] mSensor = new Sensor[3]; 80 if (mSensor[ROTATION_VECTOR_INDEX] == null 81 && mSensor[GEOMAGNETIC_ROTATION_VECTOR_INDEX] == null 82 && mSensor[GAME_ROTATION_VECTOR_INDEX] == null) { 126 Sensor sensor = mSensor[sensorIndex]; 168 mSensor[ROTATION_VECTOR_INDEX] = 170 mSensor[GEOMAGNETIC_ROTATION_VECTOR_INDEX] = 172 mSensor[GAME_ROTATION_VECTOR_INDEX] = 198 Sensor sensor = mSensor[i]; 208 mSensorManager.registerListener(this, mSensor[i], SensorManager.SENSOR_DELAY_GAME) [all...] |
/cts/tests/sensor/src/android/hardware/cts/ |
SensorAdditionalInfoTest.java | 116 private final Sensor mSensor; 119 mSensor = s; 124 if (sensor == mSensor) { 131 if (info.sensor == mSensor && !mFlushPending) {
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
TestSensorEnvironment.java | 41 private final Sensor mSensor; 244 mSensor = sensor; 263 return mSensor; 321 int sensorMaxDelay = mSensor.getMaxDelay(); 326 return Math.max(expectedSamplingPeriodUs, mSensor.getMinDelay()); 339 int sensorReportingMode = mSensor.getReportingMode(); 366 switch (mSensor.getType()) { 371 + mSensor.getStringType()); 437 mSensor,
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
EventBasicVerification.java | 52 private final Object mSensor; 66 mSensor = sensor; 196 return new EventBasicVerification( mExpectedMinNumEvent, (Sensor)mSensor ); 204 if (event.sensor == mSensor) {
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
DozeScreenBrightnessTest.java | 57 FakeSensorManager.FakeGenericSensor mSensor; 66 mSensor = mSensorManager.getFakeLightSensor(); 68 mSensor.getSensor(), mHostFake, null /* handler */, 85 mSensor.sendSensorEvent(3); 95 mSensor.sendSensorEvent(1); 100 mSensor.sendSensorEvent(2); 110 mSensor.sendSensorEvent(1); 124 mSensor.sendSensorEvent(1); 138 mSensor.sendSensorEvent(1); 161 mSensor.sendSensorEvent(1) [all...] |
/hardware/invensense/65xx/libsensors_iio/ |
sensors_mpl.cpp | 110 SensorBase *mSensor; 140 mSensor = mplSensor; 141 mPollFds[mpl].fd = mSensor->getFd(); 149 mPollFds[dmpOrient].fd = ((MPLSensor*) mSensor)->getDmpOrientFd(); 153 mPollFds[dmpSign].fd = ((MPLSensor*) mSensor)->getDmpSignificantMotionFd(); 157 mPollFds[dmpPed].fd = ((MPLSensor*) mSensor)->getDmpPedometerFd(); 176 delete mSensor; 188 err = mSensor->enable(handle, enabled); 201 return mSensor->setDelay(handle, ns); 211 polltime = ((MPLSensor*) mSensor)->getStepCountPollTime() [all...] |
/packages/apps/Dialer/java/com/android/incallui/ |
AccelerometerListener.java | 46 private Sensor mSensor; 93 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 109 mSensorListener, mSensor, SensorManager.SENSOR_DELAY_NORMAL);
|
/sdk/testapps/testSensors/src/com/android/tests/testsensors/ |
TestSensorsActivity.java | 45 private final Sensor mSensor; 59 mSensor = sensor; 149 return mSensor.getType(); 158 sm.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI);
|
/developers/build/prebuilts/gradle/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/ |
MainActivity.java | 70 private Sensor mSensor; 93 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); 128 if (mSensorManager.registerListener(this, mSensor,
|
/developers/samples/android/wearable/wear/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/ |
MainActivity.java | 70 private Sensor mSensor; 93 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); 128 if (mSensorManager.registerListener(this, mSensor,
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Compass.java | 34 private Sensor mSensor; 56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION); 67 mSensorManager.registerListener(mListener, mSensor,
|
SensorTest.java | 33 private Sensor mSensor; 141 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 150 mSensorManager.registerListener(mListener, mSensor, SensorManager.SENSOR_DELAY_FASTEST);
|