Home
last modified time | relevance | path

Searched refs:motionEvents (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DTapClassifier.java42 public Result isTap(List<MotionEvent> motionEvents, double falsePenalty) { in isTap() argument
43 if (motionEvents.isEmpty()) { in isTap()
46 float downX = motionEvents.get(0).getX(); in isTap()
47 float downY = motionEvents.get(0).getY(); in isTap()
49 for (MotionEvent event : motionEvents) { in isTap()
DZigZagClassifier.java99 List<MotionEvent> motionEvents = getRecentMotionEvents(); in calculateFalsingResult() local
108 if (motionEvents.size() < 3) { in calculateFalsingResult()
205 private List<Point> rotateMotionEvents(List<MotionEvent> motionEvents, double angle) { in rotateMotionEvents() argument
209 MotionEvent firstEvent = motionEvents.get(0); in rotateMotionEvents()
212 for (MotionEvent motionEvent : motionEvents) { in rotateMotionEvents()
220 MotionEvent lastEvent = motionEvents.get(motionEvents.size() - 1); in rotateMotionEvents()
DFalsingDataProvider.java101 List<MotionEvent> motionEvents = unpackMotionEvent(motionEvent); in onMotionEvent() local
102 FalsingClassifier.logVerbose("Unpacked into: " + motionEvents.size()); in onMotionEvent()
104 for (MotionEvent m : motionEvents) { in onMotionEvent()
120 if (!motionEvents.isEmpty() && !mRecentKeyEvents.isEmpty()) { in onMotionEvent()
124 mRecentMotionEvents.addAll(motionEvents); in onMotionEvent()
349 List<MotionEvent> motionEvents = new ArrayList<>();
369 motionEvents.add(MotionEvent.obtain(
389 motionEvents.add(MotionEvent.obtainNoHistory(motionEvent));
391 return motionEvents;
DDistanceClassifier.java124 List<MotionEvent> motionEvents = getRecentMotionEvents(); in calculateDistances() local
126 if (motionEvents.size() < 3) { in calculateDistances()
127 logDebug("Only " + motionEvents.size() + " motion events recorded."); in calculateDistances()
132 for (MotionEvent motionEvent : motionEvents) { in calculateDistances()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMotionEventInjector.java360 final List<MotionEvent> motionEvents = new ArrayList<>(); in getMotionEventsFromGestureSteps() local
369 motionEvents.clear(); in getMotionEventsFromGestureSteps()
370 return motionEvents; in getMotionEventsFromGestureSteps()
373 appendMoveEventIfNeeded(motionEvents, step.touchPoints, currentTouchPointSize, in getMotionEventsFromGestureSteps()
375 appendUpEvents(motionEvents, step.touchPoints, currentTouchPointSize, in getMotionEventsFromGestureSteps()
377 appendDownEvents(motionEvents, step.touchPoints, currentTouchPointSize, in getMotionEventsFromGestureSteps()
380 return motionEvents; in getMotionEventsFromGestureSteps()
394 private void appendMoveEventIfNeeded(List<MotionEvent> motionEvents, in appendMoveEventIfNeeded() argument
410 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, MotionEvent.ACTION_MOVE, in appendMoveEventIfNeeded()
415 private void appendUpEvents(List<MotionEvent> motionEvents, in appendUpEvents() argument
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDragDetectorTest.kt47 private val motionEvents = mutableListOf<MotionEvent>() constant in com.android.wm.shell.windowdecor.DragDetectorTest
66 motionEvents.forEach { in tearDown()
69 motionEvents.clear() in tearDown()
201 motionEvents.add(ev) in createMotionEvent()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityGestureEvent.java161 int gestureId, int displayId, @NonNull List<MotionEvent> motionEvents) { in AccessibilityGestureEvent() argument
164 mMotionEvents.addAll(motionEvents); in AccessibilityGestureEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DWindowMagnificationGestureHandlerTest.java307 final List<MotionEvent> motionEvents = in goFromStateIdleTo() local
310 for (MotionEvent downEvent: motionEvents) { in goFromStateIdleTo()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DTouchExplorerTest.java469 List<MotionEvent> motionEvents = gestureEvent.getMotionEvents(); in passInGesture() local
470 assertEquals(actions.size(), motionEvents.size()); in passInGesture()
472 assertEquals((int) actions.get(i), motionEvents.get(i).getAction()); in passInGesture()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...