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

/frameworks/base/services/java/com/android/server/accessibility/
H A DEventStreamTransformation.java66 * @param policyFlags Policy flags for the event.
68 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags); argument
H A DAccessibilityInputFilter.java143 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
234 batchMotionEvent(MotionEvent event, int policyFlags) argument
274 handleMotionEvent(MotionEvent event, int policyFlags) argument
289 onMotionEvent(MotionEvent transformedEvent, MotionEvent rawEvent, int policyFlags) argument
380 public int policyFlags; field in class:AccessibilityInputFilter.MotionEventHolder
385 obtain(MotionEvent event, int policyFlags) argument
[all...]
H A DTouchExplorer.java261 private void clear(MotionEvent event, int policyFlags) { argument
265 sendHoverExitAndTouchExplorationGestureEndIfNeeded(policyFlags);
270 sendUpForInjectedDownPointers(event, policyFlags);
274 sendUpForInjectedDownPointers(event, policyFlags);
312 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { argument
314 Slog.d(LOG_TAG, "Received event: " + event + ", policyFlags=0x"
315 + Integer.toHexString(policyFlags));
323 handleMotionEventStateTouchExploring(event, rawEvent, policyFlags);
326 handleMotionEventStateDragging(event, policyFlags);
329 handleMotionEventStateDelegating(event, policyFlags);
386 handleMotionEventStateTouchExploring(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument
644 handleMotionEventStateDragging(MotionEvent event, int policyFlags) argument
737 handleMotionEventStateDelegating(MotionEvent event, int policyFlags) argument
774 handleMotionEventGestureDetecting(MotionEvent event, int policyFlags) argument
864 sendDownForAllNotInjectedPointers(MotionEvent prototype, int policyFlags) argument
887 sendHoverExitAndTouchExplorationGestureEndIfNeeded(int policyFlags) argument
904 sendTouchExplorationGestureStartAndHoverEnterIfNeeded(int policyFlags) argument
920 sendUpForInjectedDownPointers(MotionEvent prototype, int policyFlags) argument
942 sendActionDownAndUp(MotionEvent prototype, int policyFlags) argument
958 sendMotionEvent(MotionEvent prototype, int action, int pointerIdBits, int policyFlags) argument
1079 onMotionEvent(MotionEvent event, int policyFlags) argument
1132 onDoubleTap(MotionEvent secondTapUp, int policyFlags) argument
1299 post(MotionEvent prototype, int policyFlags) argument
1392 post(MotionEvent event, boolean touchExplorationInProgress, int pointerIdBits, int policyFlags) argument
1470 post(MotionEvent prototype, int pointerIdBits, int policyFlags) argument
[all...]
H A DScreenMagnifier.java332 int policyFlags) {
336 handleMotionEventStateDelegating(event, rawEvent, policyFlags);
339 mDetectingStateHandler.onMotionEvent(event, rawEvent, policyFlags);
342 mStateViewportDraggingHandler.onMotionEvent(event, policyFlags);
389 MotionEvent rawEvent, int policyFlags) {
432 mNext.onMotionEvent(event, rawEvent, policyFlags);
588 private void onMotionEvent(MotionEvent event, int policyFlags) { argument
656 final int policyFlags = message.arg1;
657 onActionTapAndHold(event, policyFlags);
671 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { argument
331 onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument
388 handleMotionEventStateDelegating(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument
778 cacheDelayedMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument
838 onActionTap(MotionEvent up, int policyFlags) argument
850 onActionTapAndHold(MotionEvent down, int policyFlags) argument
901 obtain(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument
919 initialize(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument
[all...]
H A DAccessibilityManagerService.java674 boolean notifyKeyEvent(KeyEvent event, int policyFlags) { argument
677 boolean handled = notifyKeyEventLocked(localClone, policyFlags, false);
679 handled = notifyKeyEventLocked(localClone, policyFlags, true);
855 private boolean notifyKeyEventLocked(KeyEvent event, int policyFlags, boolean isDefault) { argument
873 service.notifyKeyEvent(event, policyFlags);
1590 final int policyFlags = msg.arg1;
1593 mInputFilter.sendInputEvent(event, policyFlags);
1670 private PendingEvent obtainPendingEventLocked(KeyEvent event, int policyFlags, int sequence) { argument
1676 pendingEvent.policyFlags = policyFlags;
2373 notifyKeyEvent(KeyEvent event, int policyFlags) argument
2395 notifyKeyEventInternal(KeyEvent event, int policyFlags) argument
2558 notifyKeyEvent(KeyEvent event, int policyFlags) argument
2601 addPendingEventLocked(KeyEvent event, int policyFlags) argument
2639 sendKeyEventToInputFilter(KeyEvent event, int policyFlags) argument
2667 int policyFlags; field in class:AccessibilityManagerService.PendingEvent
[all...]
/frameworks/base/core/java/android/view/
H A DInputFilter.java155 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 DWindowManagerPolicy.java751 * @param policyFlags The policy flags associated with the key.
757 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags, boolean isScreenOn); argument
766 * @param policyFlags The policy flags associated with the motion.
771 public int interceptMotionBeforeQueueingWhenScreenOff(int policyFlags); argument
783 * @param policyFlags The policy flags associated with the key.
789 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags); argument
801 * @param policyFlags The policy flags associated with the key.
805 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags); argument
/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, 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 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
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 DInputDispatcher.h222 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) = 0;
231 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags) = 0;
240 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) = 0;
244 const KeyEvent* keyEvent, uint32_t policyFlags) = 0;
249 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) = 0;
254 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) = 0;
302 uint32_t policyFlags) = 0;
386 uint32_t policyFlags);
437 uint32_t policyFlags; member in struct:android::InputDispatcher::EventEntry
449 EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags);
751 uint32_t policyFlags; member in struct:android::InputDispatcher::InputState::KeyMemento
766 uint32_t policyFlags; member in struct:android::InputDispatcher::InputState::MotionMemento
[all...]
H A DInputDispatcher.cpp307 if (mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER) {
320 if (!(mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER)) {
560 && (keyEntry->policyFlags & POLICY_FLAG_TRUSTED)
561 && (keyEntry->policyFlags & POLICY_FLAG_PASS_TO_USER);
653 uint32_t policyFlags = (entry->policyFlags & POLICY_FLAG_RAW_MASK) local
658 entry->policyFlags = policyFlags;
662 entry->deviceId, entry->source, policyFlags,
716 && (entry->policyFlags
2359 uint32_t policyFlags = args->policyFlags; local
2459 uint32_t policyFlags = args->policyFlags; local
2514 uint32_t policyFlags = args->policyFlags; local
2539 injectInputEvent(const InputEvent* event, int32_t injectorPid, int32_t injectorUid, int32_t syncMode, int32_t timeoutMillis, uint32_t policyFlags) argument
3802 EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags) argument
3861 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
3896 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) argument
[all...]
H A DInputReader.cpp177 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,
2094 int32_t scanCode, uint32_t policyFlags) {
2109 if ((policyFlags & POLICY_FLAG_VIRTUAL)
2154 && !(policyFlags & (POLICY_FLAG_WAKE | POLICY_FLAG_WAKE_DROPPED))) {
2155 policyFlags |= POLICY_FLAG_WAKE_DROPPED;
2166 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
2093 processKey(nsecs_t when, bool down, int32_t keyCode, int32_t scanCode, uint32_t policyFlags) argument
2490 uint32_t policyFlags = 0; local
2497 policyFlags, lastButtonState, currentButtonState); local
2544 policyFlags, lastButtonState, currentButtonState); local
3726 uint32_t policyFlags = 0; local
3747 policyFlags, mLastButtonState, mCurrentButtonState); local
3817 policyFlags, mLastButtonState, mCurrentButtonState); local
3841 consumeRawTouches(nsecs_t when, uint32_t policyFlags) argument
3940 dispatchVirtualKey(nsecs_t when, uint32_t policyFlags, int32_t keyEventAction, int32_t keyEventFlags) argument
3953 dispatchTouches(nsecs_t when, uint32_t policyFlags) argument
4043 dispatchHoverExit(nsecs_t when, uint32_t policyFlags) argument
4059 dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags) argument
4330 dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage) argument
4352 abortPointerUsage(nsecs_t when, uint32_t policyFlags) argument
4370 dispatchPointerGestures(nsecs_t when, uint32_t policyFlags, bool isTimeout) argument
4578 abortPointerGestures(nsecs_t when, uint32_t policyFlags) argument
5366 dispatchPointerStylus(nsecs_t when, uint32_t policyFlags) argument
5396 abortPointerStylus(nsecs_t when, uint32_t policyFlags) argument
5400 dispatchPointerMouse(nsecs_t when, uint32_t policyFlags) argument
5449 abortPointerMouse(nsecs_t when, uint32_t policyFlags) argument
5455 dispatchPointerSimple(nsecs_t when, uint32_t policyFlags, bool down, bool hovering) argument
5575 abortPointerSimple(nsecs_t when, uint32_t policyFlags) argument
5582 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
6460 uint32_t policyFlags = 0; local
[all...]
/frameworks/base/services/input/tests/
H A DInputDispatcher_test.cpp69 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) { argument
73 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags) { argument
76 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) { argument
80 const KeyEvent* keyEvent, uint32_t policyFlags) {
85 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) {
90 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) {
79 interceptKeyBeforeDispatching(const sp<InputWindowHandle>& inputWindowHandle, const KeyEvent* keyEvent, uint32_t policyFlags) argument
84 dispatchUnhandledKey(const sp<InputWindowHandle>& inputWindowHandle, const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) argument
89 notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) argument
/frameworks/base/services/java/com/android/server/wm/
H A DInputMonitor.java356 KeyEvent event, int policyFlags, boolean isScreenOn) {
357 return mService.mPolicy.interceptKeyBeforeQueueing(event, policyFlags, isScreenOn);
364 public int interceptMotionBeforeQueueingWhenScreenOff(int policyFlags) { argument
365 return mService.mPolicy.interceptMotionBeforeQueueingWhenScreenOff(policyFlags);
372 InputWindowHandle focus, KeyEvent event, int policyFlags) {
374 return mService.mPolicy.interceptKeyBeforeDispatching(windowState, event, policyFlags);
381 InputWindowHandle focus, KeyEvent event, int policyFlags) {
383 return mService.mPolicy.dispatchUnhandledKey(windowState, event, policyFlags);
355 interceptKeyBeforeQueueing( KeyEvent event, int policyFlags, boolean isScreenOn) argument
371 interceptKeyBeforeDispatching( InputWindowHandle focus, KeyEvent event, int policyFlags) argument
380 dispatchUnhandledKey( InputWindowHandle focus, KeyEvent event, int policyFlags) argument
/frameworks/base/services/jni/
H A Dcom_android_server_input_InputManagerService.cpp192 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);
249 void handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags);
533 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) {
535 ALOGD("notifySwitch - when=%lld, switchValues=0x%08x, switchMask=0x%08x, policyFlags=0x%x",
536 when, switchValues, switchMask, policyFlags);
532 notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) argument
744 filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) argument
776 interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags) argument
820 interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) argument
851 handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags) argument
876 interceptKeyBeforeDispatching( const sp<InputWindowHandle>& inputWindowHandle, const KeyEvent* keyEvent, uint32_t policyFlags) argument
912 dispatchUnhandledKey(const sp<InputWindowHandle>& inputWindowHandle, const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) argument
1141 nativeInjectInputEvent(JNIEnv* env, jclass clazz, jint ptr, jobject inputEventObj, jint injectorPid, jint injectorUid, jint syncMode, jint timeoutMillis, jint policyFlags) argument
[all...]
/frameworks/base/services/java/com/android/server/input/
H A DInputManagerService.java172 int policyFlags);
1302 final boolean filterInputEvent(InputEvent event, int policyFlags) { argument
1306 mInputFilter.filterInputEvent(event, policyFlags);
1318 private int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags, boolean isScreenOn) { argument
1320 event, policyFlags, isScreenOn);
1324 private int interceptMotionBeforeQueueingWhenScreenOff(int policyFlags) { argument
1325 return mWindowManagerCallbacks.interceptMotionBeforeQueueingWhenScreenOff(policyFlags);
1330 KeyEvent event, int policyFlags) {
1331 return mWindowManagerCallbacks.interceptKeyBeforeDispatching(focus, event, policyFlags);
1336 KeyEvent event, int policyFlags) {
170 nativeInjectInputEvent(int ptr, InputEvent event, int injectorPid, int injectorUid, int syncMode, int timeoutMillis, int policyFlags) argument
1329 interceptKeyBeforeDispatching(InputWindowHandle focus, KeyEvent event, int policyFlags) argument
1335 dispatchUnhandledKey(InputWindowHandle focus, KeyEvent event, int policyFlags) argument
1484 interceptKeyBeforeQueueing(KeyEvent event, int policyFlags, boolean isScreenOn) argument
1486 interceptMotionBeforeQueueingWhenScreenOff(int policyFlags) argument
1488 interceptKeyBeforeDispatching(InputWindowHandle focus, KeyEvent event, int policyFlags) argument
1491 dispatchUnhandledKey(InputWindowHandle focus, KeyEvent event, int policyFlags) argument
1545 sendInputEvent(InputEvent event, int policyFlags) argument
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DPhoneWindowManager.java1944 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags) { argument
2293 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags) { argument
2302 + ", policyFlags=" + policyFlags);
2335 if (!interceptFallback(win, fallbackEvent, policyFlags)) {
2359 private boolean interceptFallback(WindowState win, KeyEvent fallbackEvent, int policyFlags) { argument
2360 int actions = interceptKeyBeforeQueueing(fallbackEvent, policyFlags, true);
2363 win, fallbackEvent, policyFlags);
3792 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags, boolean isScreenOn) { argument
3802 final boolean isInjected = (policyFlags
4112 interceptMotionBeforeQueueingWhenScreenOff(int policyFlags) argument
[all...]

Completed in 301 milliseconds