Home
last modified time | relevance | path

Searched refs:ACTION_DOWN (Results 1 – 25 of 37) sorted by relevance

12

/cts/tests/tests/view/src/android/view/cts/
DKeyEventTest.java42 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 …]
DTouchDelegateTest.java34 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()
DMotionEventTest.java76 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()
DViewTest.java1889 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/
DArrowKeyMovementMethodTest.java183 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 …]
DScrollingMovementMethodTest.java113 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 …]
DLinkMovementMethodTest.java146 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()
DTextMethodUtils.java48 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in getUnacceptedKeyCode()
DMetaKeyKeyListenerTest.java44 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()
DNumberKeyListenerTest.java89 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()
DDialerKeyListenerTest.java39 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, event); in testLookup()
DBaseKeyListenerTest.java543 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()
DTouchTest.java138 MotionEvent.ACTION_DOWN, dragAmount, 0, 0); in testOnTouchEvent()
DQwertyKeyListenerTest.java151 new KeyEvent(KeyEvent.ACTION_DOWN, keyCode)); in callOnKeyDown()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/widgets/
DProjectionWidgetActivity.java45 mService.onKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, mKeyCode)); in onClick()
/cts/tests/tests/view/src/android/view/inputmethod/cts/
DBaseInputConnectionTest.java233 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()
DInputConnectionWrapperTest.java77 wrapper.sendKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0)); in testInputConnectionWrapper()
/cts/tests/tests/widget/src/android/widget/cts/
DSeekBarTest.java69 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, in testSetOnSeekBarChangeListener()
DAbsSeekBarTest.java177 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/
DTvInputServiceTest.java276 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/
DTest5DetailFragment.java84 if (event.getAction() == MotionEvent.ACTION_DOWN) { in onCreateView()
DTestGenericDetailFragment.java66 case MotionEvent.ACTION_DOWN: in onCreateView()
/cts/tests/tests/app/src/android/app/cts/
DInstrumentationTest.java174 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()
DDialogTest.java379 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/
DEmojiTest.java134 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL)); in testEmojiEditable()

12