Home
last modified time | relevance | path

Searched refs:metaState (Results 1 – 14 of 14) sorted by relevance

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsKeyEventUtil.java257 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/
DMenuTest.java78 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 …]
DKeyEventInterceptTest.java120 private void testKeyCodeHomeShortcut(int metaState) { in testKeyCodeHomeShortcut() argument
123 KeyEvent.KEYCODE_ENTER, 0, metaState)); in testKeyCodeHomeShortcut()
125 KeyEvent.KEYCODE_ENTER, 0, metaState)); in testKeyCodeHomeShortcut()
DKeyEventTest.java255 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/
DInputJsonParser.java484 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 …]
DInputEventMatchers.kt203 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/
DAppKeyCombinationsTest.kt78 private fun assertKeyEvent(keyCode: Int, action: Int, metaState: Int) { in assertKeyEvent()
83 assertEquals(metaState, event.metaState) in assertKeyEvent()
DIncompleteMotionTest.kt178 val metaState = 0 in sendEvent() constant
179 val event = MotionEvent.obtain(downTime, eventTime, action, x, y, metaState) in sendEvent()
DA11yStickyKeysTest.kt105 lastInputEvent.metaState in <lambda>()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingFocusTests.java216 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/
DTabHostTest.java491 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/
Dandroid_view_cts_AInputNativeTest.cpp58 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/
DKeyListenerTestCase.java120 protected static KeyEvent getKey(int keycode, int metaState) { in getKey() argument
123 0 /* repeat */, metaState); in getKey()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp72 outMsg->body.key.metaState = msg.body.key.metaState; in sanitizeMessage()
101 outMsg->body.motion.metaState = msg.body.motion.metaState; in sanitizeMessage()