/frameworks/base/tests/Input/src/com/android/test/input/ |
D | InputEventAssignerTest.kt | 19 import android.view.InputDevice.SOURCE_MOUSE 104 val down = createMotionEvent(MotionEvent.ACTION_DOWN, 10, SOURCE_MOUSE) in testMouseDownWithMove() 105 val move1 = createMotionEvent(MotionEvent.ACTION_MOVE, 12, SOURCE_MOUSE) in testMouseDownWithMove()
|
/frameworks/base/tests/MultiDeviceInput/src/test/multideviceinput/ |
D | DrawingView.kt | 25 import android.view.InputDevice.SOURCE_MOUSE in <lambda>() 140 return if (event.isFromSource(SOURCE_STYLUS or SOURCE_MOUSE)) { in resolvePaint() 146 } else if (event.isFromSource(SOURCE_MOUSE) && in resolvePaint() 150 } else if (event.isFromSource(SOURCE_MOUSE)) { in resolvePaint()
|
/frameworks/base/tests/Input/src/com/android/server/input/ |
D | InputShellCommandTest.java | 19 import static android.view.InputDevice.SOURCE_MOUSE; 68 assertSourceAndAction(event, SOURCE_MOUSE, ACTION_SCROLL); in testScroll_withPointerSource_noAxisOption() 78 assertSourceAndAction(event, SOURCE_MOUSE, ACTION_SCROLL); in testScroll_withPointerSource_withScrollAxisOptions()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
D | DragDetectorTest.kt | 123 it.source == InputDevice.SOURCE_MOUSE in testMoveInSlop_mouse_passesDownMoveAndUp() 131 it.source == InputDevice.SOURCE_MOUSE in testMoveInSlop_mouse_passesDownMoveAndUp() 138 it.source == InputDevice.SOURCE_MOUSE in testMoveInSlop_mouse_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 | 112 event.setSource(InputDevice.SOURCE_MOUSE); in testCalculatesCursorPositionForSimpleMouseEvents() 123 event.setSource(InputDevice.SOURCE_MOUSE); in testCalculatesCursorPositionForSimpleMouseEventsWithOffset() 139 0 /* deviceId */, 0 /* edgeFlags */, InputDevice.SOURCE_MOUSE, in testCalculatesCursorPositionForMultiTouchMouseEvents()
|
D | ViewGroupTest.java | 87 InputDevice.SOURCE_MOUSE, 0 /* flags */); in testDispatchMouseEventsUnderCursor() 102 InputDevice.SOURCE_MOUSE, 0 /* flags */); in testDispatchMouseEventsUnderCursor()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | EditorTouchStateTest.java | 191 event1.setSource(InputDevice.SOURCE_MOUSE); in testUpdate_tripleClick_mouse() 198 event2.setSource(InputDevice.SOURCE_MOUSE); in testUpdate_tripleClick_mouse() 205 event3.setSource(InputDevice.SOURCE_MOUSE); in testUpdate_tripleClick_mouse() 213 event4.setSource(InputDevice.SOURCE_MOUSE); in testUpdate_tripleClick_mouse() 221 event5.setSource(InputDevice.SOURCE_MOUSE); in testUpdate_tripleClick_mouse()
|
D | PointerIconTest.java | 298 int source = isMouse ? InputDevice.SOURCE_MOUSE : InputDevice.SOURCE_STYLUS; in createHoverEvent()
|
/frameworks/base/core/java/android/widget/ |
D | Button.java | 186 && isEnabled() && event.isFromSource(InputDevice.SOURCE_MOUSE) in onResolvePointerIcon()
|
D | ImageButton.java | 109 && event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onResolvePointerIcon()
|
D | EditorTouchState.java | 134 final boolean isMouse = event.isFromSource(InputDevice.SOURCE_MOUSE); in update()
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | MouseUiController.java | 70 event.setSource(InputDevice.SOURCE_MOUSE); in injectMotionEvent()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AutoclickController.java | 80 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onMotionEvent() 116 if (inputSource == InputDevice.SOURCE_MOUSE && mClickScheduler != null) { in clearEvents()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | ClassifierTest.java | 166 InputDevice.SOURCE_TOUCHPAD | InputDevice.SOURCE_MOUSE, 0, 0, in appendTrackpadMotionEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityInputFilterTest.java | 296 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_MOUSE)); in testInputEvent_shouldClearEventsForDisplayEventHandlers() 320 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_MOUSE)); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers()
|
D | MotionEventInjectorTest.java | 104 private static final int OTHER_EVENT_SOURCE = InputDevice.SOURCE_MOUSE; 177 mHoverMoveEvent.setSource(InputDevice.SOURCE_MOUSE); in setUp() 285 mouseEvent.setSource(InputDevice.SOURCE_MOUSE); in testInjectEvents_withRealMouseGestureUnderway_shouldContinueRealAndPassInjected()
|
/frameworks/base/core/java/android/view/ |
D | InputDevice.java | 242 public static final int SOURCE_MOUSE = 0x00002000 | SOURCE_CLASS_POINTER; field in InputDevice 371 SOURCE_MOUSE, 1697 appendSourceDescriptionIfApplicable(description, SOURCE_MOUSE, "mouse"); in toString()
|
D | MotionEvent.java | 3895 if (getSource() != InputDevice.SOURCE_MOUSE) { in updateCursorPosition() 4228 if (isFromSource(InputDevice.SOURCE_MOUSE)) { in getXDispatchLocation() 4245 if (isFromSource(InputDevice.SOURCE_MOUSE)) { in getYDispatchLocation()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DragDropController.java | 267 if ((touchSource & InputDevice.SOURCE_MOUSE) == InputDevice.SOURCE_MOUSE) { in performDrag()
|
D | SystemGesturesPointerEventListener.java | 256 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onPointerEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarViewController.kt | 92 if (event.source == InputDevice.SOURCE_MOUSE) { in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputShellCommand.java | 117 map.put("mouse", InputDevice.SOURCE_MOUSE); 251 case InputDevice.SOURCE_MOUSE: in getToolType()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarViewControllerTest.kt | 245 getActionUpEventFromSource(InputDevice.SOURCE_MOUSE) in shadeIsExpandedOnStatusIconMouseClick()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/ |
D | EdgeBackGestureHandler.java | 19 import static android.view.InputDevice.SOURCE_MOUSE; 402 return inputDevice.getSources() == (InputDevice.SOURCE_MOUSE 1147 int sourceTrackpad = (SOURCE_MOUSE | SOURCE_TOUCHPAD); in isButtonPressFromTrackpad()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/gesture/ |
D | GesturePointerEventListener.kt | 233 if (ev.isFromSource(InputDevice.SOURCE_MOUSE)) { in <lambda>()
|