Home
last modified time | relevance | path

Searched refs:isFromSource (Results 1 – 25 of 40) sorted by relevance

12

/aosp14/frameworks/base/core/java/android/view/
H A DInputEventAssigner.java67 if (motionEvent.isFromSource(SOURCE_TOUCHSCREEN)) { in processEvent()
H A DInputEvent.java95 public boolean isFromSource(int source) { in isFromSource() method in InputEvent
H A DMotionEvent.java2350 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 DInputDevice.java1377 public boolean isFromSource(int source) { in isFromSource() method in InputDevice.MotionRange
H A DViewRootImpl.java6519 && !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 DButton.java178 && event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onResolvePointerIcon()
H A DImageButton.java104 && event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onResolvePointerIcon()
H A DEditorTouchState.java134 final boolean isMouse = event.isFromSource(InputDevice.SOURCE_MOUSE); in update()
H A DHorizontalScrollView.java866 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 DScrollView.java946 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 DEditor.java1752 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 DSpinner.java940 && event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onResolvePointerIcon()
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAccessibilityInputFilter.java311 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 DAutoclickController.java80 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onMotionEvent()
H A DMotionEventInjector.java129 if ((event.isFromSource(InputDevice.SOURCE_MOUSE) in onMotionEvent()
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
H A DMagnificationGestureHandler.java131 if ((!mDetectTripleTap && !mDetectShortcutTrigger) || !event.isFromSource( in shouldDispatchTransformedEvent()
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DFrontBufferedLayer.kt93 if (!event.isFromSource(InputDevice.SOURCE_STYLUS)) {
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DDragState.java258 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 DSystemGesturesPointerEventListener.java255 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onPointerEvent()
/aosp14/frameworks/base/core/java/android/inputmethodservice/
H A DIInputMethodSessionWrapper.java257 if (motionEvent.isFromSource(InputDevice.SOURCE_CLASS_TRACKBALL)) { in onInputEvent()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DMotionEventTest.java223 assertTrue(event.isFromSource(SOURCE_CLASS_POINTER)); in testUsesPointerSourceByDefault()
/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/
H A DHandwritingModeController.java99 if (!event.isFromSource(SOURCE_STYLUS)) { in isStylusEvent()
/aosp14/frameworks/base/core/java/android/app/
H A DUiAutomationConnection.java155 || motionEvent.isFromSource(InputDevice.SOURCE_MOUSE); in injectInputEvent()
H A DInstrumentation.java1223 || 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 DGesturePointerEventListener.kt233 if (ev.isFromSource(InputDevice.SOURCE_MOUSE)) {

12