/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 | 238 private void clear(MotionEvent event, int policyFlags) { in clear() argument 241 sendHoverExitAndTouchExplorationGestureEndIfNeeded(policyFlags); in clear() 245 mDispatcher.sendUpForInjectedDownPointers(event, policyFlags); in clear() 262 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 265 "event=" + event + ";rawEvent=" + rawEvent + ";policyFlags=" + policyFlags); in onMotionEvent() 268 super.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 280 + Integer.toHexString(policyFlags)); in onMotionEvent() 284 mState.onReceivedMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 286 if (mGestureDetector.onMotionEvent(event, rawEvent, policyFlags)) { in onMotionEvent() 293 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 | 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 | 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 | EventDispatcher.java | 95 int policyFlags) { in sendMotionEvent() argument 130 + Integer.toHexString(policyFlags)); in sendMotionEvent() 134 policyFlags |= WindowManagerPolicy.FLAG_PASS_TO_USER; in sendMotionEvent() 136 mReceiver.onMotionEvent(event, rawEvent, policyFlags); in sendMotionEvent() 267 void sendDownForAllNotInjectedPointers(MotionEvent prototype, int policyFlags) { in sendDownForAllNotInjectedPointers() argument 283 policyFlags); in sendDownForAllNotInjectedPointers() 297 void sendDownForAllNotInjectedPointersWithOriginalDown(MotionEvent prototype, int policyFlags) { in sendDownForAllNotInjectedPointersWithOriginalDown() argument 313 policyFlags); in sendDownForAllNotInjectedPointersWithOriginalDown() 368 void sendUpForInjectedDownPointers(MotionEvent prototype, int policyFlags) { in sendUpForInjectedDownPointers() argument 379 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 | 103 public final void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 111 "event=" + event + ";rawEvent=" + rawEvent + ";policyFlags=" + policyFlags); in onMotionEvent() 117 dispatchTransformedEvent(event, rawEvent, policyFlags); in onMotionEvent() 119 onMotionEventInternal(event, rawEvent, policyFlags); in onMotionEvent() 138 final void dispatchTransformedEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in dispatchTransformedEvent() argument 142 super.onMotionEvent(event, rawEvent, policyFlags); in dispatchTransformedEvent() 151 super.onMotionEvent(event, rawEvent, policyFlags); in dispatchTransformedEvent() 165 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 | AccessibilityInputFilter.java | 234 public void onInputEvent(InputEvent event, int policyFlags) { in onInputEvent() argument 237 + Integer.toHexString(policyFlags)); in onInputEvent() 243 "event=" + event + ";policyFlags=" + policyFlags); in onInputEvent() 247 super.onInputEvent(event, policyFlags); in onInputEvent() 253 super.onInputEvent(event, policyFlags); in onInputEvent() 259 if ((policyFlags & WindowManagerPolicy.FLAG_PASS_TO_USER) == 0) { in onInputEvent() 262 super.onInputEvent(event, policyFlags); in onInputEvent() 271 super.onInputEvent(event, policyFlags); in onInputEvent() 278 processMotionEvent(state, motionEvent, policyFlags); in onInputEvent() 281 super.onInputEvent(event, policyFlags); in onInputEvent() [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 | 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/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; 108 uint32_t& policyFlags) = 0; 113 uint32_t policyFlags) = 0; 118 uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) = 0; 123 uint32_t policyFlags) = 0;
|
/frameworks/native/services/inputflinger/ |
D | InputListener.cpp | 54 uint32_t source, int32_t displayId, uint32_t policyFlags, in NotifyKeyArgs() argument 61 policyFlags(policyFlags), in NotifyKeyArgs() 75 policyFlags(other.policyFlags), in NotifyKeyArgs() 87 policyFlags == rhs.policyFlags && action == rhs.action && flags == rhs.flags && in operator ==() 100 int32_t displayId, uint32_t policyFlags, int32_t action, int32_t actionButton, in NotifyMotionArgs() argument 110 policyFlags(policyFlags), in NotifyMotionArgs() 137 policyFlags(other.policyFlags), in NotifyMotionArgs() 166 policyFlags == rhs.policyFlags && action == rhs.action && in operator ==() 229 NotifySwitchArgs::NotifySwitchArgs(int32_t id, nsecs_t eventTime, uint32_t policyFlags, in NotifySwitchArgs() argument 232 policyFlags(policyFlags), in NotifySwitchArgs() [all …]
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | Entry.cpp | 61 EventEntry::EventEntry(int32_t id, Type type, nsecs_t eventTime, uint32_t policyFlags) in EventEntry() argument 65 policyFlags(policyFlags), in EventEntry() 88 return StringPrintf("ConfigurationChangedEvent(), policyFlags=0x%08x", policyFlags); in getDescription() 99 return StringPrintf("DeviceResetEvent(deviceId=%d), policyFlags=0x%08x", deviceId, policyFlags); in getDescription() 154 int32_t displayId, uint32_t policyFlags, int32_t action, int32_t flags, in KeyEntry() argument 157 : EventEntry(id, Type::KEY, eventTime, policyFlags), in KeyEntry() 184 keyCode, scanCode, metaState, repeatCount, policyFlags); in getDescription() 211 int32_t displayId, uint32_t policyFlags, int32_t action, in MotionEntry() argument 218 : EventEntry(id, Type::MOTION, eventTime, policyFlags), in MotionEntry() 266 msg += StringPrintf("]), policyFlags=0x%08x", policyFlags); in getDescription() [all …]
|