Home
last modified time | relevance | path

Searched refs:keyCode (Results 1 – 25 of 29) sorted by relevance

12

/cts/tests/tests/widget/src/android/widget/cts/
DMockViewForListPopupWindow.java41 public boolean onKeyPreIme(int keyCode, KeyEvent event) { in onKeyPreIme() argument
43 return mListPopupWindow.onKeyPreIme(keyCode, event); in onKeyPreIme()
45 return super.onKeyPreIme(keyCode, event); in onKeyPreIme()
49 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
51 return mListPopupWindow.onKeyDown(keyCode, event); in onKeyDown()
53 return super.onKeyDown(keyCode, event); in onKeyDown()
57 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
59 return mListPopupWindow.onKeyUp(keyCode, event); in onKeyUp()
61 return super.onKeyUp(keyCode, event); in onKeyUp()
DMultiAutoCompleteTextViewTest.java280 protected void performFiltering(CharSequence text, int keyCode) { in performFiltering() argument
281 super.performFiltering(text, keyCode); in performFiltering()
284 protected void performFiltering(CharSequence text, int start, int end, int keyCode) { in performFiltering() argument
285 super.performFiltering(text, start, end, keyCode); in performFiltering()
DMockTextView.java140 public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) { in onKeyMultiple() argument
142 return super.onKeyMultiple(keyCode, repeatCount, event); in onKeyMultiple()
/cts/tests/tests/view/src/android/view/cts/
DLongPressBackActivity.java52 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
53 if (keyCode == KeyEvent.KEYCODE_BACK && !event.isCanceled()) { in onKeyDown()
56 return super.onKeyDown(keyCode, event); in onKeyDown()
60 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
61 if (keyCode == KeyEvent.KEYCODE_BACK) { in onKeyUp()
64 return super.onKeyUp(keyCode, event); in onKeyUp()
DMockView.java97 public boolean onKeyShortcut(int keyCode, KeyEvent event) { in onKeyShortcut() argument
99 return super.onKeyShortcut(keyCode, event); in onKeyShortcut()
179 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
181 return super.onKeyDown(keyCode, event); in onKeyDown()
189 public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) { in onKeyMultiple() argument
191 return super.onKeyMultiple(keyCode, repeatCount, event); in onKeyMultiple()
199 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
201 return super.onKeyUp(keyCode, event); in onKeyUp()
607 public boolean onKeyPreIme(int keyCode, KeyEvent event) { in onKeyPreIme() argument
609 return super.onKeyPreIme(keyCode, event); in onKeyPreIme()
DWindowCtsActivity.java55 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
57 return super.onKeyDown(keyCode, event); in onKeyDown()
DMockTextView.java140 public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) { in onKeyMultiple() argument
142 return super.onKeyMultiple(keyCode, repeatCount, event); in onKeyMultiple()
DKeyEventTest.java665 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
667 mKeyCode = keyCode; in onKeyDown()
672 public boolean onKeyLongPress(int keyCode, KeyEvent event) { in onKeyLongPress() argument
676 public boolean onKeyMultiple(int keyCode, int count, KeyEvent event) { in onKeyMultiple() argument
678 mKeyCode = keyCode; in onKeyMultiple()
687 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
689 mKeyCode = keyCode; in onKeyUp()
DWindowTest.java774 private void injectKeyEvent(Window window, int keyCode) { in injectKeyEvent() argument
775 KeyEvent downEvent = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in injectKeyEvent()
777 KeyEvent upEvent = new KeyEvent(KeyEvent.ACTION_UP, keyCode); in injectKeyEvent()
903 public boolean performPanelShortcut(int featureId, int keyCode, KeyEvent event, int flags) { in performPanelShortcut() argument
992 public boolean isShortcutKey(int keyCode, KeyEvent event) { in isShortcutKey() argument
/cts/tests/tests/text/src/android/text/method/cts/
DTextMethodUtils.java47 for (int keyCode = KeyEvent.KEYCODE_A; keyCode <= KeyEvent.KEYCODE_Z; keyCode++) { in getUnacceptedKeyCode()
48 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in getUnacceptedKeyCode()
50 return keyCode; in getUnacceptedKeyCode()
DDateKeyListenerTest.java88 int keyCode = TextMethodUtils.getUnacceptedKeyCode(DateKeyListener.CHARACTERS); in testDateTimeKeyListener() local
89 if (-1 != keyCode) { in testDateTimeKeyListener()
90 mKeyEventUtil.sendKeys(mTextView, keyCode); in testDateTimeKeyListener()
DDateTimeKeyListenerTest.java115 int keyCode = TextMethodUtils.getUnacceptedKeyCode(DateTimeKeyListener.CHARACTERS); in testDateTimeKeyListener() local
116 if (-1 != keyCode) { in testDateTimeKeyListener()
117 mKeyEventUtil.sendKeys(mTextView, keyCode); in testDateTimeKeyListener()
DTimeKeyListenerTest.java111 int keyCode = TextMethodUtils.getUnacceptedKeyCode(TimeKeyListener.CHARACTERS); in testTimeKeyListener() local
112 if (-1 != keyCode) { in testTimeKeyListener()
113 mKeyEventUtil.sendKeys(mTextView, keyCode); in testTimeKeyListener()
DNumberKeyListenerTest.java151 int keyCode = TextMethodUtils.getUnacceptedKeyCode(MockNumberKeyListener.DIGITS); in testPressKey() local
152 if (-1 != keyCode) { in testPressKey()
153 mKeyEventUtil.sendKeys(mTextView, keyCode); in testPressKey()
DQwertyKeyListenerTest.java144 private void callOnKeyDown(final QwertyKeyListener keyListener, final int keyCode) { in callOnKeyDown() argument
147 keyListener.onKeyDown(mTextView, mTextView.getEditableText(), keyCode, in callOnKeyDown()
148 new KeyEvent(KeyEvent.ACTION_DOWN, keyCode)); in callOnKeyDown()
DMultiTapKeyListenerTest.java182 private void callOnKeyDown(final MultiTapKeyListener keyListener, final int keyCode, in callOnKeyDown() argument
187 keyListener.onKeyDown(mTextView, mTextView.getEditableText(), keyCode, in callOnKeyDown()
188 new KeyEvent(KeyEvent.ACTION_DOWN, keyCode)); in callOnKeyDown()
/cts/tests/app/app/src/android/app/stubs/
DKeyguardManagerActivity.java30 public int keyCode; field in KeyguardManagerActivity
54 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
55 this.keyCode = keyCode; in onKeyDown()
56 if (keyCode == KeyEvent.KEYCODE_0 && mKeyLock != null) { in onKeyDown()
66 return super.onKeyDown(keyCode, event); in onKeyDown()
DTestDialog.java145 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
147 keyDownCode = keyCode; in onKeyDown()
148 onKeyDownReturn = super.onKeyDown(keyCode, event); in onKeyDown()
154 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
157 return super.onKeyUp(keyCode, event); in onKeyUp()
161 public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) { in onKeyMultiple() argument
163 onKeyMultipleReturn = super.onKeyMultiple(keyCode, repeatCount, event); in onKeyMultiple()
DInstrumentationTestActivity.java211 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
213 mKeyDownCode = keyCode; in onKeyDown()
214 return super.onKeyDown(keyCode, event); in onKeyDown()
224 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
226 mKeyUpCode = keyCode; in onKeyUp()
227 return super.onKeyUp(keyCode, event); in onKeyUp()
DDialogStubActivity.java370 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
372 return super.onKeyDown(keyCode, event); in onKeyDown()
376 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
378 return super.onKeyUp(keyCode, event); in onKeyUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/widgets/
DProjectionWidgetActivity.java37 InjectDPadClickListener(int keyCode) { in InjectDPadClickListener() argument
38 mKeyCode = keyCode; in InjectDPadClickListener()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputServiceTest.java541 final int keyCode = KeyEvent.KEYCODE_Q; in verifyCommandDispatchKeyDown() local
542 final KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in verifyCommandDispatchKeyDown()
551 && session.mKeyDownCode == keyCode in verifyCommandDispatchKeyDown()
560 final int keyCode = KeyEvent.KEYCODE_Q; in verifyCommandDispatchKeyMultiple() local
561 final KeyEvent event = new KeyEvent(KeyEvent.ACTION_MULTIPLE, keyCode); in verifyCommandDispatchKeyMultiple()
570 && session.mKeyMultipleCode == keyCode in verifyCommandDispatchKeyMultiple()
580 final int keyCode = KeyEvent.KEYCODE_Q; in verifyCommandDispatchKeyUp() local
581 final KeyEvent event = new KeyEvent(KeyEvent.ACTION_UP, keyCode); in verifyCommandDispatchKeyUp()
590 && session.mKeyUpCode == keyCode in verifyCommandDispatchKeyUp()
1218 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DColorChangeOnKeyView.java41 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
/cts/libs/deviceutil/src/android/cts/util/
DKeyEventUtil.java124 final int keyCode = keyCodeField.getInt(null); in sendKeys() local
126 sendKeyDownUp(targetView, keyCode); in sendKeys()
/cts/tests/app/src/android/app/cts/
DDialogTest.java528 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { in testDispatchKeyEvent()
530 if (KeyEvent.KEYCODE_0 == keyCode) { in testDispatchKeyEvent()
535 if (KeyEvent.KEYCODE_1 == keyCode) { in testDispatchKeyEvent()

12