Home
last modified time | relevance | path

Searched refs:onTouchEvent (Results 1 – 25 of 366) sorted by relevance

12345678910>>...15

/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
H A DDistanceClassifierTest.java62 mClassifier.onTouchEvent(appendDownEvent(1, 1)); in testPass_fling()
65 mClassifier.onTouchEvent(appendMoveEvent(1, 40)); in testPass_fling()
68 mClassifier.onTouchEvent(appendUpEvent(1, 80)); in testPass_fling()
74 mClassifier.onTouchEvent(appendDownEvent(1, 1)); in testFail_flingShort()
77 mClassifier.onTouchEvent(appendMoveEvent(1, 2)); in testFail_flingShort()
80 mClassifier.onTouchEvent(appendUpEvent(1, 10)); in testFail_flingShort()
88 mClassifier.onTouchEvent(appendDownEvent(1, 1, 1)); in testFail_flingSlowly()
91 mClassifier.onTouchEvent(appendMoveEvent(1, 15, 2)); in testFail_flingSlowly()
94 mClassifier.onTouchEvent(appendMoveEvent(1, 16, 3)); in testFail_flingSlowly()
103 mClassifier.onTouchEvent(appendDownEvent(1, 1)); in testPass_BrightnessSliderAlwaysPasses()
[all …]
H A DFalsingCollectorImplTest.java174 mFalsingCollector.onTouchEvent(down); in testPassThroughGesture()
178 mFalsingCollector.onTouchEvent(up); in testPassThroughGesture()
192 mFalsingCollector.onTouchEvent(down); in testAvoidGesture()
197 mFalsingCollector.onTouchEvent(up); in testAvoidGesture()
209 mFalsingCollector.onTouchEvent(down); in testAvoidUnlocked()
213 mFalsingCollector.onTouchEvent(up); in testAvoidUnlocked()
225 mFalsingCollector.onTouchEvent(down); in testAvoidDozingNotPulsing()
229 mFalsingCollector.onTouchEvent(up); in testAvoidDozingNotPulsing()
242 mFalsingCollector.onTouchEvent(down); in testAvoidDozingButPulsing()
246 mFalsingCollector.onTouchEvent(up); in testAvoidDozingButPulsing()
H A DPointerCountClassifierTest.java61 mClassifier.onTouchEvent(appendDownEvent(1, 1)); in testPass_singlePointer()
77 mClassifier.onTouchEvent(motionEvent); in testFail_multiPointer()
94 mClassifier.onTouchEvent(motionEvent); in testPass_multiPointerDragDown()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DNotificationTapHelperTest.java103 mNotificationTapHelper.onTouchEvent(evDownA); in testDoubleTap_success()
104 mNotificationTapHelper.onTouchEvent(evUpA); in testDoubleTap_success()
108 mNotificationTapHelper.onTouchEvent(evDownB); in testDoubleTap_success()
109 mNotificationTapHelper.onTouchEvent(evUpB); in testDoubleTap_success()
136 mNotificationTapHelper.onTouchEvent(evUpA); in testSingleTap_timeout()
164 mNotificationTapHelper.onTouchEvent(evUpA); in testSingleTap_falsed()
205 mNotificationTapHelper.onTouchEvent(evUpA); in testDoubleTap_falsed()
209 mNotificationTapHelper.onTouchEvent(evUpB); in testDoubleTap_falsed()
239 mNotificationTapHelper.onTouchEvent(evUpA); in testSlideBack()
307 mNotificationTapHelper.onTouchEvent(evUpA); in testMoreThanTwoTaps()
[all …]
H A DPhoneStatusBarViewTest.kt56 view.onTouchEvent(event)
80 assertThat(view.onTouchEvent(event)).isTrue()
91 assertThat(view.onTouchEvent(event)).isFalse()
96 view.onTouchEvent(MotionEvent.obtain(0L, 0L, MotionEvent.ACTION_DOWN, 0f, 0f, 0))
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/buttons/
H A DNearestTouchFrameTest.java90 mNearestTouchFrame.onTouchEvent(ev); in testNoActionOnLargeDevices()
107 mNearestTouchFrame.onTouchEvent(ev); in testInvisibleViews()
127 mNearestTouchFrame.onTouchEvent(ev); in testNearestView_DetachedViewsExcluded()
128 verify(right).onTouchEvent(eq(ev)); in testNearestView_DetachedViewsExcluded()
143 mNearestTouchFrame.onTouchEvent(ev); in testHorizontalSelection_Left()
144 verify(left).onTouchEvent(eq(ev)); in testHorizontalSelection_Left()
159 mNearestTouchFrame.onTouchEvent(ev); in testHorizontalSelection_Right()
160 verify(right).onTouchEvent(eq(ev)); in testHorizontalSelection_Right()
175 mNearestTouchFrame.onTouchEvent(ev); in testVerticalSelection_Top()
176 verify(top).onTouchEvent(eq(ev)); in testVerticalSelection_Top()
[all …]
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
H A DPipTouchStateTest.java69 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting()
70 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting()
81 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapTimeout_timeoutCallbackCalled()
82 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, in testDoubleTapTimeout_timeoutCallbackCalled()
98 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapDrag_doubleTapCanceled()
99 mTouchState.onTouchEvent(createMotionEvent(ACTION_MOVE, currentTime + 10, 500, 500)); in testDoubleTapDrag_doubleTapCanceled()
100 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, currentTime + 20, 500, 500)); in testDoubleTapDrag_doubleTapCanceled()
111 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTap_doubleTapRegistered()
112 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, currentTime + 10, 0, 0)); in testDoubleTap_doubleTapRegistered()
113 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, in testDoubleTap_doubleTapRegistered()
[all …]
/aosp12/packages/apps/Car/libs/car-qc-lib/tests/unit/src/com/android/car/qc/view/
H A DQCSeekBarViewTest.java55 assertThat(mView.onTouchEvent(mMotionEvent)).isTrue(); in enabled_standardTouchEvent()
62 assertThat(mView.onTouchEvent(mMotionEvent)).isFalse(); in disabled_standardTouchEvent()
70 assertThat(mView.onTouchEvent(mMotionEvent)).isTrue(); in clickableWhileDisabled_customTouchEvent()
82 assertThat(mView.onTouchEvent(mMotionEvent)).isTrue(); in clickableWhileDisabled_actionDown_doesNotTriggerDisabledClickListener()
94 assertThat(mView.onTouchEvent(mMotionEvent)).isTrue(); in clickableWhileDisabled_actionUp_triggersDisabledClickListener()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGestureRecognizer.java57 public void onTouchEvent(MotionEvent event) { in onTouchEvent() method in GestureRecognizer
58 mGestureDetector.onTouchEvent(event); in onTouchEvent()
59 mScaleDetector.onTouchEvent(event); in onTouchEvent()
60 mDownUpDetector.onTouchEvent(event); in onTouchEvent()
71 mScaleDetector.onTouchEvent(cancelEvent); in cancelScale()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
H A DMediaScrollView.kt88 override fun onTouchEvent(ev: MotionEvent?): Boolean {
91 touch = it.onTouchEvent(ev)
93 return super.onTouchEvent(ev) || touch
128 super.onTouchEvent(event)
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/
H A DEditorCursorDragTest.java297 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event1)); in testEditor_onTouchEvent_quickTapAfterDrag()
303 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event2)); in testEditor_onTouchEvent_quickTapAfterDrag()
309 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event3)); in testEditor_onTouchEvent_quickTapAfterDrag()
315 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event4)); in testEditor_onTouchEvent_quickTapAfterDrag()
322 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event5)); in testEditor_onTouchEvent_quickTapAfterDrag()
328 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event6)); in testEditor_onTouchEvent_quickTapAfterDrag()
335 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event7)); in testEditor_onTouchEvent_quickTapAfterDrag()
352 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event1)); in testEditor_onTouchEvent_mouseDrag()
358 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event2)); in testEditor_onTouchEvent_mouseDrag()
364 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event3)); in testEditor_onTouchEvent_mouseDrag()
[all …]
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
H A DSearchAndRecommendationsView.java59 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() method in SearchAndRecommendationsView
60 return mController.onTouchEvent(event) || super.onTouchEvent(event); in onTouchEvent()
/aosp12/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/widgets/slider/
H A DSliderSeekBar.java50 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() method in SliderSeekBar
57 super.onTouchEvent(event); in onTouchEvent()
74 super.onTouchEvent(event); in onTouchEvent()
/aosp12/packages/apps/Dialer/java/com/android/incallui/answer/impl/
H A DAffordanceHolderLayout.java165 return affordanceHelper.onTouchEvent(event) || super.onInterceptTouchEvent(event); in onInterceptTouchEvent()
169 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() method in AffordanceHolderLayout
170 return affordanceHelper.onTouchEvent(event) || super.onTouchEvent(event); in onTouchEvent()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
H A DRefreshHelper.java60 private void onTouchEvent(RecyclerView rv, MotionEvent e) { in onTouchEvent() method in RefreshHelper
72 public void onTouchEvent(RecyclerView rv, MotionEvent e) { in attach()
73 RefreshHelper.this.onTouchEvent(rv, e); in attach()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
H A DRenderOverlay.java34 public boolean onTouchEvent(MotionEvent evt); in onTouchEvent() method
135 public boolean onTouchEvent(MotionEvent evt) { in onTouchEvent() method in RenderOverlay.RenderView
137 return mTouchTarget.onTouchEvent(evt); in onTouchEvent()
142 res |= client.onTouchEvent(evt); in onTouchEvent()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
H A DSwapButton.java54 public boolean onTouchEvent(MotionEvent me) { in onTouchEvent() method in SwapButton
55 if (!mDetector.onTouchEvent(me)) { in onTouchEvent()
56 return super.onTouchEvent(me); in onTouchEvent()
/aosp12/packages/apps/Camera2/src/com/android/camera/ui/
H A DMainActivityLayout.java86 onTouchEvent(mDown); in onInterceptTouchEvent()
110 onTouchEvent(mDown); in onInterceptTouchEvent()
116 onTouchEvent(mDown); in onInterceptTouchEvent()
125 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() method in MainActivityLayout
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSScrollLayout.java72 mSwipeDetector.onTouchEvent(ev); in onInterceptTouchEvent()
77 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() method in QSScrollLayout
81 mSwipeDetector.onTouchEvent(ev); in onTouchEvent()
82 return super.onTouchEvent(ev); in onTouchEvent()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DCaptionsToggleImageButton.java56 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() method in CaptionsToggleImageButton
57 if (mGestureDetector != null) mGestureDetector.onTouchEvent(event); in onTouchEvent()
58 return super.onTouchEvent(event); in onTouchEvent()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/touch/
H A DWorkspaceTouchListener.java83 mGestureDetector.onTouchEvent(ev); in onTouch()
107 mWorkspace.onTouchEvent(ev); in onTouch()
115 mWorkspace.onTouchEvent(ev); in onTouch()
126 mWorkspace.onTouchEvent(ev); in onTouch()
/aosp12/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
H A DHumanInteractionClassifier.java71 public void onTouchEvent(MotionEvent event) { in onTouchEvent() method in HumanInteractionClassifier
87 c.onTouchEvent(event); in addTouchEvent()
91 c.onTouchEvent(event); in addTouchEvent()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNotificationTapHelper.java55 boolean onTouchEvent(MotionEvent event) { in onTouchEvent() method in NotificationTapHelper
56 return onTouchEvent(event, Integer.MAX_VALUE); in onTouchEvent()
60 public boolean onTouchEvent(MotionEvent event, int maxTouchableHeight) { in onTouchEvent() method in NotificationTapHelper
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DInputView.java95 public boolean onTouchEvent(final MotionEvent me) { in onTouchEvent() method in InputView
97 return super.onTouchEvent(me); in onTouchEvent()
105 return mActiveForwarder.onTouchEvent(x, y, me); in onTouchEvent()
175 public boolean onTouchEvent(final int x, final int y, final MotionEvent me) { in onTouchEvent() method in InputView.MotionEventForwarder
/aosp12/packages/apps/Dialer/java/com/android/dialer/widget/
H A DLockableViewPager.java47 public boolean onTouchEvent(MotionEvent motionEvent) { in onTouchEvent() method in LockableViewPager
48 return !swipingLocked && super.onTouchEvent(motionEvent); in onTouchEvent()

12345678910>>...15