Home
last modified time | relevance | path

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

12

/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DKeyboardInterceptor.java66 public void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() argument
71 long eventDelay = getEventDelay(event, policyFlags); in onKeyEvent()
76 addEventToQueue(event, policyFlags, eventDelay); in onKeyEvent()
80 mAms.notifyKeyEvent(event, policyFlags); in onKeyEvent()
96 private void addEventToQueue(KeyEvent event, int policyFlags, long delay) { in addEventToQueue() argument
100 KeyEventHolder.obtain(event, policyFlags, dispatchTime); in addEventToQueue()
104 final KeyEventHolder holder = KeyEventHolder.obtain(event, policyFlags, dispatchTime); in addEventToQueue()
120 final long eventDelay = getEventDelay(mEventQueueEnd.event, mEventQueueEnd.policyFlags); in processQueuedEvents()
128 mAms.notifyKeyEvent(mEventQueueEnd.event, mEventQueueEnd.policyFlags); in processQueuedEvents()
142 private long getEventDelay(KeyEvent event, int policyFlags) { in getEventDelay() argument
[all …]
DTouchExplorer.java235 private void clear(MotionEvent event, int policyFlags) { in clear() argument
239 sendHoverExitAndTouchExplorationGestureEndIfNeeded(policyFlags); in clear()
244 sendUpForInjectedDownPointers(event, policyFlags); in clear()
248 sendUpForInjectedDownPointers(event, policyFlags); in clear()
276 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
278 super.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
284 + Integer.toHexString(policyFlags)); in onMotionEvent()
290 if (mGestureDetector.onMotionEvent(event, rawEvent, policyFlags)) { in onMotionEvent()
296 clear(event, policyFlags); in onMotionEvent()
302 handleMotionEventStateTouchExploring(event, rawEvent, policyFlags); in onMotionEvent()
[all …]
DAccessibilityInputFilter.java177 public void onInputEvent(InputEvent event, int policyFlags) { in onInputEvent() argument
180 + Integer.toHexString(policyFlags)); in onInputEvent()
185 super.onInputEvent(event, policyFlags); in onInputEvent()
191 super.onInputEvent(event, policyFlags); in onInputEvent()
196 if ((policyFlags & WindowManagerPolicy.FLAG_PASS_TO_USER) == 0) { in onInputEvent()
199 super.onInputEvent(event, policyFlags); in onInputEvent()
208 super.onInputEvent(event, policyFlags); in onInputEvent()
215 processMotionEvent(state, motionEvent, policyFlags); in onInputEvent()
218 super.onInputEvent(event, policyFlags); in onInputEvent()
222 processKeyEvent(state, keyEvent, policyFlags); in onInputEvent()
[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
270 public boolean onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
277 mPolicyFlags = policyFlags; in onMotionEvent()
329 return mListener.onGestureCancelled(rawEvent, policyFlags); in onMotionEvent()
345 return finishDoubleTap(rawEvent, policyFlags); in onMotionEvent()
353 return recognizeGesture(rawEvent, policyFlags); in onMotionEvent()
378 return finishDoubleTap(rawEvent, policyFlags); in onMotionEvent()
446 private void maybeSendLongPress(MotionEvent event, int policyFlags) { in maybeSendLongPress() argument
[all …]
DMagnificationGestureHandler.java204 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
208 onMotionEventInternal(event, rawEvent, policyFlags); in onMotionEvent()
214 onMotionEventInternal(event, rawEvent, policyFlags); in onMotionEvent()
218 private void onMotionEventInternal(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEventInternal() argument
223 dispatchTransformedEvent(event, rawEvent, policyFlags); in onMotionEventInternal()
227 handleEventWith(mCurrentState, event, rawEvent, policyFlags); in onMotionEventInternal()
231 MotionEvent event, MotionEvent rawEvent, int policyFlags) { in handleEventWith() argument
236 stateHandler.onMotionEvent(event, rawEvent, policyFlags); in handleEventWith()
284 int policyFlags) { in dispatchTransformedEvent() argument
288 super.onMotionEvent(event, rawEvent, policyFlags); in dispatchTransformedEvent()
[all …]
DAutoclickController.java72 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
82 handleMouseMotion(event, policyFlags); in onMotionEvent()
87 super.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
91 public void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() argument
100 super.onKeyEvent(event, policyFlags); in onKeyEvent()
124 private void handleMouseMotion(MotionEvent event, int policyFlags) { in handleMouseMotion() argument
128 mClickScheduler.update(event, policyFlags); in handleMouseMotion()
289 public void update(MotionEvent event, int policyFlags) { in update() argument
293 cacheLastEvent(event, policyFlags, mLastMotionEvent == null || moved /* useAsAnchor */); in update()
357 private void cacheLastEvent(MotionEvent event, int policyFlags, boolean useAsAnchor) { in cacheLastEvent() argument
[all …]
DKeyEventDispatcher.java127 KeyEvent event, int policyFlags, List<? extends KeyEventFilter> keyEventFilters) { in notifyKeyEventLocked() argument
134 pendingKeyEvent = obtainPendingEventLocked(localClone, policyFlags); in notifyKeyEventLocked()
221 private PendingKeyEvent obtainPendingEventLocked(KeyEvent event, int policyFlags) { in obtainPendingEventLocked() argument
227 pendingEvent.policyFlags = policyFlags; in obtainPendingEventLocked()
270 int policyFlags = pendingEvent.policyFlags | WindowManagerPolicy.FLAG_PASS_TO_USER; in removeReferenceToPendingEventLocked() local
272 .obtainMessage(mMessageTypeForSendKeyEvent, policyFlags, 0, pendingEvent.event) in removeReferenceToPendingEventLocked()
284 int policyFlags; field in KeyEventDispatcher.PendingKeyEvent
DEventStreamTransformation.java68 default void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
71 next.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
81 default void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() argument
84 next.onKeyEvent(event, policyFlags); in onKeyEvent()
/frameworks/native/services/inputflinger/
DInputListener.cpp51 uint32_t source, int32_t displayId, uint32_t policyFlags, in NotifyKeyArgs() argument
55 displayId(displayId), policyFlags(policyFlags), in NotifyKeyArgs()
62 source(other.source), displayId(other.displayId), policyFlags(other.policyFlags), in NotifyKeyArgs()
74 && policyFlags == rhs.policyFlags in operator ==()
91 uint32_t source, int32_t displayId, uint32_t policyFlags, in NotifyMotionArgs() argument
99 displayId(displayId), policyFlags(policyFlags), in NotifyMotionArgs()
114 source(other.source), displayId(other.displayId), policyFlags(other.policyFlags), in NotifyMotionArgs()
134 && policyFlags == rhs.policyFlags in operator ==()
171 NotifySwitchArgs::NotifySwitchArgs(uint32_t sequenceNum, nsecs_t eventTime, uint32_t policyFlags, in NotifySwitchArgs() argument
173 NotifyArgs(sequenceNum, eventTime), policyFlags(policyFlags), in NotifySwitchArgs()
[all …]
/frameworks/native/services/inputflinger/dispatcher/include/
DInputDispatcherPolicyInterface.h65 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) = 0;
74 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags) = 0;
84 uint32_t& policyFlags) = 0;
89 uint32_t policyFlags) = 0;
94 uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) = 0;
99 uint32_t policyFlags) = 0;
/frameworks/native/services/inputflinger/dispatcher/
DEntry.cpp63 EventEntry::EventEntry(uint32_t sequenceNum, int32_t type, nsecs_t eventTime, uint32_t policyFlags) in EventEntry() argument
68 policyFlags(policyFlags), in EventEntry()
100 msg += StringPrintf("ConfigurationChangedEvent(), policyFlags=0x%08x", policyFlags); in appendDescription()
111 msg += StringPrintf("DeviceResetEvent(deviceId=%d), policyFlags=0x%08x", deviceId, policyFlags); in appendDescription()
117 int32_t displayId, uint32_t policyFlags, int32_t action, int32_t flags, in KeyEntry() argument
120 : EventEntry(sequenceNum, TYPE_KEY, eventTime, policyFlags), in KeyEntry()
146 keyCode, scanCode, metaState, repeatCount, policyFlags); in appendDescription()
161 int32_t displayId, uint32_t policyFlags, int32_t action, in MotionEntry() argument
167 : EventEntry(sequenceNum, TYPE_MOTION, eventTime, policyFlags), in MotionEntry()
216 msg += StringPrintf("]), policyFlags=0x%08x", policyFlags); in appendDescription()
DEntry.h48 uint32_t policyFlags; member
60 EventEntry(uint32_t sequenceNum, int32_t type, nsecs_t eventTime, uint32_t policyFlags);
107 int32_t displayId, uint32_t policyFlags, int32_t action, int32_t flags,
137 int32_t displayId, uint32_t policyFlags, int32_t action, int32_t actionButton,
DInputDispatcher.cpp332 if (mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER) { in dispatchOnceInnerLocked()
345 if (!(mPendingEvent->policyFlags & POLICY_FLAG_PASS_TO_USER)) { in dispatchOnceInnerLocked()
621 (keyEntry->policyFlags & POLICY_FLAG_TRUSTED) && in isAppSwitchKeyEvent()
622 (keyEntry->policyFlags & POLICY_FLAG_PASS_TO_USER); in isAppSwitchKeyEvent()
714 uint32_t policyFlags = entry->policyFlags & in synthesizeKeyRepeatLocked() local
719 entry->policyFlags = policyFlags; in synthesizeKeyRepeatLocked()
724 entry->source, entry->displayId, policyFlags, entry->action, in synthesizeKeyRepeatLocked()
776 (entry->policyFlags & POLICY_FLAG_TRUSTED) && in dispatchKeyLocked()
777 (!(entry->policyFlags & POLICY_FLAG_DISABLE_KEY_REPEAT))) { in dispatchKeyLocked()
823 if (entry->policyFlags & POLICY_FLAG_PASS_TO_USER) { in dispatchKeyLocked()
[all …]
DInputState.cpp223 memento.policyFlags = entry->policyFlags; in addKeyMemento()
238 memento.policyFlags = entry->policyFlags; in addMotionMemento()
257 memento.policyFlags, AKEY_EVENT_ACTION_UP, in synthesizeCancelationEvents()
270 memento.source, memento.displayId, memento.policyFlags, action, in synthesizeCancelationEvents()
/frameworks/base/core/java/android/view/
DInputFilter.java151 final public void filterInputEvent(InputEvent event, int policyFlags) { in filterInputEvent() argument
152 mH.obtainMessage(MSG_INPUT_EVENT, policyFlags, 0, event).sendToTarget(); in filterInputEvent()
161 public void sendInputEvent(InputEvent event, int policyFlags) { in sendInputEvent() argument
173 mHost.sendInputEvent(event, policyFlags); in sendInputEvent()
192 public void onInputEvent(InputEvent event, int policyFlags) { in onInputEvent() argument
193 sendInputEvent(event, policyFlags); in onInputEvent()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.h772 bool consumeRawTouches(nsecs_t when, uint32_t policyFlags);
775 void dispatchVirtualKey(nsecs_t when, uint32_t policyFlags, int32_t keyEventAction,
778 void dispatchTouches(nsecs_t when, uint32_t policyFlags);
779 void dispatchHoverExit(nsecs_t when, uint32_t policyFlags);
780 void dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags);
781 void dispatchButtonRelease(nsecs_t when, uint32_t policyFlags);
782 void dispatchButtonPress(nsecs_t when, uint32_t policyFlags);
785 void abortTouches(nsecs_t when, uint32_t policyFlags);
787 void dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage);
788 void abortPointerUsage(nsecs_t when, uint32_t policyFlags);
[all …]
DTouchCursorInputMapperCommon.h62 uint32_t policyFlags, int32_t lastButtonState, in synthesizeButtonKey() argument
69 policyFlags, action, 0, keyCode, 0, context->getGlobalMetaState(), when); in synthesizeButtonKey()
76 uint32_t policyFlags, int32_t lastButtonState, in synthesizeButtonKeys() argument
78 synthesizeButtonKey(context, action, when, deviceId, source, displayId, policyFlags, in synthesizeButtonKeys()
81 synthesizeButtonKey(context, action, when, deviceId, source, displayId, policyFlags, in synthesizeButtonKeys()
DKeyboardInputMapper.cpp255 uint32_t policyFlags; in processKey() local
258 &keyMetaState, &policyFlags)) { in processKey()
261 policyFlags = 0; in processKey()
277 if ((policyFlags & POLICY_FLAG_VIRTUAL) && in processKey()
281 if (policyFlags & POLICY_FLAG_GESTURE) { in processKey()
324 policyFlags |= POLICY_FLAG_WAKE; in processKey()
328 policyFlags |= POLICY_FLAG_DISABLE_KEY_REPEAT; in processKey()
332 policyFlags, down ? AKEY_EVENT_ACTION_DOWN : AKEY_EVENT_ACTION_UP, in processKey()
DTouchInputMapper.cpp1541 uint32_t policyFlags = 0; in cookAndDispatch() local
1550 policyFlags |= POLICY_FLAG_WAKE; in cookAndDispatch()
1556 if (consumeRawTouches(when, policyFlags)) { in cookAndDispatch()
1570 mViewport.displayId, policyFlags, mLastCookedState.buttonState, in cookAndDispatch()
1613 dispatchPointerUsage(when, policyFlags, pointerUsage); in cookAndDispatch()
1628 dispatchButtonRelease(when, policyFlags); in cookAndDispatch()
1629 dispatchHoverExit(when, policyFlags); in cookAndDispatch()
1630 dispatchTouches(when, policyFlags); in cookAndDispatch()
1631 dispatchHoverEnterAndMove(when, policyFlags); in cookAndDispatch()
1632 dispatchButtonPress(when, policyFlags); in cookAndDispatch()
[all …]
DCursorInputMapper.cpp371 uint32_t policyFlags = 0; in sync() local
373 policyFlags |= POLICY_FLAG_WAKE; in sync()
378 displayId, policyFlags, lastButtonState, currentButtonState); in sync()
399 mSource, displayId, policyFlags, in sync()
411 displayId, policyFlags, motionEventAction, 0, 0, metaState, in sync()
424 mSource, displayId, policyFlags, in sync()
440 displayId, policyFlags, AMOTION_EVENT_ACTION_HOVER_MOVE, 0, in sync()
455 mSource, displayId, policyFlags, in sync()
468 displayId, policyFlags, lastButtonState, currentButtonState); in sync()
DRotaryEncoderInputMapper.cpp108 uint32_t policyFlags = 0; in sync() local
110 policyFlags |= POLICY_FLAG_WAKE; in sync()
123 displayId, policyFlags, AMOTION_EVENT_ACTION_SCROLL, 0, 0, in sync()
/frameworks/base/services/core/java/com/android/server/wm/
DInputManagerCallback.java163 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) { in interceptKeyBeforeQueueing() argument
164 return mService.mPolicy.interceptKeyBeforeQueueing(event, policyFlags); in interceptKeyBeforeQueueing()
170 int policyFlags) { in interceptMotionBeforeQueueingNonInteractive() argument
172 displayId, whenNanos, policyFlags); in interceptMotionBeforeQueueingNonInteractive()
181 IBinder focus, KeyEvent event, int policyFlags) { in interceptKeyBeforeDispatching() argument
183 return mService.mPolicy.interceptKeyBeforeDispatching(windowState, event, policyFlags); in interceptKeyBeforeDispatching()
192 IBinder focus, KeyEvent event, int policyFlags) { in dispatchUnhandledKey() argument
194 return mService.mPolicy.dispatchUnhandledKey(windowState, event, policyFlags); in dispatchUnhandledKey()
/frameworks/native/services/inputflinger/include/
DInputListener.h70 uint32_t policyFlags; member
81 int32_t displayId, uint32_t policyFlags, int32_t action, int32_t flags, int32_t keyCode,
99 uint32_t policyFlags; member
128 int32_t displayId, uint32_t policyFlags,
148 uint32_t policyFlags; member
154 NotifySwitchArgs(uint32_t sequenceNum, nsecs_t eventTime, uint32_t policyFlags,
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp248 uint32_t policyFlags);
255 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags);
257 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags);
259 uint32_t& policyFlags);
262 const KeyEvent* keyEvent, uint32_t policyFlags);
264 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent);
321 void handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags);
671 when, switchValues, switchMask, policyFlags); in notifySwitch()
991 bool NativeInputManager::filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) { in filterInputEvent() argument
1016 inputEventObj, policyFlags); in filterInputEvent()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTestWindowManagerPolicy.java155 public int interceptKeyBeforeQueueing(KeyEvent event, int policyFlags) {
161 int policyFlags) {
166 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags) {
171 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags) {

12