Home
last modified time | relevance | path

Searched refs:onKeyDown (Results 1 – 25 of 27) sorted by relevance

12

/cts/tests/tests/text/src/android/text/method/cts/
DArrowKeyMovementMethodTest.java204 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
217 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
228 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
241 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
254 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
262 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
269 assertFalse(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
289 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeDown()
302 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeDown()
313 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeDown()
[all …]
DLinkMovementMethodTest.java168 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_ENTER, in testOnKeyDown()
178 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown()
188 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_ENTER, in testOnKeyDown()
197 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown()
207 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown()
221 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, event)); in testOnKeyDown()
229 mMethod.onKeyDown(null, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown_nullViewParam()
236 mMethod.onKeyDown(mView, null, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown_nullSpannableParam()
243 mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, null); in testOnKeyDown_nullKeyEventParam()
DScrollingMovementMethodTest.java383 runActionOnUiThread(() -> method.onKeyDown(mTextView, null, KeyEvent.KEYCODE_DPAD_DOWN, in testOnKeyDownVerticalMovement()
387 runActionOnUiThread(() -> method.onKeyDown(mTextView, null, KeyEvent.KEYCODE_DPAD_UP, in testOnKeyDownVerticalMovement()
405 runActionOnUiThread(() -> method.onKeyDown(mTextView, (Spannable) mTextView.getText(), in testOnKeyDownHorizontalMovement()
411 runActionOnUiThread(() -> method.onKeyDown(mTextView, (Spannable) mTextView.getText(), in testOnKeyDownHorizontalMovement()
418 runActionOnUiThread(() -> assertFalse(method.onKeyDown(mTextView, mSpannable, 0, in testOnKeyDownHorizontalMovement()
432 method.onKeyDown(null, mSpannable, KeyEvent.KEYCODE_DPAD_RIGHT, in testOnKeyDownExceptions()
439 method.onKeyDown(mTextView, null, KeyEvent.KEYCODE_DPAD_RIGHT, in testOnKeyDownExceptions()
446 method.onKeyDown(mTextView, mSpannable, KeyEvent.KEYCODE_DPAD_RIGHT, null); in testOnKeyDownExceptions()
562 new ScrollingMovementMethod().onKeyDown(mTextView, mSpannable, in testMovementWithNullLayout()
DMetaKeyKeyListenerTest.java60 numberKeyListener.onKeyDown(view, content, KeyEvent.KEYCODE_0, in testPressKey()
66 numberKeyListener.onKeyDown(view, content, KeyEvent.KEYCODE_2, in testPressKey()
72 numberKeyListener.onKeyDown(view, content, KeyEvent.KEYCODE_3, in testPressKey()
DForwardDeleteTest.java56 mActivity.runOnUiThread(() -> mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent)); in forwardDelete()
DBackspaceTest.java56 mActivityRule.runOnUiThread(() -> mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent)); in backspace()
DQwertyKeyListenerTest.java177 mInstrumentation.runOnMainSync(() -> keyListener.onKeyDown(mTextView, in callOnKeyDown()
DMultiTapKeyListenerTest.java221 keyListener.onKeyDown(mTextView, mTextView.getEditableText(), keyCode, in callOnKeyDown()
/cts/tests/tests/widget/src/android/widget/cts/
DMockViewForListPopupWindow.java49 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in MockViewForListPopupWindow
51 return mListPopupWindow.onKeyDown(keyCode, event); in onKeyDown()
53 return super.onKeyDown(keyCode, event); in onKeyDown()
/cts/tests/tests/view/src/android/view/cts/
DKeyEventInjectionActivity.java29 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in KeyEventInjectionActivity
32 return mCallback.onKeyDown(keyCode, event); in onKeyDown()
DLongPressBackActivity.java49 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in LongPressBackActivity
53 return super.onKeyDown(keyCode, event); in onKeyDown()
DMockView.java180 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in MockView
182 return super.onKeyDown(keyCode, event); in onKeyDown()
DKeyEventInjectionTest.java111 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in KeyEventInjectionTest
DKeyEventTest.java192 doReturn(true).when(callback).onKeyDown(anyInt(), any(KeyEvent.class)); in testDispatch()
200 verify(callback, never()).onKeyDown(anyInt(), any(KeyEvent.class)); in testDispatch()
202 verify(callback, times(1)).onKeyDown(KeyEvent.KEYCODE_0, mKeyEvent); in testDispatch()
227 verify(callback, times(1)).onKeyDown(KeyEvent.KEYCODE_0, mKeyEvent); in testDispatch()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowCtsActivity.java55 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in WindowCtsActivity
57 return super.onKeyDown(keyCode, event); in onKeyDown()
DLayoutTests.java184 public boolean onKeyDown(int keyCode, KeyEvent event) { in testChangingFocusableFlag()
188 return super.onKeyDown(keyCode, event); in testChangingFocusableFlag()
/cts/tests/app/app/src/android/app/stubs/
DKeyguardManagerActivity.java54 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in KeyguardManagerActivity
66 return super.onKeyDown(keyCode, event); in onKeyDown()
DInstrumentationTestActivity.java213 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in InstrumentationTestActivity
216 return super.onKeyDown(keyCode, event); in onKeyDown()
DTestDialog.java146 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in TestDialog
149 onKeyDownReturn = super.onKeyDown(keyCode, event); in onKeyDown()
DDialogStubActivity.java370 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in DialogStubActivity.MockAlertDialog
372 return super.onKeyDown(keyCode, event); in onKeyDown()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUSBAudioPeripheralButtonsActivity.java118 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in USBAudioPeripheralButtonsActivity
140 return super.onKeyDown(keyCode, event); in onKeyDown()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DColorChangeOnKeyView.java41 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in ColorChangeOnKeyView
/cts/hostsidetests/hdmicec/app/src/android/hdmicec/app/
DHdmiCecKeyEventCapture.java60 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in HdmiCecKeyEventCapture
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockIme.java522 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in MockIme
523 return getTracer().onKeyDown(keyCode, event, () -> super.onKeyDown(keyCode, event)); in onKeyDown()
742 public boolean onKeyDown(int keyCode, KeyEvent event, @NonNull BooleanSupplier supplier) {
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputServiceTest.java1219 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in TvInputServiceTest.CountingTvInputService.CountingSession

12