Home
last modified time | relevance | path

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

12

/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.java80 int keyCode = TextMethodUtils.getUnacceptedKeyCode(DateKeyListener.CHARACTERS); in testDateTimeKeyListener() local
81 if (-1 != keyCode) { in testDateTimeKeyListener()
82 sendKeys(keyCode); in testDateTimeKeyListener()
DDateTimeKeyListenerTest.java106 int keyCode = TextMethodUtils.getUnacceptedKeyCode(DateTimeKeyListener.CHARACTERS); in testDateTimeKeyListener() local
107 if (-1 != keyCode) { in testDateTimeKeyListener()
108 sendKeys(keyCode); in testDateTimeKeyListener()
DTimeKeyListenerTest.java102 int keyCode = TextMethodUtils.getUnacceptedKeyCode(TimeKeyListener.CHARACTERS); in testTimeKeyListener() local
103 if (-1 != keyCode) { in testTimeKeyListener()
104 sendKeys(keyCode); in testTimeKeyListener()
DNumberKeyListenerTest.java145 int keyCode = TextMethodUtils.getUnacceptedKeyCode(MockNumberKeyListener.DIGITS); in testPressKey() local
146 if (-1 != keyCode) { in testPressKey()
147 sendKeys(keyCode); in testPressKey()
DQwertyKeyListenerTest.java147 private void callOnKeyDown(final QwertyKeyListener keyListener, final int keyCode) { in callOnKeyDown() argument
150 keyListener.onKeyDown(mTextView, mTextView.getEditableText(), keyCode, in callOnKeyDown()
151 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()
DArrowKeyMovementMethodTest.java1143 private boolean pressCtrlChord(int keyCode) { in pressCtrlChord() argument
1146 now, now, KeyEvent.ACTION_DOWN, keyCode, 0, KeyEvent.META_CTRL_LEFT_ON); in pressCtrlChord()
1147 return mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, keyCode, keyEvent); in pressCtrlChord()
/cts/tests/app/src/android/app/cts/
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.java208 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
210 mKeyDownCode = keyCode; in onKeyDown()
211 return super.onKeyDown(keyCode, event); in onKeyDown()
221 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
223 mKeyUpCode = keyCode; in onKeyUp()
224 return super.onKeyUp(keyCode, event); in onKeyUp()
DDialogStubActivity.java345 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
347 return super.onKeyDown(keyCode, event); in onKeyDown()
351 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
353 return super.onKeyUp(keyCode, event); in onKeyUp()
/cts/tests/tests/view/src/android/view/cts/
DMockView.java89 public boolean onKeyShortcut(int keyCode, KeyEvent event) { in onKeyShortcut() argument
91 return super.onKeyShortcut(keyCode, event); in onKeyShortcut()
171 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
173 return super.onKeyDown(keyCode, event); in onKeyDown()
181 public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) { in onKeyMultiple() argument
183 return super.onKeyMultiple(keyCode, repeatCount, event); in onKeyMultiple()
191 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
193 return super.onKeyUp(keyCode, event); in onKeyUp()
589 public boolean onKeyPreIme(int keyCode, KeyEvent event) { in onKeyPreIme() argument
591 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.java771 private void injectKeyEvent(Window window, int keyCode) { in injectKeyEvent() argument
772 KeyEvent downEvent = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in injectKeyEvent()
774 KeyEvent upEvent = new KeyEvent(KeyEvent.ACTION_UP, keyCode); in injectKeyEvent()
897 public boolean performPanelShortcut(int featureId, int keyCode, KeyEvent event, int flags) { in performPanelShortcut() argument
986 public boolean isShortcutKey(int keyCode, KeyEvent event) { in isShortcutKey() argument
/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/widget/src/android/widget/cts/
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()
DAutoCompleteTextViewTest.java758 protected void performFiltering(CharSequence text, int keyCode) { in performFiltering() argument
759 super.performFiltering(text, keyCode); in performFiltering()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DColorChangeOnKeyView.java41 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputServiceTest.java698 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
704 public boolean onKeyLongPress(int keyCode, KeyEvent event) { in onKeyLongPress() argument
710 public boolean onKeyMultiple(int keyCode, int count, KeyEvent event) { in onKeyMultiple() argument
716 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
/cts/tests/tests/app/src/android/app/cts/
DDialogTest.java517 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { in testDispatchKeyEvent()
519 if (KeyEvent.KEYCODE_0 == keyCode) { in testDispatchKeyEvent()
524 if (KeyEvent.KEYCODE_1 == keyCode) { in testDispatchKeyEvent()
DInstrumentationTest.java527 public boolean isShortcutKey(int keyCode, KeyEvent event) { in isShortcutKey() argument
564 public boolean performPanelShortcut(int featureId, int keyCode, in performPanelShortcut() argument

12