Home
last modified time | relevance | path

Searched refs:velocity (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationSwipeHelper.java159 public boolean handleUpEvent(MotionEvent ev, View animView, float velocity, in handleUpEvent() argument
164 handleMenuRowSwipe(ev, animView, velocity, menuRow); in handleUpEvent()
171 protected void handleMenuRowSwipe(MotionEvent ev, View animView, float velocity, in handleMenuRowSwipe() argument
178 dismiss(animView, velocity); in handleMenuRowSwipe()
180 snapClosed(animView, velocity); in handleMenuRowSwipe()
188 handleSwipeFromOpenState(ev, animView, velocity, menuRow); in handleMenuRowSwipe()
192 handleSwipeFromClosedState(ev, animView, velocity, menuRow); in handleMenuRowSwipe()
196 private void handleSwipeFromClosedState(MotionEvent ev, View animView, float velocity, in handleSwipeFromClosedState() argument
199 final boolean gestureTowardsMenu = menuRow.isTowardsMenu(velocity); in handleSwipeFromClosedState()
200 final boolean gestureFastEnough = getEscapeVelocity() <= Math.abs(velocity); in handleSwipeFromClosedState()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DFlingAnimationUtils.java110 public void apply(Animator animator, float currValue, float endValue, float velocity) { in apply() argument
111 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply()
124 float velocity) { in apply() argument
125 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply()
139 public void apply(Animator animator, float currValue, float endValue, float velocity, in apply() argument
141 AnimatorProperties properties = getProperties(currValue, endValue, velocity, in apply()
159 float velocity, float maxDistance) { in apply() argument
160 AnimatorProperties properties = getProperties(currValue, endValue, velocity, in apply()
167 float endValue, float velocity, float maxDistance) { in getProperties() argument
171 float velAbs = Math.abs(velocity); in getProperties()
[all …]
/frameworks/base/core/java/android/widget/
DOverScroller.java665 static private float getDeceleration(int velocity) { in getDeceleration() argument
666 return velocity > 0 ? -GRAVITY : GRAVITY; in getDeceleration()
740 private void startSpringback(int start, int end, int velocity) { in startSpringback() argument
754 void fling(int start, int velocity, int min, int max, int over) { in fling() argument
757 mCurrVelocity = mVelocity = velocity; in fling()
763 startAfterEdge(start, min, max, velocity); in fling()
770 if (velocity != 0) { in fling()
771 mDuration = mSplineDuration = getSplineFlingDuration(velocity); in fling()
772 totalDistance = getSplineFlingDistance(velocity); in fling()
775 mSplineDistance = (int) (totalDistance * Math.signum(velocity)); in fling()
[all …]
DScroller.java451 float velocity = (float) Math.hypot(velocityX, velocityY); in fling() local
453 mVelocity = velocity; in fling()
454 mDuration = getSplineFlingDuration(velocity); in fling()
459 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity; in fling()
460 float coeffY = velocity == 0 ? 1.0f : velocityY / velocity; in fling()
462 double totalDistance = getSplineFlingDistance(velocity); in fling()
463 mDistance = (int) (totalDistance * Math.signum(velocity)); in fling()
481 private double getSplineDeceleration(float velocity) { in getSplineDeceleration() argument
482 return Math.log(INFLEXION * Math.abs(velocity) / (mFlingFriction * mPhysicalCoeff)); in getSplineDeceleration()
485 private int getSplineFlingDuration(float velocity) { in getSplineFlingDuration() argument
[all …]
DSlidingDrawer.java463 float velocity = (float) Math.hypot(xVelocity, yVelocity); in onTouchEvent()
465 velocity = -velocity; in onTouchEvent()
471 if (Math.abs(velocity) < mMaximumTapVelocity) { in onTouchEvent()
488 performFling(vertical ? top : left, velocity, false, true); in onTouchEvent()
492 performFling(vertical ? top : left, velocity, false, true); in onTouchEvent()
495 performFling(vertical ? top : left, velocity, false, true); in onTouchEvent()
515 private void performFling(int position, float velocity, boolean always,
518 mAnimatedVelocity = velocity;
521 if (always || (velocity > mMaximumMajorVelocity ||
523 velocity > -mMaximumMajorVelocity))) {
[all …]
DEdgeEffect.java278 public void onAbsorb(int velocity) { in onAbsorb() argument
280 velocity = Math.min(Math.max(MIN_VELOCITY, Math.abs(velocity)), MAX_VELOCITY); in onAbsorb()
283 mDuration = 0.15f + (velocity * 0.02f); in onAbsorb()
295 mGlowScaleYFinish = Math.min(0.025f + (velocity * (velocity / 100) * 0.00015f) / 2, 1.f); in onAbsorb()
298 mGlowAlphaStart, Math.min(velocity * VELOCITY_GLOW_FACTOR * .00001f, MAX_ALPHA)); in onAbsorb()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/events/ui/
DDraggingInRecentsEndedEvent.java10 public final float velocity; field in DraggingInRecentsEndedEvent
12 public DraggingInRecentsEndedEvent(float velocity) { in DraggingInRecentsEndedEvent() argument
13 this.velocity = velocity; in DraggingInRecentsEndedEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java354 public void dismissChild(final View view, float velocity, boolean useAccelerateInterpolator) { in dismissChild() argument
355 dismissChild(view, velocity, null /* endAction */, 0 /* delay */, in dismissChild()
367 public void dismissChild(final View animView, float velocity, final Runnable endAction, in dismissChild() argument
375 boolean animateUpForMenu = velocity == 0 && (getTranslation(animView) == 0 || isDismissAll) in dismissChild()
378 boolean animateLeftForRtl = velocity == 0 && (getTranslation(animView) == 0 || isDismissAll) in dismissChild()
380 boolean animateLeft = (Math.abs(velocity) > getEscapeVelocity() && velocity < 0) || in dismissChild()
390 if (velocity != 0) { in dismissChild()
393 .abs(velocity)) in dismissChild()
421 newPos, velocity, getSize(animView)); in dismissChild()
467 public void snapChild(final View animView, final float targetLeft, float velocity) { in snapChild() argument
[all …]
DExpandHelper.java547 void finishExpanding(boolean forceAbort, float velocity) { in finishExpanding() argument
548 finishExpanding(forceAbort, velocity, true /* allowAnimation */); in finishExpanding()
557 private void finishExpanding(boolean forceAbort, float velocity, boolean allowAnimation) { in finishExpanding() argument
567 nowExpanded = currentHeight > mOldHeight && velocity >= 0; in finishExpanding()
569 nowExpanded = currentHeight >= mOldHeight || velocity > 0; in finishExpanding()
608 velocity = nowExpanded == velocity >= 0 ? velocity : 0; in finishExpanding()
609 mFlingAnimationUtils.apply(mScaleAnimation, currentHeight, targetHeight, velocity); in finishExpanding()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/
DSwipeDetector.java175 boolean onDrag(float displacement, float velocity); in onDrag() argument
177 void onDragEnd(float velocity, boolean fling); in onDragEnd() argument
322 float velocity = (deltaTimeMillis > 0) ? (delta / deltaTimeMillis) : 0; in computeVelocity() local
324 mVelocity = velocity; in computeVelocity()
327 mVelocity = interpolate(mVelocity, velocity, alpha); in computeVelocity()
346 public static long calculateDuration(float velocity, float progressNeeded) { in calculateDuration() argument
348 float velocityDivisor = Math.max(2f, Math.abs(0.5f * velocity)); in calculateDuration()
352 … Log.d(TAG, String.format("calculateDuration=%d, v=%f, d=%f", duration, velocity, progressNeeded)); in calculateDuration()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/
DNotificationSwipeActionHelper.java37 public void dismiss(View animView, float velocity); in dismiss() argument
42 public void snapOpen(View animView, int targetLeft, float velocity); in snapOpen() argument
57 public boolean swipedFastEnough(float translation, float velocity); in swipedFastEnough() argument
/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp105 Velocity& velocity = mCalculatedVelocity[index]; in computeCurrentVelocity() local
106 velocity.vx = vx; in computeCurrentVelocity()
107 velocity.vy = vy; in computeCurrentVelocity()
119 const Velocity& velocity = mCalculatedVelocity[index]; in getVelocity() local
120 vx = velocity.vx; in getVelocity()
121 vy = velocity.vy; in getVelocity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenGestureLogger.java50 public void write(int gesture, int length, int velocity) { in write() argument
54 .addTaggedData(MetricsEvent.FIELD_GESTURE_VELOCITY, velocity)); in write()
56 EventLogTags.writeSysuiLockscreenGesture(safeLookup(gesture), length, velocity); in write() local
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskStackViewScroller.java205 void scrollToClosestTask(int velocity) { in scrollToClosestTask() argument
216 if (Math.abs(velocity) > flingThreshold) { in scrollToClosestTask()
224 -velocity, minY, maxY, 0 /* overscroll */); in scrollToClosestTask()
228 velocity); in scrollToClosestTask()
231 algorithm.percentageToScroll(newScrollP), velocity); in scrollToClosestTask()
236 mLayoutAlgorithm.mNumStackTasks, velocity); in scrollToClosestTask()
/frameworks/base/core/java/com/android/internal/policy/
DDividerSnapAlgorithm.java157 public SnapTarget calculateSnapTarget(int position, float velocity) { in calculateSnapTarget() argument
158 return calculateSnapTarget(position, velocity, true /* hardDismiss */); in calculateSnapTarget()
166 public SnapTarget calculateSnapTarget(int position, float velocity, boolean hardDismiss) { in calculateSnapTarget() argument
167 if (position < mFirstSplitTarget.position && velocity < -mMinDismissVelocityPxPerSecond) { in calculateSnapTarget()
170 if (position > mLastSplitTarget.position && velocity > mMinDismissVelocityPxPerSecond) { in calculateSnapTarget()
173 if (Math.abs(velocity) < mMinFlingVelocityPxPerSecond) { in calculateSnapTarget()
176 if (velocity < 0) { in calculateSnapTarget()
/frameworks/native/libs/vr/libdvr/include/dvr/
Ddvr_pose.h36 float32x4_t velocity; member
83 float32x4_t velocity; member
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DDefaultUiController.java115 public void onGestureCompletion(float velocity) { in onGestureCompletion() argument
116 animateInvocationCompletion(AssistManager.INVOCATION_TYPE_GESTURE, velocity); in onGestureCompletion()
171 private void animateInvocationCompletion(int type, float velocity) { in animateInvocationCompletion() argument
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/lowram/
DTaskStackLowRamLayoutAlgorithm.java150 public float getClosestTaskP(float scrollP, int numTasks, int velocity) { in getClosestTaskP() argument
160 if (Math.abs(velocity) > mFlingThreshold) { in getClosestTaskP()
161 useNext = velocity > 0; in getClosestTaskP()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistManager.java84 void onGestureCompletion(float velocity); in onGestureCompletion() argument
227 public void onAssistantGestureCompletion(float velocity) { in AssistManager()
228 onGestureCompletion(velocity); in AssistManager()
311 public void onGestureCompletion(float velocity) { in onGestureCompletion() argument
312 mUiController.onGestureCompletion(velocity); in onGestureCompletion()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/
DOneTimeEndListener.java31 float velocity) { in onAnimationEnd() argument
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/
DRecentsImplProxy.java105 public void onDraggingInRecentsEnded(float velocity) throws RemoteException { in onDraggingInRecentsEnded() argument
106 mHandler.sendMessage(mHandler.obtainMessage(MSG_ON_DRAGGING_IN_RECENTS_ENDED, velocity)); in onDraggingInRecentsEnded()
DIRecentsNonSystemUserCallbacks.aidl36 void onDraggingInRecentsEnded(float velocity); in onDraggingInRecentsEnded() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMotionHelper.java285 Rect flingToSnapTarget(float velocity, float velocityX, float velocityY, Rect movementBounds, in flingToSnapTarget() argument
295 velocity); in flingToSnapTarget()
386 final float velocity = PointF.length(velocityX, velocityY); in animateDismiss() local
387 final boolean isFling = velocity > mFlingAnimationUtils.getMinVelocityPxPerSecond(); in animateDismiss()
401 distanceBetweenRectOffsets(mBounds, toBounds), velocity); in animateDismiss()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSScrollLayout.java151 public boolean onDrag(float displacement, float velocity) { in onDrag() argument
177 public void onDragEnd(float velocity, boolean fling) { in onDragEnd() argument
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/
DISystemUiProxy.aidl86 void onAssistantGestureCompletion(float velocity) = 18; in onAssistantGestureCompletion() argument

12