Home
last modified time | relevance | path

Searched refs:touchState (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/
DEditorTouchStateTest.java476 EditorTouchState touchState = new EditorTouchState(); in doTestDragDirection() local
481 touchState.update(event1, mConfig); in doTestDragDirection()
486 touchState.update(event2, mConfig); in doTestDragDirection()
488 assertThat(msg, touchState.getInitialDragDirectionXYRatio(), in doTestDragDirection()
508 private static void assertSingleTap(EditorTouchState touchState, float lastDownX, in assertSingleTap() argument
510 assertThat(touchState.getLastDownX(), is(lastDownX)); in assertSingleTap()
511 assertThat(touchState.getLastDownY(), is(lastDownY)); in assertSingleTap()
512 assertThat(touchState.getLastUpX(), is(lastUpX)); in assertSingleTap()
513 assertThat(touchState.getLastUpY(), is(lastUpY)); in assertSingleTap()
514 assertThat(touchState.isDoubleTap(), is(false)); in assertSingleTap()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipTouchGesture.java27 public void onDown(PipTouchState touchState) {} in onDown() argument
32 public boolean onMove(PipTouchState touchState) { in onMove() argument
39 public boolean onUp(PipTouchState touchState) { in onUp() argument
DPipTouchHandler.java808 public void onDown(PipTouchState touchState) {
809 if (!touchState.isUserInteracting()) {
822 mMovementWithinDismiss = touchState.getDownTouchPosition().y
835 public boolean onMove(PipTouchState touchState) { in onMove() argument
836 if (!touchState.isUserInteracting()) { in onMove()
840 if (touchState.startedDragging()) { in onMove()
845 if (touchState.isDragging()) { in onMove()
849 final PointF lastDelta = touchState.getLastTouchDelta(); in onMove()
863 final PointF curPos = touchState.getLastTouchPosition(); in onMove()
874 public boolean onUp(PipTouchState touchState) { in onUp() argument
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipTouchGesture.java27 public void onDown(PipTouchState touchState) {} in onDown() argument
32 public boolean onMove(PipTouchState touchState) { in onMove() argument
39 public boolean onUp(PipTouchState touchState) { in onUp() argument
DPipTouchHandler.java817 public void onDown(PipTouchState touchState) {
818 if (!touchState.isUserInteracting()) {
831 mMovementWithinDismiss = touchState.getDownTouchPosition().y
844 public boolean onMove(PipTouchState touchState) { in onMove() argument
845 if (!touchState.isUserInteracting()) { in onMove()
849 if (touchState.startedDragging()) { in onMove()
854 if (touchState.isDragging()) { in onMove()
858 final PointF lastDelta = touchState.getLastTouchDelta(); in onMove()
872 final PointF curPos = touchState.getLastTouchPosition(); in onMove()
883 public boolean onUp(PipTouchState touchState) { in onUp() argument
[all …]
/frameworks/native/libs/input/
DInputConsumer.cpp477 TouchState& touchState = mTouchStates[index]; in updateTouchState() local
478 touchState.initialize(deviceId, source); in updateTouchState()
479 touchState.addHistory(msg); in updateTouchState()
486 TouchState& touchState = mTouchStates[index]; in updateTouchState() local
487 touchState.addHistory(msg); in updateTouchState()
488 rewriteMessage(touchState, msg); in updateTouchState()
496 TouchState& touchState = mTouchStates[index]; in updateTouchState() local
497 touchState.lastResample.idBits.clearBit(msg.body.motion.getActionId()); in updateTouchState()
498 rewriteMessage(touchState, msg); in updateTouchState()
506 TouchState& touchState = mTouchStates[index]; in updateTouchState() local
[all …]
/frameworks/native/services/inputflinger/dispatcher/
DInputDispatcher.cpp766 void filterUntrustedTargets(TouchState& touchState, std::vector<InputTarget>& targets) { in filterUntrustedTargets() argument
767 std::erase_if(touchState.windows, [&](const TouchedWindow& window) { in filterUntrustedTargets()
791 bool shouldSplitTouch(const TouchState& touchState, const MotionEntry& entry) { in shouldSplitTouch() argument
796 for (const TouchedWindow& touchedWindow : touchState.windows) { in shouldSplitTouch()
1226 const TouchState& touchState = touchStateIt->second; in dispatchOnceInnerLocked() local
1227 if (!touchState.hasTouchingPointers(motionEntry->deviceId) && in dispatchOnceInnerLocked()
1228 !touchState.hasHoveringPointers(motionEntry->deviceId)) { in dispatchOnceInnerLocked()
1683 for (auto& [_, touchState] : mTouchStatesByDisplay) { in dispatchDeviceResetLocked()
1684 touchState.removeAllPointersForDevice(entry.deviceId); in dispatchDeviceResetLocked()
4117 for (const auto& [displayId, touchState] : mTouchStatesByDisplay) { in synthesizeCancelationEventsForAllConnectionsLocked()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java2220 private boolean scheduleNotifyTouchState(int displayId, int touchState) { in scheduleNotifyTouchState() argument
2227 service.notifyTouchState(displayId, touchState); in scheduleNotifyTouchState()