/frameworks/native/services/inputflinger/tests/ |
D | PreferStylusOverTouch_test.cpp | 29 constexpr int UP = AMOTION_EVENT_ACTION_UP; variable 39 if (action == DOWN || action == UP) { in generateMotionArgs() 118 args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/2, UP, {{1, 3}}, TOUCHSCREEN); in TEST_F() 131 args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/2, UP, {{1, 3}}, STYLUS); in TEST_F() 175 args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/2, UP, {{1, 3}}, TOUCHSCREEN); in TEST_F() 226 args = generateMotionArgs(stylusDownTime, /*eventTime=*/3, UP, {{10, 31}}, STYLUS); in TEST_F() 236 args = generateMotionArgs(touchDownTime, /*eventTime=*/6, UP, {{1, 3}}, TOUCHSCREEN); in TEST_F() 255 args = generateMotionArgs(stylusDownTime, /*eventTime=*/2, UP, {{10, 30}}, STYLUS); in TEST_F() 262 args = generateMotionArgs(touchDownTime, /*eventTime=*/4, UP, {{1, 3}}, TOUCHSCREEN); in TEST_F() 344 generateMotionArgs(/*downTime=*/2, /*eventTime=*/3, UP, {{10, 30}}, STYLUS); in TEST_F() [all …]
|
D | TouchpadInputMapper_test.cpp | 63 setScanCodeState(KeyState::UP, {BTN_TOUCH, BTN_STYLUS, in SetUp() 76 setKeyCodeState(KeyState::UP, in SetUp() 156 setScanCodeState(KeyState::UP, {BTN_LEFT}); in TEST_F() 173 setScanCodeState(KeyState::UP, {BTN_TOOL_FINGER}); in TEST_F()
|
D | UnwantedInteractionBlocker_test.cpp | 53 constexpr int UP = AMOTION_EVENT_ACTION_UP; variable 215 assertArgs(pointer1, UP, {{1, {4, 5, 6}}}); in TEST() 530 mBlocker->notifyMotion(generateMotionArgs(/*downTime=*/0, /*eventTime=*/2, UP, {{4, 5, 6}})); in TEST_F() 542 args = generateMotionArgs(/*downTime=*/3, /*eventTime=*/5, UP, {{40, 50, 60}}); in TEST_F() 562 mBlocker->notifyMotion(generateMotionArgs(/*downTime=*/0, /*eventTime=*/2, UP, {{4, 5, 6}})); in TEST_F() 583 generateMotionArgs(/*downTime=*/0, 2 * RESAMPLE_PERIOD, UP, {{4, 5, 200}})); in TEST_F() 612 generateMotionArgs(/*downTime=*/0, 2 * RESAMPLE_PERIOD, UP, {{4, 5, 200}}); in TEST_F() 615 mTestListener.assertNotifyMotionWasCalled(WithMotionAction(UP)); in TEST_F() 664 generateMotionArgs(/*downTime=*/0, 5 * RESAMPLE_PERIOD, UP, {{4, 5, 200}}); in TEST_F() 668 mTestListener.assertNotifyMotionWasCalled(WithMotionAction(UP)); in TEST_F() [all …]
|
D | MultiTouchInputMapper_test.cpp | 68 setScanCodeState(KeyState::UP, {BTN_LEFT, BTN_RIGHT, BTN_MIDDLE, in SetUp() 77 setKeyCodeState(KeyState::UP, in SetUp()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/ |
D | ShadeTouchHandlerTest.java | 96 final boolean captured = swipe(Direction.UP); in testSwipeUp_notCaptured() 138 swipe(Direction.UP); in testSwipeUp_communalEnabled_touchesNotSent() 149 swipe(Direction.UP); in testSwipeUp_communalDisabled_touchesNotSent() 170 final float startY = direction == Direction.UP ? TOUCH_HEIGHT : 0; in swipe() 171 final float endY = direction == Direction.UP ? 0 : TOUCH_HEIGHT; in swipe() 185 DOWN, UP, enumConstant
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
D | GestureManifold.java | 68 import static com.android.server.accessibility.gestures.Swipe.UP; 130 mGestures.add(new Swipe(context, UP, GESTURE_SWIPE_UP, this)); in GestureManifold() 134 mGestures.add(new Swipe(context, LEFT, UP, GESTURE_SWIPE_LEFT_AND_UP, this)); in GestureManifold() 136 mGestures.add(new Swipe(context, RIGHT, UP, GESTURE_SWIPE_RIGHT_AND_UP, this)); in GestureManifold() 139 mGestures.add(new Swipe(context, DOWN, UP, GESTURE_SWIPE_DOWN_AND_UP, this)); in GestureManifold() 142 mGestures.add(new Swipe(context, UP, DOWN, GESTURE_SWIPE_UP_AND_DOWN, this)); in GestureManifold() 143 mGestures.add(new Swipe(context, UP, LEFT, GESTURE_SWIPE_UP_AND_LEFT, this)); in GestureManifold() 144 mGestures.add(new Swipe(context, UP, RIGHT, GESTURE_SWIPE_UP_AND_RIGHT, this)); in GestureManifold() 194 mTwoFingerSwipes.add(new MultiFingerSwipe(context, 2, UP, GESTURE_2_FINGER_SWIPE_UP, this)); in GestureManifold() 204 new MultiFingerSwipe(context, 3, UP, GESTURE_3_FINGER_SWIPE_UP, this)); in GestureManifold() [all …]
|
D | Swipe.java | 43 public static final int UP = 2; field in Swipe 373 return (dY < 0) ? UP : DOWN; in toDirection() 383 case UP: in directionToString()
|
D | MultiFingerSwipe.java | 45 public static final int UP = 2; field in MultiFingerSwipe 418 return (dY < 0) ? UP : DOWN; in toDirection() 428 case UP: in directionToString()
|
/frameworks/native/services/inputflinger/rust/ |
D | bounce_keys_filter.rs | 89 KeyEventAction::UP => { in notify_key() 165 let event = KeyEvent { action: KeyEventAction::UP, ..BASE_KEY_EVENT }; in test_is_notify_key_for_external_keyboard() 174 let event = KeyEvent { eventTime: 100, action: KeyEventAction::UP, ..BASE_KEY_EVENT }; in test_is_notify_key_for_external_keyboard() 196 let event = KeyEvent { action: KeyEventAction::UP, ..BASE_KEY_EVENT }; in test_is_notify_key_doesnt_block_for_internal_keyboard() 220 KeyEvent { action: KeyEventAction::UP, source: Source::STYLUS, ..BASE_KEY_EVENT }; in test_is_notify_key_doesnt_block_for_external_stylus() 246 let event = KeyEvent { deviceId: 1, action: KeyEventAction::UP, ..BASE_KEY_EVENT }; in test_is_notify_key_for_multiple_external_keyboards()
|
D | slow_keys_filter.rs | 117 if event.action == KeyEventAction::UP { in notify_key() 143 KeyEventAction::UP => { in notify_key() 311 action: KeyEventAction::UP, in test_notify_key_for_external_keyboard_when_key_pressed_for_threshold_time() 320 action: KeyEventAction::UP, in test_notify_key_for_external_keyboard_when_key_pressed_for_threshold_time() 351 action: KeyEventAction::UP, in test_notify_key_for_external_keyboard_when_key_not_pressed_for_threshold_time()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/ |
D | BubblePopupDrawable.kt | 37 UP, in <lambda>() 64 Delegates.observable(ArrowDirection.UP) { _, _, _ -> requestPathUpdate() } in <lambda>() 101 ArrowDirection.UP -> padding.top += config.arrowHeight.toInt() in <lambda>() 145 ArrowDirection.UP -> { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/udfps/ |
D | SinglePointerTouchProcessorTest.kt | 111 expectedInteractionEvent = InteractionEvent.UP, in <lambda>() 133 expectedInteractionEvent = InteractionEvent.UP, in <lambda>() 162 expectedInteractionEvent = InteractionEvent.UP, in <lambda>() 213 expectedInteractionEvent = InteractionEvent.UP, in <lambda>() 221 expectedInteractionEvent = InteractionEvent.UP, in <lambda>() 228 expectedInteractionEvent = InteractionEvent.UP, in <lambda>() 243 expectedInteractionEvent = InteractionEvent.UP, in <lambda>() 250 expectedInteractionEvent = InteractionEvent.UP, in <lambda>() 353 expectedInteractionEvent = InteractionEvent.UP, in <lambda>() 364 expectedInteractionEvent = InteractionEvent.UP, in <lambda>()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/ |
D | MovePipUpOnShelfHeightChangeTest.kt | 68 @Presubmit @Test fun pipWindowMovesUp() = pipWindowMoves(Direction.UP) 71 @Presubmit @Test fun pipLayerMovesUp() = pipLayerMoves(Direction.UP)
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ScrollCaptureInternal.java | 43 private static final int UP = -1; field in ScrollCaptureInternal 78 if (!(view.canScrollVertically(DOWN) || view.canScrollVertically(UP))) { in detectScrollingType() 125 if (view.canScrollVertically(UP)) { in detectScrollingType()
|
D | ScrollCaptureViewHelper.java | 33 int UP = -1; field
|
/frameworks/base/core/java/android/text/method/ |
D | LinkMovementMethod.java | 38 private static final int UP = 2; field in LinkMovementMethod 67 if (action(UP, widget, buffer)) { in up() 85 if (action(UP, widget, buffer)) { in left() 158 case UP: in action()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/common/ |
D | MovePipShelfHeightTransition.kt | 76 Direction.UP -> assertRegionMovementUp(pipWindowFrameList) in <lambda>() 93 Direction.UP -> assertRegionMovementUp(pipLayerRegionList) in <lambda>()
|
/frameworks/native/services/inputflinger/aidl/com/android/server/inputflinger/ |
D | KeyEventAction.aidl | 25 UP = 1, enumConstant
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/ |
D | InteractionEvent.kt | 33 UP,
|
D | SinglePointerTouchProcessor.kt | 104 ProcessedTouch(InteractionEvent.UP, INVALID_POINTER_ID, data) in processActionMove() 117 ProcessedTouch(InteractionEvent.UP, pointerOnSensorId = INVALID_POINTER_ID, data) in processActionUp()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/ |
D | CommonConstants.kt | 31 UP,
|
/frameworks/native/libs/input/tests/ |
D | MotionPredictor_test.cpp | 38 constexpr int32_t UP = AMOTION_EVENT_ACTION_UP; variable 209 predictor.record(getMotionEvent(UP, 10.25, 3, 60ms)); in TEST() 233 ASSERT_TRUE(predictor.record(getMotionEvent(UP, 2, 5, 30ms, /*deviceId=*/0)).ok()); in TEST() 332 ASSERT_TRUE(predictor.record(getMotionEvent(UP, 7, 7, 24ms, /*deviceId=*/0)).ok()); in TEST()
|
/frameworks/base/services/backup/java/com/android/server/backup/transport/ |
D | TransportConnection.java | 535 int value = (bound == Transition.UP) ? 1 : 0; // 1 is bound, 0 is not bound in onStateTransition() 539 int value = (connected == Transition.UP) ? 1 : 0; // 1 is connected, 0 is not connected in onStateTransition() 556 return Transition.UP; in transitionThroughState() 639 @IntDef({Transition.DOWN, Transition.NO_TRANSITION, Transition.UP}) 644 int UP = 1; field
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/ |
D | UdfpsControllerTest.java | 401 givenFingerEvent(InteractionEvent.DOWN, InteractionEvent.UP, false); in onActionDownTouch_whenCanDismissLockScreen_entersDevice() 433 givenFingerEvent(InteractionEvent.DOWN, InteractionEvent.UP, false); in onActionMoveTouch_whenCanDismissLockScreen_entersDevice() 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() 1325 givenFingerEvent(InteractionEvent.UNCHANGED, InteractionEvent.UP, false); in onTouch_pilferPointerWhenAltBouncerShowing() 1346 givenFingerEvent(InteractionEvent.UNCHANGED, InteractionEvent.UP, false); in onTouch_doNotProcessTouchWhenPullingUpBouncer() 1371 givenFingerEvent(InteractionEvent.DOWN, InteractionEvent.UP, false); in onTouch_qsDrag_processesTouchWhenAlternateBouncerVisible()
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
D | ItemTouchHelper.java | 77 public static final int UP = 1; field in ItemTouchHelper 506 if ((mSelectedFlags & (UP | DOWN)) != 0) { in getSelectedDxDy() 583 case UP: in select() 987 if (dy < 0 && (swipeFlags & UP) == 0) { in checkSelectForSwipe() 1143 if ((directionFlags & UP) == 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()
|