/cts/tests/tests/view/src/android/view/cts/ |
D | KeyEventTest.java | 42 mKeyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in setUp() 49 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testConstructor() 51 new KeyEvent(mDownTime, mEventTime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0, 5); in testConstructor() 53 new KeyEvent(mDownTime, mEventTime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0, 5, in testConstructor() 56 new KeyEvent(mDownTime, mEventTime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0, 5, in testConstructor() 59 new KeyEvent(mDownTime, mEventTime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0, 5, in testConstructor() 62 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testConstructor() 76 mKeyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testGetCharacters() 86 mKeyEvent = new KeyEvent(mDownTime, mEventTime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0, 5, in testIsShiftPressed() 89 mKeyEvent = new KeyEvent(mDownTime, mEventTime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0, 5, in testIsShiftPressed() [all …]
|
D | TouchDelegateTest.java | 34 private static final int ACTION_DOWN = MotionEvent.ACTION_DOWN; field in TouchDelegateTest 89 view.onTouchEvent(MotionEvent.obtain(0, 0, ACTION_DOWN, mXInside, mYInside, 0)); in testOnTouchEvent()
|
D | MotionEventTest.java | 76 MotionEvent.ACTION_DOWN, X_3F, Y_4F, META_STATE); in testObtain1() 80 assertEquals(MotionEvent.ACTION_DOWN, mMotionEvent1.getAction()); in testObtain1() 96 MotionEvent.ACTION_DOWN, X_3F, Y_4F, META_STATE); in testObtain2() 118 MotionEvent.ACTION_DOWN, X_3F, Y_4F, PRESSURE_1F, SIZE_1F, META_STATE, in testObtain3() 123 assertEquals(MotionEvent.ACTION_DOWN, mMotionEvent1.getAction()); in testObtain3() 149 mMotionEvent1.setAction(MotionEvent.ACTION_DOWN); in testAccessAction() 150 assertEquals(MotionEvent.ACTION_DOWN, mMotionEvent1.getAction()); in testAccessAction() 300 mMotionEvent2.setAction(MotionEvent.ACTION_DOWN); in testGetHistorySize()
|
D | ViewTest.java | 1889 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU); in testOnKeyShortcut() 1891 event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testOnKeyShortcut() 1914 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testDispatchKeyShortcutEvent() 1986 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_RIGHT); in testDispatchUnhandledMove() 2179 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testOnKeyDownOrUp() 2191 event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ENTER); in testOnKeyDownOrUp() 2207 event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ENTER); in testOnKeyDownOrUp() 2222 event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER); in testOnKeyDownOrUp() 2248 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testDispatchKeyEvent() 2260 event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testDispatchKeyEvent() [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | ArrowKeyMovementMethodTest.java | 183 KeyEvent shiftAltEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_UP, in testOnKeyDownWithKeyCodeUp() 199 KeyEvent shiftEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_UP, 0, in testOnKeyDownWithKeyCodeUp() 223 KeyEvent altEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_UP, 0, in testOnKeyDownWithKeyCodeUp() 236 KeyEvent noMetaEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_UP, in testOnKeyDownWithKeyCodeUp() 267 KeyEvent shiftAltEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testOnKeyDownWithKeyCodeDown() 283 KeyEvent shiftEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_DOWN, in testOnKeyDownWithKeyCodeDown() 307 KeyEvent altEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_DOWN, 0, in testOnKeyDownWithKeyCodeDown() 320 KeyEvent noMetaEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_DOWN, in testOnKeyDownWithKeyCodeDown() 352 KeyEvent shiftAltEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testOnKeyDownWithKeyCodeLeft() 376 KeyEvent shiftEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_LEFT, in testOnKeyDownWithKeyCodeLeft() [all …]
|
D | ScrollingMovementMethodTest.java | 113 MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 0, 0, 0)); in testOnTouchEventHorizontalMotion() 140 MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 0, 0, 0)); in testOnTouchEventHorizontalMotion() 216 MotionEvent.ACTION_DOWN, 0, 0, 0)); 243 MotionEvent.ACTION_DOWN, 0, 0, 0)); 320 MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 0, 0, 0)); 327 MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 0, 0, 0)); 333 MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 0, 0, 0)); 390 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_DOWN)); 398 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_UP)); 429 KeyEvent.KEYCODE_DPAD_RIGHT, new KeyEvent(KeyEvent.ACTION_DOWN, [all …]
|
D | LinkMovementMethodTest.java | 146 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ENTER))); in testOnKeyDown() 156 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER))); in testOnKeyDown() 166 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ENTER))); in testOnKeyDown() 175 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER))); in testOnKeyDown() 185 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER))); in testOnKeyDown() 193 KeyEvent event = new KeyEvent(now, now, KeyEvent.ACTION_DOWN, in testOnKeyDown() 205 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER)); in testOnKeyDown() 213 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER)); in testOnKeyDown() 234 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0))); in testOnKeyUp() 479 return performMotionOnLine(line, MotionEvent.ACTION_DOWN); in pressOnLine()
|
D | TextMethodUtils.java | 48 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in getUnacceptedKeyCode()
|
D | MetaKeyKeyListenerTest.java | 44 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0)); in testPressKey() 50 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_2)); in testPressKey() 56 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_3)); in testPressKey() 69 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0)); in testReleaseKey() 75 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_2)); in testReleaseKey() 81 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_3)); in testReleaseKey() 330 KeyEvent fullEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_SHIFT_LEFT, in testHandleKeyDown()
|
D | NumberKeyListenerTest.java | 89 KeyEvent event1 = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testLookup() 94 KeyEvent event2 = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_A); in testLookup()
|
D | DialerKeyListenerTest.java | 39 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, event); in testLookup()
|
D | BaseKeyListenerTest.java | 543 KeyEvent.ACTION_DOWN, in getKey() 572 mInstrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ALT_LEFT)); in sendAltDelete() 573 mInstrumentation.sendKeySync(new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in sendAltDelete()
|
D | TouchTest.java | 138 MotionEvent.ACTION_DOWN, dragAmount, 0, 0); in testOnTouchEvent()
|
D | QwertyKeyListenerTest.java | 151 new KeyEvent(KeyEvent.ACTION_DOWN, keyCode)); in callOnKeyDown()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/widgets/ |
D | ProjectionWidgetActivity.java | 45 mService.onKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, mKeyCode)); in onClick()
|
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
D | BaseInputConnectionTest.java | 233 mConnection.sendKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_7)); in testSendKeyEvent() 234 mConnection.sendKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_7)); in testSendKeyEvent()
|
D | InputConnectionWrapperTest.java | 77 wrapper.sendKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0)); in testInputConnectionWrapper()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SeekBarTest.java | 69 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, in testSetOnSeekBarChangeListener()
|
D | AbsSeekBarTest.java | 177 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_RIGHT); in testAccessKeyProgressIncrement() 181 keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_LEFT); in testAccessKeyProgressIncrement()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvInputServiceTest.java | 276 mTvView.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_K)); in verifyCommandDispatchKeyDown() 316 MotionEvent event = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 1.0f, 1.0f, in verifyCommandDispatchTouchEvent() 333 MotionEvent event = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 1.0f, 1.0f, in verifyCommandDispatchTrackballEvent() 350 MotionEvent event = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 1.0f, 1.0f, in verifyCommandDispatchGenericMotionEvent()
|
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/ |
D | Test5DetailFragment.java | 84 if (event.getAction() == MotionEvent.ACTION_DOWN) { in onCreateView()
|
D | TestGenericDetailFragment.java | 66 case MotionEvent.ACTION_DOWN: in onCreateView()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | InstrumentationTest.java | 174 MotionEvent orig = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, in testSendTrackballEventSync() 322 MotionEvent orig = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, in testSendPointerSync() 454 KeyEvent key = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testSendKeySync()
|
D | DialogTest.java | 379 MotionEvent touchMotionEvent = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, in testTouchEvent() 402 touchMotionEvent = MotionEvent.obtain(now, now + 1, MotionEvent.ACTION_DOWN, in testTouchEvent() 425 MotionEvent.ACTION_DOWN, 0.0f, 0.0f, 0); in testTrackballEvent() 518 if (KeyEvent.ACTION_DOWN == event.getAction()) { in testDispatchKeyEvent()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | EmojiTest.java | 134 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL)); in testEmojiEditable()
|