Home
last modified time | relevance | path

Searched refs:getKeyCode (Results 1 – 25 of 39) sorted by relevance

12

/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DVirtualKeyEventTest.java49 assertWithMessage("Recreated event has different key code").that(originalEvent.getKeyCode()) in parcelAndUnparcel_matches()
50 .isEqualTo(recreatedEvent.getKeyCode()); in parcelAndUnparcel_matches()
91 assertWithMessage("Incorrect key code").that(event.getKeyCode()).isEqualTo( in keyEvent_valid_created()
DInputTestCase.java146 + KeyEvent.keyCodeToString(expectedKeyEvent.getKeyCode()) + " received: " in assertReceivedKeyEvent()
147 + KeyEvent.keyCodeToString(receivedKeyEvent.getKeyCode()), in assertReceivedKeyEvent()
148 expectedKeyEvent.getKeyCode(), receivedKeyEvent.getKeyCode()); in assertReceivedKeyEvent()
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DKeyguardInputTests.java79 assertEquals(keycode, event.getKeyCode()); in assertReceivedKey()
83 assertEquals(keycode, event.getKeyCode()); in assertReceivedKey()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityKeyEventTestActivity.java27 if (event.getKeyCode() == mExpectedKeyCode) { in dispatchKeyEvent()
/cts/tests/tests/view/src/android/view/cts/
DKeyEventInjectionTest.java182 assertEquals(keyCode, event.getKeyCode()); in waitForLongPress()
195 + KeyEvent.keyCodeToString(event.getKeyCode()), in checkKeyEvent()
196 keyCode, event.getKeyCode()); in checkKeyEvent()
DKeyEventInterceptTest.java153 fail("Should not have received " + KeyEvent.keyCodeToString(keyEvent.getKeyCode())); in assertKeyNotReceived()
161 assertEquals(keyCode, keyEvent.getKeyCode()); in assertKeyReceived()
DKeyEventTest.java117 assertEquals(KeyEvent.KEYCODE_UNKNOWN, mKeyEvent.getKeyCode()); in testGetCharacters()
669 assertEquals(mKeyEvent.getKeyCode(), keyEvent.getKeyCode()); in testWriteToParcel()
688 assertEquals(KeyEvent.KEYCODE_0, mKeyEvent.getKeyCode()); in testGetKeyCode()
723 assertEquals(mKeyEvent.getKeyCode(), newEvent.getKeyCode()); in testChangeAction()
740 assertEquals(mKeyEvent.getKeyCode(), newEvent.getKeyCode()); in testChangeFlags()
760 assertEquals(mKeyEvent.getKeyCode(), newEvent.getKeyCode()); in testChangeTimeRepeat()
857 assertEquals(javaKeyEvent.getKeyCode(), keyEventFromNative.getKeyCode()); in testNativeToJavaConverter()
DVerifyInputEventTest.java337 assertEquals(keyEvent.getKeyCode(), verifiedKey.getKeyCode()); in compareKeys()
/cts/tests/tests/text/src/android/text/method/cts/
DBaseKeyListenerTest.java63 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
68 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
73 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
75 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
83 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
88 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
93 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
101 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
106 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
110 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in verifyBackspace()
DBaseMovementMethodTest.java238 method.onKeyDown(view, spannable, event.getKeyCode(), event); in previousParagraphCall()
254 method.onKeyDown(view, spannable, event.getKeyCode(), event); in nextParagraphCall()
DForwardDeleteTest.java56 mActivity.runOnUiThread(() -> mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent)); in forwardDelete()
DBackspaceTest.java56 mActivityRule.runOnUiThread(() -> mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent)); in backspace()
/cts/tests/tests/view/jni/
Dandroid_view_cts_AInputNativeTest.cpp48 jmethodID getKeyCode; member
128 jint keyCode = env->CallIntMethod(obj, gKeyEventMethodIds.getKeyCode); in nativeKeyEventTest()
192 gKeyEventMethodIds.getKeyCode = env->GetMethodID(clazz, "getKeyCode", "()I"); in register_android_view_cts_AKeyEventNativeTest()
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceMultiDeviceKeyEventTest.java183 assertNotEquals(expectedKeyEvent.getKeyCode(), KeyEvent.KEYCODE_UNKNOWN); in assertReceivedKeyEvent()
194 assertEquals("KeyCode: " + log, expectedKeyEvent.getKeyCode(), in assertReceivedKeyEvent()
195 receivedKeyEvent.getKeyCode()); in assertReceivedKeyEvent()
DInputDeviceKeyLayoutMapTest.java188 assertEquals(keyCode, receivedKeyEvent.getKeyCode()); in assertReceivedKeyEvent()
/cts/tests/tests/hardware/src/android/hardware/input/cts/
DInputCtsActivity.java72 if (mUnhandledKeys.contains(ev.getKeyCode())) { in dispatchKeyEvent()
/cts/tests/app/src/android/app/cts/
DInstrumentationTest.java411 assertEquals(keyEvents[i++].getKeyCode(), keyDownList.get(j).getKeyCode()); in testSendStringSync()
412 assertEquals(keyEvents[i++].getKeyCode(), keyUpList.get(j).getKeyCode()); in testSendStringSync()
501 assertEquals(KeyEvent.KEYCODE_0, mActivity.getKeyUpList().get(0).getKeyCode()); in testSendKeyDownUpSync()
502 assertEquals(KeyEvent.KEYCODE_0, mActivity.getKeyDownList().get(0).getKeyCode()); in testSendKeyDownUpSync()
DDialogTest.java442 assertEquals(KeyEvent.KEYCODE_UNKNOWN, d.keyMultipleEvent.getKeyCode()); in testOnKeyMultiple()
596 assertEquals(KeyEvent.KEYCODE_0, d.keyEvent.getKeyCode()); in testDispatchKeyEvent()
721 assertEquals(KeyEvent.KEYCODE_0, d.keyEvent.getKeyCode()); in testTakeKeyEvents()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvViewTest.java407 assertEquals(unhandled.getKeyCode(), keyEvent.getKeyCode()); in verifyKeyEvent()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsKeyEventUtil.java255 int code = event.getKeyCode(); in sendKey()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java144 assertEquals(KeyEvent.KEYCODE_0, keyEventCaptor.getValue().getKeyCode()); in testInputConnectionWrapper()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaActivityTest.java261 assertThat(event.getKeyCode()).isEqualTo(testKeyEvent); in testMediaKey_whileSessionAlive()
DMediaSessionTest.java473 assertThat(keyEvent.getKeyCode()).isEqualTo(keyCode); in testSetMediaButtonReceiver_broadcastReceiver()
524 assertThat(keyEvent.getKeyCode()).isEqualTo(keyCode); in testSetMediaButtonReceiver_service()
609 assertThat(keyEvent.getKeyCode()).isEqualTo(keyCode); in testSetMediaButtonBroadcastReceiver_broadcastReceiver()
/cts/tests/tests/car/src/android/car/cts/
DCarInputTest.java551 .that(((KeyEvent) downEvent).getKeyCode()).isEqualTo(keyCode); in assertReceivedKeyCode()
557 .that(((KeyEvent) upEvent).getKeyCode()).isEqualTo(keyCode); in assertReceivedKeyCode()
/cts/tests/tests/tv/src/android/media/tv/ad/cts/
DTvAdServiceTest.java610 assertThat(actual.getKeyCode()).isEqualTo(expected.getKeyCode()); in assertKeyEventEquals()

12