Home
last modified time | relevance | path

Searched refs:maxVelocity (Results 1 – 9 of 9) sorted by relevance

/aosp12/frameworks/base/core/jni/
H A Dandroid_view_VelocityTracker.cpp50 void computeCurrentVelocity(int32_t units, float maxVelocity);
91 if (vx > maxVelocity) { in computeCurrentVelocity()
92 vx = maxVelocity; in computeCurrentVelocity()
93 } else if (vx < -maxVelocity) { in computeCurrentVelocity()
94 vx = -maxVelocity; in computeCurrentVelocity()
96 if (vy > maxVelocity) { in computeCurrentVelocity()
97 vy = maxVelocity; in computeCurrentVelocity()
98 } else if (vy < -maxVelocity) { in computeCurrentVelocity()
99 vy = -maxVelocity; in computeCurrentVelocity()
175 jlong ptr, jint units, jfloat maxVelocity) { in android_view_VelocityTracker_nativeComputeCurrentVelocity() argument
[all …]
/aosp12/frameworks/base/core/java/android/view/
H A DVelocityTracker.java182 private static native void nativeComputeCurrentVelocity(long ptr, int units, float maxVelocity); in nativeComputeCurrentVelocity() argument
354 public void computeCurrentVelocity(int units, float maxVelocity) { in computeCurrentVelocity() argument
355 nativeComputeCurrentVelocity(mPtr, units, maxVelocity); in computeCurrentVelocity()
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DAutoScrollHelper.java212 final int maxVelocity = (int) (DEFAULT_MAXIMUM_VELOCITY_DIPS * metrics.density + 0.5f); in AutoScrollHelper() local
214 setMaximumVelocity(maxVelocity, maxVelocity); in AutoScrollHelper()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
H A DConversationListSwipeHelper.java189 final float maxVelocity = mMaximumFlingVelocity; in onTouchEvent() local
190 mVelocityTracker.computeCurrentVelocity(UNIT_SECONDS, maxVelocity); in onTouchEvent()
/aosp12/frameworks/base/core/java/android/inputmethodservice/
H A DKeyboardView.java1527 public void computeCurrentVelocity(int units, float maxVelocity) { in computeCurrentVelocity() argument
1558 mXVelocity = accumX < 0.0f ? Math.max(accumX, -maxVelocity) in computeCurrentVelocity()
1559 : Math.min(accumX, maxVelocity); in computeCurrentVelocity()
1560 mYVelocity = accumY < 0.0f ? Math.max(accumY, -maxVelocity) in computeCurrentVelocity()
1561 : Math.min(accumY, maxVelocity); in computeCurrentVelocity()
/aosp12/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/car/
H A DKeyboardView.java1566 public void computeCurrentVelocity(int units, float maxVelocity) { in computeCurrentVelocity() argument
1597 mXVelocity = accumX < 0.0f ? Math.max(accumX, -maxVelocity) in computeCurrentVelocity()
1598 : Math.min(accumX, maxVelocity); in computeCurrentVelocity()
1599 mYVelocity = accumY < 0.0f ? Math.max(accumY, -maxVelocity) in computeCurrentVelocity()
1600 : Math.min(accumY, maxVelocity); in computeCurrentVelocity()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
H A DStackAnimationController.java1049 final float maxVelocity = Settings.Secure.getFloat(contentResolver, in getMagnetizedStack() local
1057 mMagnetizedStack.setStickToTargetMaxXVelocity(maxVelocity); in getMagnetizedStack()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DPhotoView.java1106 int maxVelocity = GalleryUtils.dpToPixel(MAX_DISMISS_VELOCITY); in flingImages() local
1116 vy = Math.min(vy, maxVelocity); in flingImages()
/aosp12/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...