Home
last modified time | relevance | path

Searched refs:touchX (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/window/
DBackTouchTrackerTest.kt48 var touchX = 10f in generatesProgress_leftEdge() variable
53 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
54 linearTracker.assertProgress((touchX - INITIAL_X_LEFT_EDGE) / MAX_DISTANCE) in generatesProgress_leftEdge()
57 touchX += 100f in generatesProgress_leftEdge()
59 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
60 linearTracker.assertProgress((touchX - INITIAL_X_LEFT_EDGE) / MAX_DISTANCE) in generatesProgress_leftEdge()
63 touchX -= 10f in generatesProgress_leftEdge()
65 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
69 touchX -= 10f in generatesProgress_leftEdge()
70 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
[all …]
/frameworks/base/core/java/android/window/
DBackTouchTracker.java61 public void update(float touchX, float touchY, float velocityX, float velocityY) { in update() argument
66 if ((touchX < mStartThresholdX && mSwipeEdge == BackEvent.EDGE_LEFT) in update()
67 || (touchX > mStartThresholdX && mSwipeEdge == BackEvent.EDGE_RIGHT)) { in update()
68 mStartThresholdX = touchX; in update()
74 mLatestTouchX = touchX; in update()
125 public void setGestureStartLocation(float touchX, float touchY, int swipeEdge) { in setGestureStartLocation() argument
126 mInitTouchX = touchX; in setGestureStartLocation()
128 mLatestTouchX = touchX; in setGestureStartLocation()
179 public float getProgress(float touchX) { in getProgress() argument
188 distance = touchX - startX; in getProgress()
[all …]
DBackEvent.java65 public BackEvent(float touchX, float touchY, float progress, @SwipeEdge int swipeEdge) { in BackEvent() argument
66 mTouchX = touchX; in BackEvent()
DBackMotionEvent.java64 float touchX, in BackMotionEvent() argument
72 mTouchX = touchX; in BackMotionEvent()
/frameworks/base/services/core/java/com/android/server/wm/
DDragDropController.java157 float touchX, float touchY, float thumbCenterX, float thumbCenterY, ClipData data) { in performDrag() argument
160 Integer.toHexString(flags) + " data=" + data + " touch(" + touchX + "," in performDrag()
166 touchSource, touchX, touchY, thumbCenterX, thumbCenterY, data); in performDrag()
228 mDragState.broadcastDragStartedLocked(touchX, touchY); in performDrag()
266 mDragState.broadcastDragStartedLocked(touchX, touchY); in performDrag()
287 mDragState.updateDragSurfaceLocked(true, touchX, touchY); in performDrag()
DDragState.java487 void broadcastDragStartedLocked(final float touchX, final float touchY) { in broadcastDragStartedLocked() argument
489 mOriginalX = mCurrentX = touchX; in broadcastDragStartedLocked()
505 Slog.d(TAG_WM, "Broadcasting DRAG_STARTED at (" + touchX + ", " + touchY + ")"); in broadcastDragStartedLocked()
510 sendDragStartedLocked(w, touchX, touchY, containsAppExtras); in broadcastDragStartedLocked()
522 private void sendDragStartedLocked(WindowState newWin, float touchX, float touchY, in sendDragStartedLocked() argument
532 newWin.translateToWindowX(touchX), newWin.translateToWindowY(touchY), in sendDragStartedLocked()
DSession.java374 int touchDeviceId, int touchPointerId, float touchX, float touchY, float thumbCenterX, in performDrag() argument
384 touchDeviceId, touchPointerId, touchX, touchY, thumbCenterX, thumbCenterY, in performDrag()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/
DBackAnimation.java44 float touchX, in onBackMotion() argument
DBackAnimationController.java313 float touchX, in onBackMotion() argument
321 /* touchX = */ touchX, in onBackMotion()
449 float touchX, in onMotionEvent() argument
458 activeTouchTracker.update(touchX, touchY, velocityX, velocityY); in onMotionEvent()
477 onGestureStarted(touchX, touchY, swipeEdge); in onMotionEvent()
491 private void onGestureStarted(float touchX, float touchY, @BackEvent.SwipeEdge int swipeEdge) { in onGestureStarted() argument
510 touchTracker.setGestureStartLocation(touchX, touchY, swipeEdge); in onGestureStarted()
DCrossActivityBackAnimation.kt170 initialTouchPos.set(backMotionEvent.touchX, backMotionEvent.touchY) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/back/
DBackProgressAnimatorTest.java52 private BackMotionEvent backMotionEventFrom(float touchX, float progress) { in backMotionEventFrom() argument
54 /* touchX = */ touchX, in backMotionEventFrom()
DCustomCrossActivityBackAnimationTest.kt217 private fun backMotionEventFrom(touchX: Float, progress: Float) = in backMotionEventFrom()
219 /* touchX = */ touchX, in backMotionEventFrom()
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/
DUdfpsUtils.java188 private String onTouchOutsideOfSensorAreaImpl(String[] touchHints, float touchX, in onTouchOutsideOfSensorAreaImpl() argument
190 float xRelativeToSensor = touchX - sensorX; in onTouchOutsideOfSensorAreaImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/footer/ui/view/
DFooterView.java323 public boolean isOnEmptySpace(float touchX, float touchY) { in isOnEmptySpace() argument
324 return touchX < mContent.getX() in isOnEmptySpace()
325 || touchX > mContent.getX() + mContent.getWidth() in isOnEmptySpace()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java1233 int touchX = (int) me.getX() - mPaddingLeft;
1239 int keyIndex = getKeyIndices(touchX, touchY, null);
1268 mStartX = touchX;
1270 mLastCodeX = touchX;
1349 touchX = mLastCodeX;
1356 detectAndSendKey(mCurrentKey, touchX, touchY, eventTime);
1369 mLastX = touchX;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DHeadsUpTouchHelper.java193 ExpandableView getChildAtRawPosition(float touchX, float touchY);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java1831 private ExpandableView getChildAtPosition(float touchX, float touchY) {
1832 return getChildAtPosition(touchX, touchY, true /* requireMinHeight */,
1846 ExpandableView getChildAtPosition(float touchX, float touchY, boolean requireMinHeight,
1867 && touchY >= top && touchY <= bottom && touchX >= left && touchX <= right) {
1888 public ExpandableView getChildAtRawPosition(float touchX, float touchY) {
1890 return getChildAtPosition(touchX - mTempInt2[0], touchY - mTempInt2[1]);
4714 public boolean isBelowLastNotification(float touchX, float touchY) { in isBelowLastNotification() argument
4727 if (!belowChild && !mFooterView.isOnEmptySpace(touchX - mFooterView.getX(), in isBelowLastNotification()
6410 public ExpandableView getChildAtRawPosition(float touchX, float touchY) {
6411 return NotificationStackScrollLayout.this.getChildAtRawPosition(touchX, touchY);
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DQuickSettingsControllerImpl.java524 private boolean isSplitShadeAndTouchXOutsideQs(float touchX) { in isSplitShadeAndTouchXOutsideQs() argument
525 return mSplitShadeEnabled && touchX < mQsFrame.getX() in isSplitShadeAndTouchXOutsideQs()
526 || touchX > mQsFrame.getX() + mQsFrame.getWidth(); in isSplitShadeAndTouchXOutsideQs()
545 boolean shouldBackBypassQuickSettings(float touchX) { in shouldBackBypassQuickSettings() argument
546 return (touchX < mCachedGestureInsets.left) in shouldBackBypassQuickSettings()
547 || (touchX > mCachedWindowWidth - mCachedGestureInsets.right); in shouldBackBypassQuickSettings()
/frameworks/base/core/java/android/view/
DIWindowSession.aidl192 int touchDeviceId, int touchPointerId, float touchX, float touchY, float thumbCenterX, in performDrag() argument
DWindowlessWindowManager.java531 int touchPointerId, float touchX, float touchY, float thumbCenterX, float thumbCenterY, in performDrag() argument
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/keyguard/
DKeyguardSecurityContainerTest.java411 private BackEvent createBackEvent(float touchX, float progress) { in createBackEvent() argument