/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | KeyboardInterceptor.java | 66 public void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() argument 71 long eventDelay = getEventDelay(event, policyFlags); in onKeyEvent() 76 addEventToQueue(event, policyFlags, eventDelay); in onKeyEvent() 80 mAms.notifyKeyEvent(event, policyFlags); in onKeyEvent() 96 private void addEventToQueue(KeyEvent event, int policyFlags, long delay) { in addEventToQueue() argument 100 KeyEventHolder.obtain(event, policyFlags, dispatchTime); in addEventToQueue() 104 final KeyEventHolder holder = KeyEventHolder.obtain(event, policyFlags, dispatchTime); in addEventToQueue() 120 final long eventDelay = getEventDelay(mEventQueueEnd.event, mEventQueueEnd.policyFlags); in processQueuedEvents() 128 mAms.notifyKeyEvent(mEventQueueEnd.event, mEventQueueEnd.policyFlags); in processQueuedEvents() 142 private long getEventDelay(KeyEvent event, int policyFlags) { in getEventDelay() argument [all …]
|
D | TouchExplorer.java | 235 private void clear(MotionEvent event, int policyFlags) { in clear() argument 239 sendHoverExitAndTouchExplorationGestureEndIfNeeded(policyFlags); in clear() 244 sendUpForInjectedDownPointers(event, policyFlags); in clear() 248 sendUpForInjectedDownPointers(event, policyFlags); in clear() 276 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 278 super.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 284 + Integer.toHexString(policyFlags)); in onMotionEvent() 290 if (mGestureDetector.onMotionEvent(event, rawEvent, policyFlags)) { in onMotionEvent() 296 clear(event, policyFlags); in onMotionEvent() 302 handleMotionEventStateTouchExploring(event, rawEvent, policyFlags); in onMotionEvent() [all …]
|
D | AccessibilityInputFilter.java | 177 public void onInputEvent(InputEvent event, int policyFlags) { in onInputEvent() argument 180 + Integer.toHexString(policyFlags)); in onInputEvent() 185 super.onInputEvent(event, policyFlags); in onInputEvent() 191 super.onInputEvent(event, policyFlags); in onInputEvent() 196 if ((policyFlags & WindowManagerPolicy.FLAG_PASS_TO_USER) == 0) { in onInputEvent() 199 super.onInputEvent(event, policyFlags); in onInputEvent() 208 super.onInputEvent(event, policyFlags); in onInputEvent() 215 processMotionEvent(state, motionEvent, policyFlags); in onInputEvent() 218 super.onInputEvent(event, policyFlags); in onInputEvent() 222 processKeyEvent(state, keyEvent, policyFlags); in onInputEvent() [all …]
|
D | AccessibilityGestureDetector.java | 105 void onDoubleTapAndHold(MotionEvent event, int policyFlags); in onDoubleTapAndHold() argument 116 boolean onDoubleTap(MotionEvent event, int policyFlags); in onDoubleTap() argument 143 public boolean onGestureCancelled(MotionEvent event, int policyFlags); in onGestureCancelled() argument 270 public boolean onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 277 mPolicyFlags = policyFlags; in onMotionEvent() 329 return mListener.onGestureCancelled(rawEvent, policyFlags); in onMotionEvent() 345 return finishDoubleTap(rawEvent, policyFlags); in onMotionEvent() 353 return recognizeGesture(rawEvent, policyFlags); in onMotionEvent() 378 return finishDoubleTap(rawEvent, policyFlags); in onMotionEvent() 446 private void maybeSendLongPress(MotionEvent event, int policyFlags) { in maybeSendLongPress() argument [all …]
|
D | MagnificationGestureHandler.java | 204 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 208 onMotionEventInternal(event, rawEvent, policyFlags); in onMotionEvent() 214 onMotionEventInternal(event, rawEvent, policyFlags); in onMotionEvent() 218 private void onMotionEventInternal(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEventInternal() argument 223 dispatchTransformedEvent(event, rawEvent, policyFlags); in onMotionEventInternal() 227 handleEventWith(mCurrentState, event, rawEvent, policyFlags); in onMotionEventInternal() 231 MotionEvent event, MotionEvent rawEvent, int policyFlags) { in handleEventWith() argument 236 stateHandler.onMotionEvent(event, rawEvent, policyFlags); in handleEventWith() 284 int policyFlags) { in dispatchTransformedEvent() argument 288 super.onMotionEvent(event, rawEvent, policyFlags); in dispatchTransformedEvent() [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
|
D | AutoclickController.java | 72 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 82 handleMouseMotion(event, policyFlags); in onMotionEvent() 87 super.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 91 public void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() argument 100 super.onKeyEvent(event, policyFlags); in onKeyEvent() 124 private void handleMouseMotion(MotionEvent event, int policyFlags) { in handleMouseMotion() argument 128 mClickScheduler.update(event, policyFlags); in handleMouseMotion() 289 public void update(MotionEvent event, int policyFlags) { in update() argument 293 cacheLastEvent(event, policyFlags, mLastMotionEvent == null || moved /* useAsAnchor */); in update() 357 private void cacheLastEvent(MotionEvent event, int policyFlags, boolean useAsAnchor) { in cacheLastEvent() argument [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 | MotionEventInjector.java | 113 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 124 sendMotionEventToNext(event, rawEvent, policyFlags); in onMotionEvent() 290 int policyFlags) { in sendMotionEventToNext() argument 292 super.onMotionEvent(event, rawEvent, policyFlags); in sendMotionEventToNext()
|
/frameworks/native/services/inputflinger/ |
D | InputListener.cpp | 51 uint32_t source, int32_t displayId, uint32_t policyFlags, in NotifyKeyArgs() argument 55 displayId(displayId), policyFlags(policyFlags), in NotifyKeyArgs() 62 source(other.source), displayId(other.displayId), policyFlags(other.policyFlags), in NotifyKeyArgs() 74 && policyFlags == rhs.policyFlags in operator ==() 91 uint32_t source, int32_t displayId, uint32_t policyFlags, in NotifyMotionArgs() argument 99 displayId(displayId), policyFlags(policyFlags), in NotifyMotionArgs() 114 source(other.source), displayId(other.displayId), policyFlags(other.policyFlags), in NotifyMotionArgs() 134 && policyFlags == rhs.policyFlags in operator ==() 171 NotifySwitchArgs::NotifySwitchArgs(uint32_t sequenceNum, nsecs_t eventTime, uint32_t policyFlags, in NotifySwitchArgs() argument 173 NotifyArgs(sequenceNum, eventTime), policyFlags(policyFlags), in NotifySwitchArgs() [all …]
|
D | InputDispatcher.cpp | 349 if (mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER) { in dispatchOnceInnerLocked() 362 if (!(mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER)) { in dispatchOnceInnerLocked() 639 && (keyEntry->policyFlags & POLICY_FLAG_TRUSTED) in isAppSwitchKeyEvent() 640 && (keyEntry->policyFlags & POLICY_FLAG_PASS_TO_USER); in isAppSwitchKeyEvent() 732 uint32_t policyFlags = entry->policyFlags & in synthesizeKeyRepeatLocked() local 737 entry->policyFlags = policyFlags; in synthesizeKeyRepeatLocked() 741 entry->deviceId, entry->source, entry->displayId, policyFlags, in synthesizeKeyRepeatLocked() 796 && (entry->policyFlags & POLICY_FLAG_TRUSTED) in dispatchKeyLocked() 797 && (!(entry->policyFlags & POLICY_FLAG_DISABLE_KEY_REPEAT))) { in dispatchKeyLocked() 843 if (entry->policyFlags & POLICY_FLAG_PASS_TO_USER) { in dispatchKeyLocked() [all …]
|
D | InputReader.cpp | 234 uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState, in synthesizeButtonKey() argument 244 policyFlags, action, 0, keyCode, 0, context->getGlobalMetaState(), when); in synthesizeButtonKey() 251 uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState) { in synthesizeButtonKeys() argument 252 synthesizeButtonKey(context, action, when, deviceId, source, displayId, policyFlags, in synthesizeButtonKeys() 255 synthesizeButtonKey(context, action, when, deviceId, source, displayId, policyFlags, in synthesizeButtonKeys() 2362 uint32_t policyFlags; in processKey() local 2365 &keyCode, &keyMetaState, &policyFlags)) { in processKey() 2368 policyFlags = 0; in processKey() 2384 if ((policyFlags & POLICY_FLAG_VIRTUAL) in processKey() 2389 if (policyFlags & POLICY_FLAG_GESTURE) { in processKey() [all …]
|
D | InputReader.h | 1592 bool consumeRawTouches(nsecs_t when, uint32_t policyFlags); 1595 void dispatchVirtualKey(nsecs_t when, uint32_t policyFlags, 1598 void dispatchTouches(nsecs_t when, uint32_t policyFlags); 1599 void dispatchHoverExit(nsecs_t when, uint32_t policyFlags); 1600 void dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags); 1601 void dispatchButtonRelease(nsecs_t when, uint32_t policyFlags); 1602 void dispatchButtonPress(nsecs_t when, uint32_t policyFlags); 1605 void abortTouches(nsecs_t when, uint32_t policyFlags); 1607 void dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage); 1608 void abortPointerUsage(nsecs_t when, uint32_t policyFlags); [all …]
|
D | InputDispatcher.h | 231 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) = 0; 240 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags) = 0; 250 uint32_t& policyFlags) = 0; 254 const KeyEvent* keyEvent, uint32_t policyFlags) = 0; 259 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) = 0; 264 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) = 0; 319 uint32_t policyFlags) = 0; 431 uint32_t policyFlags) override; 490 uint32_t policyFlags; member 502 EventEntry(uint32_t sequenceNum, int32_t type, nsecs_t eventTime, uint32_t policyFlags); [all …]
|
/frameworks/base/core/java/android/view/ |
D | InputFilter.java | 151 final public void filterInputEvent(InputEvent event, int policyFlags) { in filterInputEvent() argument 152 mH.obtainMessage(MSG_INPUT_EVENT, policyFlags, 0, event).sendToTarget(); in filterInputEvent() 161 public void sendInputEvent(InputEvent event, int policyFlags) { in sendInputEvent() argument 173 mHost.sendInputEvent(event, policyFlags); in sendInputEvent() 192 public void onInputEvent(InputEvent event, int policyFlags) { in onInputEvent() argument 193 sendInputEvent(event, policyFlags); in onInputEvent()
|
D | IInputFilterHost.aidl | 27 void sendInputEvent(in InputEvent event, int policyFlags); in sendInputEvent() argument
|
D | IInputFilter.aidl | 31 void filterInputEvent(in InputEvent event, int policyFlags); in filterInputEvent() argument
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | InputManagerCallback.java | 163 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) { in interceptKeyBeforeQueueing() argument 164 return mService.mPolicy.interceptKeyBeforeQueueing(event, policyFlags); in interceptKeyBeforeQueueing() 170 int policyFlags) { in interceptMotionBeforeQueueingNonInteractive() argument 172 displayId, whenNanos, policyFlags); in interceptMotionBeforeQueueingNonInteractive() 181 IBinder focus, KeyEvent event, int policyFlags) { in interceptKeyBeforeDispatching() argument 183 return mService.mPolicy.interceptKeyBeforeDispatching(windowState, event, policyFlags); in interceptKeyBeforeDispatching() 192 IBinder focus, KeyEvent event, int policyFlags) { in dispatchUnhandledKey() argument 194 return mService.mPolicy.dispatchUnhandledKey(windowState, event, policyFlags); in dispatchUnhandledKey()
|
/frameworks/native/services/inputflinger/include/ |
D | InputListener.h | 70 uint32_t policyFlags; member 81 int32_t displayId, uint32_t policyFlags, int32_t action, int32_t flags, int32_t keyCode, 99 uint32_t policyFlags; member 128 int32_t displayId, uint32_t policyFlags, 148 uint32_t policyFlags; member 154 NotifySwitchArgs(uint32_t sequenceNum, nsecs_t eventTime, uint32_t policyFlags,
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 246 uint32_t policyFlags); 253 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags); 255 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags); 257 uint32_t& policyFlags); 260 const KeyEvent* keyEvent, uint32_t policyFlags); 262 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent); 319 void handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags); 696 when, switchValues, switchMask, policyFlags); in notifySwitch() 1017 bool NativeInputManager::filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) { in filterInputEvent() argument 1042 inputEventObj, policyFlags); in filterInputEvent() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TestWindowManagerPolicy.java | 155 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) { 161 int policyFlags) { 166 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags) { 171 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags) {
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 214 int policyFlags); in nativeInjectInputEvent() argument 1810 final boolean filterInputEvent(InputEvent event, int policyFlags) { in filterInputEvent() argument 1814 mInputFilter.filterInputEvent(event, policyFlags); in filterInputEvent() 1826 private int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) { in interceptKeyBeforeQueueing() argument 1827 return mWindowManagerCallbacks.interceptKeyBeforeQueueing(event, policyFlags); in interceptKeyBeforeQueueing() 1832 long whenNanos, int policyFlags) { in interceptMotionBeforeQueueingNonInteractive() argument 1834 displayId, whenNanos, policyFlags); in interceptMotionBeforeQueueingNonInteractive() 1838 private long interceptKeyBeforeDispatching(IBinder focus, KeyEvent event, int policyFlags) { in interceptKeyBeforeDispatching() argument 1839 return mWindowManagerCallbacks.interceptKeyBeforeDispatching(focus, event, policyFlags); in interceptKeyBeforeDispatching() 1843 private KeyEvent dispatchUnhandledKey(IBinder focus, KeyEvent event, int policyFlags) { in dispatchUnhandledKey() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | WindowManagerPolicy.java | 1003 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags); in interceptKeyBeforeQueueing() argument 1019 int policyFlags); in interceptMotionBeforeQueueingNonInteractive() argument 1037 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags); in interceptKeyBeforeDispatching() argument 1053 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags); in dispatchUnhandledKey() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityGestureDetectorTest.java | 153 int policyFlags = 0; in testPath() local 172 mDetector.onMotionEvent(event, event, policyFlags); in testPath()
|
D | AccessibilityInputFilterTest.java | 95 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 100 public void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() argument
|