/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 | AccessibilityInputFilter.java | 188 public void onInputEvent(InputEvent event, int policyFlags) { in onInputEvent() argument 191 + Integer.toHexString(policyFlags)); in onInputEvent() 196 super.onInputEvent(event, policyFlags); in onInputEvent() 202 super.onInputEvent(event, policyFlags); in onInputEvent() 207 if ((policyFlags & WindowManagerPolicy.FLAG_PASS_TO_USER) == 0) { in onInputEvent() 210 super.onInputEvent(event, policyFlags); in onInputEvent() 219 super.onInputEvent(event, policyFlags); in onInputEvent() 226 processMotionEvent(state, motionEvent, policyFlags); in onInputEvent() 229 super.onInputEvent(event, policyFlags); in onInputEvent() 233 processKeyEvent(state, keyEvent, policyFlags); in onInputEvent() [all …]
|
D | TouchExplorer.java | 216 private void clear(MotionEvent event, int policyFlags) { in clear() argument 220 sendHoverExitAndTouchExplorationGestureEndIfNeeded(policyFlags); in clear() 225 sendUpForInjectedDownPointers(event, policyFlags); in clear() 229 sendUpForInjectedDownPointers(event, policyFlags); in clear() 257 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 259 super.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 265 + Integer.toHexString(policyFlags)); in onMotionEvent() 274 if (mGestureDetector.onMotionEvent(rawEvent, policyFlags)) { in onMotionEvent() 280 clear(event, policyFlags); in onMotionEvent() 286 handleMotionEventStateTouchExploring(event, rawEvent, policyFlags); in onMotionEvent() [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 245 public boolean onMotionEvent(MotionEvent event, int policyFlags) { in onMotionEvent() argument 262 mPolicyFlags = policyFlags; in onMotionEvent() 314 return mListener.onGestureCancelled(event, policyFlags); in onMotionEvent() 330 return finishDoubleTap(event, policyFlags); in onMotionEvent() 338 return recognizeGesture(event, policyFlags); in onMotionEvent() 363 return finishDoubleTap(event, policyFlags); in onMotionEvent() 431 private void maybeSendLongPress(MotionEvent event, int policyFlags) { in maybeSendLongPress() argument [all …]
|
D | MagnificationGestureHandler.java | 196 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 200 onMotionEventInternal(event, rawEvent, policyFlags); in onMotionEvent() 206 onMotionEventInternal(event, rawEvent, policyFlags); in onMotionEvent() 210 private void onMotionEventInternal(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEventInternal() argument 215 dispatchTransformedEvent(event, rawEvent, policyFlags); in onMotionEventInternal() 219 handleEventWith(mCurrentState, event, rawEvent, policyFlags); in onMotionEventInternal() 223 MotionEvent event, MotionEvent rawEvent, int policyFlags) { in handleEventWith() argument 228 stateHandler.onMotionEvent(event, rawEvent, policyFlags); in handleEventWith() 272 int policyFlags) { in dispatchTransformedEvent() argument 303 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 115 sendMotionEventToNext(event, rawEvent, policyFlags); in onMotionEvent() 281 int policyFlags) { in sendMotionEventToNext() argument 283 super.onMotionEvent(event, rawEvent, policyFlags); in sendMotionEventToNext()
|
/frameworks/native/services/inputflinger/ |
D | InputListener.cpp | 46 uint32_t policyFlags, in NotifyKeyArgs() argument 49 eventTime(eventTime), deviceId(deviceId), source(source), policyFlags(policyFlags), in NotifyKeyArgs() 56 policyFlags(other.policyFlags), in NotifyKeyArgs() 70 uint32_t policyFlags, in NotifyMotionArgs() argument 76 eventTime(eventTime), deviceId(deviceId), source(source), policyFlags(policyFlags), in NotifyMotionArgs() 90 policyFlags(other.policyFlags), in NotifyMotionArgs() 109 NotifySwitchArgs::NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags, in NotifySwitchArgs() argument 111 eventTime(eventTime), policyFlags(policyFlags), in NotifySwitchArgs() 116 eventTime(other.eventTime), policyFlags(other.policyFlags), in NotifySwitchArgs()
|
D | InputListener.h | 58 uint32_t policyFlags; member 68 NotifyKeyArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, 85 uint32_t policyFlags; member 109 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, 127 uint32_t policyFlags; member 133 NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags,
|
D | InputDispatcher.cpp | 353 if (mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER) { in dispatchOnceInnerLocked() 366 if (!(mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER)) { in dispatchOnceInnerLocked() 603 && (keyEntry->policyFlags & POLICY_FLAG_TRUSTED) in isAppSwitchKeyEventLocked() 604 && (keyEntry->policyFlags & POLICY_FLAG_PASS_TO_USER); in isAppSwitchKeyEventLocked() 696 uint32_t policyFlags = entry->policyFlags & in synthesizeKeyRepeatLocked() local 701 entry->policyFlags = policyFlags; in synthesizeKeyRepeatLocked() 705 entry->deviceId, entry->source, policyFlags, in synthesizeKeyRepeatLocked() 760 && (entry->policyFlags & POLICY_FLAG_TRUSTED) in dispatchKeyLocked() 761 && (!(entry->policyFlags & POLICY_FLAG_DISABLE_KEY_REPEAT))) { in dispatchKeyLocked() 807 if (entry->policyFlags & POLICY_FLAG_PASS_TO_USER) { in dispatchKeyLocked() [all …]
|
D | InputDispatcher.h | 224 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) = 0; 233 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags) = 0; 242 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) = 0; 246 const KeyEvent* keyEvent, uint32_t policyFlags) = 0; 251 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) = 0; 256 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) = 0; 304 uint32_t policyFlags) = 0; 388 uint32_t policyFlags); 439 uint32_t policyFlags; member 451 EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags); [all …]
|
D | InputReader.h | 1803 bool consumeRawTouches(nsecs_t when, uint32_t policyFlags); 1806 void dispatchVirtualKey(nsecs_t when, uint32_t policyFlags, 1809 void dispatchTouches(nsecs_t when, uint32_t policyFlags); 1810 void dispatchHoverExit(nsecs_t when, uint32_t policyFlags); 1811 void dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags); 1812 void dispatchButtonRelease(nsecs_t when, uint32_t policyFlags); 1813 void dispatchButtonPress(nsecs_t when, uint32_t policyFlags); 1816 void abortTouches(nsecs_t when, uint32_t policyFlags); 1818 void dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage); 1819 void abortPointerUsage(nsecs_t when, uint32_t policyFlags); [all …]
|
/frameworks/base/core/java/android/view/ |
D | InputFilter.java | 149 final public void filterInputEvent(InputEvent event, int policyFlags) { in filterInputEvent() argument 150 mH.obtainMessage(MSG_INPUT_EVENT, policyFlags, 0, event).sendToTarget(); in filterInputEvent() 159 public void sendInputEvent(InputEvent event, int policyFlags) { in sendInputEvent() argument 171 mHost.sendInputEvent(event, policyFlags); in sendInputEvent() 189 public void onInputEvent(InputEvent event, int policyFlags) { in onInputEvent() argument 190 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/jni/ |
D | com_android_server_input_InputManagerService.cpp | 242 uint32_t policyFlags); 248 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags); 250 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags); 251 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags); 254 const KeyEvent* keyEvent, uint32_t policyFlags); 256 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent); 312 void handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags); 650 when, switchValues, switchMask, policyFlags); in notifySwitch() 955 bool NativeInputManager::filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) { in filterInputEvent() argument 980 inputEventObj, policyFlags); in filterInputEvent() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | InputMonitor.java | 458 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) { in interceptKeyBeforeQueueing() argument 459 return mService.mPolicy.interceptKeyBeforeQueueing(event, policyFlags); in interceptKeyBeforeQueueing() 466 public int interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags) { in interceptMotionBeforeQueueingNonInteractive() argument 468 whenNanos, policyFlags); in interceptMotionBeforeQueueingNonInteractive() 475 InputWindowHandle focus, KeyEvent event, int policyFlags) { in interceptKeyBeforeDispatching() argument 477 return mService.mPolicy.interceptKeyBeforeDispatching(windowState, event, policyFlags); in interceptKeyBeforeDispatching() 484 InputWindowHandle focus, KeyEvent event, int policyFlags) { in dispatchUnhandledKey() argument 486 return mService.mPolicy.dispatchUnhandledKey(windowState, event, policyFlags); in dispatchUnhandledKey()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
D | TestWindowManagerPolicy.java | 218 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) { 223 public int interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags) { 229 int policyFlags) { 235 int policyFlags) {
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 213 int policyFlags); in nativeInjectInputEvent() argument 1825 final boolean filterInputEvent(InputEvent event, int policyFlags) { in filterInputEvent() argument 1829 mInputFilter.filterInputEvent(event, policyFlags); in filterInputEvent() 1841 private int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) { in interceptKeyBeforeQueueing() argument 1842 return mWindowManagerCallbacks.interceptKeyBeforeQueueing(event, policyFlags); in interceptKeyBeforeQueueing() 1846 private int interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags) { in interceptMotionBeforeQueueingNonInteractive() argument 1848 whenNanos, policyFlags); in interceptMotionBeforeQueueingNonInteractive() 1853 KeyEvent event, int policyFlags) { in interceptKeyBeforeDispatching() argument 1854 return mWindowManagerCallbacks.interceptKeyBeforeDispatching(focus, event, policyFlags); in interceptKeyBeforeDispatching() 1859 KeyEvent event, int policyFlags) { in dispatchUnhandledKey() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | WindowManagerPolicy.java | 1103 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags); in interceptKeyBeforeQueueing() argument 1117 public int interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags); in interceptMotionBeforeQueueingNonInteractive() argument 1135 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags); in interceptKeyBeforeDispatching() argument 1151 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags); in dispatchUnhandledKey() argument
|
D | PhoneWindowManager.java | 3568 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags) { in interceptKeyBeforeDispatching() argument 4140 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags) { in dispatchUnhandledKey() argument 4149 + ", policyFlags=" + policyFlags); in dispatchUnhandledKey() 4182 if (!interceptFallback(win, fallbackEvent, policyFlags)) { in dispatchUnhandledKey() 4206 private boolean interceptFallback(WindowState win, KeyEvent fallbackEvent, int policyFlags) { in interceptFallback() argument 4207 int actions = interceptKeyBeforeQueueing(fallbackEvent, policyFlags); in interceptFallback() 4210 win, fallbackEvent, policyFlags); in interceptFallback() 6019 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) { in interceptKeyBeforeQueueing() argument 6025 final boolean interactive = (policyFlags & FLAG_INTERACTIVE) != 0; in interceptKeyBeforeQueueing() 6030 final boolean isInjected = (policyFlags & WindowManagerPolicy.FLAG_INJECTED) != 0; in interceptKeyBeforeQueueing() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityGestureDetectorTest.java | 179 int policyFlags = 0; in testPath() local 198 mDetector.onMotionEvent(event, policyFlags); in testPath()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 1703 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F() 1764 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F() 1779 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F() 1796 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F() 1813 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F() 1830 ASSERT_EQ(0U, args.policyFlags); in TEST_F() 1847 ASSERT_EQ(0U, args.policyFlags); in TEST_F() 2235 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F() 2254 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F() 2276 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F() [all …]
|