Home
last modified time | relevance | path

Searched refs:DOWN (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/native/services/inputflinger/tests/
DPreferStylusOverTouch_test.cpp27 constexpr int DOWN = AMOTION_EVENT_ACTION_DOWN; variable
39 if (action == DOWN || action == UP) { in generateMotionArgs()
112 args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/0, DOWN, {{1, 2}}, TOUCHSCREEN); in TEST_F()
125 args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/0, DOWN, {{1, 2}}, STYLUS); in TEST_F()
142 args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/0, DOWN, {{1, 2}}, TOUCHSCREEN); in TEST_F()
148 args = generateMotionArgs(/*downTime=*/3, /*eventTime=*/3, DOWN, {{10, 30}}, STYLUS); in TEST_F()
169 args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/0, DOWN, {{1, 2}}, TOUCHSCREEN); in TEST_F()
179 args = generateMotionArgs(/*downTime=*/3, /*eventTime=*/3, DOWN, {{10, 30}}, STYLUS); in TEST_F()
192 args = generateMotionArgs(stylusDownTime, /*eventTime=*/0, DOWN, {{10, 30}}, STYLUS); in TEST_F()
195 args = generateMotionArgs(touchDownTime, /*eventTime=*/1, DOWN, {{1, 2}}, TOUCHSCREEN); in TEST_F()
[all …]
DUnwantedInteractionBlocker_test.cpp51 constexpr int DOWN = AMOTION_EVENT_ACTION_DOWN; variable
211 assertArgs(pointer1, DOWN, {{1, {4, 5, 6}}}); in TEST()
358 assertArgs(result[0], DOWN, {{2, {7, 8, 9}}}); in TEST()
367 NotifyMotionArgs args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/0, DOWN, {{1, 2, 3}}); in TEST()
452 generateMotionArgs(/*downTime=*/0, /*eventTime=*/0, DOWN, {{1, 2, 3}}); in TEST_F()
491 mBlocker->notifyMotion(generateMotionArgs(/*downTime=*/0, /*eventTime=*/1, DOWN, {{1, 2, 3}})); in TEST_F()
495 mBlocker->notifyMotion(generateMotionArgs(/*downTime=*/0, /*eventTime=*/4, DOWN, {{7, 8, 9}})); in TEST_F()
500 NotifyMotionArgs args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/1, DOWN, {{1, 2, 3}}); in TEST_F()
512 mBlocker->notifyMotion(generateMotionArgs(/*downTime=*/0, /*eventTime=*/1, DOWN, {{1, 2, 3}})); in TEST_F()
528 mBlocker->notifyMotion(generateMotionArgs(/*downTime=*/0, /*eventTime=*/0, DOWN, {{1, 2, 3}})); in TEST_F()
[all …]
DTouchpadInputMapper_test.cpp139 setScanCodeState(KeyState::DOWN, {BTN_TOOL_FINGER}); in TEST_F()
152 setScanCodeState(KeyState::DOWN, {BTN_LEFT}); in TEST_F()
/frameworks/native/services/inputflinger/rust/
Dbounce_keys_filter.rs72 KeyEventAction::DOWN => match self.key_event_map.get(&event.deviceId) { in notify_key()
145 action: KeyEventAction::DOWN,
161 let event = KeyEvent { action: KeyEventAction::DOWN, ..BASE_KEY_EVENT }; in test_is_notify_key_for_external_keyboard()
170 let event = KeyEvent { action: KeyEventAction::DOWN, ..BASE_KEY_EVENT }; in test_is_notify_key_for_external_keyboard()
178 let event = KeyEvent { eventTime: 200, action: KeyEventAction::DOWN, ..BASE_KEY_EVENT }; in test_is_notify_key_for_external_keyboard()
192 let event = KeyEvent { action: KeyEventAction::DOWN, ..BASE_KEY_EVENT }; in test_is_notify_key_doesnt_block_for_internal_keyboard()
200 let event = KeyEvent { action: KeyEventAction::DOWN, ..BASE_KEY_EVENT }; in test_is_notify_key_doesnt_block_for_internal_keyboard()
215 KeyEvent { action: KeyEventAction::DOWN, source: Source::STYLUS, ..BASE_KEY_EVENT }; in test_is_notify_key_doesnt_block_for_external_stylus()
225 KeyEvent { action: KeyEventAction::DOWN, source: Source::STYLUS, ..BASE_KEY_EVENT }; in test_is_notify_key_doesnt_block_for_external_stylus()
242 let event = KeyEvent { deviceId: 1, action: KeyEventAction::DOWN, ..BASE_KEY_EVENT }; in test_is_notify_key_for_multiple_external_keyboards()
[all …]
Dslow_keys_filter.rs123 KeyEventAction::DOWN => { in notify_key()
233 action: KeyEventAction::DOWN,
254 let event = KeyEvent { action: KeyEventAction::DOWN, ..BASE_KEY_EVENT }; in test_is_notify_key_for_internal_keyboard_not_blocked()
272 KeyEvent { action: KeyEventAction::DOWN, source: Source::STYLUS, ..BASE_KEY_EVENT }; in test_is_notify_key_for_external_stylus_not_blocked()
290 action: KeyEventAction::DOWN, in test_notify_key_for_external_keyboard_when_key_pressed_for_threshold_time()
301 action: KeyEventAction::DOWN, in test_notify_key_for_external_keyboard_when_key_pressed_for_threshold_time()
341 action: KeyEventAction::DOWN, in test_notify_key_for_external_keyboard_when_key_not_pressed_for_threshold_time()
374 action: KeyEventAction::DOWN, in test_notify_key_for_external_keyboard_when_device_removed_before_threshold_time()
/frameworks/native/libs/input/tests/
DMotionPredictor_test.cpp36 constexpr int32_t DOWN = AMOTION_EVENT_ACTION_DOWN; variable
184 predictor.record(getMotionEvent(DOWN, 0, 1, 30ms)); in TEST()
193 predictor.record(getMotionEvent(DOWN, 0, 1, 30ms)); in TEST()
203 predictor.record(getMotionEvent(DOWN, 3.75, 3, 20ms)); in TEST()
217 ASSERT_TRUE(predictor.record(getMotionEvent(DOWN, 1, 3, 0ms, /*deviceId=*/0)).ok()); in TEST()
222 ASSERT_FALSE(predictor.record(getMotionEvent(DOWN, 100, 300, 40ms, /*deviceId=*/1)).ok()); in TEST()
230 ASSERT_TRUE(predictor.record(getMotionEvent(DOWN, 1, 3, 0ms, /*deviceId=*/0)).ok()); in TEST()
237 ASSERT_TRUE(predictor.record(getMotionEvent(DOWN, 100, 300, 40ms, /*deviceId=*/1)).ok()); in TEST()
244 predictor.record(getMotionEvent(DOWN, 0, 1, 30ms)); in TEST()
260 predictor.record(getMotionEvent(DOWN, 2, 7, 20ms)); in TEST_WITH_FLAGS()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DGestureManifold.java65 import static com.android.server.accessibility.gestures.Swipe.DOWN;
131 mGestures.add(new Swipe(context, DOWN, GESTURE_SWIPE_DOWN, this)); in GestureManifold()
135 mGestures.add(new Swipe(context, LEFT, DOWN, GESTURE_SWIPE_LEFT_AND_DOWN, this)); in GestureManifold()
137 mGestures.add(new Swipe(context, RIGHT, DOWN, GESTURE_SWIPE_RIGHT_AND_DOWN, this)); in GestureManifold()
139 mGestures.add(new Swipe(context, DOWN, UP, GESTURE_SWIPE_DOWN_AND_UP, this)); in GestureManifold()
140 mGestures.add(new Swipe(context, DOWN, LEFT, GESTURE_SWIPE_DOWN_AND_LEFT, this)); in GestureManifold()
141 mGestures.add(new Swipe(context, DOWN, RIGHT, GESTURE_SWIPE_DOWN_AND_RIGHT, this)); in GestureManifold()
142 mGestures.add(new Swipe(context, UP, DOWN, GESTURE_SWIPE_UP_AND_DOWN, this)); in GestureManifold()
189 new MultiFingerSwipe(context, 2, DOWN, GESTURE_2_FINGER_SWIPE_DOWN, this)); in GestureManifold()
198 new MultiFingerSwipe(context, 3, DOWN, GESTURE_3_FINGER_SWIPE_DOWN, this)); in GestureManifold()
[all …]
DSwipe.java44 public static final int DOWN = 3; field in Swipe
373 return (dY < 0) ? UP : DOWN; in toDirection()
385 case DOWN: in directionToString()
DMultiFingerSwipe.java46 public static final int DOWN = 3; field in MultiFingerSwipe
418 return (dY < 0) ? UP : DOWN; in toDirection()
430 case DOWN: in directionToString()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/
DShadeTouchHandlerTest.java88 final boolean captured = swipe(Direction.DOWN); in testSwipeDown_captured()
106 swipe(Direction.DOWN); in testSwipeDown_communalEnabled_sentToCentralSurfaces()
116 swipe(Direction.DOWN); in testSwipeDown_communalDisabled_sentToShadeView()
128 swipe(Direction.DOWN); in testSwipeDown_dreaming_sentToShadeView()
185 DOWN, UP, enumConstant
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/
DMovePipDownOnShelfHeightChange.kt67 @Presubmit @Test fun pipWindowMovesDown() = pipWindowMoves(Direction.DOWN)
70 @Presubmit @Test fun pipLayerMovesDown() = pipLayerMoves(Direction.DOWN)
/frameworks/base/core/java/android/text/method/
DLinkMovementMethod.java39 private static final int DOWN = 3; field in LinkMovementMethod
76 if (action(DOWN, widget, buffer)) { in down()
94 if (action(DOWN, widget, buffer)) { in right()
182 case DOWN: in action()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
DBubblePopupDrawable.kt38 DOWN in <lambda>()
102 ArrowDirection.DOWN -> padding.bottom += config.arrowHeight.toInt() in <lambda>()
151 ArrowDirection.DOWN -> { in <lambda>()
/frameworks/native/services/inputflinger/aidl/com/android/server/inputflinger/
DKeyEventAction.aidl22 DOWN = 0, enumConstant
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/common/
DMovePipShelfHeightTransition.kt77 Direction.DOWN -> assertRegionMovementDown(pipWindowFrameList) in <lambda>()
94 Direction.DOWN -> assertRegionMovementDown(pipLayerRegionList) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/
DInteractionEvent.kt27 DOWN,
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/
DCommonConstants.kt32 DOWN,
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/udfps/
DSinglePointerTouchProcessorTest.kt97 expectedInteractionEvent = InteractionEvent.DOWN, in <lambda>()
119 expectedInteractionEvent = InteractionEvent.DOWN, in <lambda>()
141 expectedInteractionEvent = InteractionEvent.DOWN, in <lambda>()
173 expectedInteractionEvent = InteractionEvent.DOWN, in <lambda>()
192 expectedInteractionEvent = InteractionEvent.DOWN, in <lambda>()
300 expectedInteractionEvent = InteractionEvent.DOWN, in <lambda>()
313 expectedInteractionEvent = InteractionEvent.DOWN, in <lambda>()
/frameworks/base/core/java/com/android/internal/view/
DScrollCaptureInternal.java44 private static final int DOWN = 1; field in ScrollCaptureInternal
78 if (!(view.canScrollVertically(DOWN) || view.canScrollVertically(UP))) { in detectScrollingType()
DScrollCaptureViewHelper.java34 int DOWN = 1; field
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DUdfpsControllerTest.java401 givenFingerEvent(InteractionEvent.DOWN, InteractionEvent.UP, false); in onActionDownTouch_whenCanDismissLockScreen_entersDevice()
433 givenFingerEvent(InteractionEvent.DOWN, InteractionEvent.UP, false); in onActionMoveTouch_whenCanDismissLockScreen_entersDevice()
459 givenFingerEvent(InteractionEvent.DOWN, InteractionEvent.UNCHANGED, false); in onMultipleTouch_whenCanDismissLockScreen_entersDeviceOnce()
665 InteractionEvent.DOWN, 1, touchData); in onTouch_propagatesTouchInNativeOrientationAndResolutionParameterized()
754 InteractionEvent.DOWN, 1 /* pointerId */, touchData); in fingerDownParameterized()
876 givenFingerEvent(InteractionEvent.DOWN, InteractionEvent.UP, false); in onFingerUp_displayConfigurationParameterized()
994 givenFingerEvent(InteractionEvent.DOWN, InteractionEvent.UP, false); in aodInterruptCancelTimeoutActionOnFingerUpParameterized()
1094 givenFingerEvent(InteractionEvent.DOWN, InteractionEvent.UP, true); in playHapticOnTouchUdfpsArea_a11yTouchExplorationEnabled()
1114 givenFingerEvent(InteractionEvent.DOWN, InteractionEvent.UP, false); in noHapticOnTouchUdfpsArea_a11yTouchExplorationDisabled()
1131 givenFingerEvent(InteractionEvent.DOWN, InteractionEvent.UP, false); in fingerDown_falsingManagerInformed()
[all …]
/frameworks/base/tests/MultiDeviceInput/src/test/multideviceinput/
DDrawingView.kt104 PointerState.DOWN -> { in onScale()
166 myState?.state = PointerState.DOWN in processTouchEvent()
DMainActivity.kt29 DOWN, // One or more pointer(s) down, lines are being drawn
/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/
DMailAppHelper.kt54 listView.scroll(Direction.DOWN, 1.0f) in scrollDown()
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java82 public static final int DOWN = 1 << 1; field in ItemTouchHelper
506 if ((mSelectedFlags & (UP | DOWN)) != 0) { in getSelectedDxDy()
584 case DOWN: in select()
990 if (dy > 0 && (swipeFlags & DOWN) == 0) { in checkSelectForSwipe()
1146 if ((directionFlags & DOWN) == 0) { in updateDxDy()
1225 if ((flags & (UP | DOWN)) != 0) { in checkVerticalSwipe()
1226 final int dirFlag = mDy > 0 ? DOWN : UP; in checkVerticalSwipe()
1232 final int velDirFlag = yVelocity > 0f ? DOWN : UP; in checkVerticalSwipe()

12