/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | CtsKeyEventUtil.java | 257 int metaState = event.getMetaState(); in sendKey() local 273 metaState, deviceId, scanCode, flags, source); in sendKey() 309 final int metaState = getMetaStateForModifierKeyCode(modifierKeyCodeToHold); in sendKeyWhileHoldingModifier() local 317 keyCodeToSend, 0 /* repeat */, metaState); in sendKeyWhileHoldingModifier() 321 keyCodeToSend, 0 /* repeat */, metaState); in sendKeyWhileHoldingModifier() 337 int metaState; in getMetaStateForModifierKeyCode() local 340 metaState = KeyEvent.META_SHIFT_LEFT_ON; in getMetaStateForModifierKeyCode() 343 metaState = KeyEvent.META_SHIFT_RIGHT_ON; in getMetaStateForModifierKeyCode() 346 metaState = KeyEvent.META_ALT_LEFT_ON; in getMetaStateForModifierKeyCode() 349 metaState = KeyEvent.META_ALT_RIGHT_ON; in getMetaStateForModifierKeyCode() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | MenuTest.java | 78 int keyCodeToSend, metaState; in testPerformShortcut() local 83 metaState = KeyEvent.META_CTRL_ON; in testPerformShortcut() 84 keyEventToSend = generateKeyEvent(keyCodeToSend, metaState); in testPerformShortcut() 91 metaState = KeyEvent.META_CTRL_ON; in testPerformShortcut() 92 keyEventToSend = generateKeyEvent(keyCodeToSend, metaState); in testPerformShortcut() 99 metaState = KeyEvent.META_SHIFT_ON; in testPerformShortcut() 100 keyEventToSend = generateKeyEvent(keyCodeToSend, metaState); in testPerformShortcut() 107 metaState = KeyEvent.META_CTRL_ON | KeyEvent.META_SHIFT_ON; in testPerformShortcut() 108 keyEventToSend = generateKeyEvent(keyCodeToSend, metaState); in testPerformShortcut() 115 metaState = KeyEvent.META_CTRL_ON; in testPerformShortcut() [all …]
|
D | KeyEventInterceptTest.java | 120 private void testKeyCodeHomeShortcut(int metaState) { in testKeyCodeHomeShortcut() argument 123 KeyEvent.KEYCODE_ENTER, 0, metaState)); in testKeyCodeHomeShortcut() 125 KeyEvent.KEYCODE_ENTER, 0, metaState)); in testKeyCodeHomeShortcut()
|
D | KeyEventTest.java | 255 int metaState = KeyEvent.META_ALT_ON; in testGetMetaState() local 257 KeyEvent.KEYCODE_1, 1, metaState); in testGetMetaState() 258 assertEquals(metaState, mKeyEvent.getMetaState()); in testGetMetaState()
|
/cts/libs/input/src/com/android/cts/input/ |
D | InputJsonParser.java | 484 int metaState = metaStateFromString(entry.optString("metaState")); in parseKeyEvent() local 487 /* repeat */ 0, metaState, /* deviceId */ 0, /* scanCode */ 0, in parseKeyEvent() 552 int metaState = 0; in metaStateFromString() local 554 return metaState; in metaStateFromString() 561 metaState |= KeyEvent.META_SHIFT_ON | KeyEvent.META_SHIFT_LEFT_ON; in metaStateFromString() 564 metaState |= KeyEvent.META_SHIFT_ON | KeyEvent.META_SHIFT_RIGHT_ON; in metaStateFromString() 567 metaState |= KeyEvent.META_CTRL_ON | KeyEvent.META_CTRL_LEFT_ON; in metaStateFromString() 570 metaState |= KeyEvent.META_CTRL_ON | KeyEvent.META_CTRL_RIGHT_ON; in metaStateFromString() 573 metaState |= KeyEvent.META_ALT_ON | KeyEvent.META_ALT_LEFT_ON; in metaStateFromString() 576 metaState |= KeyEvent.META_ALT_ON | KeyEvent.META_ALT_RIGHT_ON; in metaStateFromString() [all …]
|
D | InputEventMatchers.kt | 203 fun withMetaState(metaState: Int): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withMetaState() 209 return event.metaState == metaState in withMetaState()
|
/cts/tests/input/src/android/input/cts/ |
D | AppKeyCombinationsTest.kt | 78 private fun assertKeyEvent(keyCode: Int, action: Int, metaState: Int) { in assertKeyEvent() 83 assertEquals(metaState, event.metaState) in assertKeyEvent()
|
D | IncompleteMotionTest.kt | 178 val metaState = 0 in sendEvent() constant 179 val event = MotionEvent.obtain(downTime, eventTime, action, x, y, metaState) in sendEvent()
|
D | A11yStickyKeysTest.kt | 105 lastInputEvent.metaState in <lambda>()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/ |
D | ActivityEmbeddingFocusTests.java | 216 private static void sendKey(int keyCode, int metaState) { in sendKey() argument 217 getInstrumentation().sendKeySync(new KeyEvent(0, 0, ACTION_DOWN, keyCode, 0, metaState)); in sendKey() 218 getInstrumentation().sendKeySync(new KeyEvent(0, 0, ACTION_UP, keyCode, 0, metaState)); in sendKey()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TabHostTest.java | 491 int metaState = 0; in sendKeyComboSync() local 494 metaState |= metaFromKey(metaKeys[mk]); in sendKeyComboSync() 496 0, KeyEvent.normalizeMetaState(metaState))); in sendKeyComboSync() 500 KeyEvent.normalizeMetaState(metaState))); in sendKeyComboSync() 502 KeyEvent.normalizeMetaState(metaState))); in sendKeyComboSync() 505 metaState &= ~metaFromKey(metaKeys[mk]); in sendKeyComboSync() 507 KeyEvent.normalizeMetaState(metaState))); in sendKeyComboSync()
|
/cts/tests/tests/view/jni/ |
D | android_view_cts_AInputNativeTest.cpp | 58 jint metaState = env->CallIntMethod(obj, gMotionEventMethodIds.getMetaState); in nativeMotionEventTest() local 77 ASSERT(metaState == AMotionEvent_getMetaState(event), "Wrong metaState %d not equal to %d", in nativeMotionEventTest() 78 AMotionEvent_getMetaState(event), metaState); in nativeMotionEventTest()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | KeyListenerTestCase.java | 120 protected static KeyEvent getKey(int keycode, int metaState) { in getKey() argument 123 0 /* repeat */, metaState); in getKey()
|
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/ |
D | poc.cpp | 72 outMsg->body.key.metaState = msg.body.key.metaState; in sanitizeMessage() 101 outMsg->body.motion.metaState = msg.body.motion.metaState; in sanitizeMessage()
|