Home
last modified time | relevance | path

Searched refs:mMotionListener (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java1683 mDeviceIdleController.mMotionListener.onTrigger(null); in testStationaryDetection_QuickDozeOff()
1693 .requestTriggerSensor(eq(mDeviceIdleController.mMotionListener), eq(mMotionSensor)); in testStationaryDetection_QuickDozeOn_NoMotion()
1737 mDeviceIdleController.mMotionListener.onTrigger(null); in testStationaryDetection_QuickDozeOn_NoMotion()
1756 .requestTriggerSensor(eq(mDeviceIdleController.mMotionListener), eq(mMotionSensor)); in testStationaryDetection_QuickDozeOn_NoMotion()
1989 assertFalse(mDeviceIdleController.mMotionListener.isActive()); in verifyStateConditions()
1993 assertFalse(mDeviceIdleController.mMotionListener.isActive()); in verifyStateConditions()
2002 mDeviceIdleController.mMotionListener.isActive()); in verifyStateConditions()
2011 mDeviceIdleController.mMotionListener.isActive()); in verifyStateConditions()
2022 mDeviceIdleController.mMotionListener.isActive()); in verifyStateConditions()
2029 assertTrue(mDeviceIdleController.mMotionListener.isActive() in verifyStateConditions()
[all …]
/frameworks/base/services/core/java/com/android/server/
DDeviceIdleController.java701 return mMotionListener.active in isStationaryLocked()
703 && now - Math.max(mMotionListener.activatedTimeElapsed, mLastMotionEventElapsed) in isStationaryLocked()
715 if (mMotionListener.active) { in registerStationaryListener()
780 success = mSensorManager.requestTriggerSensor(mMotionListener, mMotionSensor); in registerLocked()
783 mMotionListener, mMotionSensor, SensorManager.SENSOR_DELAY_NORMAL); in registerLocked()
796 mSensorManager.cancelTriggerSensor(mMotionListener, mMotionSensor); in unregisterLocked()
798 mSensorManager.unregisterListener(mMotionListener); in unregisterLocked()
803 @VisibleForTesting final MotionListener mMotionListener = new MotionListener(); field in DeviceIdleController
3503 if (mMotionSensor != null && !mMotionListener.active) { in startMonitoringMotionLocked()
3504 mMotionListener.registerLocked(); in startMonitoringMotionLocked()
[all …]