Home
last modified time | relevance | path

Searched refs:policyFlags (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityInputFilter.java181 public void onInputEvent(InputEvent event, int policyFlags) { in onInputEvent() argument
184 + Integer.toHexString(policyFlags)); in onInputEvent()
188 super.onInputEvent(event, policyFlags); in onInputEvent()
194 super.onInputEvent(event, policyFlags); in onInputEvent()
199 if ((policyFlags & WindowManagerPolicy.FLAG_PASS_TO_USER) == 0) { in onInputEvent()
202 super.onInputEvent(event, policyFlags); in onInputEvent()
211 super.onInputEvent(event, policyFlags); in onInputEvent()
218 processMotionEvent(state, motionEvent, policyFlags); in onInputEvent()
221 super.onInputEvent(event, policyFlags); in onInputEvent()
225 processKeyEvent(state, keyEvent, policyFlags); in onInputEvent()
[all …]
DTouchExplorer.java220 private void clear(MotionEvent event, int policyFlags) { in clear() argument
224 sendHoverExitAndTouchExplorationGestureEndIfNeeded(policyFlags); in clear()
229 sendUpForInjectedDownPointers(event, policyFlags); in clear()
233 sendUpForInjectedDownPointers(event, policyFlags); in clear()
266 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
269 mNext.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
276 + Integer.toHexString(policyFlags)); in onMotionEvent()
285 if (mGestureDetector.onMotionEvent(rawEvent, policyFlags)) { in onMotionEvent()
291 clear(event, policyFlags); in onMotionEvent()
297 handleMotionEventStateTouchExploring(event, rawEvent, policyFlags); in onMotionEvent()
[all …]
DMagnificationGestureHandler.java158 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
161 mNext.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
167 dispatchTransformedEvent(event, rawEvent, policyFlags); in onMotionEvent()
171 mMagnifiedContentInteractionStateHandler.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
174 handleMotionEventStateDelegating(event, rawEvent, policyFlags); in onMotionEvent()
178 mDetectingStateHandler.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
182 mStateViewportDraggingHandler.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
198 public void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() argument
200 mNext.onKeyEvent(event, policyFlags); in onKeyEvent()
263 MotionEvent rawEvent, int policyFlags) { in handleMotionEventStateDelegating() argument
[all …]
DAccessibilityGestureDetector.java105 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 …]
DKeyEventDispatcher.java126 KeyEvent event, int policyFlags, List<? extends KeyEventFilter> keyEventFilters) { in notifyKeyEventLocked() argument
133 pendingKeyEvent = obtainPendingEventLocked(localClone, policyFlags); in notifyKeyEventLocked()
220 private PendingKeyEvent obtainPendingEventLocked(KeyEvent event, int policyFlags) { in obtainPendingEventLocked() argument
226 pendingEvent.policyFlags = policyFlags; in obtainPendingEventLocked()
269 int policyFlags = pendingEvent.policyFlags | WindowManagerPolicy.FLAG_PASS_TO_USER; in removeReferenceToPendingEventLocked() local
271 .obtainMessage(mMessageTypeForSendKeyEvent, policyFlags, 0, pendingEvent.event) in removeReferenceToPendingEventLocked()
283 int policyFlags; field in KeyEventDispatcher.PendingKeyEvent
DKeyboardInterceptor.java35 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
37 mNext.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
42 public void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() argument
43 mAms.notifyKeyEvent(event, policyFlags); in onKeyEvent()
DAutoclickController.java76 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
86 handleMouseMotion(event, policyFlags); in onMotionEvent()
92 mNext.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
97 public void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() argument
107 mNext.onKeyEvent(event, policyFlags); in onKeyEvent()
146 private void handleMouseMotion(MotionEvent event, int policyFlags) { in handleMouseMotion() argument
150 mClickScheduler.update(event, policyFlags); in handleMouseMotion()
311 public void update(MotionEvent event, int policyFlags) { in update() argument
315 cacheLastEvent(event, policyFlags, mLastMotionEvent == null || moved /* useAsAnchor */); in update()
379 private void cacheLastEvent(MotionEvent event, int policyFlags, boolean useAsAnchor) { in cacheLastEvent() argument
[all …]
DEventStreamTransformation.java68 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags); in onMotionEvent() argument
76 public void onKeyEvent(KeyEvent event, int policyFlags); in onKeyEvent() argument
DMotionEventInjector.java114 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
116 sendMotionEventToNext(event, rawEvent, policyFlags); in onMotionEvent()
120 public void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() argument
122 mNext.onKeyEvent(event, policyFlags); in onKeyEvent()
294 int policyFlags) { in sendMotionEventToNext() argument
296 mNext.onMotionEvent(event, rawEvent, policyFlags); in sendMotionEventToNext()
/frameworks/native/services/inputflinger/
DInputListener.cpp46 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()
88 policyFlags(other.policyFlags), in NotifyMotionArgs()
106 NotifySwitchArgs::NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags, in NotifySwitchArgs() argument
108 eventTime(eventTime), policyFlags(policyFlags), in NotifySwitchArgs()
113 eventTime(other.eventTime), policyFlags(other.policyFlags), in NotifySwitchArgs()
DInputListener.h58 uint32_t policyFlags; member
68 NotifyKeyArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags,
85 uint32_t policyFlags; member
102 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags,
120 uint32_t policyFlags; member
126 NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags,
DInputDispatcher.cpp314 if (mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER) { in dispatchOnceInnerLocked()
327 if (!(mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER)) { in dispatchOnceInnerLocked()
564 && (keyEntry->policyFlags & POLICY_FLAG_TRUSTED) in isAppSwitchKeyEventLocked()
565 && (keyEntry->policyFlags & POLICY_FLAG_PASS_TO_USER); in isAppSwitchKeyEventLocked()
657 uint32_t policyFlags = entry->policyFlags & in synthesizeKeyRepeatLocked() local
662 entry->policyFlags = policyFlags; in synthesizeKeyRepeatLocked()
666 entry->deviceId, entry->source, policyFlags, in synthesizeKeyRepeatLocked()
720 && (entry->policyFlags & POLICY_FLAG_TRUSTED) in dispatchKeyLocked()
721 && (!(entry->policyFlags & POLICY_FLAG_DISABLE_KEY_REPEAT))) { in dispatchKeyLocked()
767 if (entry->policyFlags & POLICY_FLAG_PASS_TO_USER) { in dispatchKeyLocked()
[all …]
DInputDispatcher.h225 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) = 0;
234 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags) = 0;
243 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) = 0;
247 const KeyEvent* keyEvent, uint32_t policyFlags) = 0;
252 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) = 0;
257 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) = 0;
305 uint32_t policyFlags) = 0;
389 uint32_t policyFlags);
440 uint32_t policyFlags; member
452 EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags);
[all …]
DInputReader.cpp201 uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState, in synthesizeButtonKey() argument
210 NotifyKeyArgs args(when, deviceId, source, policyFlags, in synthesizeButtonKey()
218 uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState) { in synthesizeButtonKeys() argument
219 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags, in synthesizeButtonKeys()
222 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags, in synthesizeButtonKeys()
2298 uint32_t policyFlags; in processKey() local
2301 &keyCode, &keyMetaState, &policyFlags)) { in processKey()
2304 policyFlags = 0; in processKey()
2320 if ((policyFlags & POLICY_FLAG_VIRTUAL) in processKey()
2325 if (policyFlags & POLICY_FLAG_GESTURE) { in processKey()
[all …]
DInputReader.h1777 bool consumeRawTouches(nsecs_t when, uint32_t policyFlags);
1780 void dispatchVirtualKey(nsecs_t when, uint32_t policyFlags,
1783 void dispatchTouches(nsecs_t when, uint32_t policyFlags);
1784 void dispatchHoverExit(nsecs_t when, uint32_t policyFlags);
1785 void dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags);
1786 void dispatchButtonRelease(nsecs_t when, uint32_t policyFlags);
1787 void dispatchButtonPress(nsecs_t when, uint32_t policyFlags);
1790 void abortTouches(nsecs_t when, uint32_t policyFlags);
1792 void dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage);
1793 void abortPointerUsage(nsecs_t when, uint32_t policyFlags);
[all …]
/frameworks/base/core/java/android/view/
DInputFilter.java149 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()
DIInputFilterHost.aidl27 void sendInputEvent(in InputEvent event, int policyFlags); in sendInputEvent() argument
DIInputFilter.aidl31 void filterInputEvent(in InputEvent event, int policyFlags); in filterInputEvent() argument
DWindowManagerPolicy.java1069 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags); in interceptKeyBeforeQueueing() argument
1083 public int interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags); in interceptMotionBeforeQueueingNonInteractive() argument
1101 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags); in interceptKeyBeforeDispatching() argument
1117 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags); in dispatchUnhandledKey() argument
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp229 uint32_t policyFlags);
235 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags);
237 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags);
238 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags);
241 const KeyEvent* keyEvent, uint32_t policyFlags);
243 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent);
296 void handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags);
625 when, switchValues, switchMask, policyFlags); in notifySwitch()
906 bool NativeInputManager::filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) { in filterInputEvent() argument
930 inputEventObj, policyFlags); in filterInputEvent()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DInputMonitor.java447 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) { in interceptKeyBeforeQueueing() argument
448 return mService.mPolicy.interceptKeyBeforeQueueing(event, policyFlags); in interceptKeyBeforeQueueing()
455 public int interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags) { in interceptMotionBeforeQueueingNonInteractive() argument
457 whenNanos, policyFlags); in interceptMotionBeforeQueueingNonInteractive()
464 InputWindowHandle focus, KeyEvent event, int policyFlags) { in interceptKeyBeforeDispatching() argument
466 return mService.mPolicy.interceptKeyBeforeDispatching(windowState, event, policyFlags); in interceptKeyBeforeDispatching()
473 InputWindowHandle focus, KeyEvent event, int policyFlags) { in dispatchUnhandledKey() argument
475 return mService.mPolicy.dispatchUnhandledKey(windowState, event, policyFlags); in dispatchUnhandledKey()
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DTestWindowManagerPolicy.java257 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) {
262 public int interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags) {
268 int policyFlags) {
274 int policyFlags) {
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java215 int policyFlags); in nativeInjectInputEvent() argument
1899 final boolean filterInputEvent(InputEvent event, int policyFlags) { in filterInputEvent() argument
1903 mInputFilter.filterInputEvent(event, policyFlags); in filterInputEvent()
1915 private int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) { in interceptKeyBeforeQueueing() argument
1916 return mWindowManagerCallbacks.interceptKeyBeforeQueueing(event, policyFlags); in interceptKeyBeforeQueueing()
1920 private int interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags) { in interceptMotionBeforeQueueingNonInteractive() argument
1922 whenNanos, policyFlags); in interceptMotionBeforeQueueingNonInteractive()
1927 KeyEvent event, int policyFlags) { in interceptKeyBeforeDispatching() argument
1928 return mWindowManagerCallbacks.interceptKeyBeforeDispatching(focus, event, policyFlags); in interceptKeyBeforeDispatching()
1933 KeyEvent event, int policyFlags) { in dispatchUnhandledKey() argument
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityGestureDetectorTest.java179 int policyFlags = 0; in testPath() local
198 mDetector.onMotionEvent(event, policyFlags); in testPath()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1570 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F()
1631 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F()
1646 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F()
1663 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F()
1680 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F()
1697 ASSERT_EQ(0U, args.policyFlags); in TEST_F()
1714 ASSERT_EQ(0U, args.policyFlags); in TEST_F()
2102 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F()
2121 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F()
2143 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F()
[all …]

12