/frameworks/base/tests/Input/src/com/android/test/input/ |
D | InputEventAssignerTest.kt | 20 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()
|
D | PointerEventDispatcherTest.kt | 80 motionEvent.source = InputDevice.SOURCE_TOUCHSCREEN in testSendMotionToCrashingListenerDoesNotCrash()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
D | DragDetectorTest.kt | 77 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/core/tests/coretests/src/android/view/ |
D | MotionEventTest.java | 74 0, 0, 0, 0, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, displayId, 0); in testObtainWithDisplayId() 79 0 /* deviceId */, 0 /* edgeFlags */, InputDevice.SOURCE_TOUCHSCREEN, displayId); in testObtainWithDisplayId() 94 0, 0, 0, 0, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, displayId, 0); in testObtainWithDisplayId() 102 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); in testCalculatesCursorPositionForTouchscreenEvents() 179 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); in testEventRotation() 246 0 /* deviceId */, 0 /* edgeFlags */, InputDevice.SOURCE_TOUCHSCREEN, in testSplit() 266 0 /* deviceId */, 0 /* edgeFlags */, InputDevice.SOURCE_TOUCHSCREEN, in testSplitFailsWhenNoIdsSpecified() 286 0 /* deviceId */, 0 /* edgeFlags */, InputDevice.SOURCE_TOUCHSCREEN, in testSplitFailsWhenIdBitsDoNotMatch()
|
D | VerifiedMotionEventTest.kt | 19 import android.view.InputDevice.SOURCE_TOUCHSCREEN 155 private const val SOURCE = SOURCE_TOUCHSCREEN
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityInputFilterTest.java | 273 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 …]
|
D | AccessibilityInputFilterInputTest.kt | 30 import android.view.InputDevice.SOURCE_TOUCHSCREEN 103 const val STYLUS_SOURCE = SOURCE_STYLUS or SOURCE_TOUCHSCREEN 131 private val fromTouchScreen = allOf(withDeviceId(touchDeviceId), withSource(SOURCE_TOUCHSCREEN)) 490 send(createMotionEvent(action, downTime, eventTime, SOURCE_TOUCHSCREEN, touchDeviceId)) in sendTouchEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | MagnificationGestureHandlerTest.java | 72 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_isFromScreen_onMotionEventInternal() 86 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_downEvent_handleInteractionStart() 100 upEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_upEvent_handleInteractionEnd() 114 cancelEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_cancelEvent_handleInteractionEnd()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
D | DragDetector.java | 19 import static android.view.InputDevice.SOURCE_TOUCHSCREEN; 73 (ev.getSource() & SOURCE_TOUCHSCREEN) == SOURCE_TOUCHSCREEN; in onMotionEvent()
|
D | DragResizeWindowGeometry.java | 19 import static android.view.InputDevice.SOURCE_TOUCHSCREEN; 169 return (e.getSource() & SOURCE_TOUCHSCREEN) == SOURCE_TOUCHSCREEN; in isEventFromTouchscreen()
|
/frameworks/base/core/java/android/view/ |
D | InputEventAssigner.java | 20 import static android.view.InputDevice.SOURCE_TOUCHSCREEN; 67 if (motionEvent.isFromSource(SOURCE_TOUCHSCREEN)) { in processEvent()
|
D | InputDevice.java | 232 public static final int SOURCE_TOUCHSCREEN = 0x00001000 | SOURCE_CLASS_POINTER; field in InputDevice 370 SOURCE_TOUCHSCREEN, 1696 appendSourceDescriptionIfApplicable(description, SOURCE_TOUCHSCREEN, "touchscreen"); in toString()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
D | WindowWakeUpPolicyTests.java | 26 import static android.view.InputDevice.SOURCE_TOUCHSCREEN; 139 assertThat(mPolicy.wakeUpFromMotion(200, SOURCE_TOUCHSCREEN, true)).isTrue(); in testMotionWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 140 verify(mInputWakeUpDelegate).wakeUpFromMotion(200, SOURCE_TOUCHSCREEN, true); in testMotionWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 204 assertThat(mPolicy.wakeUpFromMotion(200, SOURCE_TOUCHSCREEN, true)).isFalse(); in testDelegatedMotionWakeIsSubjectToPolicyChecks() 216 mPolicy.wakeUpFromMotion(200L, SOURCE_TOUCHSCREEN, true); in testTheaterModeChecksNotAppliedWhenScreenIsOn() 224 () -> mPolicy.wakeUpFromMotion(mClock.uptimeMillis(), SOURCE_TOUCHSCREEN, true), in testWakeUpFromMotion() local
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 309 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/ |
D | MagnificationGestureHandler.java | 19 import static android.view.InputDevice.SOURCE_TOUCHSCREEN; 144 || !event.isFromSource(SOURCE_TOUCHSCREEN)) { in shouldDispatchTransformedEvent()
|
D | WindowMagnificationGestureHandler.java | 19 import static android.view.InputDevice.SOURCE_TOUCHSCREEN; 158 if (inputSource == SOURCE_TOUCHSCREEN) { in clearEvents()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputShellCommand.java | 116 map.put("touchscreen", InputDevice.SOURCE_TOUCHSCREEN); 261 case InputDevice.SOURCE_TOUCHSCREEN: in getToolType() 479 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runTap() 497 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runSwipe() 534 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runDragAndDrop() 630 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runMotionEvent()
|
/frameworks/base/apct-tests/perftests/core/src/android/view/ |
D | InputStageBenchmark.java | 223 InputDevice.SOURCE_TOUCHSCREEN, DEFAULT_DISPLAY); in testMotionEvent() 232 InputDevice.SOURCE_TOUCHSCREEN, DEFAULT_DISPLAY); in testMotionEvent()
|
/frameworks/base/tests/MultiDeviceInput/src/test/multideviceinput/ |
D | DrawingView.kt | 27 import android.view.InputDevice.SOURCE_TOUCHSCREEN in <lambda>() 143 } else if (event.isFromSource(SOURCE_TOUCHSCREEN) && !event.isFromSource(SOURCE_STYLUS)) { in resolvePaint()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/ |
D | MediaScrollView.kt | 149 event.source = InputDevice.SOURCE_TOUCHSCREEN in cancelCurrentScroll()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/split/ |
D | DividerViewTest.java | 112 InputDevice.SOURCE_TOUCHSCREEN, 0); in getMotionEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/ |
D | TouchExplorerTest.java | 337 mTouchExplorer.clearEvents(InputDevice.SOURCE_TOUCHSCREEN); in clearEventsWhenInTwoFingerMove_clearsStateAndSendsUp() 477 ev.setSource(InputDevice.SOURCE_TOUCHSCREEN); in fromTouchscreen() 709 /* source */ InputDevice.SOURCE_TOUCHSCREEN, in manyPointerEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/ |
D | TouchEventGenerator.java | 139 /* source */ InputDevice.SOURCE_TOUCHSCREEN, in generateMultiplePointersEvent()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/ |
D | SplitScreenUtils.kt | 252 motionEvent.source = InputDevice.SOURCE_TOUCHSCREEN in <lambda>() 283 motionMove.source = InputDevice.SOURCE_TOUCHSCREEN in <lambda>()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/dialog/ |
D | AccessibilityServiceWarningTest.java | 187 0, 0, 0, 0, -1, 0, InputDevice.SOURCE_TOUCHSCREEN, flags); in createMotionEvent()
|