Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/tests/Input/src/com/android/test/input/
H A DInputEventAssignerTest.kt19 import android.view.InputDevice.SOURCE_MOUSE
104 val down = createMotionEvent(MotionEvent.ACTION_DOWN, 10, SOURCE_MOUSE)
105 val move1 = createMotionEvent(MotionEvent.ACTION_MOVE, 12, SOURCE_MOUSE)
/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DMotionEventTest.java104 event.setSource(InputDevice.SOURCE_MOUSE); in testCalculatesCursorPositionForSimpleMouseEvents()
115 event.setSource(InputDevice.SOURCE_MOUSE); in testCalculatesCursorPositionForSimpleMouseEventsWithOffset()
141 0 /* deviceId */, 0 /* edgeFlags */, InputDevice.SOURCE_MOUSE, in testCalculatesCursorPositionForMultiTouchMouseEvents()
H A DViewGroupTest.java86 InputDevice.SOURCE_MOUSE, 0 /* flags */); in testDispatchMouseEventsUnderCursor()
94 InputDevice.SOURCE_MOUSE, 0 /* flags */); in testDispatchMouseEventsUnderCursor()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/
H A 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()
H A DEditorCursorDragTest.java721 event.setSource(InputDevice.SOURCE_MOUSE); in obtainMouseEvent()
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAutoclickController.java80 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onMotionEvent()
116 if (inputSource == InputDevice.SOURCE_MOUSE && mClickScheduler != null) { in clearEvents()
H A DMotionEventInjector.java129 if ((event.isFromSource(InputDevice.SOURCE_MOUSE) in onMotionEvent()
H A DAccessibilityInputFilter.java306 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in getEventStreamState()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DMouseUiController.java70 event.setSource(InputDevice.SOURCE_MOUSE); in injectMotionEvent()
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DTaskTapPointerEventListener.java68 if (motionEvent.getSource() == InputDevice.SOURCE_MOUSE) { in onPointerEvent()
H A DDragState.java241 if (isFromSource(InputDevice.SOURCE_MOUSE)) { in closeLocked()
687 if (isFromSource(InputDevice.SOURCE_MOUSE)) { in overridePointerIconLocked()
H A DSystemGesturesPointerEventListener.java213 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onPointerEvent()
H A DWindowManagerService.java7064 if (motionEvent.isFromSource(InputDevice.SOURCE_MOUSE)) { in onPointerEvent()
8180 final boolean isMouseEvent = ev.getSource() == InputDevice.SOURCE_MOUSE; in injectInputAfterTransactionsApplied()
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
H A DDirectoryListBot.java368 InputDevice.SOURCE_MOUSE, in rightClickDocument()
378 InputDevice.SOURCE_MOUSE, in rightClickDocument()
/aosp12/frameworks/base/core/java/android/widget/
H A DEditorTouchState.java134 final boolean isMouse = event.isFromSource(InputDevice.SOURCE_MOUSE); in update()
H A DEditor.java1673 if (!event.isFromSource(InputDevice.SOURCE_MOUSE)) { in shouldFilterOutTouchEvent()
6265 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onTouchEvent()
6588 final boolean isMouse = event.isFromSource(InputDevice.SOURCE_MOUSE); in onTouchEvent()
6744 final boolean isMouse = event.isFromSource(InputDevice.SOURCE_MOUSE); in updateWordBasedSelection()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A DAccessibilityInputFilterTest.java297 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_MOUSE)); in testInputEvent_shouldClearEventsForDisplayEventHandlers()
321 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_MOUSE)); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers()
H A 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()
/aosp12/frameworks/base/core/java/android/view/
H A DInputDevice.java224 public static final int SOURCE_MOUSE = 0x00002000 | SOURCE_CLASS_POINTER; field in InputDevice
1158 appendSourceDescriptionIfApplicable(description, SOURCE_MOUSE, "mouse"); in toString()
H A DMotionEvent.java3573 if (getSource() != InputDevice.SOURCE_MOUSE) { in updateCursorPosition()
H A DViewGroup.java2512 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onInterceptHoverEvent()
2674 final boolean isMouseEvent = ev.getSource() == InputDevice.SOURCE_MOUSE; in dispatchTouchEvent()
3285 if (ev.isFromSource(InputDevice.SOURCE_MOUSE) in onInterceptTouchEvent()
/aosp12/frameworks/base/services/core/java/com/android/server/input/
H A DInputShellCommand.java60 put("mouse", InputDevice.SOURCE_MOUSE);
152 case InputDevice.SOURCE_MOUSE: in getToolType()
/aosp12/packages/apps/Car/libs/car-ui-lib/referencedesign/plugin/src/main/java/com/chassis/car/ui/plugin/recyclerview/
H A DRecyclerViewImpl.java586 mouseEvent.setSource(InputDevice.SOURCE_MOUSE); in initRotaryScroll()
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
H A DCarUiRecyclerViewImpl.java577 mouseEvent.setSource(InputDevice.SOURCE_MOUSE); in initRotaryScroll()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DPanelViewController.java1261 if (isFullyCollapsed() && event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onTouch()

12