Home
last modified time | relevance | path

Searched refs:ACTION_UP (Results 1 – 25 of 331) sorted by relevance

12345678910>>...14

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DSingleTapClassifierTest.java71 addMotionEvent(0, 1, MotionEvent.ACTION_UP, TOUCH_SLOP, 1); in testSimpleTap_XSlop()
78 addMotionEvent(0, 1, MotionEvent.ACTION_UP, -TOUCH_SLOP + 2, 1); in testSimpleTap_XSlop()
87 addMotionEvent(0, 1, MotionEvent.ACTION_UP, 1, TOUCH_SLOP); in testSimpleTap_YSlop()
94 addMotionEvent(0, 1, MotionEvent.ACTION_UP, 1, -TOUCH_SLOP + 2); in testSimpleTap_YSlop()
103 addMotionEvent(0, 1, MotionEvent.ACTION_UP, TOUCH_SLOP + 1, 1); in testFalseTap_XSlop()
110 addMotionEvent(0, 1, MotionEvent.ACTION_UP, -TOUCH_SLOP - 1, 1); in testFalseTap_XSlop()
119 addMotionEvent(0, 1, MotionEvent.ACTION_UP, 1, TOUCH_SLOP + 1); in testFalseTap_YSlop()
126 addMotionEvent(0, 1, MotionEvent.ACTION_UP, 1, -TOUCH_SLOP - 1); in testFalseTap_YSlop()
135 addMotionEvent(0, 2, MotionEvent.ACTION_UP, 1, 1); in testLargeMovementFalses()
143 addMotionEvent(0, 1, MotionEvent.ACTION_UP, 1, 1); in testDirectlySuppliedMotionEvents()
[all …]
DDoubleTapClassifierTest.java84 addMotionEvent(0, 1, MotionEvent.ACTION_UP, TOUCH_SLOP, 1); in testSingleTap()
95 addMotionEvent(0, 1, MotionEvent.ACTION_UP, 1, 1); in testDoubleTap()
100 addMotionEvent(2, 3, MotionEvent.ACTION_UP, TOUCH_SLOP, TOUCH_SLOP); in testDoubleTap()
112 addMotionEvent(0, 1, MotionEvent.ACTION_UP, 1, 1); in testBadFirstTap()
117 addMotionEvent(2, 3, MotionEvent.ACTION_UP, 1, 1); in testBadFirstTap()
129 addMotionEvent(0, 1, MotionEvent.ACTION_UP, 1, 1); in testBadSecondTap()
134 addMotionEvent(2, 3, MotionEvent.ACTION_UP, 1, 1); in testBadSecondTap()
145 addMotionEvent(0, 1, MotionEvent.ACTION_UP, 1, 1); in testBadTouchSlop()
150 addMotionEvent(2, 3, MotionEvent.ACTION_UP, TOUCH_SLOP, TOUCH_SLOP + 1); in testBadTouchSlop()
161 addMotionEvent(0, 1, MotionEvent.ACTION_UP, 1, 1); in testBadTouchSlow()
[all …]
DTimeLimitedInputEventBufferTest.java64 MotionEvent eventD = MotionEvent.obtain(0, 3, MotionEvent.ACTION_UP, 0, 0, 0); in testMotionEventAllEventsRetained()
81 0, MAX_AGE_MS + 2, MotionEvent.ACTION_UP, 0, 0, 0); in testMotionEventOlderEventsRemoved()
99 KeyEvent eventB = KeyEvent.obtain(0, 3, KeyEvent.ACTION_UP, KeyEvent.KEYCODE_A, 0, 0, 0, 0, in testKeyEventAllEventsRetained()
112 KeyEvent eventB = KeyEvent.obtain(0, 1, KeyEvent.ACTION_UP, KeyEvent.KEYCODE_A, 0, 0, 0, 0, in testKeyEventOlderEventsRemoved()
116 KeyEvent eventD = KeyEvent.obtain(0, MAX_AGE_MS + 2, KeyEvent.ACTION_UP, KeyEvent.KEYCODE_A, in testKeyEventOlderEventsRemoved()
DFalsingCollectorImplTest.java244 KeyEvent enterUp = KeyEvent.obtain(0, 0, MotionEvent.ACTION_UP, KeyEvent.KEYCODE_ENTER, 0, in testPassThroughEnterKeyEvent()
260 KeyEvent aKeyUp = KeyEvent.obtain(0, 0, MotionEvent.ACTION_UP, KeyEvent.KEYCODE_A, 0, in testAvoidAKeyEvent()
273 MotionEvent up = MotionEvent.obtain(0, 0, MotionEvent.ACTION_UP, 0, 0, 0); in testPassThroughGesture()
306 MotionEvent up = MotionEvent.obtain(0, 0, MotionEvent.ACTION_UP, 0, 0, 0); in testIgnoreActionOutside()
321 MotionEvent up = MotionEvent.obtain(0, 0, MotionEvent.ACTION_UP, 0, 0, 0); in testAvoidUnlocked_sceneContainerDisabled()
338 MotionEvent up = MotionEvent.obtain(0, 0, MotionEvent.ACTION_UP, 0, 0, 0); in testAvoidUnlocked_sceneContainerEnabled()
357 MotionEvent up = MotionEvent.obtain(0, 0, MotionEvent.ACTION_UP, 0, 0, 0); in testGestureWhenDozing()
373 MotionEvent up = MotionEvent.obtain(0, 0, MotionEvent.ACTION_UP, 0, 0, 0); in testGestureWhenPulsing()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyevent/domain/interactor/
DSysUIKeyEventHandlerTest.kt63 val backKeyEventActionUp = KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK) in dispatchBackKey_notHandledByKeyguardKeyEventInteractor_handledByBackActionInteractor()
86 KeyEvent.ACTION_UP, in dispatchKeyEvent_isNotHandledByKeyguardKeyEventInteractor()
97 KeyEvent.ACTION_UP, in dispatchKeyEvent_handledByKeyguardKeyEventInteractor()
108 KeyEvent.ACTION_UP, in interceptMediaKey_isNotHandledByKeyguardKeyEventInteractor()
119 KeyEvent.ACTION_UP, in interceptMediaKey_handledByKeyguardKeyEventInteractor()
130 KeyEvent.ACTION_UP, in dispatchKeyEventPreIme_isNotHandledByKeyguardKeyEventInteractor()
141 KeyEvent.ACTION_UP, in dispatchKeyEventPreIme_handledByKeyguardKeyEventInteractor()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNotificationTapHelperTest.java86 MotionEvent.ACTION_UP, in testDoubleTap_success()
98 MotionEvent.ACTION_UP, in testDoubleTap_success()
130 MotionEvent.ACTION_UP, in testSingleTap_timeout()
157 MotionEvent.ACTION_UP, in testSingleTap_falsed()
185 MotionEvent.ACTION_UP, in testDoubleTap_falsed()
197 MotionEvent.ACTION_UP, in testDoubleTap_falsed()
231 MotionEvent.ACTION_UP, in testSlideBack()
265 MotionEvent.ACTION_UP, in testMoreThanTwoTaps()
277 MotionEvent.ACTION_UP, in testMoreThanTwoTaps()
289 MotionEvent.ACTION_UP, in testMoreThanTwoTaps()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DLeftRightArrowPressedListenerTest.kt57 underTest.sendKey(KeyEvent.ACTION_UP, KEYCODE_DPAD_LEFT) in shouldTriggerCallback_whenArrowUpReceived_afterArrowDownReceived()
64 underTest.sendKey(KeyEvent.ACTION_UP, KEYCODE_DPAD_LEFT) in shouldNotTriggerCallback_whenKeyUpReceived_ifKeyDownNotReceived()
71 underTest.sendKeyWithRepeat(KeyEvent.ACTION_UP, KEYCODE_DPAD_LEFT, repeat = 2) in shouldNotTriggerCallback_whenKeyUpReceived_ifKeyDownWasRepeated()
72 underTest.sendKey(KeyEvent.ACTION_UP, KEYCODE_DPAD_LEFT) in shouldNotTriggerCallback_whenKeyUpReceived_ifKeyDownWasRepeated()
83 underTest.sendKey(KeyEvent.ACTION_UP, KEYCODE_DPAD_LEFT) in shouldNotTriggerCallback_whenKeyUpReceived_ifKeyDownReceivedBeforeLosingFocus()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/buttons/
DKeyButtonViewTest.java20 import static android.view.KeyEvent.ACTION_UP;
91 checkmetrics(KEYCODE_BACK, ACTION_UP, 0, NAVBAR_BACK_BUTTON_TAP); in testLogBackPress()
96 checkmetrics(KEYCODE_APP_SWITCH, ACTION_UP, 0, NAVBAR_OVERVIEW_BUTTON_TAP); in testLogOverviewPress()
101 checkmetrics(KEYCODE_HOME, ACTION_UP, 0, NAVBAR_HOME_BUTTON_TAP); in testLogHomePress()
128 checkmetrics(KEYCODE_BACK, ACTION_UP, 0, null); in testNoLogTapAfterLong()
133 checkmetrics(KEYCODE_HOME, ACTION_UP, FLAG_CANCELED, null); in testNoLogCanceled()
138 checkmetrics(KEYCODE_0, ACTION_UP, 0, null); in testNoLogArbitraryKeys()
/frameworks/base/core/tests/coretests/src/android/util/
DKeyUtils.java43 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_MENU)); in tapMenuKey()
62 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, shortcutKeyCode)); in chordMenuKey()
63 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_MENU)); in chordMenuKey()
80 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DPAD_CENTER)); in longClick()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
DPipTouchStateTest.java22 import static android.view.MotionEvent.ACTION_UP;
70 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting()
82 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, in testDoubleTapTimeout_timeoutCallbackCalled()
100 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, currentTime + 20, 500, 500)); in testDoubleTapDrag_doubleTapCanceled()
112 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, currentTime + 10, 0, 0)); in testDoubleTap_doubleTapRegistered()
115 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, in testDoubleTap_doubleTapRegistered()
/frameworks/base/apct-tests/perftests/core/src/android/view/
DHandwritingInitiatorPerfTest.java21 import static android.view.MotionEvent.ACTION_UP;
78 createMotionEvent(ACTION_UP, TOOL_TYPE_STYLUS, 11, 11, 1); in onTouchEvent_actionDown_toolTypeStylus()
94 createMotionEvent(ACTION_UP, TOOL_TYPE_STYLUS, 11, 11, 1); in onTouchEvent_actionUp_toolTypeStylus()
117 createMotionEvent(ACTION_UP, TOOL_TYPE_STYLUS, x, y, 1); in onTouchEvent_actionMove_toolTypeStylus()
138 createMotionEvent(ACTION_UP, TOOL_TYPE_FINGER, 11, 11, 1); in onTouchEvent_actionDown_toolTypeFinger()
152 createMotionEvent(ACTION_UP, TOOL_TYPE_FINGER, 11, 11, 1); in onTouchEvent_actionUp_toolTypeFinger()
175 createMotionEvent(ACTION_UP, TOOL_TYPE_FINGER, x, y, 1); in onTouchEvent_actionMove_toolTypeFinger()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
DBubblesNavBarMotionEventHandlerTest.java22 import static android.view.MotionEvent.ACTION_UP;
79 mMotionEventHandler.onMotionEvent(newEvent(ACTION_UP, 0, 390)); in testMotionEvent_swipeUpInGestureZone_handled()
95 mMotionEventHandler.onMotionEvent(newEvent(ACTION_UP, 0, 100)); in testMotionEvent_swipeUpOutsideGestureZone_ignored()
105 mMotionEventHandler.onMotionEvent(newEvent(ACTION_UP, 100, 990)); in testMotionEvent_horizontalMoveMoreThanTouchSlop_handled()
118 mMotionEventHandler.onMotionEvent(newEvent(ACTION_UP, 0, 989)); in testMotionEvent_moveLessThanTouchSlop_ignored()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDragDetectorTest.kt80 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_UP))) in testNoMove_passesDownAndUp()
82 return@argThat it.action == MotionEvent.ACTION_UP && it.x == X && it.y == Y && in testNoMove_passesDownAndUp()
106 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_UP, newX, Y))) in testMoveInSlop_touch_passesDownAndUp()
108 return@argThat it.action == MotionEvent.ACTION_UP && it.x == newX && it.y == Y && in testMoveInSlop_touch_passesDownAndUp()
135 createMotionEvent(MotionEvent.ACTION_UP, newX, Y, isTouch = false))) in testMoveInSlop_mouse_passesDownMoveAndUp()
137 return@argThat it.action == MotionEvent.ACTION_UP && it.x == newX && it.y == Y && in testMoveInSlop_mouse_passesDownMoveAndUp()
161 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_UP, newX, Y))) in testMoveBeyondSlop_passesDownMoveAndUp()
163 return@argThat it.action == MotionEvent.ACTION_UP && it.x == newX && it.y == Y && in testMoveBeyondSlop_passesDownMoveAndUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityInputFilterInputTest.kt39 import android.view.MotionEvent.ACTION_UP
183 sendTouchEvent(ACTION_UP, downTime, SystemClock.uptimeMillis()) in testSingleDeviceTouchEventsWithoutA11yFeatures()
184 verifier.assertReceivedMotion(allOf(fromTouchScreen, withMotionAction(ACTION_UP))) in testSingleDeviceTouchEventsWithoutA11yFeatures()
207 sendTouchEvent(ACTION_UP, downTime, SystemClock.uptimeMillis()) in testSingleDeviceTouchEventsWithAllA11yFeatures()
309 sendTouchEvent(ACTION_UP, downTime, SystemClock.uptimeMillis()) in testSingleDeviceTouchEventsDisableFeaturesMidGesture()
318 verifier.assertReceivedMotion(allOf(fromTouchScreen, withMotionAction(ACTION_UP))) in testSingleDeviceTouchEventsDisableFeaturesMidGesture()
357 sendTouchEvent(ACTION_UP, touchDownTime, SystemClock.uptimeMillis()) in testMultiDeviceEventsWithoutA11yFeatures()
362 sendStylusEvent(ACTION_UP, stylusDownTime, SystemClock.uptimeMillis()) in testMultiDeviceEventsWithoutA11yFeatures()
363 verifier.assertReceivedMotion(allOf(fromStylus, withMotionAction(ACTION_UP))) in testMultiDeviceEventsWithoutA11yFeatures()
402 sendTouchEvent(ACTION_UP, touchDownTime, SystemClock.uptimeMillis()) in testMultiDeviceEventsWithAllA11yFeatures()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/magnetictarget/
DMagnetizedObjectTest.kt168 x = 400, y = 800, action = MotionEvent.ACTION_UP))) in <lambda>()
185 x = 0, y = 0, action = MotionEvent.ACTION_UP))) in <lambda>()
227 getMotionEvent(x = 100, y = 100, action = MotionEvent.ACTION_UP)) in <lambda>()
271 x = targetCenterX, y = targetCenterY, action = MotionEvent.ACTION_UP)) in <lambda>()
294 action = MotionEvent.ACTION_UP)) in <lambda>()
317 action = MotionEvent.ACTION_UP)) in <lambda>()
338 action = MotionEvent.ACTION_UP)) in <lambda>()
401 getMotionEvent(x = 100, y = 650, action = MotionEvent.ACTION_UP)) in <lambda>()
410 getMotionEvent(x = 500, y = 650, action = MotionEvent.ACTION_UP)) in <lambda>()
432 action = MotionEvent.ACTION_UP in <lambda>()
[all …]
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DKeyButtonView.java131 sendEvent(KeyEvent.ACTION_UP, mTracking ? KeyEvent.FLAG_TRACKING : 0); in performAccessibilityActionInternal()
138 sendEvent(KeyEvent.ACTION_UP, mTracking ? KeyEvent.FLAG_TRACKING : 0); in performAccessibilityActionInternal()
191 sendEvent(KeyEvent.ACTION_UP, KeyEvent.FLAG_CANCELED); in onTouchEvent()
194 case MotionEvent.ACTION_UP: in onTouchEvent()
211 sendEvent(KeyEvent.ACTION_UP, mTracking ? KeyEvent.FLAG_TRACKING : 0); in onTouchEvent()
215 sendEvent(KeyEvent.ACTION_UP, KeyEvent.FLAG_CANCELED); in onTouchEvent()
282 case KeyEvent.ACTION_UP: in sendEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardKeyEventInteractorTest.kt60 private val backKeyEvent = KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK)
219 val keyEvent = KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_VOLUME_UP) in interceptMediaKey_keyguard_SBKVMdoesNotHandle_doesNotHandleMediaKey()
229 val keyEvent = KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_VOLUME_UP) in interceptMediaKey_keyguard_handleMediaKey()
243 KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_VOLUME_UP) in interceptMediaKey_shade_doesNotHandleMediaKey()
257 val actionUpMenuKeyEvent = KeyEvent(KeyEvent.ACTION_UP, keycode) in verifyActionUpCollapsesTheShade()
269 val actionUpMenuKeyEvent = KeyEvent(KeyEvent.ACTION_UP, keycode) in verifyActionUpShowsPrimaryBouncer()
282 val actionUpMenuKeyEvent = KeyEvent(KeyEvent.ACTION_UP, keycode) in verifyActionsDoNothing()
/frameworks/base/core/java/android/hardware/input/
DVirtualStylusMotionEvent.java73 public static final int ACTION_UP = MotionEvent.ACTION_UP; field in VirtualStylusMotionEvent
80 ACTION_UP,
278 if (action != ACTION_DOWN && action != ACTION_UP && action != ACTION_MOVE) { in setAction()
DVirtualKeyEvent.java49 public static final int ACTION_UP = KeyEvent.ACTION_UP; field in VirtualKeyEvent
55 ACTION_UP,
277 if (action != ACTION_DOWN && action != ACTION_UP) { in setAction()
DVirtualTouchEvent.java72 public static final int ACTION_UP = MotionEvent.ACTION_UP; field in VirtualTouchEvent
81 ACTION_UP,
286 if (action != ACTION_DOWN && action != ACTION_UP && action != ACTION_MOVE in setAction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DKeyButtonView.java253 sendEvent(KeyEvent.ACTION_UP, 0); in performAccessibilityActionInternal()
259 sendEvent(KeyEvent.ACTION_UP, 0); in performAccessibilityActionInternal()
314 sendEvent(KeyEvent.ACTION_UP, KeyEvent.FLAG_CANCELED); in onTouchEvent()
318 case MotionEvent.ACTION_UP: in onTouchEvent()
335 sendEvent(KeyEvent.ACTION_UP, 0); in onTouchEvent()
338 sendEvent(KeyEvent.ACTION_UP, KeyEvent.FLAG_CANCELED); in onTouchEvent()
383 if (action == MotionEvent.ACTION_UP && mLongClicked) { in logSomePresses()
456 sendEvent(KeyEvent.ACTION_UP, KeyEvent.FLAG_CANCELED); in abortCurrentGesture()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DActivatableNotificationViewController.java73 if (ev.getAction() == MotionEvent.ACTION_UP) { in onTouch()
81 if (ev.getAction() == MotionEvent.ACTION_UP) { in onTouch()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/
DNoteTaskInitializerTest.kt24 import android.view.KeyEvent.ACTION_UP
233 createKeyEvent(ACTION_UP, KEYCODE_STYLUS_BUTTON_TAIL, downTime = 0, eventTime = 50) in tailButtonGestureDetection_singlePress_shouldShowNoteTaskOnUp()
249 createKeyEvent(ACTION_UP, KEYCODE_STYLUS_BUTTON_TAIL, downTime = 0, eventTime = 50) in tailButtonGestureDetection_doublePress_shouldNotShowNoteTaskTwice()
255 createKeyEvent(ACTION_UP, KEYCODE_STYLUS_BUTTON_TAIL, downTime = 99, eventTime = 150) in tailButtonGestureDetection_doublePress_shouldNotShowNoteTaskTwice()
271 createKeyEvent(ACTION_UP, KEYCODE_STYLUS_BUTTON_TAIL, downTime = 0, eventTime = 1000) in tailButtonGestureDetection_longPress_shouldNotShowNoteTask()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DTouchExplorerTest.java27 import static android.view.MotionEvent.ACTION_UP;
248 assertCapturedEvents(ACTION_DOWN, ACTION_MOVE, ACTION_MOVE, ACTION_MOVE, ACTION_UP); in testTwoFingerDragWithExtraMoveEvents()
318 assertCapturedEvents(ACTION_DOWN, ACTION_POINTER_DOWN, ACTION_POINTER_UP, ACTION_UP); in testTwoFingersMove_shouldDelegatingAndInjectActionDownPointerDown()
340 assertCapturedEvents(ACTION_DOWN, ACTION_POINTER_DOWN, ACTION_POINTER_UP, ACTION_UP); in clearEventsWhenInTwoFingerMove_clearsStateAndSendsUp()
350 assertCapturedEvents(ACTION_DOWN, ACTION_MOVE, ACTION_UP); in testTwoFingersDrag_shouldDraggingAndActionDown()
364 /* leave dragging state */ ACTION_UP, in testTwoFingersNotDrag_shouldDelegatingAndActionUpDownPointerDown()
368 ACTION_UP); in testTwoFingersNotDrag_shouldDelegatingAndActionUpDownPointerDown()
384 ACTION_UP); in testThreeFingersMove_shouldDelegatingAnd3ActionPointerDown()
624 event.setAction(ACTION_UP); in upEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/gesture/
DSwipeUpGestureHandler.kt25 import android.view.MotionEvent.ACTION_UP
87 ACTION_CANCEL, ACTION_UP -> { in onInputEvent()

12345678910>>...14