Home
last modified time | relevance | path

Searched refs:mDistance (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DFlingScroller.java41 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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java413 int mDistance = 900; in initNavigationButton()
421 .setContentText("Turn right in " + mDistance + " ft") in initNavigationButton()
424 .setSubText(mDistance + " ft") in initNavigationButton()
429 mDistance -= 100; in initNavigationButton()
430 if (mDistance >= 0) { in initNavigationButton()
442 int mDistance = 20; in initNavigationButton()
450 .setContentText("Exit in " + mDistance + " miles") in initNavigationButton()
453 .setSubText(mDistance + " miles") in initNavigationButton()
458 mDistance -= 1; in initNavigationButton()
459 if (mDistance >= 0) { in initNavigationButton()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DSpringRelativeLayout.java114 mActiveEdge.mDistance = 0; in setActiveEdge()
161 private float mDistance; field in SpringRelativeLayout.SpringEdgeEffect
181 mDistance += deltaDistance * (mVelocityMultiplier / 3f); in onPull()
182 setDampedScrollShift(mDistance * getHeight()); in onPull()
187 mDistance = 0; in onRelease()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/
DAssistantTouchConsumer.java79 private float mDistance; field in AssistantTouchConsumer
184 mDistance = (float) Math.hypot(mLastPos.x - mStartDragPos.x, in onMotionEvent()
186 if (mDistance >= 0) { in onMotionEvent()
228 mLastProgress = Math.min(mDistance * 1f / mDragDistThreshold, 1) * mTimeFraction; in updateAssistantProgress()
230 if (mDistance >= mDragDistThreshold && mTimeFraction >= 1) { in updateAssistantProgress()
280 && mDistance >= mFlingDistThreshold in onFling()
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DFadeAndShortSlide.java97 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()
DSetupAnimationHelper.java69 private final int mDistance = sFragmentTransitionLongDistance; field in SetupAnimationHelper.TransitionBuilder
113 transition.setDistance(mDistance); in build()
/packages/apps/Car/Cluster/src/android/car/cluster/
DNavStateController.java55 private TextView mDistance; field in NavStateController
77 mDistance = container.findViewById(R.id.distance); in NavStateController()
127 mDistance.setText(formatDistance(step != null ? step.getDistance() : null)); in update()