Searched refs:mInputWakeUpDelegate (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
D | WindowWakeUpPolicyTests.java | 90 @Mock WindowWakeUpPolicyInternal.InputWakeUpDelegate mInputWakeUpDelegate; field in WindowWakeUpPolicyTests 133 .setInputWakeUpDelegate(mInputWakeUpDelegate); in testMotionWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 140 verify(mInputWakeUpDelegate).wakeUpFromMotion(200, SOURCE_TOUCHSCREEN, true); in testMotionWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 148 verify(mInputWakeUpDelegate).wakeUpFromMotion(300, SOURCE_ROTARY_ENCODER, false); in testMotionWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 158 .setInputWakeUpDelegate(mInputWakeUpDelegate); in testKeyWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 165 verify(mInputWakeUpDelegate).wakeUpFromKey(200, KEYCODE_POWER, true); in testKeyWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 173 verify(mInputWakeUpDelegate).wakeUpFromKey(300, KEYCODE_STEM_PRIMARY, false); in testKeyWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 186 .setInputWakeUpDelegate(mInputWakeUpDelegate); in testDelegatedKeyWakeIsSubjectToPolicyChecks() 190 verify(mInputWakeUpDelegate, never()).wakeUpFromKey(anyLong(), anyInt(), anyBoolean()); in testDelegatedKeyWakeIsSubjectToPolicyChecks() 201 .setInputWakeUpDelegate(mInputWakeUpDelegate); in testDelegatedMotionWakeIsSubjectToPolicyChecks() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | WindowWakeUpPolicy.java | 64 @Nullable private WindowWakeUpPolicyInternal.InputWakeUpDelegate mInputWakeUpDelegate; field in WindowWakeUpPolicy 103 mInputWakeUpDelegate = delegate; in setInputWakeUpDelegate() 125 if (mInputWakeUpDelegate != null in wakeUpFromKey() 126 && mInputWakeUpDelegate.wakeUpFromKey(eventTime, keyCode, isDown)) { in wakeUpFromKey() 149 if (mInputWakeUpDelegate != null in wakeUpFromMotion() 150 && mInputWakeUpDelegate.wakeUpFromMotion(eventTime, source, isDown)) { in wakeUpFromMotion()
|