Home
last modified time | relevance | path

Searched refs:SOURCE_MOUSE (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/tests/Input/src/com/android/test/input/
DInputEventAssignerTest.kt19 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/
DDrawingView.kt25 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/
DInputShellCommandTest.java19 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/
DDragDetectorTest.kt123 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/
DMotionEventTest.java112 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()
DViewGroupTest.java87 InputDevice.SOURCE_MOUSE, 0 /* flags */); in testDispatchMouseEventsUnderCursor()
102 InputDevice.SOURCE_MOUSE, 0 /* flags */); in testDispatchMouseEventsUnderCursor()
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorTouchStateTest.java191 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()
DPointerIconTest.java298 int source = isMouse ? InputDevice.SOURCE_MOUSE : InputDevice.SOURCE_STYLUS; in createHoverEvent()
/frameworks/base/core/java/android/widget/
DButton.java186 && isEnabled() && event.isFromSource(InputDevice.SOURCE_MOUSE) in onResolvePointerIcon()
DImageButton.java109 && event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onResolvePointerIcon()
DEditorTouchState.java134 final boolean isMouse = event.isFromSource(InputDevice.SOURCE_MOUSE); in update()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DMouseUiController.java70 event.setSource(InputDevice.SOURCE_MOUSE); in injectMotionEvent()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAutoclickController.java80 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/
DClassifierTest.java166 InputDevice.SOURCE_TOUCHPAD | InputDevice.SOURCE_MOUSE, 0, 0, in appendTrackpadMotionEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityInputFilterTest.java296 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_MOUSE)); in testInputEvent_shouldClearEventsForDisplayEventHandlers()
320 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_MOUSE)); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers()
DMotionEventInjectorTest.java104 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/
DInputDevice.java242 public static final int SOURCE_MOUSE = 0x00002000 | SOURCE_CLASS_POINTER; field in InputDevice
371 SOURCE_MOUSE,
1697 appendSourceDescriptionIfApplicable(description, SOURCE_MOUSE, "mouse"); in toString()
DMotionEvent.java3895 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/
DDragDropController.java267 if ((touchSource & InputDevice.SOURCE_MOUSE) == InputDevice.SOURCE_MOUSE) { in performDrag()
DSystemGesturesPointerEventListener.java256 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onPointerEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarViewController.kt92 if (event.source == InputDevice.SOURCE_MOUSE) { in <lambda>()
/frameworks/base/services/core/java/com/android/server/input/
DInputShellCommand.java117 map.put("mouse", InputDevice.SOURCE_MOUSE);
251 case InputDevice.SOURCE_MOUSE: in getToolType()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarViewControllerTest.kt245 getActionUpEventFromSource(InputDevice.SOURCE_MOUSE) in shadeIsExpandedOnStatusIconMouseClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DEdgeBackGestureHandler.java19 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/
DGesturePointerEventListener.kt233 if (ev.isFromSource(InputDevice.SOURCE_MOUSE)) { in <lambda>()

12