Searched refs:mMotionSensor (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | DeviceIdleControllerTest.java | 135 private Sensor mMotionSensor; field in DeviceIdleControllerTest 205 return mMotionSensor; in getMotionSensor() 1691 doReturn(Sensor.REPORTING_MODE_ONE_SHOT).when(mMotionSensor).getReportingMode(); in testStationaryDetection_QuickDozeOn_NoMotion() 1693 .requestTriggerSensor(eq(mDeviceIdleController.mMotionListener), eq(mMotionSensor)); in testStationaryDetection_QuickDozeOn_NoMotion() 1756 .requestTriggerSensor(eq(mDeviceIdleController.mMotionListener), eq(mMotionSensor)); in testStationaryDetection_QuickDozeOn_NoMotion() 1771 doReturn(Sensor.REPORTING_MODE_ONE_SHOT).when(mMotionSensor).getReportingMode(); in testStationaryDetection_QuickDozeOn_OneShot() 1798 .requestTriggerSensor(listenerCaptor.capture(), eq(mMotionSensor)); in testStationaryDetection_QuickDozeOn_OneShot() 1808 inOrder.verify(mSensorManager).requestTriggerSensor(eq(listener), eq(mMotionSensor)); in testStationaryDetection_QuickDozeOn_OneShot() 1815 doReturn(Sensor.REPORTING_MODE_CONTINUOUS).when(mMotionSensor).getReportingMode(); in testStationaryDetection_QuickDozeOn_MultiShot() 1842 .registerListener(listenerCaptor.capture(), eq(mMotionSensor), in testStationaryDetection_QuickDozeOn_MultiShot() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | DeviceIdleController.java | 285 private Sensor mMotionSensor; field in DeviceIdleController 768 mSensorManager.unregisterListener(this, mMotionSensor); in onSensorChanged() 779 if (mMotionSensor.getReportingMode() == Sensor.REPORTING_MODE_ONE_SHOT) { in registerLocked() 780 success = mSensorManager.requestTriggerSensor(mMotionListener, mMotionSensor); in registerLocked() 783 mMotionListener, mMotionSensor, SensorManager.SENSOR_DELAY_NORMAL); in registerLocked() 789 Slog.e(TAG, "Unable to register for " + mMotionSensor); in registerLocked() 795 if (mMotionSensor.getReportingMode() == Sensor.REPORTING_MODE_ONE_SHOT) { in unregisterLocked() 796 mSensorManager.cancelTriggerSensor(mMotionListener, mMotionSensor); in unregisterLocked() 2073 mMotionSensor = mInjector.getMotionSensor(); in onBootPhase() 2148 return mUseMotionSensor && mMotionSensor != null; in hasMotionSensor() [all …]
|