Searched refs:mDistance (Results 1 – 8 of 8) sorted by relevance
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | OverlayEdgeEffect.java | 33 private float mDistance; field in OverlayEdgeEffect 45 return mDistance; in getDistance() 49 mDistance = Math.max(0f, deltaDistance + mDistance); in onPullDistance() 54 mOverlay.onScrollChange(mDistance, mIsRtl); in onPullDistance() 55 return mDistance > 0 ? deltaDistance : 0; in onPullDistance() 63 return mDistance <= 0; in isFinished() 69 mDistance = 0; in onRelease() 81 mDistance = 0; in finish()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | FlingScroller.java | 41 private int mDistance; field in FlingScroller 100 mDistance = (int)Math.round( in fling() 117 int r = (int) Math.round(mStartX + f * mDistance * mCosAngle); in getX() 127 int r = (int) Math.round(mStartY + f * mDistance * mSinAngle); in getY() 138 return DECELERATED_FACTOR * mDistance * 1000 * in getV()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/ |
D | AssistantInputConsumer.java | 77 private float mDistance; field in AssistantInputConsumer 185 mDistance = (float) Math.hypot(mLastPos.x - mStartDragPos.x, in onMotionEvent() 187 if (mDistance >= 0) { in onMotionEvent() 229 mLastProgress = Math.min(mDistance * 1f / mDragDistThreshold, 1) * mTimeFraction; in updateAssistantProgress() 230 if (mDistance >= mDragDistThreshold && mTimeFraction >= 1) { in updateAssistantProgress() 270 && mDistance >= mFlingDistThreshold in onFling()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/ |
D | NotificationFragment.java | 508 int mDistance = 900; in initNavigationButton() 516 .setContentText("Turn right in " + mDistance + " ft") in initNavigationButton() 519 .setSubText(mDistance + " ft") in initNavigationButton() 524 mDistance -= 100; in initNavigationButton() 525 if (mDistance >= 0) { in initNavigationButton() 537 int mDistance = 20; in initNavigationButton() 545 .setContentText("Exit in " + mDistance + " miles") in initNavigationButton() 548 .setSubText(mDistance + " miles") in initNavigationButton() 553 mDistance -= 1; in initNavigationButton() 554 if (mDistance >= 0) { in initNavigationButton()
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/ |
D | FadeAndShortSlide.java | 97 private int mDistance = DEFAULT_DISTANCE; field in FadeAndShortSlide 230 float startX = mSlideCalculator.getGoneX(sceneRoot, view, position, mDistance); in onAppear() 259 float endX = mSlideCalculator.getGoneX(sceneRoot, view, position, mDistance); in onDisappear() 318 mDistance = distance; in setDistance()
|
D | SetupAnimationHelper.java | 69 private final int mDistance = sFragmentTransitionLongDistance; field in SetupAnimationHelper.TransitionBuilder 113 transition.setDistance(mDistance); in build()
|
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/ |
D | NavStateController.java | 61 private TextView mDistance; field in NavStateController 84 mDistance = container.findViewById(R.id.distance); in NavStateController() 155 mDistance.setText(formatDistance(step != null ? step.getDistance() : null)); in update() 156 mDistance.setAlpha(alpha); in update()
|
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/ |
D | NavStateController.java | 62 private final TextView mDistance; field in NavStateController 85 mDistance = container.findViewById(R.id.distance); in NavStateController() 153 mDistance.setText(formatDistance(step != null ? step.getDistance() : null)); in update() 154 mDistance.setAlpha(alpha); in update()
|