/frameworks/base/services/java/com/android/server/accessibility/ |
D | TouchExplorer.java | 245 public void clear(MotionEvent event, int policyFlags) { in clear() argument 249 sendExitEventsIfNeeded(policyFlags); in clear() 254 sendUpForInjectedDownPointers(event, policyFlags); in clear() 258 sendUpForInjectedDownPointers(event, policyFlags); in clear() 283 public void onMotionEvent(MotionEvent event, int policyFlags) { in onMotionEvent() argument 286 + Integer.toHexString(policyFlags)); in onMotionEvent() 294 handleMotionEventStateTouchExploring(event, policyFlags); in onMotionEvent() 297 handleMotionEventStateDragging(event, policyFlags); in onMotionEvent() 300 handleMotionEventStateDelegating(event, policyFlags); in onMotionEvent() 303 handleMotionEventGestureDetecting(event, policyFlags); in onMotionEvent() [all …]
|
D | AccessibilityInputFilter.java | 56 public void onMotionEvent(MotionEvent event, int policyFlags); in onMotionEvent() argument 64 public void clear(MotionEvent event, int policyFlags); in clear() argument 102 public void onInputEvent(InputEvent event, int policyFlags) { in onInputEvent() argument 105 + Integer.toHexString(policyFlags)); in onInputEvent() 112 mTouchExplorer.clear(motionEvent, policyFlags); in onInputEvent() 114 if ((policyFlags & WindowManagerPolicy.FLAG_PASS_TO_USER) != 0) { in onInputEvent() 116 mTouchExplorer.onMotionEvent(motionEvent, policyFlags); in onInputEvent() 118 mTouchExplorer.clear(motionEvent, policyFlags); in onInputEvent() 121 super.onInputEvent(event, policyFlags); in onInputEvent()
|
/frameworks/base/services/input/ |
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 75 eventTime(eventTime), deviceId(deviceId), source(source), policyFlags(policyFlags), in NotifyMotionArgs() 87 policyFlags(other.policyFlags), in NotifyMotionArgs() 105 NotifySwitchArgs::NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags, in NotifySwitchArgs() argument 107 eventTime(eventTime), policyFlags(policyFlags), in NotifySwitchArgs() 112 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 100 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, 117 uint32_t policyFlags; member 123 NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags,
|
D | InputDispatcher.cpp | 295 if (mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER) { in dispatchOnceInnerLocked() 308 if (!(mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER)) { in dispatchOnceInnerLocked() 533 && (keyEntry->policyFlags & POLICY_FLAG_TRUSTED) in isAppSwitchKeyEventLocked() 534 && (keyEntry->policyFlags & POLICY_FLAG_PASS_TO_USER); in isAppSwitchKeyEventLocked() 621 uint32_t policyFlags = (entry->policyFlags & POLICY_FLAG_RAW_MASK) in synthesizeKeyRepeatLocked() local 626 entry->policyFlags = policyFlags; in synthesizeKeyRepeatLocked() 630 entry->deviceId, entry->source, policyFlags, in synthesizeKeyRepeatLocked() 684 && (entry->policyFlags & POLICY_FLAG_TRUSTED) in dispatchKeyLocked() 685 && (!(entry->policyFlags & POLICY_FLAG_DISABLE_KEY_REPEAT))) { in dispatchKeyLocked() 731 if (entry->policyFlags & POLICY_FLAG_PASS_TO_USER) { in dispatchKeyLocked() [all …]
|
D | InputDispatcher.h | 219 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) = 0; 228 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags) = 0; 237 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) = 0; 241 const KeyEvent* keyEvent, uint32_t policyFlags) = 0; 246 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) = 0; 251 int32_t switchCode, int32_t switchValue, uint32_t policyFlags) = 0; 299 uint32_t policyFlags) = 0; 383 uint32_t policyFlags); 434 uint32_t policyFlags; member 446 EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags); [all …]
|
D | InputReader.cpp | 177 uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState, in synthesizeButtonKey() argument 186 NotifyKeyArgs args(when, deviceId, source, policyFlags, in synthesizeButtonKey() 194 uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState) { in synthesizeButtonKeys() argument 195 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags, in synthesizeButtonKeys() 198 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags, in synthesizeButtonKeys() 2085 int32_t scanCode, uint32_t policyFlags) { in processKey() argument 2100 if ((policyFlags & POLICY_FLAG_VIRTUAL) in processKey() 2146 && !(policyFlags & (POLICY_FLAG_WAKE | POLICY_FLAG_WAKE_DROPPED))) { in processKey() 2147 policyFlags |= POLICY_FLAG_WAKE_DROPPED; in processKey() 2158 NotifyKeyArgs args(when, getDeviceId(), mSource, policyFlags, in processKey() [all …]
|
D | InputReader.h | 1005 uint32_t policyFlags); 1554 bool consumeRawTouches(nsecs_t when, uint32_t policyFlags); 1555 void dispatchVirtualKey(nsecs_t when, uint32_t policyFlags, 1558 void dispatchTouches(nsecs_t when, uint32_t policyFlags); 1559 void dispatchHoverExit(nsecs_t when, uint32_t policyFlags); 1560 void dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags); 1563 void dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage); 1564 void abortPointerUsage(nsecs_t when, uint32_t policyFlags); 1566 void dispatchPointerGestures(nsecs_t when, uint32_t policyFlags, bool isTimeout); 1567 void abortPointerGestures(nsecs_t when, uint32_t policyFlags); [all …]
|
/frameworks/base/services/java/com/android/server/input/ |
D | InputFilter.java | 152 final 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 173 mHost.sendInputEvent(event, policyFlags); in sendInputEvent() 188 public void onInputEvent(InputEvent event, int policyFlags) { in onInputEvent() argument 189 sendInputEvent(event, policyFlags); in onInputEvent() 256 public void sendInputEvent(InputEvent event, int policyFlags); in sendInputEvent() argument
|
D | InputManagerService.java | 165 int policyFlags); in nativeInjectInputEvent() argument 1229 final boolean filterInputEvent(InputEvent event, int policyFlags) { in filterInputEvent() argument 1232 mInputFilter.filterInputEvent(event, policyFlags); in filterInputEvent() 1241 private int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags, boolean isScreenOn) { in interceptKeyBeforeQueueing() argument 1243 event, policyFlags, isScreenOn); in interceptKeyBeforeQueueing() 1247 private int interceptMotionBeforeQueueingWhenScreenOff(int policyFlags) { in interceptMotionBeforeQueueingWhenScreenOff() argument 1248 return mCallbacks.interceptMotionBeforeQueueingWhenScreenOff(policyFlags); in interceptMotionBeforeQueueingWhenScreenOff() 1253 KeyEvent event, int policyFlags) { in interceptKeyBeforeDispatching() argument 1254 return mCallbacks.interceptKeyBeforeDispatching(focus, event, policyFlags); in interceptKeyBeforeDispatching() 1259 KeyEvent event, int policyFlags) { in dispatchUnhandledKey() argument [all …]
|
/frameworks/base/services/jni/ |
D | com_android_server_input_InputManagerService.cpp | 193 uint32_t policyFlags); 198 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags); 201 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags); 202 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags); 205 const KeyEvent* keyEvent, uint32_t policyFlags); 207 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent); 251 void handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags); 573 int32_t switchValue, uint32_t policyFlags) { in notifySwitch() argument 576 when, switchCode, switchValue, policyFlags); in notifySwitch() 786 bool NativeInputManager::filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) { in filterInputEvent() argument [all …]
|
/frameworks/base/services/input/tests/ |
D | InputDispatcher_test.cpp | 68 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) { in filterInputEvent() argument 72 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags) { in interceptKeyBeforeQueueing() argument 75 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) { in interceptMotionBeforeQueueing() argument 79 const KeyEvent* keyEvent, uint32_t policyFlags) { in interceptKeyBeforeDispatching() argument 84 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) { in dispatchUnhandledKey() argument 89 int32_t switchCode, int32_t switchValue, uint32_t policyFlags) { in notifySwitch() argument
|
D | InputReader_test.cpp | 1486 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F() 1547 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F() 1562 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F() 1579 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F() 1596 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F() 1613 ASSERT_EQ(0U, args.policyFlags); in TEST_F() 1630 ASSERT_EQ(0U, args.policyFlags); in TEST_F() 2018 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F() 2040 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F() 2753 ASSERT_EQ(POLICY_FLAG_VIRTUAL, args.policyFlags); in TEST_F() [all …]
|
/frameworks/base/services/java/com/android/server/wm/ |
D | InputMonitor.java | 289 KeyEvent event, int policyFlags, boolean isScreenOn) { in interceptKeyBeforeQueueing() argument 290 return mService.mPolicy.interceptKeyBeforeQueueing(event, policyFlags, isScreenOn); in interceptKeyBeforeQueueing() 296 public int interceptMotionBeforeQueueingWhenScreenOff(int policyFlags) { in interceptMotionBeforeQueueingWhenScreenOff() argument 297 return mService.mPolicy.interceptMotionBeforeQueueingWhenScreenOff(policyFlags); in interceptMotionBeforeQueueingWhenScreenOff() 303 InputWindowHandle focus, KeyEvent event, int policyFlags) { in interceptKeyBeforeDispatching() argument 305 return mService.mPolicy.interceptKeyBeforeDispatching(windowState, event, policyFlags); in interceptKeyBeforeDispatching() 311 InputWindowHandle focus, KeyEvent event, int policyFlags) { in dispatchUnhandledKey() argument 313 return mService.mPolicy.dispatchUnhandledKey(windowState, event, policyFlags); in dispatchUnhandledKey()
|
/frameworks/base/core/java/android/view/ |
D | WindowManagerPolicy.java | 708 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags, boolean isScreenOn); in interceptKeyBeforeQueueing() argument 722 public int interceptMotionBeforeQueueingWhenScreenOff(int policyFlags); in interceptMotionBeforeQueueingWhenScreenOff() argument 740 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags); in interceptKeyBeforeDispatching() argument 756 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags); in dispatchUnhandledKey() argument
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | PhoneWindowManager.java | 1722 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags) { in interceptKeyBeforeDispatching() argument 2025 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags) { in dispatchUnhandledKey() argument 2034 + ", policyFlags=" + policyFlags); in dispatchUnhandledKey() 2067 if (!interceptFallback(win, fallbackEvent, policyFlags)) { in dispatchUnhandledKey() 2091 private boolean interceptFallback(WindowState win, KeyEvent fallbackEvent, int policyFlags) { in interceptFallback() argument 2092 int actions = interceptKeyBeforeQueueing(fallbackEvent, policyFlags, true); in interceptFallback() 2095 win, fallbackEvent, policyFlags); in interceptFallback() 3204 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags, boolean isScreenOn) { in interceptKeyBeforeQueueing() argument 3209 final boolean isInjected = (policyFlags & WindowManagerPolicy.FLAG_INJECTED) != 0; in interceptKeyBeforeQueueing() 3230 if (down && (policyFlags & WindowManagerPolicy.FLAG_VIRTUAL) != 0 in interceptKeyBeforeQueueing() [all …]
|