Home
last modified time | relevance | path

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

123

/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DGestureMatcher.java92 @State int state, MotionEvent event, MotionEvent rawEvent, int policyFlags) { in setState() argument
95 mListener.onStateChanged(mGestureId, mState, event, rawEvent, policyFlags); in setState()
99 protected final void startGesture(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in startGesture() argument
100 setState(STATE_GESTURE_STARTED, event, rawEvent, policyFlags); in startGesture()
104 protected final void cancelGesture(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in cancelGesture() argument
105 setState(STATE_GESTURE_CANCELED, event, rawEvent, policyFlags); in cancelGesture()
109 protected final void completeGesture(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in completeGesture() argument
110 setState(STATE_GESTURE_COMPLETED, event, rawEvent, policyFlags); in completeGesture()
126 public final int onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
132 onDown(event, rawEvent, policyFlags); in onMotionEvent()
[all …]
DTouchExplorer.java195 private void clear(MotionEvent event, int policyFlags) { in clear() argument
198 sendHoverExitAndTouchExplorationGestureEndIfNeeded(policyFlags); in clear()
202 mDispatcher.sendUpForInjectedDownPointers(event, policyFlags); in clear()
205 mDispatcher.sendUpForInjectedDownPointers(event, policyFlags); in clear()
223 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
225 super.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
231 + Integer.toHexString(policyFlags)); in onMotionEvent()
237 if (mGestureDetector.onMotionEvent(event, rawEvent, policyFlags)) { in onMotionEvent()
244 clear(event, policyFlags); in onMotionEvent()
251 handleMotionEventStateClear(event, rawEvent, policyFlags); in onMotionEvent()
[all …]
DMultiTap.java62 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument
63 cancelAfterTapTimeout(event, rawEvent, policyFlags); in onDown()
69 cancelGesture(event, rawEvent, policyFlags); in onDown()
78 startGesture(event, rawEvent, policyFlags); in onDown()
83 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument
84 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp()
86 cancelGesture(event, rawEvent, policyFlags); in onUp()
92 completeGesture(event, rawEvent, policyFlags); in onUp()
96 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp()
99 cancelGesture(event, rawEvent, policyFlags); in onUp()
[all …]
DMultiFingerSwipe.java133 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument
135 cancelGesture(event, rawEvent, policyFlags); in onDown()
144 cancelGesture(event, rawEvent, policyFlags); in onDown()
149 cancelGesture(event, rawEvent, policyFlags); in onDown()
153 cancelAfterPauseThreshold(event, rawEvent, policyFlags); in onDown()
158 cancelGesture(event, rawEvent, policyFlags); in onDown()
167 cancelGesture(event, rawEvent, policyFlags); in onDown()
173 protected void onPointerDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerDown() argument
175 cancelGesture(event, rawEvent, policyFlags); in onPointerDown()
180 cancelGesture(event, rawEvent, policyFlags); in onPointerDown()
[all …]
DSecondFingerMultiTap.java65 protected void onPointerDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerDown() argument
67 cancelGesture(event, rawEvent, policyFlags); in onPointerDown()
73 cancelAfterTapTimeout(event, rawEvent, policyFlags); in onPointerDown()
79 cancelGesture(event, rawEvent, policyFlags); in onPointerDown()
86 protected void onPointerUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerUp() argument
88 cancelGesture(event, rawEvent, policyFlags); in onPointerUp()
91 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onPointerUp()
93 cancelGesture(event, rawEvent, policyFlags); in onPointerUp()
99 completeGesture(event, rawEvent, policyFlags); in onPointerUp()
103 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onPointerUp()
[all …]
DMultiFingerMultiTap.java93 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument
97 cancelGesture(event, rawEvent, policyFlags); in onDown()
100 cancelAfterTapTimeout(event, rawEvent, policyFlags); in onDown()
115 cancelGesture(event, rawEvent, policyFlags); in onDown()
120 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument
121 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp()
136 startGesture(event, rawEvent, policyFlags); in onUp()
140 completeAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp()
144 cancelGesture(event, rawEvent, policyFlags); in onUp()
149 protected void onMove(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMove() argument
[all …]
DMultiFingerMultiTapAndHold.java38 protected void onPointerDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerDown() argument
39 super.onPointerDown(event, rawEvent, policyFlags); in onPointerDown()
41 completeAfterLongPressTimeout(event, rawEvent, policyFlags); in onPointerDown()
46 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument
49 cancelGesture(event, rawEvent, policyFlags); in onUp()
51 super.onUp(event, rawEvent, policyFlags); in onUp()
52 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp()
DSwipe.java141 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument
153 protected void onMove(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMove() argument
177 cancelGesture(event, rawEvent, policyFlags); in onMove()
189 startGesture(event, rawEvent, policyFlags); in onMove()
193 cancelGesture(event, rawEvent, policyFlags); in onMove()
198 cancelGesture(event, rawEvent, policyFlags); in onMove()
211 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument
213 cancelGesture(event, rawEvent, policyFlags); in onUp()
224 recognizeGesture(event, rawEvent, policyFlags); in onUp()
228 protected void onPointerDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerDown() argument
[all …]
DMultiTapAndHold.java33 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument
34 super.onDown(event, rawEvent, policyFlags); in onDown()
36 completeAfterLongPressTimeout(event, rawEvent, policyFlags); in onDown()
41 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument
42 super.onUp(event, rawEvent, policyFlags); in onUp()
43 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp()
DEventDispatcher.java95 int policyFlags) { in sendMotionEvent() argument
130 + Integer.toHexString(policyFlags)); in sendMotionEvent()
134 policyFlags |= WindowManagerPolicy.FLAG_PASS_TO_USER; in sendMotionEvent()
136 mReceiver.onMotionEvent(event, rawEvent, policyFlags); in sendMotionEvent()
266 void sendDownForAllNotInjectedPointers(MotionEvent prototype, int policyFlags) { in sendDownForAllNotInjectedPointers() argument
282 policyFlags); in sendDownForAllNotInjectedPointers()
294 void sendUpForInjectedDownPointers(MotionEvent prototype, int policyFlags) { in sendUpForInjectedDownPointers() argument
305 prototype, action, mState.getLastReceivedEvent(), pointerIdBits, policyFlags); in sendUpForInjectedDownPointers()
310 public boolean longPressWithTouchEvents(MotionEvent event, int policyFlags) { in longPressWithTouchEvents() argument
321 sendDownForAllNotInjectedPointers(event, policyFlags); in longPressWithTouchEvents()
[all …]
DGestureManifold.java201 boolean onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
218 matcher.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
251 void onDoubleTapAndHold(MotionEvent event, MotionEvent rawEvent, int policyFlags); in onDoubleTapAndHold() argument
260 boolean onDoubleTap(MotionEvent event, MotionEvent rawEvent, int policyFlags); in onDoubleTap() argument
284 boolean onGestureCancelled(MotionEvent event, MotionEvent rawEvent, int policyFlags); in onGestureCancelled() argument
289 int gestureId, int state, MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onStateChanged() argument
299 onGestureCompleted(gestureId, event, rawEvent, policyFlags); in onStateChanged()
311 mListener.onGestureCancelled(event, rawEvent, policyFlags); in onStateChanged()
316 int gestureId, MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onGestureCompleted() argument
326 mListener.onDoubleTap(event, rawEvent, policyFlags); in onGestureCompleted()
[all …]
/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 …]
DAccessibilityInputFilter.java199 public void onInputEvent(InputEvent event, int policyFlags) { in onInputEvent() argument
202 + Integer.toHexString(policyFlags)); in onInputEvent()
207 super.onInputEvent(event, policyFlags); in onInputEvent()
213 super.onInputEvent(event, policyFlags); in onInputEvent()
218 if ((policyFlags & WindowManagerPolicy.FLAG_PASS_TO_USER) == 0) { in onInputEvent()
221 super.onInputEvent(event, policyFlags); in onInputEvent()
230 super.onInputEvent(event, policyFlags); in onInputEvent()
237 processMotionEvent(state, motionEvent, policyFlags); in onInputEvent()
240 super.onInputEvent(event, policyFlags); in onInputEvent()
244 processKeyEvent(state, keyEvent, policyFlags); in onInputEvent()
[all …]
DFullScreenMagnificationGestureHandler.java211 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
215 onMotionEventInternal(event, rawEvent, policyFlags); in onMotionEvent()
221 onMotionEventInternal(event, rawEvent, policyFlags); in onMotionEvent()
225 private void onMotionEventInternal(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEventInternal() argument
230 dispatchTransformedEvent(event, rawEvent, policyFlags); in onMotionEventInternal()
234 handleEventWith(mCurrentState, event, rawEvent, policyFlags); in onMotionEventInternal()
238 MotionEvent event, MotionEvent rawEvent, int policyFlags) { in handleEventWith() argument
243 stateHandler.onMotionEvent(event, rawEvent, policyFlags); in handleEventWith()
292 int policyFlags) { in dispatchTransformedEvent() argument
296 super.onMotionEvent(event, rawEvent, policyFlags); in dispatchTransformedEvent()
[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()
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 …]
/frameworks/native/services/inputflinger/
DInputListener.cpp55 int32_t displayId, uint32_t policyFlags, int32_t action, int32_t flags, in NotifyKeyArgs() argument
61 policyFlags(policyFlags), in NotifyKeyArgs()
74 policyFlags(other.policyFlags), in NotifyKeyArgs()
84 source == rhs.source && displayId == rhs.displayId && policyFlags == rhs.policyFlags && in operator ==()
97 int32_t displayId, uint32_t policyFlags, int32_t action, in NotifyMotionArgs() argument
110 policyFlags(policyFlags), in NotifyMotionArgs()
136 policyFlags(other.policyFlags), in NotifyMotionArgs()
163 source == rhs.source && displayId == rhs.displayId && policyFlags == rhs.policyFlags && in operator ==()
195 NotifySwitchArgs::NotifySwitchArgs(int32_t id, nsecs_t eventTime, uint32_t policyFlags, in NotifySwitchArgs() argument
198 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/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.h705 bool consumeRawTouches(nsecs_t when, uint32_t policyFlags);
708 void dispatchVirtualKey(nsecs_t when, uint32_t policyFlags, int32_t keyEventAction,
711 void dispatchTouches(nsecs_t when, uint32_t policyFlags);
712 void dispatchHoverExit(nsecs_t when, uint32_t policyFlags);
713 void dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags);
714 void dispatchButtonRelease(nsecs_t when, uint32_t policyFlags);
715 void dispatchButtonPress(nsecs_t when, uint32_t policyFlags);
718 void abortTouches(nsecs_t when, uint32_t policyFlags);
720 void dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage);
721 void abortPointerUsage(nsecs_t when, uint32_t policyFlags);
[all …]
DTouchCursorInputMapperCommon.h62 uint32_t policyFlags, int32_t lastButtonState, in synthesizeButtonKey() argument
68 NotifyKeyArgs args(context->getNextId(), when, deviceId, source, displayId, policyFlags, 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()
/frameworks/native/services/inputflinger/dispatcher/
DEntry.cpp60 EventEntry::EventEntry(int32_t id, Type type, nsecs_t eventTime, uint32_t policyFlags) in EventEntry() argument
65 policyFlags(policyFlags), in EventEntry()
103 msg += StringPrintf("ConfigurationChangedEvent(), policyFlags=0x%08x", policyFlags); in appendDescription()
114 msg += StringPrintf("DeviceResetEvent(deviceId=%d), policyFlags=0x%08x", deviceId, policyFlags); in appendDescription()
134 int32_t displayId, uint32_t policyFlags, int32_t action, int32_t flags, in KeyEntry() argument
137 : EventEntry(id, Type::KEY, eventTime, policyFlags), in KeyEntry()
163 keyCode, scanCode, metaState, repeatCount, policyFlags); in appendDescription()
178 int32_t displayId, uint32_t policyFlags, int32_t action, in MotionEntry() argument
185 : EventEntry(id, Type::MOTION, eventTime, policyFlags), in MotionEntry()
236 msg += StringPrintf("]), policyFlags=0x%08x", policyFlags); in appendDescription()
/frameworks/native/services/inputflinger/include/
DInputListener.h68 uint32_t policyFlags; member
79 int32_t displayId, uint32_t policyFlags, int32_t action, int32_t flags,
97 uint32_t policyFlags; member
127 int32_t displayId, uint32_t policyFlags, int32_t action, int32_t actionButton,
147 uint32_t policyFlags; member
153 NotifySwitchArgs(int32_t id, nsecs_t eventTime, uint32_t policyFlags, uint32_t switchValues,
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp240 uint32_t policyFlags) override;
247 virtual bool filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) override;
250 uint32_t& policyFlags) override;
252 uint32_t& policyFlags) override;
255 uint32_t policyFlags) override;
257 uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) override;
314 void handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags);
663 when, switchValues, switchMask, policyFlags); in notifySwitch()
954 bool NativeInputManager::filterInputEvent(const InputEvent* inputEvent, uint32_t policyFlags) { in filterInputEvent() argument
979 inputEventObj, policyFlags); in filterInputEvent()
[all …]

123