Searched defs:policyFlags (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/services/java/com/android/server/accessibility/
H A DAccessibilityInputFilter.java48 * @param policyFlags The policy flags associated with the event.
50 public void onMotionEvent(MotionEvent event, int policyFlags); argument
56 * @param policyFlags The policy flags associated with the event.
58 public void clear(MotionEvent event, int policyFlags); argument
93 public void onInputEvent(InputEvent event, int policyFlags) { argument
95 Slog.d(TAG, "Received event: " + event + ", policyFlags=0x"
96 + Integer.toHexString(policyFlags));
103 mTouchExplorer.clear(motionEvent, policyFlags);
105 if ((policyFlags & WindowManagerPolicy.FLAG_PASS_TO_USER) != 0) {
106 mTouchExplorer.onMotionEvent(motionEvent, policyFlags);
[all...]
H A DTouchExplorer.java152 public void clear(MotionEvent event, int policyFlags) { argument
153 sendUpForInjectedDownPointers(event, policyFlags);
160 public void onMotionEvent(MotionEvent event, int policyFlags) { argument
162 Slog.d(LOG_TAG_RECEIVED, "Received event: " + event + ", policyFlags=0x"
163 + Integer.toHexString(policyFlags));
172 handleMotionEventStateTouchExploring(event, policyFlags);
175 handleMotionEventStateDragging(event, policyFlags);
178 handleMotionEventStateDelegating(event, policyFlags);
190 * @param policyFlags The policy flags associated with the event.
192 private void handleMotionEventStateTouchExploring(MotionEvent event, int policyFlags) { argument
443 handleMotionEventStateDragging(MotionEvent event, int policyFlags) argument
516 handleMotionEventStateDelegating(MotionEvent event, int policyFlags) argument
555 sendDownForAllActiveNotInjectedPointers(MotionEvent prototype, int policyFlags) argument
592 ensureHoverExitSent(MotionEvent prototype, int pointerIdBits, int policyFlags) argument
607 sendUpForInjectedDownPointers(MotionEvent prototype, int policyFlags) argument
629 sendMotionEventStripInactivePointers(MotionEvent prototype, int policyFlags) argument
674 sendActionDownAndUp(MotionEvent prototype, int policyFlags) argument
690 sendMotionEvent(MotionEvent prototype, int action, int pointerIdBits, int policyFlags) argument
1359 post(MotionEvent prototype, int policyFlags, long delay) argument
1412 post(MotionEvent prototype, int action, int pointerIdBits, int policyFlags, long delay) argument
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DInputFilter.java150 final void filterInputEvent(InputEvent event, int policyFlags) { argument
151 mH.obtainMessage(MSG_INPUT_EVENT, policyFlags, 0, event).sendToTarget();
158 * @param policyFlags The input event policy flags.
160 public void sendInputEvent(InputEvent event, int policyFlags) { argument
171 mHost.sendInputEvent(event, policyFlags);
184 * @param policyFlags The input event policy flags.
186 public void onInputEvent(InputEvent event, int policyFlags) { argument
187 sendInputEvent(event, policyFlags);
254 public void sendInputEvent(InputEvent event, int policyFlags); argument
H A DInputMonitor.java278 KeyEvent event, int policyFlags, boolean isScreenOn) {
279 return mService.mPolicy.interceptKeyBeforeQueueing(event, policyFlags, isScreenOn);
285 public int interceptMotionBeforeQueueingWhenScreenOff(int policyFlags) { argument
286 return mService.mPolicy.interceptMotionBeforeQueueingWhenScreenOff(policyFlags);
292 InputWindowHandle focus, KeyEvent event, int policyFlags) {
294 return mService.mPolicy.interceptKeyBeforeDispatching(windowState, event, policyFlags);
300 InputWindowHandle focus, KeyEvent event, int policyFlags) {
302 return mService.mPolicy.dispatchUnhandledKey(windowState, event, policyFlags);
277 interceptKeyBeforeQueueing( KeyEvent event, int policyFlags, boolean isScreenOn) argument
291 interceptKeyBeforeDispatching( InputWindowHandle focus, KeyEvent event, int policyFlags) argument
299 dispatchUnhandledKey( InputWindowHandle focus, KeyEvent event, int policyFlags) argument
H A DInputManager.java86 int policyFlags);
507 public void sendInputEvent(InputEvent event, int policyFlags) { argument
515 policyFlags | WindowManagerPolicy.FLAG_FILTERED);
554 final boolean filterInputEvent(InputEvent event, int policyFlags) { argument
557 mInputFilter.filterInputEvent(event, policyFlags);
566 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags, boolean isScreenOn) { argument
568 event, policyFlags, isScreenOn);
572 public int interceptMotionBeforeQueueingWhenScreenOff(int policyFlags) { argument
574 policyFlags);
579 KeyEvent event, int policyFlags) {
84 nativeInjectInputEvent(InputEvent event, int injectorPid, int injectorUid, int syncMode, int timeoutMillis, int policyFlags) argument
578 interceptKeyBeforeDispatching(InputWindowHandle focus, KeyEvent event, int policyFlags) argument
585 dispatchUnhandledKey(InputWindowHandle focus, KeyEvent event, int policyFlags) argument
[all...]
/frameworks/base/services/input/
H A DInputListener.cpp46 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, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, float xPrecision, float yPrecision, nsecs_t downTime) argument
105 NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags, int32_t switchCode, int32_t switchValue) argument
[all...]
H A DInputListener.h58 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
100 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags,
117 uint32_t policyFlags; member in struct:android::NotifySwitchArgs
123 NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags,
H A DInputDispatcher.h224 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 int32_t switchCode, int32_t switchValue, uint32_t policyFlags) = 0;
304 uint32_t policyFlags) = 0;
388 uint32_t policyFlags);
436 uint32_t policyFlags; member in struct:android::InputDispatcher::EventEntry
446 EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags);
[all...]
H A DInputDispatcher.cpp329 && (entry->policyFlags & POLICY_FLAG_PASS_TO_USER)
380 if (mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER) {
390 if (!(mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER)) {
624 && (keyEntry->policyFlags & POLICY_FLAG_TRUSTED)
625 && (keyEntry->policyFlags & POLICY_FLAG_PASS_TO_USER);
710 uint32_t policyFlags = (entry->policyFlags & POLICY_FLAG_RAW_MASK) local
715 entry->policyFlags = policyFlags;
719 entry->deviceId, entry->source, policyFlags,
2658 uint32_t policyFlags = args->policyFlags; local
2754 uint32_t policyFlags = args->policyFlags; local
2990 uint32_t policyFlags = args->policyFlags; local
3015 injectInputEvent(const InputEvent* event, int32_t injectorPid, int32_t injectorUid, int32_t syncMode, int32_t timeoutMillis, uint32_t policyFlags) argument
4119 EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags) argument
4168 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
4206 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, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords) argument
[all...]
H A DInputReader.cpp174 uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState,
183 NotifyKeyArgs args(when, deviceId, source, policyFlags,
191 uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState) {
192 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags,
195 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags,
1863 int32_t scanCode, uint32_t policyFlags) {
1878 if ((policyFlags & POLICY_FLAG_VIRTUAL)
1924 && !(policyFlags & (POLICY_FLAG_WAKE | POLICY_FLAG_WAKE_DROPPED))) {
1925 policyFlags |= POLICY_FLAG_WAKE_DROPPED;
1936 NotifyKeyArgs args(when, getDeviceId(), mSource, policyFlags,
172 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
189 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
1862 processKey(nsecs_t when, bool down, int32_t keyCode, int32_t scanCode, uint32_t policyFlags) argument
2254 uint32_t policyFlags = 0; local
2261 policyFlags, lastButtonState, currentButtonState); local
2305 policyFlags, lastButtonState, currentButtonState); local
3352 uint32_t policyFlags = 0; local
3373 policyFlags, mLastButtonState, mCurrentButtonState); local
3443 policyFlags, mLastButtonState, mCurrentButtonState); local
3467 consumeRawTouches(nsecs_t when, uint32_t policyFlags) argument
3566 dispatchVirtualKey(nsecs_t when, uint32_t policyFlags, int32_t keyEventAction, int32_t keyEventFlags) argument
3579 dispatchTouches(nsecs_t when, uint32_t policyFlags) argument
3669 dispatchHoverExit(nsecs_t when, uint32_t policyFlags) argument
3685 dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags) argument
3914 dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage) argument
3936 abortPointerUsage(nsecs_t when, uint32_t policyFlags) argument
3954 dispatchPointerGestures(nsecs_t when, uint32_t policyFlags, bool isTimeout) argument
4161 abortPointerGestures(nsecs_t when, uint32_t policyFlags) argument
4937 dispatchPointerStylus(nsecs_t when, uint32_t policyFlags) argument
4967 abortPointerStylus(nsecs_t when, uint32_t policyFlags) argument
4971 dispatchPointerMouse(nsecs_t when, uint32_t policyFlags) argument
5020 abortPointerMouse(nsecs_t when, uint32_t policyFlags) argument
5026 dispatchPointerSimple(nsecs_t when, uint32_t policyFlags, bool down, bool hovering) argument
5139 abortPointerSimple(nsecs_t when, uint32_t policyFlags) argument
5146 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
5981 uint32_t policyFlags = 0; local
[all...]
/frameworks/base/services/input/tests/
H A DInputDispatcher_test.cpp68 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 int32_t switchCode, int32_t switchValue, 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, int32_t switchCode, int32_t switchValue, uint32_t policyFlags) argument
/frameworks/base/core/java/android/view/
H A DWindowManagerPolicy.java655 * @param policyFlags The policy flags associated with the key.
661 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags, boolean isScreenOn); argument
670 * @param policyFlags The policy flags associated with the motion.
675 public int interceptMotionBeforeQueueingWhenScreenOff(int policyFlags); argument
687 * @param policyFlags The policy flags associated with the key.
693 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags); argument
705 * @param policyFlags The policy flags associated with the key.
709 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags); argument
/frameworks/base/services/jni/
H A Dcom_android_server_InputManager.cpp199 uint32_t policyFlags);
204 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags);
207 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags);
208 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags);
211 const KeyEvent* keyEvent, uint32_t policyFlags);
213 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent);
256 void handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags);
503 int32_t switchValue, uint32_t policyFlags) {
505 LOGD("notifySwitch - when=%lld, switchCode=%d, switchValue=%d, policyFlags=0x%x",
506 when, switchCode, switchValue, policyFlags);
502 notifySwitch(nsecs_t when, int32_t switchCode, int32_t switchValue, uint32_t policyFlags) argument
721 filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) argument
753 interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags) argument
797 interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) argument
828 handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags) argument
853 interceptKeyBeforeDispatching( const sp<InputWindowHandle>& inputWindowHandle, const KeyEvent* keyEvent, uint32_t policyFlags) argument
889 dispatchUnhandledKey(const sp<InputWindowHandle>& inputWindowHandle, const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) argument
1142 android_server_InputManager_nativeInjectInputEvent(JNIEnv* env, jclass clazz, jobject inputEventObj, jint injectorPid, jint injectorUid, jint syncMode, jint timeoutMillis, jint policyFlags) argument
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DPhoneWindowManager.java1489 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags) { argument
1725 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags) { argument
1734 + ", policyFlags=" + policyFlags);
1756 int actions = interceptKeyBeforeQueueing(fallbackEvent, policyFlags, true);
1759 win, fallbackEvent, policyFlags);
2694 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags, boolean isScreenOn) { argument
2699 final boolean isInjected = (policyFlags & WindowManagerPolicy.FLAG_INJECTED) != 0;
2719 if (down && (policyFlags & WindowManagerPolicy.FLAG_VIRTUAL) != 0
2741 final boolean isWakeKey = (policyFlags
2966 interceptMotionBeforeQueueingWhenScreenOff(int policyFlags) argument
[all...]

Completed in 8720 milliseconds