/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | VirtualKeyEventTest.java | 49 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()
|
D | InputTestCase.java | 146 + 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/ |
D | KeyguardInputTests.java | 79 assertEquals(keycode, event.getKeyCode()); in assertReceivedKey() 83 assertEquals(keycode, event.getKeyCode()); in assertReceivedKey()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/ |
D | AccessibilityKeyEventTestActivity.java | 27 if (event.getKeyCode() == mExpectedKeyCode) { in dispatchKeyEvent()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | KeyEventInjectionTest.java | 182 assertEquals(keyCode, event.getKeyCode()); in waitForLongPress() 195 + KeyEvent.keyCodeToString(event.getKeyCode()), in checkKeyEvent() 196 keyCode, event.getKeyCode()); in checkKeyEvent()
|
D | KeyEventInterceptTest.java | 153 fail("Should not have received " + KeyEvent.keyCodeToString(keyEvent.getKeyCode())); in assertKeyNotReceived() 161 assertEquals(keyCode, keyEvent.getKeyCode()); in assertKeyReceived()
|
D | KeyEventTest.java | 117 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()
|
D | VerifyInputEventTest.java | 337 assertEquals(keyEvent.getKeyCode(), verifiedKey.getKeyCode()); in compareKeys()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | BaseKeyListenerTest.java | 63 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()
|
D | BaseMovementMethodTest.java | 238 method.onKeyDown(view, spannable, event.getKeyCode(), event); in previousParagraphCall() 254 method.onKeyDown(view, spannable, event.getKeyCode(), event); in nextParagraphCall()
|
D | ForwardDeleteTest.java | 56 mActivity.runOnUiThread(() -> mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent)); in forwardDelete()
|
D | BackspaceTest.java | 56 mActivityRule.runOnUiThread(() -> mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent)); in backspace()
|
/cts/tests/tests/view/jni/ |
D | android_view_cts_AInputNativeTest.cpp | 48 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/ |
D | InputDeviceMultiDeviceKeyEventTest.java | 183 assertNotEquals(expectedKeyEvent.getKeyCode(), KeyEvent.KEYCODE_UNKNOWN); in assertReceivedKeyEvent() 194 assertEquals("KeyCode: " + log, expectedKeyEvent.getKeyCode(), in assertReceivedKeyEvent() 195 receivedKeyEvent.getKeyCode()); in assertReceivedKeyEvent()
|
D | InputDeviceKeyLayoutMapTest.java | 188 assertEquals(keyCode, receivedKeyEvent.getKeyCode()); in assertReceivedKeyEvent()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/ |
D | InputCtsActivity.java | 72 if (mUnhandledKeys.contains(ev.getKeyCode())) { in dispatchKeyEvent()
|
/cts/tests/app/src/android/app/cts/ |
D | InstrumentationTest.java | 411 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()
|
D | DialogTest.java | 442 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/ |
D | TvViewTest.java | 407 assertEquals(unhandled.getKeyCode(), keyEvent.getKeyCode()); in verifyKeyEvent()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | CtsKeyEventUtil.java | 255 int code = event.getKeyCode(); in sendKey()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputConnectionWrapperTest.java | 144 assertEquals(KeyEvent.KEYCODE_0, keyEventCaptor.getValue().getKeyCode()); in testInputConnectionWrapper()
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaActivityTest.java | 261 assertThat(event.getKeyCode()).isEqualTo(testKeyEvent); in testMediaKey_whileSessionAlive()
|
D | MediaSessionTest.java | 473 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/ |
D | CarInputTest.java | 551 .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/ |
D | TvAdServiceTest.java | 610 assertThat(actual.getKeyCode()).isEqualTo(expected.getKeyCode()); in assertKeyEventEquals()
|