Home
last modified time | relevance | path

Searched refs:mMotionEvents (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DSingleTapClassifierTest.java44 private final List<MotionEvent> mMotionEvents = new ArrayList<>(); field in SingleTapClassifierTest
59 for (MotionEvent motionEvent : mMotionEvents) { in tearDown()
63 mMotionEvents.clear(); in tearDown()
75 mMotionEvents.clear(); in testSimpleTap_XSlop()
91 mMotionEvents.clear(); in testSimpleTap_YSlop()
107 mMotionEvents.clear(); in testFalseTap_XSlop()
123 mMotionEvents.clear(); in testFalseTap_YSlop()
145 assertThat(mClassifier.isTap(mMotionEvents, 0.5).isFalse()).isFalse(); in testDirectlySuppliedMotionEvents()
150 assertThat(mClassifier.isTap(mMotionEvents, 0.5).isFalse()).isTrue(); in testDirectlySuppliedMotionEvents()
156 mMotionEvents.add(ev); in addMotionEvent()
[all …]
DClassifierTest.java40 private final List<MotionEvent> mMotionEvents = new ArrayList<>(); field in ClassifierTest
77 for (MotionEvent motionEvent : mMotionEvents) { in resetDataProvider()
81 mMotionEvents.clear(); in resetDataProvider()
117 long eventTime = mMotionEvents.isEmpty() ? 1 : mMotionEvents.get( in appendMotionEvent()
118 mMotionEvents.size() - 1).getEventTime() + 1; in appendMotionEvent()
128 mMotionEvents.add(motionEvent); in appendMotionEvent()
150 long eventTime = mMotionEvents.isEmpty() ? 1 : mMotionEvents.get( in appendTrackpadMotionEvent()
151 mMotionEvents.size() - 1).getEventTime() + 1; in appendTrackpadMotionEvent()
DDoubleTapClassifierTest.java47 private List<MotionEvent> mMotionEvents = new ArrayList<>(); field in DoubleTapClassifierTest
71 for (MotionEvent motionEvent : mMotionEvents) { in tearDown()
75 mMotionEvents.clear(); in tearDown()
176 mMotionEvents.add(ev); in addMotionEvent()
177 when(mDataProvider.getRecentMotionEvents()).thenReturn(mMotionEvents); in addMotionEvent()
181 mPriorMotionEvents = mMotionEvents; in archiveMotionEvents()
183 mMotionEvents = new ArrayList<>(); in archiveMotionEvents()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DMotionEventHelper.java28 private final List<MotionEvent> mMotionEvents = new ArrayList<>(); field in MotionEventHelper
31 for (MotionEvent event:mMotionEvents) { in recycleEvents()
35 mMotionEvents.clear(); in recycleEvents()
43 mMotionEvents.add(event); in obtainMotionEvent()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityGestureEvent.java151 private List<MotionEvent> mMotionEvents = new ArrayList<>(); field in AccessibilityGestureEvent
164 mMotionEvents.addAll(motionEvents); in AccessibilityGestureEvent()
177 mMotionEvents = slice.getList(); in AccessibilityGestureEvent()
206 return mMotionEvents; in getMotionEvents()
218 mMotionEvents.stream().map(MotionEvent::copy).toList()); in copyForAsync()
228 mMotionEvents.forEach(MotionEvent::recycle); in recycle()
229 mMotionEvents.clear(); in recycle()
241 for (int i = 0; i < mMotionEvents.size(); ++i) { in toString()
242 String action = MotionEvent.actionToString(mMotionEvents.get(i).getActionMasked()); in toString()
244 if (i < (mMotionEvents.size() - 1)) { in toString()
[all …]
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumerNoResampling_test.cpp346 BlockingQueue<std::unique_ptr<MotionEvent>> mMotionEvents; member in android::InputPublisherAndConsumerNoResamplingTest
358 mMotionEvents.push(std::move(event)); in onMotionEvent()
545 mMotionEvents.popWithTimeout(NO_EVENT_TIMEOUT); in publishAndConsumeBatchedMotionMove()
564 std::optional<std::unique_ptr<MotionEvent>> optMotion = mMotionEvents.popWithTimeout(TIMEOUT); in publishAndConsumeBatchedMotionMove()
579 std::optional<std::unique_ptr<MotionEvent>> optMotion = mMotionEvents.popWithTimeout(TIMEOUT); in publishAndConsumeMotionEvent()
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorCursorDragTest.java82 private Set<MotionEvent> mMotionEvents = new ArraySet<>(); field in EditorCursorDragTest
92 for (MotionEvent event : mMotionEvents) { in after()
95 mMotionEvents.clear(); in after()
696 mMotionEvents.add(event); in obtainTouchEvent()
714 mMotionEvents.add(event); in obtainTouchEventWithPointerId()