Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/method/cts/
DArrowKeyMovementMethodTest.java203 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
216 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
227 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
240 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
253 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
261 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
268 assertFalse(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeUp()
288 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeDown()
301 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeDown()
312 assertTrue(mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, in testOnKeyDownWithKeyCodeDown()
[all …]
DLinkMovementMethodTest.java167 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_ENTER, in testOnKeyDown()
177 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown()
187 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_ENTER, in testOnKeyDown()
196 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown()
206 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown()
220 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, event)); in testOnKeyDown()
228 mMethod.onKeyDown(null, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown_nullViewParam()
235 mMethod.onKeyDown(mView, null, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown_nullSpannableParam()
242 mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, null); in testOnKeyDown_nullKeyEventParam()
DScrollingMovementMethodTest.java372 runActionOnUiThread(() -> method.onKeyDown(mTextView, null, KeyEvent.KEYCODE_DPAD_DOWN, in testOnKeyDownVerticalMovement()
376 runActionOnUiThread(() -> method.onKeyDown(mTextView, null, KeyEvent.KEYCODE_DPAD_UP, in testOnKeyDownVerticalMovement()
394 runActionOnUiThread(() -> method.onKeyDown(mTextView, (Spannable) mTextView.getText(), in testOnKeyDownHorizontalMovement()
400 runActionOnUiThread(() -> method.onKeyDown(mTextView, (Spannable) mTextView.getText(), in testOnKeyDownHorizontalMovement()
407 runActionOnUiThread(() -> assertFalse(method.onKeyDown(mTextView, mSpannable, 0, in testOnKeyDownHorizontalMovement()
421 method.onKeyDown(null, mSpannable, KeyEvent.KEYCODE_DPAD_RIGHT, in testOnKeyDownExceptions()
428 method.onKeyDown(mTextView, null, KeyEvent.KEYCODE_DPAD_RIGHT, in testOnKeyDownExceptions()
435 method.onKeyDown(mTextView, mSpannable, KeyEvent.KEYCODE_DPAD_RIGHT, null); in testOnKeyDownExceptions()
551 new ScrollingMovementMethod().onKeyDown(mTextView, mSpannable, in testMovementWithNullLayout()
DForwardDeleteTest.java55 mActivity.runOnUiThread(() -> mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent)); in forwardDelete()
DMetaKeyKeyListenerTest.java59 numberKeyListener.onKeyDown(view, content, KeyEvent.KEYCODE_0, in testPressKey()
65 numberKeyListener.onKeyDown(view, content, KeyEvent.KEYCODE_2, in testPressKey()
71 numberKeyListener.onKeyDown(view, content, KeyEvent.KEYCODE_3, in testPressKey()
DBackspaceTest.java55 mActivityRule.runOnUiThread(() -> mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent)); in backspace()
DQwertyKeyListenerTest.java176 mInstrumentation.runOnMainSync(() -> keyListener.onKeyDown(mTextView, in callOnKeyDown()
DMultiTapKeyListenerTest.java220 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()
DTextViewTest.java2248 mTextView.onKeyDown(KeyEvent.KEYCODE_COPY, copyWithMeta); in testCopyAndPaste_byKey()
2257 mTextView.onKeyDown(KeyEvent.KEYCODE_COPY, copyWithMeta); in testCopyAndPaste_byKey()
2266 mTextView.onKeyDown(KeyEvent.KEYCODE_COPY, copyWithMeta); in testCopyAndPaste_byKey()
2326 mTextView.onKeyDown(KeyEvent.KEYCODE_CUT, cutWithMeta); in testCutAndPaste_byKey()
2332 mTextView.onKeyDown(KeyEvent.KEYCODE_CUT, cutWithMeta); in testCutAndPaste_byKey()
2338 mTextView.onKeyDown(KeyEvent.KEYCODE_CUT, cutWithMeta); in testCutAndPaste_byKey()
/cts/tests/tests/view/src/android/view/cts/
DLongPressBackActivity.java49 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in LongPressBackActivity
53 return super.onKeyDown(keyCode, event); in onKeyDown()
DWindowCtsActivity.java53 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in WindowCtsActivity
55 return super.onKeyDown(keyCode, event); in onKeyDown()
DKeyEventInterceptTestActivity.java29 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in KeyEventInterceptTestActivity
DMockView.java176 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in MockView
178 return super.onKeyDown(keyCode, event); in onKeyDown()
DKeyEventTest.java187 doReturn(true).when(callback).onKeyDown(anyInt(), any(KeyEvent.class)); in testDispatch()
195 verify(callback, never()).onKeyDown(anyInt(), any(KeyEvent.class)); in testDispatch()
197 verify(callback, times(1)).onKeyDown(KeyEvent.KEYCODE_0, mKeyEvent); in testDispatch()
222 verify(callback, times(1)).onKeyDown(KeyEvent.KEYCODE_0, mKeyEvent); in testDispatch()
/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.java147 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in TestDialog
150 onKeyDownReturn = super.onKeyDown(keyCode, event); in onKeyDown()
DDialogStubActivity.java369 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in DialogStubActivity.MockAlertDialog
371 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/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUSBAudioPeripheralButtonsActivity.java109 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in USBAudioPeripheralButtonsActivity
133 return super.onKeyDown(keyCode, event); in onKeyDown()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockIme.java408 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() method in MockIme
409 return getTracer().onKeyDown(keyCode, event, () -> super.onKeyDown(keyCode, event)); in onKeyDown()
614 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