/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/ |
D | FalsingDataProvider.java | 63 void onMotionEvent(MotionEvent motionEvent) { in onMotionEvent() argument 64 if (motionEvent.getActionMasked() == MotionEvent.ACTION_DOWN) { in onMotionEvent() 65 mFirstActualMotionEvent = motionEvent; in onMotionEvent() 68 List<MotionEvent> motionEvents = unpackMotionEvent(motionEvent); in onMotionEvent() 77 if (motionEvent.getActionMasked() == MotionEvent.ACTION_DOWN) { in onMotionEvent() 215 private List<MotionEvent> unpackMotionEvent(MotionEvent motionEvent) { in unpackMotionEvent() argument 218 int pointerCount = motionEvent.getPointerCount(); in unpackMotionEvent() 221 motionEvent.getPointerProperties(i, pointerProperties); in unpackMotionEvent() 228 int historySize = motionEvent.getHistorySize(); in unpackMotionEvent() 233 motionEvent.getHistoricalPointerCoords(j, i, pointerCoords); in unpackMotionEvent() [all …]
|
D | ProximityClassifier.java | 73 public void onTouchEvent(MotionEvent motionEvent) { in onTouchEvent() argument 74 int action = motionEvent.getActionMasked(); in onTouchEvent() 77 mGestureStartTimeNs = motionEvent.getEventTimeNano(); in onTouchEvent() 81 mPrevNearTimeNs = motionEvent.getEventTimeNano(); in onTouchEvent() 88 update(mNear, motionEvent.getEventTimeNano()); in onTouchEvent() 89 long duration = motionEvent.getEventTimeNano() - mGestureStartTimeNs; in onTouchEvent()
|
D | BrightLineFalsingManager.java | 221 motionEvent -> new XYDt( in isFalseTouch() 222 (int) motionEvent.getX(), in isFalseTouch() 223 (int) motionEvent.getY(), in isFalseTouch() 224 (int) (motionEvent.getEventTime() - motionEvent.getDownTime()))) in isFalseTouch() 236 public void onTouchEvent(MotionEvent motionEvent, int width, int height) { in onTouchEvent() argument 239 mDataProvider.onMotionEvent(motionEvent); in onTouchEvent() 240 mClassifiers.forEach((classifier) -> classifier.onTouchEvent(motionEvent)); in onTouchEvent()
|
D | DistanceClassifier.java | 123 for (MotionEvent motionEvent : motionEvents) { in calculateDistances() 124 velocityTracker.addMovement(motionEvent); in calculateDistances() 142 public void onTouchEvent(MotionEvent motionEvent) { in onTouchEvent() argument
|
D | ZigZagClassifier.java | 198 for (MotionEvent motionEvent : motionEvents) { in rotateMotionEvents() 199 float x = motionEvent.getX() - offsetX; in rotateMotionEvents() 200 float y = motionEvent.getY() - offsetY; in rotateMotionEvents()
|
/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumer_test.cpp | 208 MotionEvent* motionEvent = static_cast<MotionEvent*>(event); in PublishAndConsumeMotionEvent() local 210 EXPECT_EQ(eventId, motionEvent->getId()); in PublishAndConsumeMotionEvent() 211 EXPECT_EQ(deviceId, motionEvent->getDeviceId()); in PublishAndConsumeMotionEvent() 212 EXPECT_EQ(source, motionEvent->getSource()); in PublishAndConsumeMotionEvent() 213 EXPECT_EQ(displayId, motionEvent->getDisplayId()); in PublishAndConsumeMotionEvent() 214 EXPECT_EQ(hmac, motionEvent->getHmac()); in PublishAndConsumeMotionEvent() 215 EXPECT_EQ(action, motionEvent->getAction()); in PublishAndConsumeMotionEvent() 216 EXPECT_EQ(flags, motionEvent->getFlags()); in PublishAndConsumeMotionEvent() 217 EXPECT_EQ(edgeFlags, motionEvent->getEdgeFlags()); in PublishAndConsumeMotionEvent() 218 EXPECT_EQ(metaState, motionEvent->getMetaState()); in PublishAndConsumeMotionEvent() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskTapPointerEventListener.java | 62 public void onPointerEvent(MotionEvent motionEvent) { in onPointerEvent() argument 63 switch (motionEvent.getActionMasked()) { in onPointerEvent() 65 final int x = (int) motionEvent.getX(); in onPointerEvent() 66 final int y = (int) motionEvent.getY(); in onPointerEvent() 78 final int x = (int) motionEvent.getX(); in onPointerEvent() 79 final int y = (int) motionEvent.getY(); in onPointerEvent() 118 final int x = (int) motionEvent.getX(); in onPointerEvent() 119 final int y = (int) motionEvent.getY(); in onPointerEvent()
|
D | DragInputEventReceiver.java | 65 final MotionEvent motionEvent = (MotionEvent) event; in onInputEvent() local 66 final float newX = motionEvent.getRawX(); in onInputEvent() 67 final float newY = motionEvent.getRawY(); in onInputEvent() 69 (motionEvent.getButtonState() & BUTTON_STYLUS_PRIMARY) != 0; in onInputEvent() 78 switch (motionEvent.getAction()) { in onInputEvent()
|
D | PointerEventDispatcher.java | 43 final MotionEvent motionEvent = (MotionEvent) event; in onInputEvent() local 53 listeners[i].onPointerEvent(motionEvent); in onInputEvent()
|
D | TaskPositioner.java | 119 final MotionEvent motionEvent = (MotionEvent) event; in onInputEvent() local 128 final float newX = motionEvent.getRawX(); in onInputEvent() 129 final float newY = motionEvent.getRawY(); in onInputEvent() 131 switch (motionEvent.getAction()) { in onInputEvent()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | PointerCountClassifierTest.java | 69 MotionEvent motionEvent = MotionEvent.obtain( in testFail_multiPointer() local 73 mClassifier.onTouchEvent(motionEvent); in testFail_multiPointer() 74 motionEvent.recycle(); in testFail_multiPointer() 85 MotionEvent motionEvent = MotionEvent.obtain( in testPass_multiPointerDragDown() local 89 mClassifier.onTouchEvent(motionEvent); in testPass_multiPointerDragDown() 90 motionEvent.recycle(); in testPass_multiPointerDragDown()
|
D | ClassifierTest.java | 68 for (MotionEvent motionEvent : mMotionEvents) { in resetDataProvider() 69 motionEvent.recycle(); in resetDataProvider() 113 MotionEvent motionEvent = MotionEvent.obtain(1, eventTime, actionType, x, y, in appendMotionEvent() local 115 mMotionEvents.add(motionEvent); in appendMotionEvent() 117 mDataProvider.onMotionEvent(motionEvent); in appendMotionEvent() 119 return motionEvent; in appendMotionEvent()
|
D | ProximityClassifierTest.java | 125 MotionEvent motionEvent = MotionEvent.obtain(1, 1, MotionEvent.ACTION_DOWN, 0, 0, 0); in touchDown() local 126 mClassifier.onTouchEvent(motionEvent); in touchDown() 127 motionEvent.recycle(); in touchDown() 131 MotionEvent motionEvent = MotionEvent.obtain(1, 1 + duration, MotionEvent.ACTION_UP, 0, in touchUp() local 134 mClassifier.onTouchEvent(motionEvent); in touchUp() 136 motionEvent.recycle(); in touchUp()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputClassifierConverter_test.cpp | 71 common::V1_0::MotionEvent motionEvent = notifyMotionArgsToHalMotionEvent(motionArgs); in TEST() local 73 ASSERT_EQ(getMotionEventAxis(motionEvent.pointerCoords[0], common::V1_0::Axis::X), in TEST() 75 ASSERT_EQ(getMotionEventAxis(motionEvent.pointerCoords[0], common::V1_0::Axis::Y), in TEST() 77 ASSERT_EQ(getMotionEventAxis(motionEvent.pointerCoords[0], common::V1_0::Axis::SIZE), in TEST() 80 BitSet64::count(motionEvent.pointerCoords[0].bits)); in TEST()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | MotionEventTest.java | 63 MotionEvent motionEvent = MotionEvent.obtain(0, 0, ACTION_DOWN, in testObtainWithDisplayId() local 73 assertEquals(displayId, motionEvent.getDisplayId()); in testObtainWithDisplayId() 76 motionEvent.setDisplayId(displayId); in testObtainWithDisplayId() 77 assertEquals(displayId, motionEvent.getDisplayId()); in testObtainWithDisplayId() 78 motionEvent.recycle(); in testObtainWithDisplayId() 83 motionEvent = MotionEvent.obtain(0, 0, ACTION_DOWN, in testObtainWithDisplayId() 86 assertNull(motionEvent); in testObtainWithDisplayId()
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/ |
D | RichTextViewTest.java | 126 MotionEvent motionEvent = MotionEvent.obtain(123, 22, MotionEvent.ACTION_DOWN, 0, 0, 0); in onTouchEvent_clickOnLinks_shouldReturnTrue() local 127 doReturn(motionEvent).when(mockMovementMethod).getLastTouchEvent(); in onTouchEvent_clickOnLinks_shouldReturnTrue() 129 assertThat(textView.onTouchEvent(motionEvent)).isTrue(); in onTouchEvent_clickOnLinks_shouldReturnTrue() 144 MotionEvent motionEvent = MotionEvent.obtain(123, 22, MotionEvent.ACTION_DOWN, 0, 0, 0); in onTouchEvent_clickOutsideLinks_shouldReturnFalse() local 145 doReturn(motionEvent).when(mockMovementMethod).getLastTouchEvent(); in onTouchEvent_clickOutsideLinks_shouldReturnFalse() 147 assertThat(textView.onTouchEvent(motionEvent)).isFalse(); in onTouchEvent_clickOutsideLinks_shouldReturnFalse()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | MediaCarouselScrollHandler.kt | 173 override fun onTouchEvent(motionEvent: MotionEvent?) = onTouch(motionEvent!!) in onTouchEvent() 256 private fun onTouch(motionEvent: MotionEvent): Boolean { in onTouch() 257 val isUp = motionEvent.action == MotionEvent.ACTION_UP in onTouch() 261 if (gestureDetector.onTouchEvent(motionEvent)) { in onTouch() 273 if (isUp || motionEvent.action == MotionEvent.ACTION_CANCEL) { in onTouch() 325 private fun onInterceptTouch(motionEvent: MotionEvent): Boolean { in onInterceptTouch() 326 return gestureDetector.onTouchEvent(motionEvent) in onInterceptTouch()
|
/frameworks/base/core/java/android/view/ |
D | InputEventConsistencyVerifier.java | 180 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local 181 if (motionEvent.isTouchEvent()) { in onInputEvent() 182 onTouchEvent(motionEvent, nestingLevel); in onInputEvent() 183 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onInputEvent() 184 onTrackballEvent(motionEvent, nestingLevel); in onInputEvent() 186 onGenericMotionEvent(motionEvent, nestingLevel); in onInputEvent() 606 final MotionEvent motionEvent = (MotionEvent)event; in onUnhandledEvent() local 607 if (motionEvent.isTouchEvent()) { in onUnhandledEvent() 609 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onUnhandledEvent()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/ |
D | MockWindow.java | 187 public boolean superDispatchTouchEvent(MotionEvent motionEvent) { in superDispatchTouchEvent() argument 192 public boolean superDispatchTrackballEvent(MotionEvent motionEvent) { in superDispatchTrackballEvent() argument 197 public boolean superDispatchGenericMotionEvent(MotionEvent motionEvent) { in superDispatchGenericMotionEvent() argument
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | IInputMethodSessionWrapper.java | 247 MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local 248 if (motionEvent.isFromSource(InputDevice.SOURCE_CLASS_TRACKBALL)) { in onInputEvent() 249 mInputMethodSession.dispatchTrackballEvent(seq, motionEvent, this); in onInputEvent() 251 mInputMethodSession.dispatchGenericMotionEvent(seq, motionEvent, this); in onInputEvent()
|
D | MultiClientInputMethodClientCallbackAdaptor.java | 172 final MotionEvent motionEvent = (MotionEvent) event; in onInputEvent() local 173 if (motionEvent.isFromSource(InputDevice.SOURCE_CLASS_TRACKBALL)) { in onInputEvent() 174 handled = mClientCallback.onTrackballEvent(motionEvent); in onInputEvent() 176 handled = mClientCallback.onGenericMotionEvent(motionEvent); in onInputEvent()
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | InputDispatcher.cpp | 3335 const MotionEvent* motionEvent = static_cast<const MotionEvent*>(event); in injectInputEvent() local 3336 int32_t action = motionEvent->getAction(); in injectInputEvent() 3337 size_t pointerCount = motionEvent->getPointerCount(); in injectInputEvent() 3338 const PointerProperties* pointerProperties = motionEvent->getPointerProperties(); in injectInputEvent() 3339 int32_t actionButton = motionEvent->getActionButton(); in injectInputEvent() 3340 int32_t displayId = motionEvent->getDisplayId(); in injectInputEvent() 3346 nsecs_t eventTime = motionEvent->getEventTime(); in injectInputEvent() 3356 const nsecs_t* sampleEventTimes = motionEvent->getSampleEventTimes(); in injectInputEvent() 3357 const PointerCoords* samplePointerCoords = motionEvent->getSamplePointerCoords(); in injectInputEvent() 3359 new MotionEntry(motionEvent->getId(), *sampleEventTimes, VIRTUAL_KEYBOARD_ID, in injectInputEvent() [all …]
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | NavigationEdgeBackPlugin.java | 50 void onMotionEvent(MotionEvent motionEvent); in onMotionEvent() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/analytics/ |
D | SensorLoggerSession.java | 70 public void addMotionEvent(MotionEvent motionEvent) { in addMotionEvent() argument 71 TouchEvent event = motionEventToProto(motionEvent); in addMotionEvent()
|
/frameworks/base/core/java/android/widget/ |
D | TimePickerClockDelegate.java | 1081 public boolean onTouch(View view, MotionEvent motionEvent) { 1082 final int actionMasked = motionEvent.getActionMasked(); 1086 (int) motionEvent.getX(), (int) motionEvent.getY()); 1099 motionEvent.offsetLocation(offsetX, offsetY); 1100 final boolean handled = child.dispatchTouchEvent(motionEvent); 1101 motionEvent.offsetLocation(-offsetX, -offsetY);
|