/cts/tests/tests/widget/src/android/widget/cts/ |
D | MockViewForListPopupWindow.java | 41 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()
|
D | MultiAutoCompleteTextViewTest.java | 280 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()
|
D | MockTextView.java | 140 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/ |
D | LongPressBackActivity.java | 52 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()
|
D | MockView.java | 97 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()
|
D | WindowCtsActivity.java | 55 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 57 return super.onKeyDown(keyCode, event); in onKeyDown()
|
D | MockTextView.java | 140 public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) { in onKeyMultiple() argument 142 return super.onKeyMultiple(keyCode, repeatCount, event); in onKeyMultiple()
|
D | KeyEventTest.java | 665 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()
|
D | WindowTest.java | 774 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/ |
D | TextMethodUtils.java | 47 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()
|
D | DateKeyListenerTest.java | 88 int keyCode = TextMethodUtils.getUnacceptedKeyCode(DateKeyListener.CHARACTERS); in testDateTimeKeyListener() local 89 if (-1 != keyCode) { in testDateTimeKeyListener() 90 mKeyEventUtil.sendKeys(mTextView, keyCode); in testDateTimeKeyListener()
|
D | DateTimeKeyListenerTest.java | 115 int keyCode = TextMethodUtils.getUnacceptedKeyCode(DateTimeKeyListener.CHARACTERS); in testDateTimeKeyListener() local 116 if (-1 != keyCode) { in testDateTimeKeyListener() 117 mKeyEventUtil.sendKeys(mTextView, keyCode); in testDateTimeKeyListener()
|
D | TimeKeyListenerTest.java | 111 int keyCode = TextMethodUtils.getUnacceptedKeyCode(TimeKeyListener.CHARACTERS); in testTimeKeyListener() local 112 if (-1 != keyCode) { in testTimeKeyListener() 113 mKeyEventUtil.sendKeys(mTextView, keyCode); in testTimeKeyListener()
|
D | NumberKeyListenerTest.java | 151 int keyCode = TextMethodUtils.getUnacceptedKeyCode(MockNumberKeyListener.DIGITS); in testPressKey() local 152 if (-1 != keyCode) { in testPressKey() 153 mKeyEventUtil.sendKeys(mTextView, keyCode); in testPressKey()
|
D | QwertyKeyListenerTest.java | 144 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()
|
D | MultiTapKeyListenerTest.java | 182 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/ |
D | KeyguardManagerActivity.java | 30 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()
|
D | TestDialog.java | 145 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()
|
D | InstrumentationTestActivity.java | 211 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()
|
D | DialogStubActivity.java | 370 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/ |
D | ProjectionWidgetActivity.java | 37 InjectDPadClickListener(int keyCode) { in InjectDPadClickListener() argument 38 mKeyCode = keyCode; in InjectDPadClickListener()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvInputServiceTest.java | 541 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/ |
D | ColorChangeOnKeyView.java | 41 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | KeyEventUtil.java | 124 final int keyCode = keyCodeField.getInt(null); in sendKeys() local 126 sendKeyDownUp(targetView, keyCode); in sendKeys()
|
/cts/tests/app/src/android/app/cts/ |
D | DialogTest.java | 528 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()
|