/frameworks/base/core/java/android/view/ |
H A D | IInputFilterHost.aidl | 27 void sendInputEvent(in InputEvent event, int policyFlags);
|
H A D | IInputFilter.aidl | 31 void filterInputEvent(in InputEvent event, int policyFlags);
|
H A D | InputFilter.java | 155 final public void filterInputEvent(InputEvent event, int policyFlags) { argument 156 mH.obtainMessage(MSG_INPUT_EVENT, policyFlags, 0, event).sendToTarget(); 163 * @param policyFlags The input event policy flags. 165 public void sendInputEvent(InputEvent event, int policyFlags) { argument 177 mHost.sendInputEvent(event, policyFlags); 193 * @param policyFlags The input event policy flags. 195 public void onInputEvent(InputEvent event, int policyFlags) { argument 196 sendInputEvent(event, policyFlags);
|
H A D | WindowManagerPolicy.java | 771 * @param policyFlags The policy flags associated with the key. 775 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags); argument 785 * @param policyFlags The policy flags associated with the motion. 789 public int interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags); argument 801 * @param policyFlags The policy flags associated with the key. 807 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags); argument 819 * @param policyFlags The policy flags associated with the key. 823 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags); argument
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | AccessibilityInputFilter.java | 143 public void onInputEvent(InputEvent event, int policyFlags) { argument 145 Slog.d(TAG, "Received event: " + event + ", policyFlags=0x" 146 + Integer.toHexString(policyFlags)); 151 onMotionEvent(motionEvent, policyFlags); 155 onKeyEvent(keyEvent, policyFlags); 157 super.onInputEvent(event, policyFlags); 161 private void onMotionEvent(MotionEvent event, int policyFlags) { argument 163 super.onInputEvent(event, policyFlags); 166 if ((policyFlags & WindowManagerPolicy.FLAG_PASS_TO_USER) == 0) { 170 super.onInputEvent(event, policyFlags); 209 onKeyEvent(KeyEvent event, int policyFlags) argument 235 batchMotionEvent(MotionEvent event, int policyFlags) argument 275 handleMotionEvent(MotionEvent event, int policyFlags) argument 290 onMotionEvent(MotionEvent transformedEvent, MotionEvent rawEvent, int policyFlags) argument 381 public int policyFlags; field in class:AccessibilityInputFilter.MotionEventHolder 386 obtain(MotionEvent event, int policyFlags) argument [all...] |
H A D | EventStreamTransformation.java | 66 * @param policyFlags Policy flags for the event. 68 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags); argument
|
H A D | TouchExplorer.java | 269 private void clear(MotionEvent event, int policyFlags) { argument 273 sendHoverExitAndTouchExplorationGestureEndIfNeeded(policyFlags); 278 sendUpForInjectedDownPointers(event, policyFlags); 282 sendUpForInjectedDownPointers(event, policyFlags); 320 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { argument 322 Slog.d(LOG_TAG, "Received event: " + event + ", policyFlags=0x" 323 + Integer.toHexString(policyFlags)); 331 handleMotionEventStateTouchExploring(event, rawEvent, policyFlags); 334 handleMotionEventStateDragging(event, policyFlags); 337 handleMotionEventStateDelegating(event, policyFlags); 394 handleMotionEventStateTouchExploring(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument 652 handleMotionEventStateDragging(MotionEvent event, int policyFlags) argument 745 handleMotionEventStateDelegating(MotionEvent event, int policyFlags) argument 782 handleMotionEventGestureDetecting(MotionEvent event, int policyFlags) argument 872 sendDownForAllNotInjectedPointers(MotionEvent prototype, int policyFlags) argument 895 sendHoverExitAndTouchExplorationGestureEndIfNeeded(int policyFlags) argument 912 sendTouchExplorationGestureStartAndHoverEnterIfNeeded(int policyFlags) argument 928 sendUpForInjectedDownPointers(MotionEvent prototype, int policyFlags) argument 951 sendActionDownAndUp(MotionEvent prototype, int policyFlags, boolean targetAccessibilityFocus) argument 970 sendMotionEvent(MotionEvent prototype, int action, int pointerIdBits, int policyFlags) argument 1091 onMotionEvent(MotionEvent event, int policyFlags) argument 1144 onDoubleTap(MotionEvent secondTapUp, int policyFlags) argument 1302 post(MotionEvent prototype, int policyFlags) argument 1365 post(MotionEvent event, boolean touchExplorationInProgress, int pointerIdBits, int policyFlags) argument 1443 post(MotionEvent prototype, int pointerIdBits, int policyFlags) argument [all...] |
H A D | ScreenMagnifier.java | 325 int policyFlags) { 329 handleMotionEventStateDelegating(event, rawEvent, policyFlags); 332 mDetectingStateHandler.onMotionEvent(event, rawEvent, policyFlags); 335 mStateViewportDraggingHandler.onMotionEvent(event, policyFlags); 378 MotionEvent rawEvent, int policyFlags) { 421 mNext.onMotionEvent(event, rawEvent, policyFlags); 577 private void onMotionEvent(MotionEvent event, int policyFlags) { argument 645 final int policyFlags = message.arg1; 646 onActionTapAndHold(event, policyFlags); 660 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { argument 324 onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument 377 handleMotionEventStateDelegating(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument 767 cacheDelayedMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument 827 onActionTap(MotionEvent up, int policyFlags) argument 839 onActionTapAndHold(MotionEvent down, int policyFlags) argument 890 obtain(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument 908 initialize(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument [all...] |
H A D | AccessibilityManagerService.java | 745 boolean notifyKeyEvent(KeyEvent event, int policyFlags) { argument 748 boolean handled = notifyKeyEventLocked(localClone, policyFlags, false); 750 handled = notifyKeyEventLocked(localClone, policyFlags, true); 888 private boolean notifyKeyEventLocked(KeyEvent event, int policyFlags, boolean isDefault) { argument 906 service.notifyKeyEvent(event, policyFlags); 1734 final int policyFlags = msg.arg1; 1737 mInputFilter.sendInputEvent(event, policyFlags); 1822 private PendingEvent obtainPendingEventLocked(KeyEvent event, int policyFlags, int sequence) { argument 1828 pendingEvent.policyFlags = policyFlags; 2722 notifyKeyEvent(KeyEvent event, int policyFlags) argument 2747 notifyKeyEventInternal(KeyEvent event, int policyFlags) argument 2918 notifyKeyEvent(KeyEvent event, int policyFlags) argument 2961 addPendingEventLocked(KeyEvent event, int policyFlags) argument 2999 sendKeyEventToInputFilter(KeyEvent event, int policyFlags) argument 3027 int policyFlags; field in class:AccessibilityManagerService.PendingEvent [all...] |
/frameworks/native/services/inputflinger/ |
H A D | InputListener.cpp | 46 uint32_t policyFlags, 49 eventTime(eventTime), deviceId(deviceId), source(source), policyFlags(policyFlags), 56 policyFlags(other.policyFlags), 70 uint32_t policyFlags, 75 eventTime(eventTime), deviceId(deviceId), source(source), policyFlags(policyFlags), 87 policyFlags(other.policyFlags), 45 NotifyKeyArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, nsecs_t downTime) argument 69 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, int32_t displayId, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, float xPrecision, float yPrecision, nsecs_t downTime) argument 106 NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags, uint32_t switchValues, uint32_t switchMask) argument [all...] |
H A D | InputListener.h | 58 uint32_t policyFlags; member in struct:android::NotifyKeyArgs 68 NotifyKeyArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, 85 uint32_t policyFlags; member in struct:android::NotifyMotionArgs 101 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, 118 uint32_t policyFlags; member in struct:android::NotifySwitchArgs 124 NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags,
|
H A D | InputDispatcher.cpp | 310 if (mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER) { 323 if (!(mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER)) { 557 && (keyEntry->policyFlags & POLICY_FLAG_TRUSTED) 558 && (keyEntry->policyFlags & POLICY_FLAG_PASS_TO_USER); 650 uint32_t policyFlags = entry->policyFlags & local 655 entry->policyFlags = policyFlags; 659 entry->deviceId, entry->source, policyFlags, 713 && (entry->policyFlags 2349 uint32_t policyFlags = args->policyFlags; local 2462 uint32_t policyFlags = args->policyFlags; local 2517 uint32_t policyFlags = args->policyFlags; local 2542 injectInputEvent(const InputEvent* event, int32_t displayId, int32_t injectorPid, int32_t injectorUid, int32_t syncMode, int32_t timeoutMillis, uint32_t policyFlags) argument 3828 EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags) argument 3887 KeyEntry(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, int32_t repeatCount, nsecs_t downTime) argument 3922 MotionEntry(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, float xPrecision, float yPrecision, nsecs_t downTime, int32_t displayId, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, float xOffset, float yOffset) argument [all...] |
H A 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 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) = 0; 299 uint32_t policyFlags) = 0; 383 uint32_t policyFlags); 434 uint32_t policyFlags; member in struct:android::InputDispatcher::EventEntry 446 EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags); 749 uint32_t policyFlags; member in struct:android::InputDispatcher::InputState::KeyMemento 764 uint32_t policyFlags; member in struct:android::InputDispatcher::InputState::MotionMemento [all...] |
H A D | InputReader.cpp | 177 uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState, 186 NotifyKeyArgs args(when, deviceId, source, policyFlags, 194 uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState) { 195 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags, 198 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags, 2117 int32_t scanCode, uint32_t policyFlags) { 2132 if ((policyFlags & POLICY_FLAG_VIRTUAL) 2177 policyFlags |= POLICY_FLAG_WAKE; 2181 policyFlags |= POLICY_FLAG_DISABLE_KEY_REPEAT; 2192 NotifyKeyArgs args(when, getDeviceId(), mSource, policyFlags, 175 synthesizeButtonKey(InputReaderContext* context, int32_t action, nsecs_t when, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState, int32_t buttonState, int32_t keyCode) argument 192 synthesizeButtonKeys(InputReaderContext* context, int32_t action, nsecs_t when, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState) argument 2116 processKey(nsecs_t when, bool down, int32_t keyCode, int32_t scanCode, uint32_t policyFlags) argument 2516 uint32_t policyFlags = 0; local 2523 policyFlags, lastButtonState, currentButtonState); local 2570 policyFlags, lastButtonState, currentButtonState); local 3784 uint32_t policyFlags = 0; local 3801 policyFlags, mLastButtonState, mCurrentButtonState); local 3871 policyFlags, mLastButtonState, mCurrentButtonState); local 3895 consumeRawTouches(nsecs_t when, uint32_t policyFlags) argument 3994 dispatchVirtualKey(nsecs_t when, uint32_t policyFlags, int32_t keyEventAction, int32_t keyEventFlags) argument 4007 dispatchTouches(nsecs_t when, uint32_t policyFlags) argument 4097 dispatchHoverExit(nsecs_t when, uint32_t policyFlags) argument 4113 dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags) argument 4390 dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage) argument 4412 abortPointerUsage(nsecs_t when, uint32_t policyFlags) argument 4430 dispatchPointerGestures(nsecs_t when, uint32_t policyFlags, bool isTimeout) argument 4638 abortPointerGestures(nsecs_t when, uint32_t policyFlags) argument 5426 dispatchPointerStylus(nsecs_t when, uint32_t policyFlags) argument 5456 abortPointerStylus(nsecs_t when, uint32_t policyFlags) argument 5460 dispatchPointerMouse(nsecs_t when, uint32_t policyFlags) argument 5509 abortPointerMouse(nsecs_t when, uint32_t policyFlags) argument 5515 dispatchPointerSimple(nsecs_t when, uint32_t policyFlags, bool down, bool hovering) argument 5635 abortPointerSimple(nsecs_t when, uint32_t policyFlags) argument 5642 dispatchMotion(nsecs_t when, uint32_t policyFlags, uint32_t source, int32_t action, int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, const PointerProperties* properties, const PointerCoords* coords, const uint32_t* idToIndex, BitSet32 idBits, int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime) argument 6520 uint32_t policyFlags = 0; local [all...] |
H A D | InputReader.h | 1099 uint32_t policyFlags); 1677 bool consumeRawTouches(nsecs_t when, uint32_t policyFlags); 1678 void dispatchVirtualKey(nsecs_t when, uint32_t policyFlags, 1681 void dispatchTouches(nsecs_t when, uint32_t policyFlags); 1682 void dispatchHoverExit(nsecs_t when, uint32_t policyFlags); 1683 void dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags); 1686 void dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage); 1687 void abortPointerUsage(nsecs_t when, uint32_t policyFlags); 1689 void dispatchPointerGestures(nsecs_t when, uint32_t policyFlags, bool isTimeout); 1690 void abortPointerGestures(nsecs_t when, uint32_t policyFlags); [all...] |
/frameworks/native/services/inputflinger/tests/ |
H A D | InputDispatcher_test.cpp | 68 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) { argument 72 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags) { argument 75 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) { argument 79 const KeyEvent* keyEvent, uint32_t policyFlags) { 84 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) { 89 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) { 78 interceptKeyBeforeDispatching(const sp<InputWindowHandle>& inputWindowHandle, const KeyEvent* keyEvent, uint32_t policyFlags) argument 83 dispatchUnhandledKey(const sp<InputWindowHandle>& inputWindowHandle, const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) argument 88 notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) argument
|
H A D | InputReader_test.cpp | 1526 ASSERT_EQ(uint32_t(0), args.policyFlags); 1587 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); 1602 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); 1619 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); 1636 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); 1653 ASSERT_EQ(0U, args.policyFlags); 1670 ASSERT_EQ(0U, args.policyFlags); 2058 ASSERT_EQ(uint32_t(0), args.policyFlags); 2080 ASSERT_EQ(uint32_t(0), args.policyFlags); 2813 ASSERT_EQ(POLICY_FLAG_VIRTUAL, args.policyFlags); [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_input_InputManagerService.cpp | 210 uint32_t policyFlags); 216 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags); 218 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags); 219 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags); 222 const KeyEvent* keyEvent, uint32_t policyFlags); 224 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent); 268 void handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags); 551 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) { 553 ALOGD("notifySwitch - when=%lld, switchValues=0x%08x, switchMask=0x%08x, policyFlags=0x%x", 554 when, switchValues, switchMask, policyFlags); 550 notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) argument 795 filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) argument 827 interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags) argument 863 interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) argument 894 handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags) argument 905 interceptKeyBeforeDispatching( const sp<InputWindowHandle>& inputWindowHandle, const KeyEvent* keyEvent, uint32_t policyFlags) argument 941 dispatchUnhandledKey(const sp<InputWindowHandle>& inputWindowHandle, const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) argument 1174 nativeInjectInputEvent(JNIEnv* env, jclass clazz, jlong ptr, jobject inputEventObj, jint displayId, jint injectorPid, jint injectorUid, jint syncMode, jint timeoutMillis, jint policyFlags) argument [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | InputMonitor.java | 369 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) { argument 370 return mService.mPolicy.interceptKeyBeforeQueueing(event, policyFlags); 377 public int interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags) { argument 379 whenNanos, policyFlags); 386 InputWindowHandle focus, KeyEvent event, int policyFlags) { 388 return mService.mPolicy.interceptKeyBeforeDispatching(windowState, event, policyFlags); 395 InputWindowHandle focus, KeyEvent event, int policyFlags) { 397 return mService.mPolicy.dispatchUnhandledKey(windowState, event, policyFlags); 385 interceptKeyBeforeDispatching( InputWindowHandle focus, KeyEvent event, int policyFlags) argument 394 dispatchUnhandledKey( InputWindowHandle focus, KeyEvent event, int policyFlags) argument
|
/frameworks/base/services/core/java/com/android/server/input/ |
H A D | InputManagerService.java | 179 int policyFlags); 1437 final boolean filterInputEvent(InputEvent event, int policyFlags) { argument 1441 mInputFilter.filterInputEvent(event, policyFlags); 1453 private int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) { argument 1454 return mWindowManagerCallbacks.interceptKeyBeforeQueueing(event, policyFlags); 1458 private int interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags) { argument 1460 whenNanos, policyFlags); 1465 KeyEvent event, int policyFlags) { 1466 return mWindowManagerCallbacks.interceptKeyBeforeDispatching(focus, event, policyFlags); 1471 KeyEvent event, int policyFlags) { 177 nativeInjectInputEvent(long ptr, InputEvent event, int displayId, int injectorPid, int injectorUid, int syncMode, int timeoutMillis, int policyFlags) argument 1464 interceptKeyBeforeDispatching(InputWindowHandle focus, KeyEvent event, int policyFlags) argument 1470 dispatchUnhandledKey(InputWindowHandle focus, KeyEvent event, int policyFlags) argument 1620 interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) argument 1622 interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags) argument 1624 interceptKeyBeforeDispatching(InputWindowHandle focus, KeyEvent event, int policyFlags) argument 1627 dispatchUnhandledKey(InputWindowHandle focus, KeyEvent event, int policyFlags) argument 1682 sendInputEvent(InputEvent event, int policyFlags) argument [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | PhoneWindowManager.java | 2397 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags) { argument 2769 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags) { argument 2778 + ", policyFlags=" + policyFlags); 2811 if (!interceptFallback(win, fallbackEvent, policyFlags)) { 2835 private boolean interceptFallback(WindowState win, KeyEvent fallbackEvent, int policyFlags) { argument 2836 int actions = interceptKeyBeforeQueueing(fallbackEvent, policyFlags); 2839 win, fallbackEvent, policyFlags); 4490 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) { argument 4496 final boolean interactive = (policyFlags 4826 interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags) argument [all...] |