Home
last modified time | relevance | path

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

12

/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DKeyboardInterceptor.java68 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
70 mNext.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
75 public void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() argument
80 long eventDelay = getEventDelay(event, policyFlags); in onKeyEvent()
85 addEventToQueue(event, policyFlags, eventDelay); in onKeyEvent()
89 mAms.notifyKeyEvent(event, policyFlags); in onKeyEvent()
128 private void addEventToQueue(KeyEvent event, int policyFlags, long delay) { in addEventToQueue() argument
132 KeyEventHolder.obtain(event, policyFlags, dispatchTime); in addEventToQueue()
136 final KeyEventHolder holder = KeyEventHolder.obtain(event, policyFlags, dispatchTime); in addEventToQueue()
152 final long eventDelay = getEventDelay(mEventQueueEnd.event, mEventQueueEnd.policyFlags); in processQueuedEvents()
[all …]
DAccessibilityInputFilter.java184 public void onInputEvent(InputEvent event, int policyFlags) { in onInputEvent() argument
187 + Integer.toHexString(policyFlags)); in onInputEvent()
191 super.onInputEvent(event, policyFlags); in onInputEvent()
197 super.onInputEvent(event, policyFlags); in onInputEvent()
202 if ((policyFlags & WindowManagerPolicy.FLAG_PASS_TO_USER) == 0) { in onInputEvent()
205 super.onInputEvent(event, policyFlags); in onInputEvent()
214 super.onInputEvent(event, policyFlags); in onInputEvent()
221 processMotionEvent(state, motionEvent, policyFlags); in onInputEvent()
224 super.onInputEvent(event, policyFlags); in onInputEvent()
228 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
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.cpp227 uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState, in synthesizeButtonKey() argument
236 NotifyKeyArgs args(when, deviceId, source, policyFlags, in synthesizeButtonKey()
244 uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState) { in synthesizeButtonKeys() argument
245 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags, in synthesizeButtonKeys()
248 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags, in synthesizeButtonKeys()
2409 uint32_t policyFlags; in processKey() local
2412 &keyCode, &keyMetaState, &policyFlags)) { in processKey()
2415 policyFlags = 0; in processKey()
2431 if ((policyFlags & POLICY_FLAG_VIRTUAL) in processKey()
2436 if (policyFlags & POLICY_FLAG_GESTURE) { in processKey()
[all …]
DInputReader.h1796 bool consumeRawTouches(nsecs_t when, uint32_t policyFlags);
1799 void dispatchVirtualKey(nsecs_t when, uint32_t policyFlags,
1802 void dispatchTouches(nsecs_t when, uint32_t policyFlags);
1803 void dispatchHoverExit(nsecs_t when, uint32_t policyFlags);
1804 void dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags);
1805 void dispatchButtonRelease(nsecs_t when, uint32_t policyFlags);
1806 void dispatchButtonPress(nsecs_t when, uint32_t policyFlags);
1809 void abortTouches(nsecs_t when, uint32_t policyFlags);
1811 void dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage);
1812 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.java1096 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags); in interceptKeyBeforeQueueing() argument
1110 public int interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags); in interceptMotionBeforeQueueingNonInteractive() argument
1128 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags); in interceptKeyBeforeDispatching() argument
1144 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags); in dispatchUnhandledKey() argument
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp239 uint32_t policyFlags);
245 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags);
247 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags);
248 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags);
251 const KeyEvent* keyEvent, uint32_t policyFlags);
253 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent);
309 void handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags);
647 when, switchValues, switchMask, policyFlags); in notifySwitch()
952 bool NativeInputManager::filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) { in filterInputEvent() argument
977 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.java271 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) {
276 public int interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags) {
282 int policyFlags) {
288 int policyFlags) {
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java218 int policyFlags); in nativeInjectInputEvent() argument
1954 final boolean filterInputEvent(InputEvent event, int policyFlags) { in filterInputEvent() argument
1958 mInputFilter.filterInputEvent(event, policyFlags); in filterInputEvent()
1970 private int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) { in interceptKeyBeforeQueueing() argument
1971 return mWindowManagerCallbacks.interceptKeyBeforeQueueing(event, policyFlags); in interceptKeyBeforeQueueing()
1975 private int interceptMotionBeforeQueueingNonInteractive(long whenNanos, int policyFlags) { in interceptMotionBeforeQueueingNonInteractive() argument
1977 whenNanos, policyFlags); in interceptMotionBeforeQueueingNonInteractive()
1982 KeyEvent event, int policyFlags) { in interceptKeyBeforeDispatching() argument
1983 return mWindowManagerCallbacks.interceptKeyBeforeDispatching(focus, event, policyFlags); in interceptKeyBeforeDispatching()
1988 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.cpp1703 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F()
1764 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F()
1779 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F()
1796 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F()
1813 ASSERT_EQ(POLICY_FLAG_WAKE, args.policyFlags); in TEST_F()
1830 ASSERT_EQ(0U, args.policyFlags); in TEST_F()
1847 ASSERT_EQ(0U, args.policyFlags); in TEST_F()
2235 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F()
2254 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F()
2276 ASSERT_EQ(uint32_t(0), args.policyFlags); in TEST_F()
[all …]

12