Home
last modified time | relevance | path

Searched refs:SOURCE_TOUCHSCREEN (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/tests/Input/src/com/android/test/input/
DInputEventAssignerTest.kt20 import android.view.InputDevice.SOURCE_TOUCHSCREEN
63 val event = createMotionEvent(MotionEvent.ACTION_MOVE, 10, SOURCE_TOUCHSCREEN) in testTouchGesture()
75 val down = createMotionEvent(MotionEvent.ACTION_DOWN, 10, SOURCE_TOUCHSCREEN) in testTouchDownWithMove()
76 val move1 = createMotionEvent(MotionEvent.ACTION_MOVE, 12, SOURCE_TOUCHSCREEN) in testTouchDownWithMove()
77 val move2 = createMotionEvent(MotionEvent.ACTION_MOVE, 13, SOURCE_TOUCHSCREEN) in testTouchDownWithMove()
78 val move3 = createMotionEvent(MotionEvent.ACTION_MOVE, 14, SOURCE_TOUCHSCREEN) in testTouchDownWithMove()
79 val move4 = createMotionEvent(MotionEvent.ACTION_MOVE, 15, SOURCE_TOUCHSCREEN) in testTouchDownWithMove()
DPointerEventDispatcherTest.kt81 motionEvent.source = InputDevice.SOURCE_TOUCHSCREEN in testSendMotionToCrashingListenerDoesNotCrash()
DAnrTest.kt166 downEvent.source = InputDevice.SOURCE_TOUCHSCREEN in triggerAnr()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDragDetectorTest.kt77 it.source == InputDevice.SOURCE_TOUCHSCREEN in testNoMove_passesDownAndUp()
83 it.source == InputDevice.SOURCE_TOUCHSCREEN in testNoMove_passesDownAndUp()
96 it.source == InputDevice.SOURCE_TOUCHSCREEN in testMoveInSlop_touch_passesDownAndUp()
109 it.source == InputDevice.SOURCE_TOUCHSCREEN in testMoveInSlop_touch_passesDownAndUp()
151 it.source == InputDevice.SOURCE_TOUCHSCREEN in testMoveBeyondSlop_passesDownMoveAndUp()
158 it.source == InputDevice.SOURCE_TOUCHSCREEN in testMoveBeyondSlop_passesDownMoveAndUp()
164 it.source == InputDevice.SOURCE_TOUCHSCREEN in testMoveBeyondSlop_passesDownMoveAndUp()
200 ev.source = if (isTouch) InputDevice.SOURCE_TOUCHSCREEN else InputDevice.SOURCE_MOUSE in createMotionEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityInputFilterTest.java273 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
274 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
290 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForDisplayEventHandlers()
291 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForDisplayEventHandlers()
314 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers()
315 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers()
316 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers()
332 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldNotClearEventsForOtherDisplayAfterOnDisplayAdded()
333 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldNotClearEventsForOtherDisplayAfterOnDisplayAdded()
350 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldNotClearEventsForOtherDisplayAfterOnDisplayRemoved()
[all …]
DMotionEventInjectorTest.java103 private static final int MOTION_EVENT_SOURCE = InputDevice.SOURCE_TOUCHSCREEN;
168 mClickDownEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in setUp()
172 mClickUpEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in setUp()
899 && (InputDevice.SOURCE_TOUCHSCREEN == event.getSource());
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMagnificationGestureHandlerTest.java71 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_isFromScreen_onMotionEventInternal()
85 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_downEvent_handleInteractionStart()
99 upEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_upEvent_handleInteractionEnd()
113 cancelEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_cancelEvent_handleInteractionEnd()
DFullScreenMagnificationGestureHandlerTest.java729 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
739 ev.setSource(InputDevice.SOURCE_TOUCHSCREEN);
808 /* source */ InputDevice.SOURCE_TOUCHSCREEN,
DWindowMagnificationGestureHandlerTest.java328 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); in send()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DDragDetector.java19 import static android.view.InputDevice.SOURCE_TOUCHSCREEN;
60 (ev.getSource() & SOURCE_TOUCHSCREEN) == SOURCE_TOUCHSCREEN; in onMotionEvent()
DDragResizeInputListener.java19 import static android.view.InputDevice.SOURCE_TOUCHSCREEN;
282 boolean isTouch = (e.getSource() & SOURCE_TOUCHSCREEN) == SOURCE_TOUCHSCREEN; in handleMotionEvent()
/frameworks/base/core/java/android/view/
DInputEventAssigner.java20 import static android.view.InputDevice.SOURCE_TOUCHSCREEN;
67 if (motionEvent.isFromSource(SOURCE_TOUCHSCREEN)) { in processEvent()
DInputDevice.java215 public static final int SOURCE_TOUCHSCREEN = 0x00001000 | SOURCE_CLASS_POINTER; field in InputDevice
1215 appendSourceDescriptionIfApplicable(description, SOURCE_TOUCHSCREEN, "touchscreen"); in toString()
/frameworks/base/core/tests/coretests/src/android/view/
DMotionEventTest.java69 0, 0, 0, 0, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, displayId, 0); in testObtainWithDisplayId()
74 0 /* deviceId */, 0 /* edgeFlags */, InputDevice.SOURCE_TOUCHSCREEN, displayId); in testObtainWithDisplayId()
89 0, 0, 0, 0, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, displayId, 0); in testObtainWithDisplayId()
97 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); in testCalculatesCursorPositionForTouchscreenEvents()
184 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); in testEventRotation()
DVerifiedMotionEventTest.kt19 import android.view.InputDevice.SOURCE_TOUCHSCREEN
155 private const val SOURCE = SOURCE_TOUCHSCREEN
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java309 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
320 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
332 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
712 properties, pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
718 pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
735 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
749 pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
756 properties, pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DMagnificationGestureHandler.java19 import static android.view.InputDevice.SOURCE_TOUCHSCREEN;
132 SOURCE_TOUCHSCREEN)) { in shouldDispatchTransformedEvent()
DWindowMagnificationGestureHandler.java19 import static android.view.InputDevice.SOURCE_TOUCHSCREEN;
149 if (inputSource == SOURCE_TOUCHSCREEN) { in clearEvents()
/frameworks/base/services/core/java/com/android/server/input/
DInputShellCommand.java100 map.put("touchscreen", InputDevice.SOURCE_TOUCHSCREEN);
205 case InputDevice.SOURCE_TOUCHSCREEN: in getToolType()
375 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runTap()
393 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runSwipe()
430 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runDragAndDrop()
470 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runMotionEvent()
/frameworks/base/apct-tests/perftests/core/src/android/view/
DInputStageBenchmark.java223 InputDevice.SOURCE_TOUCHSCREEN, DEFAULT_DISPLAY); in testMotionEvent()
232 InputDevice.SOURCE_TOUCHSCREEN, DEFAULT_DISPLAY); in testMotionEvent()
DHandwritingInitiatorPerfTest.java222 InputDevice.SOURCE_TOUCHSCREEN, 0 /* flags */); in createMotionEvent()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/
DSplitScreenHelper.kt152 motionEvent.source = InputDevice.SOURCE_TOUCHSCREEN in touch()
177 motionMove.source = InputDevice.SOURCE_TOUCHSCREEN in touchMove()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/
DMediaScrollView.kt141 event.source = InputDevice.SOURCE_TOUCHSCREEN in cancelCurrentScroll()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DTouchExplorerTest.java336 mTouchExplorer.clearEvents(InputDevice.SOURCE_TOUCHSCREEN); in clearEventsWhenInTwoFingerMove_clearsStateAndSendsUp()
476 ev.setSource(InputDevice.SOURCE_TOUCHSCREEN); in fromTouchscreen()
708 /* source */ InputDevice.SOURCE_TOUCHSCREEN, in manyPointerEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
DTouchEventGenerator.java113 /* source */ InputDevice.SOURCE_TOUCHSCREEN, in generateMultiplePointersEvent()

12