/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
D | GestureMatcher.java | 94 @State int state, MotionEvent event, MotionEvent rawEvent, int policyFlags) { in setState() argument 98 mListener.onStateChanged(mGestureId, mState, event, rawEvent, policyFlags); in setState() 103 protected final void startGesture(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in startGesture() argument 104 setState(STATE_GESTURE_STARTED, event, rawEvent, policyFlags); in startGesture() 108 protected final void cancelGesture(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in cancelGesture() argument 109 setState(STATE_GESTURE_CANCELED, event, rawEvent, policyFlags); in cancelGesture() 113 protected final void completeGesture(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in completeGesture() argument 114 setState(STATE_GESTURE_COMPLETED, event, rawEvent, policyFlags); in completeGesture() 134 public final int onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 140 onDown(event, rawEvent, policyFlags); in onMotionEvent() [all …]
|
D | MultiTap.java | 64 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument 65 cancelAfterTapTimeout(event, rawEvent, policyFlags); in onDown() 71 cancelGesture(event, rawEvent, policyFlags); in onDown() 80 startGesture(event, rawEvent, policyFlags); in onDown() 85 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument 86 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp() 88 cancelGesture(event, rawEvent, policyFlags); in onUp() 94 completeGesture(event, rawEvent, policyFlags); in onUp() 98 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp() 101 cancelGesture(event, rawEvent, policyFlags); in onUp() [all …]
|
D | TouchExplorer.java | 242 private void clear(MotionEvent event, int policyFlags) { in clear() argument 245 sendHoverExitAndTouchExplorationGestureEndIfNeeded(policyFlags); in clear() 249 mDispatcher.sendUpForInjectedDownPointers(event, policyFlags); in clear() 266 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 269 "event=" + event + ";rawEvent=" + rawEvent + ";policyFlags=" + policyFlags); in onMotionEvent() 272 super.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 284 + Integer.toHexString(policyFlags)); in onMotionEvent() 288 mState.onReceivedMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 290 if (mGestureDetector.onMotionEvent(event, rawEvent, policyFlags)) { in onMotionEvent() 297 clear(event, policyFlags); in onMotionEvent() [all …]
|
D | SecondFingerMultiTap.java | 65 protected void onPointerDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerDown() argument 67 cancelGesture(event, rawEvent, policyFlags); in onPointerDown() 73 cancelAfterTapTimeout(event, rawEvent, policyFlags); in onPointerDown() 79 cancelGesture(event, rawEvent, policyFlags); in onPointerDown() 86 protected void onPointerUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerUp() argument 88 cancelGesture(event, rawEvent, policyFlags); in onPointerUp() 91 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onPointerUp() 93 cancelGesture(event, rawEvent, policyFlags); in onPointerUp() 99 completeGesture(event, rawEvent, policyFlags); in onPointerUp() 103 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onPointerUp() [all …]
|
D | MultiFingerSwipe.java | 122 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument 124 cancelGesture(event, rawEvent, policyFlags); in onDown() 133 cancelGesture(event, rawEvent, policyFlags); in onDown() 138 cancelGesture(event, rawEvent, policyFlags); in onDown() 146 cancelGesture(event, rawEvent, policyFlags); in onDown() 155 cancelGesture(event, rawEvent, policyFlags); in onDown() 161 protected void onPointerDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerDown() argument 163 cancelGesture(event, rawEvent, policyFlags); in onPointerDown() 168 cancelGesture(event, rawEvent, policyFlags); in onPointerDown() 178 cancelGesture(event, rawEvent, policyFlags); in onPointerDown() [all …]
|
D | MultiFingerMultiTap.java | 93 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument 97 cancelGesture(event, rawEvent, policyFlags); in onDown() 100 cancelAfterTapTimeout(event, rawEvent, policyFlags); in onDown() 115 cancelGesture(event, rawEvent, policyFlags); in onDown() 120 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument 121 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp() 136 startGesture(event, rawEvent, policyFlags); in onUp() 140 completeAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp() 144 cancelGesture(event, rawEvent, policyFlags); in onUp() 149 protected void onMove(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMove() argument [all …]
|
D | MultiFingerMultiTapAndHold.java | 38 protected void onPointerDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerDown() argument 39 super.onPointerDown(event, rawEvent, policyFlags); in onPointerDown() 41 completeAfterLongPressTimeout(event, rawEvent, policyFlags); in onPointerDown() 46 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument 49 cancelGesture(event, rawEvent, policyFlags); in onUp() 51 super.onUp(event, rawEvent, policyFlags); in onUp() 52 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp()
|
D | MultiTapAndHold.java | 34 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument 35 super.onDown(event, rawEvent, policyFlags); in onDown() 37 completeAfterLongPressTimeout(event, rawEvent, policyFlags); in onDown() 42 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument 43 super.onUp(event, rawEvent, policyFlags); in onUp() 44 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp()
|
D | Swipe.java | 141 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument 153 protected void onMove(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMove() argument 177 cancelGesture(event, rawEvent, policyFlags); in onMove() 189 startGesture(event, rawEvent, policyFlags); in onMove() 193 cancelGesture(event, rawEvent, policyFlags); in onMove() 198 cancelGesture(event, rawEvent, policyFlags); in onMove() 211 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument 213 cancelGesture(event, rawEvent, policyFlags); in onUp() 224 recognizeGesture(event, rawEvent, policyFlags); in onUp() 228 protected void onPointerDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerDown() argument [all …]
|
D | EventDispatcher.java | 95 int policyFlags) { in sendMotionEvent() argument 149 + Integer.toHexString(policyFlags)); in sendMotionEvent() 153 policyFlags |= WindowManagerPolicy.FLAG_PASS_TO_USER; in sendMotionEvent() 155 mReceiver.onMotionEvent(event, rawEvent, policyFlags); in sendMotionEvent() 286 void sendDownForAllNotInjectedPointers(MotionEvent prototype, int policyFlags) { in sendDownForAllNotInjectedPointers() argument 302 policyFlags); in sendDownForAllNotInjectedPointers() 316 void sendDownForAllNotInjectedPointersWithOriginalDown(MotionEvent prototype, int policyFlags) { in sendDownForAllNotInjectedPointersWithOriginalDown() argument 332 policyFlags); in sendDownForAllNotInjectedPointersWithOriginalDown() 387 void sendUpForInjectedDownPointers(MotionEvent prototype, int policyFlags) { in sendUpForInjectedDownPointers() argument 398 prototype, action, mState.getLastReceivedEvent(), pointerIdBits, policyFlags); in sendUpForInjectedDownPointers() [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | SimpleSwipe.java | 46 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument 48 cancelAfter(mDetectionDurationMillis, event, rawEvent, policyFlags); in onDown() 52 protected void onPointerDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerDown() argument 53 cancelGesture(event, rawEvent, policyFlags); in onPointerDown() 57 protected void onMove(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMove() argument 58 if (gestureMatched(event, rawEvent, policyFlags)) { in onMove() 59 completeGesture(event, rawEvent, policyFlags); in onMove() 64 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument 65 if (gestureMatched(event, rawEvent, policyFlags)) { in onUp() 66 completeGesture(event, rawEvent, policyFlags); in onUp() [all …]
|
D | TwoFingersDownOrSwipe.java | 52 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument 54 cancelAfter(mDetectionDurationMillis, event, rawEvent, policyFlags); in onDown() 58 protected void onPointerDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerDown() argument 60 cancelGesture(event, rawEvent, policyFlags); in onPointerDown() 64 completeAfter(mDoubleTapTimeout, event, rawEvent, policyFlags); in onPointerDown() 66 cancelGesture(event, rawEvent, policyFlags); in onPointerDown() 71 protected void onMove(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMove() argument 76 completeGesture(event, rawEvent, policyFlags); in onMove() 81 completeGesture(event, rawEvent, policyFlags); in onMove() 86 protected void onPointerUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerUp() argument [all …]
|
D | GesturesObserver.java | 52 int policyFlags); in onGestureCompleted() argument 62 void onGestureCancelled(MotionEvent event, MotionEvent rawEvent, int policyFlags); in onGestureCancelled() argument 89 public boolean onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 92 mListener.onGestureCancelled(event, rawEvent, policyFlags); in onMotionEvent() 102 matcher.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 127 MotionEvent rawEvent, int policyFlags) { in onStateChanged() argument 129 mListener.onGestureCompleted(gestureId, event, rawEvent, policyFlags); in onStateChanged() 140 mListener.onGestureCancelled(event, rawEvent, policyFlags); in onStateChanged()
|
D | MagnificationGestureHandler.java | 115 public final void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 123 "event=" + event + ";rawEvent=" + rawEvent + ";policyFlags=" + policyFlags); in onMotionEvent() 129 dispatchTransformedEvent(event, rawEvent, policyFlags); in onMotionEvent() 131 onMotionEventInternal(event, rawEvent, policyFlags); in onMotionEvent() 150 final void dispatchTransformedEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in dispatchTransformedEvent() argument 154 super.onMotionEvent(event, rawEvent, policyFlags); in dispatchTransformedEvent() 163 super.onMotionEvent(event, rawEvent, policyFlags); in dispatchTransformedEvent() 177 abstract void onMotionEventInternal(MotionEvent event, MotionEvent rawEvent, int policyFlags); in onMotionEventInternal() argument
|
D | MagnificationGesturesObserver.java | 110 boolean onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 114 cacheDelayedMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 122 return mGesturesObserver.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 127 int policyFlags) { in onGestureCompleted() argument 140 public void onGestureCancelled(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onGestureCancelled() argument 182 int policyFlags) { in cacheDelayedMotionEvent() argument 186 policyFlags); in cacheDelayedMotionEvent()
|
D | MotionEventInfo.java | 35 int policyFlags) { in obtain() argument 37 policyFlags); in obtain() 41 int policyFlags) { in MotionEventInfo() argument 44 mPolicyFlags = policyFlags; in MotionEventInfo()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | KeyboardInterceptor.java | 68 public void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() argument 71 FLAGS_INPUT_FILTER, "event=" + event + ";policyFlags=" + policyFlags); in onKeyEvent() 77 long eventDelay = getEventDelay(event, policyFlags); in onKeyEvent() 82 addEventToQueue(event, policyFlags, eventDelay); in onKeyEvent() 86 mAms.notifyKeyEvent(event, policyFlags); in onKeyEvent() 102 private void addEventToQueue(KeyEvent event, int policyFlags, long delay) { in addEventToQueue() argument 106 KeyEventHolder.obtain(event, policyFlags, dispatchTime); in addEventToQueue() 110 final KeyEventHolder holder = KeyEventHolder.obtain(event, policyFlags, dispatchTime); in addEventToQueue() 126 final long eventDelay = getEventDelay(mEventQueueEnd.event, mEventQueueEnd.policyFlags); in processQueuedEvents() 134 mAms.notifyKeyEvent(mEventQueueEnd.event, mEventQueueEnd.policyFlags); in processQueuedEvents() [all …]
|
D | EventStreamTransformation.java | 68 default void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 71 next.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 81 default void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() argument 84 next.onKeyEvent(event, policyFlags); in onKeyEvent()
|
D | AutoclickController.java | 75 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 78 "event=" + event + ";rawEvent=" + rawEvent + ";policyFlags=" + policyFlags); in onMotionEvent() 89 handleMouseMotion(event, policyFlags); in onMotionEvent() 94 super.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 98 public void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() argument 101 "event=" + event + ";policyFlags=" + policyFlags); in onKeyEvent() 111 super.onKeyEvent(event, policyFlags); in onKeyEvent() 135 private void handleMouseMotion(MotionEvent event, int policyFlags) { in handleMouseMotion() argument 139 mClickScheduler.update(event, policyFlags); in handleMouseMotion() 300 public void update(MotionEvent event, int policyFlags) { in update() argument [all …]
|
D | AccessibilityInputFilter.java | 313 public void onInputEvent(InputEvent event, int policyFlags) { in onInputEvent() argument 316 + Integer.toHexString(policyFlags)); in onInputEvent() 322 "event=" + event + ";policyFlags=" + policyFlags); in onInputEvent() 325 if (!shouldProcessMultiDeviceEvent(event, policyFlags)) { in onInputEvent() 331 onInputEventInternal(event, policyFlags); in onInputEvent() 334 private void onInputEventInternal(InputEvent event, int policyFlags) { in onInputEventInternal() argument 337 super.onInputEvent(event, policyFlags); in onInputEventInternal() 343 super.onInputEvent(event, policyFlags); in onInputEventInternal() 349 if ((policyFlags & WindowManagerPolicy.FLAG_PASS_TO_USER) == 0) { in onInputEventInternal() 357 super.onInputEvent(event, policyFlags); in onInputEventInternal() [all …]
|
D | KeyEventDispatcher.java | 127 KeyEvent event, int policyFlags, List<? extends KeyEventFilter> keyEventFilters) { in notifyKeyEventLocked() argument 134 pendingKeyEvent = obtainPendingEventLocked(localClone, policyFlags); in notifyKeyEventLocked() 221 private PendingKeyEvent obtainPendingEventLocked(KeyEvent event, int policyFlags) { in obtainPendingEventLocked() argument 227 pendingEvent.policyFlags = policyFlags; in obtainPendingEventLocked() 270 int policyFlags = pendingEvent.policyFlags | WindowManagerPolicy.FLAG_PASS_TO_USER; in removeReferenceToPendingEventLocked() local 272 .obtainMessage(mMessageTypeForSendKeyEvent, policyFlags, 0, pendingEvent.event) in removeReferenceToPendingEventLocked() 284 int policyFlags; field in KeyEventDispatcher.PendingKeyEvent
|
/frameworks/base/core/java/android/view/ |
D | InputFilter.java | 152 final public void filterInputEvent(InputEvent event, int policyFlags) { in filterInputEvent() argument 153 mH.obtainMessage(MSG_INPUT_EVENT, policyFlags, 0, event).sendToTarget(); in filterInputEvent() 162 public void sendInputEvent(InputEvent event, int policyFlags) { in sendInputEvent() argument 174 mHost.sendInputEvent(event, policyFlags); in sendInputEvent() 193 public void onInputEvent(InputEvent event, int policyFlags) { in onInputEvent() argument 194 sendInputEvent(event, policyFlags); in onInputEvent()
|
/frameworks/native/services/inputflinger/ |
D | NotifyArgs.cpp | 46 uint32_t source, ui::LogicalDisplayId displayId, uint32_t policyFlags, in NotifyKeyArgs() argument 54 policyFlags(policyFlags), in NotifyKeyArgs() 67 ui::LogicalDisplayId displayId, uint32_t policyFlags, int32_t action, int32_t actionButton, in NotifyMotionArgs() argument 78 policyFlags(policyFlags), in NotifyMotionArgs() 106 policyFlags == rhs.policyFlags && action == rhs.action && in operator ==() 150 NotifySwitchArgs::NotifySwitchArgs(int32_t id, nsecs_t eventTime, uint32_t policyFlags, in NotifySwitchArgs() argument 154 policyFlags(policyFlags), in NotifySwitchArgs()
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | Entry.cpp | 63 EventEntry::EventEntry(int32_t id, Type type, nsecs_t eventTime, uint32_t policyFlags) in EventEntry() argument 67 policyFlags(policyFlags), in EventEntry() 77 return StringPrintf("ConfigurationChangedEvent(), policyFlags=0x%08x", policyFlags); in getDescription() 86 return StringPrintf("DeviceResetEvent(deviceId=%d), policyFlags=0x%08x", deviceId, policyFlags); in getDescription() 136 uint32_t policyFlags, int32_t action, int32_t flags, int32_t keyCode, in KeyEntry() argument 138 : EventEntry(id, Type::KEY, eventTime, policyFlags), in KeyEntry() 166 policyFlags); in getDescription() 190 ui::LogicalDisplayId displayId, uint32_t policyFlags, int32_t action, in MotionEntry() argument 197 : EventEntry(id, Type::MOTION, eventTime, policyFlags), in MotionEntry() 242 msg += StringPrintf("]), policyFlags=0x%08x", policyFlags); in getDescription() [all …]
|
/frameworks/native/services/inputflinger/dispatcher/include/ |
D | InputDispatcherPolicyInterface.h | 89 virtual bool filterInputEvent(const InputEvent& inputEvent, uint32_t policyFlags) = 0; 98 virtual void interceptKeyBeforeQueueing(const KeyEvent& keyEvent, uint32_t& policyFlags) = 0; 109 uint32_t& policyFlags) = 0; 114 uint32_t policyFlags) = 0; 120 uint32_t policyFlags) = 0; 125 uint32_t policyFlags) = 0;
|