Searched refs:mMotionListener (Results 1 – 2 of 2) sorted by relevance
1683 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 …]
701 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 DeviceIdleController3503 if (mMotionSensor != null && !mMotionListener.active) { in startMonitoringMotionLocked()3504 mMotionListener.registerLocked(); in startMonitoringMotionLocked()[all …]