/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/rotaryinput/ |
D | RotaryVelocityTracker.kt | 26 private var velocityTracker: VelocityTracker1D = VelocityTracker1D(true) variable in com.android.permissioncontroller.permission.ui.wear.elements.rotaryinput.RotaryVelocityTracker 30 get() = velocityTracker.calculateVelocity() 34 velocityTracker.resetTracking() in start() 35 velocityTracker.addDataPoint(currentTime, 0f) in start() 40 velocityTracker.addDataPoint(currentTime, delta) in move() 45 velocityTracker.resetTracking() in end()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/ |
D | FlingUpDownTouchHandler.java | 142 private VelocityTracker velocityTracker; field in FlingUpDownTouchHandler 249 if (velocityTracker == null) { in onTouch() 300 if (velocityTracker != null) { in endMotionEvent() 301 velocityTracker.computeCurrentVelocity(1000); in endMotionEvent() 302 vel = velocityTracker.getYVelocity(); in endMotionEvent() 305 (float) Math.hypot(velocityTracker.getXVelocity(), velocityTracker.getYVelocity()), in endMotionEvent() 327 if (velocityTracker != null) { in endMotionEvent() 328 velocityTracker.recycle(); in endMotionEvent() 329 velocityTracker = null; in endMotionEvent() 389 if (velocityTracker != null) { in trackMovement() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/ |
D | SwipeButtonHelper.java | 44 private VelocityTracker velocityTracker; field in SwipeButtonHelper 245 if (velocityTracker != null) { in endMotion() 246 velocityTracker.recycle(); in endMotion() 247 velocityTracker = null; in endMotion() 537 if (velocityTracker != null) { in trackMovement() 538 velocityTracker.addMovement(event); in trackMovement() 543 if (velocityTracker != null) { in initVelocityTracker() 544 velocityTracker.recycle(); in initVelocityTracker() 546 velocityTracker = VelocityTracker.obtain(); in initVelocityTracker() 550 if (velocityTracker == null) { in getCurrentVelocity() [all …]
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | HeadsUpNotificationOnTouchListener.java | 299 private boolean isFlingEnoughForDismiss(VelocityTracker velocityTracker, Axis axis) { in isFlingEnoughForDismiss() argument 300 float velocityInDismissingDirection = getVelocityInAxis(velocityTracker, axis); in isFlingEnoughForDismiss() 302 getVelocityInAxis(velocityTracker, axis.getOppositeAxis()); in isFlingEnoughForDismiss() 309 private float getVelocityInAxis(VelocityTracker velocityTracker, Axis axis) { in getVelocityInAxis() argument 312 return velocityTracker.getYVelocity(); in getVelocityInAxis() 314 return velocityTracker.getXVelocity(); in getVelocityInAxis() 318 private boolean isFlingInSameDirectionAsDelta(float delta, VelocityTracker velocityTracker, in isFlingInSameDirectionAsDelta() argument 320 float velocityInDismissingDirection = getVelocityInAxis(velocityTracker, axis); in isFlingInSameDirectionAsDelta()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | DefaultPagedViewHandler.java | 65 public float getPrimaryVelocity(VelocityTracker velocityTracker, int pointerId) { in getPrimaryVelocity() argument 66 return velocityTracker.getXVelocity(pointerId); in getPrimaryVelocity()
|
D | PagedOrientationHandler.java | 51 float getPrimaryVelocity(VelocityTracker velocityTracker, int pointerId); in getPrimaryVelocity() argument
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/orientation/ |
D | LandscapePagedViewHandler.kt | 111 override fun getPrimaryVelocity(velocityTracker: VelocityTracker, pointerId: Int): Float = in setPrimary() 112 velocityTracker.getYVelocity(pointerId) in setPrimary()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | PagedView.java | 1380 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() local 1381 velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); in onTouchEvent() 1383 int velocity = (int) mOrientationHandler.getPrimaryVelocity(velocityTracker, in onTouchEvent()
|