Home
last modified time | relevance | path

Searched refs:wakeUpFromKey (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
DWindowWakeUpPolicyTests.java164 assertThat(mPolicy.wakeUpFromKey(200, KEYCODE_POWER, true)).isTrue(); in testKeyWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake()
165 verify(mInputWakeUpDelegate).wakeUpFromKey(200, KEYCODE_POWER, true); in testKeyWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake()
172 assertThat(mPolicy.wakeUpFromKey(300, KEYCODE_STEM_PRIMARY, false)).isTrue(); in testKeyWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake()
173 verify(mInputWakeUpDelegate).wakeUpFromKey(300, KEYCODE_STEM_PRIMARY, false); in testKeyWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake()
189 assertThat(mPolicy.wakeUpFromKey(200, KEYCODE_POWER, true)).isFalse(); in testDelegatedKeyWakeIsSubjectToPolicyChecks()
190 verify(mInputWakeUpDelegate, never()).wakeUpFromKey(anyLong(), anyInt(), anyBoolean()); in testDelegatedKeyWakeIsSubjectToPolicyChecks()
233 () -> mPolicy.wakeUpFromKey(mClock.uptimeMillis(), KEYCODE_HOME, true), in testWakeUpFromKey_nonPowerKey()
248 () -> mPolicy.wakeUpFromKey(mClock.uptimeMillis(), KEYCODE_POWER, true), in testWakeUpFromKey_powerKey()
257 () -> mPolicy.wakeUpFromKey(mClock.uptimeMillis(), KEYCODE_POWER, false), in testWakeUpFromKey_powerKey()
375 when(mInputWakeUpDelegate.wakeUpFromKey(anyLong(), anyInt(), anyBoolean())) in setDelegatedKeyWakeUpResult()
DTestPhoneWindowManager.java682 .wakeUpFromKey(anyLong(), eq(KeyEvent.KEYCODE_POWER), anyBoolean()); in assertPowerWakeUp()
/frameworks/base/services/core/java/com/android/server/policy/
DWindowWakeUpPolicyInternal.java48 boolean wakeUpFromKey(long eventTime, int keyCode, boolean isDown); in wakeUpFromKey() method
DWindowWakeUpPolicy.java116 boolean wakeUpFromKey(long eventTime, int keyCode, boolean isDown) { in wakeUpFromKey() method in WindowWakeUpPolicy
126 && mInputWakeUpDelegate.wakeUpFromKey(eventTime, keyCode, isDown)) { in wakeUpFromKey()
DPhoneWindowManager.java5615 if (mWindowWakeUpPolicy.wakeUpFromKey(eventTime, keyCode, isDown)) {