Home
last modified time | relevance | path

Searched refs:getActionMasked (Results 1 – 25 of 146) sorted by relevance

123456

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DFalsingDataProviderTest.java87 assertThat(motionEventList.get(0).getActionMasked()).isEqualTo(MotionEvent.ACTION_DOWN); in test_trackMotionEvents_dropUpEvent()
88 assertThat(motionEventList.get(1).getActionMasked()).isEqualTo(MotionEvent.ACTION_MOVE); in test_trackMotionEvents_dropUpEvent()
89 assertThat(motionEventList.get(2).getActionMasked()).isEqualTo(MotionEvent.ACTION_MOVE); in test_trackMotionEvents_dropUpEvent()
109 assertThat(motionEventList.get(0).getActionMasked()).isEqualTo(MotionEvent.ACTION_DOWN); in test_trackMotionEvents_keepUpEvent()
110 assertThat(motionEventList.get(1).getActionMasked()).isEqualTo(MotionEvent.ACTION_MOVE); in test_trackMotionEvents_keepUpEvent()
111 assertThat(motionEventList.get(2).getActionMasked()).isEqualTo(MotionEvent.ACTION_UP); in test_trackMotionEvents_keepUpEvent()
130 assertThat(motionEventList.get(0).getActionMasked()).isEqualTo(MotionEvent.ACTION_DOWN); in test_trackRecentMotionEvents()
131 assertThat(motionEventList.get(1).getActionMasked()).isEqualTo(MotionEvent.ACTION_MOVE); in test_trackRecentMotionEvents()
143 assertThat(motionEventList.get(0).getActionMasked()).isEqualTo(MotionEvent.ACTION_MOVE); in test_trackRecentMotionEvents()
144 assertThat(motionEventList.get(1).getActionMasked()).isEqualTo(MotionEvent.ACTION_UP); in test_trackRecentMotionEvents()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
DMotionEventMatcher.java49 event.getActionMasked(), in MotionEventMatcher()
63 && (event.getActionMasked() == mActionMasked) in matchesSafely()
76 + MotionEvent.actionToString(event.getActionMasked()) in matchesSafely()
DTouchEventGenerator.java158 if (originalEvent.getActionMasked() == ACTION_UP) { in movePointer()
162 if (originalEvent.getActionMasked() == ACTION_POINTER_UP) { in movePointer()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSScrollLayout.java97 if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) { in shouldIntercept()
99 } else if (ev.getActionMasked() == MotionEvent.ACTION_MOVE) { in shouldIntercept()
108 } else if (ev.getActionMasked() == MotionEvent.ACTION_CANCEL in shouldIntercept()
109 || ev.getActionMasked() == MotionEvent.ACTION_UP) { in shouldIntercept()
DNonInterceptingScrollView.java47 int action = ev.getActionMasked(); in onTouchEvent()
72 int action = ev.getActionMasked(); in onInterceptTouchEvent()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityInputFilter.java219 if (event.getActionMasked() == MotionEvent.ACTION_CANCEL in cancelMotion()
220 || event.getActionMasked() == MotionEvent.ACTION_HOVER_EXIT in cancelMotion()
221 || event.getActionMasked() == MotionEvent.ACTION_UP) { in cancelMotion()
225 if (event.getActionMasked() == MotionEvent.ACTION_HOVER_ENTER in cancelMotion()
226 || event.getActionMasked() == MotionEvent.ACTION_HOVER_MOVE) { in cancelMotion()
233 if (event.getActionMasked() == MotionEvent.ACTION_POINTER_UP) { in cancelMotion()
242 if (event.getActionMasked() == MotionEvent.ACTION_POINTER_UP) { in cancelMotion()
447 final int actionMasked = motion.getActionMasked(); in shouldProcessMultiDeviceEvent()
497 if (!state.shouldProcessScroll() && event.getActionMasked() == ACTION_SCROLL) { in processMotionEvent()
1034 int action = event.getActionMasked(); in shouldProcessMotionEvent()
[all …]
DMotionEventInjector.java130 && event.getActionMasked() == MotionEvent.ACTION_HOVER_MOVE) in onMotionEvent()
310 if (event.getActionMasked() == MotionEvent.ACTION_DOWN) { in sendMotionEventToNext()
313 if ((event.getActionMasked() == MotionEvent.ACTION_UP) in sendMotionEventToNext()
314 || (event.getActionMasked() == MotionEvent.ACTION_CANCEL)) { in sendMotionEventToNext()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DHeadsUpTouchHelper.java68 if (!mTouchingHeadsUpView && event.getActionMasked() != MotionEvent.ACTION_DOWN) { in onInterceptTouchEvent()
78 switch (event.getActionMasked()) { in onInterceptTouchEvent()
168 switch (event.getActionMasked()) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DNotificationShadeWindowViewController.java283 if (event.getActionMasked() == MotionEvent.ACTION_DOWN) { in handleExternalTouch()
318 boolean isDown = ev.getActionMasked() == MotionEvent.ACTION_DOWN; in setupExpandedStatusBar()
319 boolean isUp = ev.getActionMasked() == MotionEvent.ACTION_UP; in setupExpandedStatusBar()
320 boolean isCancel = ev.getActionMasked() == MotionEvent.ACTION_CANCEL; in setupExpandedStatusBar()
340 } else if (ev.getActionMasked() == MotionEvent.ACTION_UP in setupExpandedStatusBar()
341 || ev.getActionMasked() == MotionEvent.ACTION_CANCEL) { in setupExpandedStatusBar()
391 if (ev.getActionMasked() == MotionEvent.ACTION_POINTER_DOWN) { in setupExpandedStatusBar()
585 final int action = ev.getActionMasked(); in setupExpandedStatusBar()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DTouchState.java125 if (isClear() && event.getActionMasked() == MotionEvent.ACTION_DOWN) { in onReceivedMotionEvent()
146 final int action = event.getActionMasked(); in onInjectedMotionEvent()
441 final int action = event.getActionMasked(); in onMotionEvent()
528 if (event.getActionMasked() == MotionEvent.ACTION_DOWN) { in handleReceivedPointerDown()
DTouchExplorer.java296 if (event.getActionMasked() == ACTION_CANCEL) { in onMotionEvent()
502 endGestureDetection(event.getActionMasked() == ACTION_UP); in onGestureCancelled()
506 if (event.getActionMasked() == ACTION_MOVE) { in onGestureCancelled()
541 switch (event.getActionMasked()) { in handleMotionEventStateClear()
625 switch (event.getActionMasked()) { in handleMotionEventStateTouchInteracting()
657 switch (event.getActionMasked()) { in handleMotionEventStateTouchExploring()
969 switch (event.getActionMasked()) { in handleMotionEventStateDragging()
1071 switch (event.getActionMasked()) { in handleMotionEventStateDelegating()
1119 if (event != null && event.getActionMasked() != ACTION_HOVER_EXIT) { in sendHoverExitAndTouchExplorationGestureEndIfNeeded()
1144 if (event != null && event.getActionMasked() == ACTION_HOVER_EXIT) { in sendTouchExplorationGestureStartAndHoverEnterIfNeeded()
[all …]
/frameworks/base/core/java/android/view/
DTouchDelegate.java119 switch (event.getActionMasked()) { in onTouchEvent()
181 switch (event.getActionMasked()) { in onTouchExplorationHoverEvent()
DInputEventAssigner.java68 final int action = motionEvent.getActionMasked(); in processEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingDataProvider.java110 if (motionEvent.getActionMasked() == MotionEvent.ACTION_DOWN) { in onMotionEvent()
144 int action = mRecentMotionEvents.get(mRecentMotionEvents.size() - 1).getActionMasked(); in onMotionEventComplete()
316 boolean isCompletingGesture = event.getActionMasked() == MotionEvent.ACTION_UP in shouldDropEvent()
317 && lastEvent.getActionMasked() == MotionEvent.ACTION_MOVE; in shouldDropEvent()
DPointerCountClassifier.java48 if (motionEvent.getActionMasked() == MotionEvent.ACTION_DOWN) { in onTouchEvent()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DWindowMagnificationGestureHandler.java341 int action = event.getActionMasked(); in onMotionEvent()
373 switch (event.getActionMasked()) { in onMotionEvent()
402 final int action = event.getActionMasked(); in onMotionEvent()
572 if (motionEvent != null && (motionEvent.getActionMasked() == ACTION_UP in changeToDelegateStateIfNeed()
573 || motionEvent.getActionMasked() == ACTION_CANCEL)) { in changeToDelegateStateIfNeed()
DFullScreenMagnificationGestureHandler.java334 if (event.getActionMasked() == ACTION_DOWN) { in onMotionEventInternal()
530 int action = event.getActionMasked(); in onMotionEvent()
689 final int action = event.getActionMasked(); in onMotionEvent()
764 final int action = event.getActionMasked(); in onMotionEvent()
873 switch (event.getActionMasked()) { in onMotionEvent()
914 switch (event.getActionMasked()) { in onMotionEvent()
1094 if (event.getActionMasked() == ACTION_UP && mIsTwoFingerCountReached) { in isMultiFingerMultiTapTriggered()
1206 switch (event.getActionMasked()) { in onMotionEvent()
1424 if (event.getActionMasked() == ACTION_DOWN) { in cacheDelayedMotionEvent()
1427 } else if (event.getActionMasked() == ACTION_UP) { in cacheDelayedMotionEvent()
[all …]
/frameworks/native/services/inputflinger/tests/fuzzers/
DFuzzedInputStream.h102 if (MotionEvent::getActionMasked(action) == AMOTION_EVENT_ACTION_POINTER_UP) { in getFuzzedFlags()
111 switch (MotionEvent::getActionMasked(action)) { in getFuzzedPointerCount()
/frameworks/base/core/java/android/widget/
DForwardingListener.java166 final int actionMasked = srcEvent.getActionMasked(); in onTouchObserved()
271 final int action = srcEvent.getActionMasked(); in onTouchForwarded()
DDropDownListView.java121 final int action = ev.getActionMasked(); in onHoverEvent()
177 final int actionMasked = event.getActionMasked(); in onForwardedEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java367 finishExpanding(ev.getActionMasked() == MotionEvent.ACTION_CANCEL /* forceAbort */, in onInterceptTouchEvent()
379 int action = event.getActionMasked(); in trackVelocity()
401 if (mVelocityTracker != null && (event.getActionMasked() == MotionEvent.ACTION_CANCEL in maybeRecycleVelocityTracker()
402 || event.getActionMasked() == MotionEvent.ACTION_UP)) { in maybeRecycleVelocityTracker()
437 final int action = ev.getActionMasked(); in onTouchEvent()
528 finishExpanding(!isEnabled() || ev.getActionMasked() == MotionEvent.ACTION_CANCEL, in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DDraggableConstraintLayout.java137 if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) { in onInterceptTouchEvent()
235 if (event.getActionMasked() == MotionEvent.ACTION_DOWN) { in onTouch()
239 } else if (event.getActionMasked() == MotionEvent.ACTION_UP) { in onTouch()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DLiftToActivateListener.java46 switch (event.getActionMasked()) { in onHover()
DKeyguardPinBasedInputViewController.java61 if (event.getActionMasked() == MotionEvent.ACTION_DOWN) {
98 if (event.getActionMasked() == MotionEvent.ACTION_DOWN) { in onViewAttached()
/frameworks/base/core/java/android/service/autofill/
DInlineSuggestionRoot.java57 switch (event.getActionMasked()) { in dispatchTouchEvent()

123456