/aosp14/frameworks/base/core/java/android/view/ |
H A D | InputEventAssigner.java | 67 if (motionEvent.isFromSource(SOURCE_TOUCHSCREEN)) { in processEvent()
|
H A D | InputEvent.java | 95 public boolean isFromSource(int source) { in isFromSource() method in InputEvent
|
H A D | MotionEvent.java | 2350 return isFromSource(InputDevice.SOURCE_STYLUS) in isStylusPointer() 4197 if (isFromSource(InputDevice.SOURCE_MOUSE)) { in getXDispatchLocation() 4214 if (isFromSource(InputDevice.SOURCE_MOUSE)) { in getYDispatchLocation()
|
H A D | InputDevice.java | 1377 public boolean isFromSource(int source) { in isFromSource() method in InputDevice.MotionRange
|
H A D | ViewRootImpl.java | 6519 && !q.mEvent.isFromSource(InputDevice.SOURCE_CLASS_POINTER) in shouldDropInputEvent() 6528 && !q.mEvent.isFromSource(InputDevice.SOURCE_CLASS_BUTTON)) { in shouldDropInputEvent() 6917 if (event.isFromSource(InputDevice.SOURCE_CLASS_POINTER)) { in processMotionEvent() 6924 if (event.isFromSource(InputDevice.SOURCE_CLASS_POSITION)) { in processMotionEvent() 7262 if (needsStylusPointerIcon || event.isFromSource(InputDevice.SOURCE_MOUSE)) { in maybeUpdatePointerIcon() 7282 if (event.isFromSource(InputDevice.SOURCE_MOUSE_RELATIVE)) { in processTrackballEvent() 7297 if (event.isFromSource(InputDevice.SOURCE_TOUCHPAD)) { in processGenericMotionEvent() 9239 && (mEvent.isFromSource(InputDevice.SOURCE_CLASS_POINTER) in shouldSkipIme() 9240 || mEvent.isFromSource(InputDevice.SOURCE_ROTARY_ENCODER)); in shouldSkipIme()
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | Button.java | 178 && event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onResolvePointerIcon()
|
H A D | ImageButton.java | 104 && event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onResolvePointerIcon()
|
H A D | EditorTouchState.java | 134 final boolean isMouse = event.isFromSource(InputDevice.SOURCE_MOUSE); in update()
|
H A D | HorizontalScrollView.java | 866 if (event.isFromSource(InputDevice.SOURCE_CLASS_POINTER)) { in onGenericMotionEvent() 872 } else if (event.isFromSource(InputDevice.SOURCE_ROTARY_ENCODER)) { in onGenericMotionEvent() 885 boolean canOverscroll = !event.isFromSource(InputDevice.SOURCE_MOUSE) in onGenericMotionEvent()
|
H A D | ScrollView.java | 946 if (event.isFromSource(InputDevice.SOURCE_CLASS_POINTER)) { in onGenericMotionEvent() 948 } else if (event.isFromSource(InputDevice.SOURCE_ROTARY_ENCODER)) { in onGenericMotionEvent() 961 boolean canOverscroll = !event.isFromSource(InputDevice.SOURCE_MOUSE) in onGenericMotionEvent()
|
H A D | Editor.java | 1752 if (!event.isFromSource(InputDevice.SOURCE_MOUSE)) { in shouldFilterOutTouchEvent() 5672 ev.isFromSource(InputDevice.SOURCE_TOUCHSCREEN)); in onTouchEvent() 5677 filterOnTouchUp(ev.isFromSource(InputDevice.SOURCE_TOUCHSCREEN)); in onTouchEvent() 6536 if (event.isFromSource(InputDevice.SOURCE_MOUSE) in onTouchEvent() 6865 final boolean isMouse = event.isFromSource(InputDevice.SOURCE_MOUSE); in onTouchEvent() 7014 event.isFromSource(InputDevice.SOURCE_TOUCHSCREEN)); in updateCharacterBasedSelection() 7021 final boolean isMouse = event.isFromSource(InputDevice.SOURCE_MOUSE); in updateWordBasedSelection() 7073 event.isFromSource(InputDevice.SOURCE_TOUCHSCREEN)); in updateWordBasedSelection() 7085 event.isFromSource(InputDevice.SOURCE_TOUCHSCREEN)); in updateParagraphBasedSelection()
|
H A D | Spinner.java | 940 && event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onResolvePointerIcon()
|
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | AccessibilityInputFilter.java | 311 if (event.isFromSource(InputDevice.SOURCE_TOUCHSCREEN)) { in getEventStreamState() 319 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in getEventStreamState() 328 if (event.isFromSource(InputDevice.SOURCE_KEYBOARD)) { in getEventStreamState() 909 if (event.isFromSource(InputDevice.SOURCE_TOUCHSCREEN) in anyServiceWantsGenericMotionEvent()
|
H A D | AutoclickController.java | 80 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onMotionEvent()
|
H A D | MotionEventInjector.java | 129 if ((event.isFromSource(InputDevice.SOURCE_MOUSE) in onMotionEvent()
|
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
H A D | MagnificationGestureHandler.java | 131 if ((!mDetectTripleTap && !mDetectShortcutTrigger) || !event.isFromSource( in shouldDispatchTransformedEvent()
|
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | FrontBufferedLayer.kt | 93 if (!event.isFromSource(InputDevice.SOURCE_STYLUS)) {
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DragState.java | 258 if (isFromSource(InputDevice.SOURCE_MOUSE)) { in closeLocked() 690 private boolean isFromSource(int source) { in isFromSource() method in DragState 696 if (isFromSource(InputDevice.SOURCE_MOUSE)) { in overridePointerIconLocked()
|
H A D | SystemGesturesPointerEventListener.java | 255 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onPointerEvent()
|
/aosp14/frameworks/base/core/java/android/inputmethodservice/ |
H A D | IInputMethodSessionWrapper.java | 257 if (motionEvent.isFromSource(InputDevice.SOURCE_CLASS_TRACKBALL)) { in onInputEvent()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | MotionEventTest.java | 223 assertTrue(event.isFromSource(SOURCE_CLASS_POINTER)); in testUsesPointerSourceByDefault()
|
/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/ |
H A D | HandwritingModeController.java | 99 if (!event.isFromSource(SOURCE_STYLUS)) { in isStylusEvent()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | UiAutomationConnection.java | 155 || motionEvent.isFromSource(InputDevice.SOURCE_MOUSE); in injectInputEvent()
|
H A D | Instrumentation.java | 1223 || event.isFromSource(InputDevice.SOURCE_MOUSE); in syncInputTransactionsAndInjectEventIntoSelf() 1260 if (!event.isFromSource(InputDevice.SOURCE_CLASS_TRACKBALL)) { in sendTrackballEventSync()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/gesture/ |
H A D | GesturePointerEventListener.kt | 233 if (ev.isFromSource(InputDevice.SOURCE_MOUSE)) {
|