Home
last modified time | relevance | path

Searched refs:KEYCODE_POWER (Results 1 – 13 of 13) sorted by relevance

/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
H A DPowerKeyGestureTests.java42 sendKey(KEYCODE_POWER); in testPowerSinglePress()
47 sendKey(KEYCODE_POWER); in testPowerSinglePress()
59 sendKey(KEYCODE_POWER); in testPowerSinglePressRequestsDream()
69 sendKey(KEYCODE_POWER); in testAppTransitionFinishedCalledAfterDreamStoppedWillNotLockAgain()
83 sendKey(KEYCODE_POWER); in testPowerDoublePressWillNotLockDevice()
84 sendKey(KEYCODE_POWER); in testPowerDoublePressWillNotLockDevice()
94 sendKey(KEYCODE_POWER); in testPowerDoublePress()
95 sendKey(KEYCODE_POWER); in testPowerDoublePress()
106 sendKey(KEYCODE_POWER, true); in testPowerLongPress()
111 sendKey(KEYCODE_POWER, true); in testPowerLongPress()
[all …]
H A DSingleKeyGestureTests.java22 import static android.view.KeyEvent.KEYCODE_POWER;
194 pressKey(KEYCODE_POWER, 0 /* pressTime */); in testShortPress()
200 pressKey(KEYCODE_POWER, mLongPressTime); in testLongPress()
214 pressKey(KEYCODE_POWER, 0 /* pressTime */); in testMultiPress()
215 pressKey(KEYCODE_POWER, 0 /* pressTime */); in testMultiPress()
221 pressKey(KEYCODE_POWER, 0 /* pressTime */); in testMultiPress()
222 pressKey(KEYCODE_POWER, 0 /* pressTime */); in testMultiPress()
223 pressKey(KEYCODE_POWER, 0 /* pressTime */); in testMultiPress()
292 pressKey(KEYCODE_POWER, mLongPressTime); in testUpdateRule()
312 pressKey(KEYCODE_POWER, 0 /* pressTime */); in testAddRemove()
[all …]
H A DKeyCombinationManagerTests.java22 import static android.view.KeyEvent.KEYCODE_POWER;
72 KEYCODE_POWER) { in initKeyCombinationRules()
109 new KeyCombinationManager.TwoKeysCombinationRule(KEYCODE_VOLUME_UP, KEYCODE_POWER) { in initKeyCombinationRules()
163 pressKeys(eventTime, KEYCODE_POWER, eventTime, KEYCODE_VOLUME_DOWN); in testTriggerRule()
169 pressKeys(eventTime, KEYCODE_POWER, eventTime, KEYCODE_VOLUME_UP, SCHEDULE_TIME + 50); in testTriggerRule()
192 pressKeys(earlyEventTime, KEYCODE_POWER, eventTime, KEYCODE_VOLUME_DOWN); in testNotTrigger_Interval()
214 pressKeys(eventTime, KEYCODE_POWER, eventTime, KEYCODE_VOLUME_UP); in testNotTrigger_EarlyRelease()
236 KEYCODE_POWER) { in testAddRemove()
249 pressKeys(eventTime, KEYCODE_POWER, eventTime, KEYCODE_VOLUME_DOWN); in testAddRemove()
254 pressKeys(eventTime, KEYCODE_POWER, eventTime, KEYCODE_VOLUME_DOWN); in testAddRemove()
H A DCombinationKeyTests.java18 import static android.view.KeyEvent.KEYCODE_POWER;
49 sendKeyCombination(new int[]{KEYCODE_POWER, KEYCODE_VOLUME_DOWN}, in testPowerVolumeDown()
61 sendKeyCombination(new int[]{KEYCODE_POWER, KEYCODE_VOLUME_UP}, 0); in testPowerVolumeUp()
66 sendKeyCombination(new int[]{KEYCODE_POWER, KEYCODE_VOLUME_UP}, 100); in testPowerVolumeUp()
H A DShortcutLoggingTests.java158 {"POWER key -> Toggle Power", new int[]{KeyEvent.KEYCODE_POWER}, in shortcutTestArguments()
159 KeyboardLogEvent.TOGGLE_POWER, KeyEvent.KEYCODE_POWER, 0}, in shortcutTestArguments()
/aosp14/frameworks/base/services/core/java/com/android/server/policy/
H A DKeyCombinationManager.java18 import static android.view.KeyEvent.KEYCODE_POWER;
263 if (forAllActiveRules((rule) -> rule.shouldInterceptKey(KEYCODE_POWER))) { in isPowerKeyIntercepted()
265 return mDownTimes.size() > 1 || mDownTimes.get(KEYCODE_POWER) == 0; in isPowerKeyIntercepted()
H A DPhoneWindowManager.java40 import static android.view.KeyEvent.KEYCODE_POWER;
986 if (mSingleKeyGestureDetector.isKeyIntercepted(KEYCODE_POWER)) { in interceptPowerKeyDown()
2302 new TwoKeysCombinationRule(KEYCODE_VOLUME_DOWN, KEYCODE_POWER) {
2317 new TwoKeysCombinationRule(KEYCODE_POWER, KEYCODE_STEM_PRIMARY) {
2353 new TwoKeysCombinationRule(KEYCODE_VOLUME_UP, KEYCODE_POWER) {
2443 super(KEYCODE_POWER);
4129 if (down && (keyCode == KeyEvent.KEYCODE_POWER
4228 event.getAction(), KeyEvent.KEYCODE_POWER,
4383 case KeyEvent.KEYCODE_POWER: {
4388 mSingleKeyGestureDetector.getKeyPressCounter(KeyEvent.KEYCODE_POWER));
[all …]
/aosp14/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/launch/
H A DOpenCameraFromHomeOnDoubleClickPowerButtonTest.kt78 device.pressKeyCode(KeyEvent.KEYCODE_POWER)
80 device.pressKeyCode(KeyEvent.KEYCODE_POWER)
/aosp14/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DInteractionController.java623 sendKey(KeyEvent.KEYCODE_POWER, 0);
637 this.sendKey(KeyEvent.KEYCODE_POWER, 0);
/aosp14/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiCecKeycode.java305 new KeycodeEntry(KeyEvent.KEYCODE_POWER, CEC_KEYCODE_POWER, false),
/aosp14/frameworks/base/core/java/android/view/
H A DKeyEvent.java158 public static final int KEYCODE_POWER = 26; field in KeyEvent
2029 case KeyEvent.KEYCODE_POWER: in isSystemKey()
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/aosp14/frameworks/base/core/api/
H A Dcurrent.txt50971 field public static final int KEYCODE_POWER = 26; // 0x1a