Home
last modified time | relevance | path

Searched refs:fraction (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DCaptureAnimation.java38 public static float calculateSlide(float fraction) { in calculateSlide() argument
39 return sSlideInterpolator.getInterpolation(fraction); in calculateSlide()
43 public static float calculateScale(float fraction) { in calculateScale() argument
45 if (fraction <= 0.5f) { in calculateScale()
48 sZoomOutInterpolator.getInterpolation(fraction * 2); in calculateScale()
52 sZoomInInterpolator.getInterpolation((fraction - 0.5f) * 2f); in calculateScale()
/packages/apps/DeskClock/src/com/android/deskclock/
DAnimatorUtils.java95 public static void setAnimatedFraction(ValueAnimator animator, float fraction) { in setAnimatedFraction() argument
97 animator.setCurrentFraction(fraction); in setAnimatedFraction()
111 sAnimateValue.invoke(animator, fraction); in setAnimatedFraction()
122 animator.setCurrentPlayTime(Math.round(fraction * animator.getDuration())); in setAnimatedFraction()
127 final float fraction = animator.getAnimatedFraction(); in reverse() local
128 if (fraction > 0.0f) { in reverse()
130 setAnimatedFraction(animator, 1.0f - fraction); in reverse()
DUtils.java558 final float amPmProportion = resources.getFraction(R.fraction.ampm_font_size_scale, 1, 1); in get12ModeFormat()
570 R.fraction.reduced_clock_font_size_scale, 1, 1); in get12ModeFormat()
/packages/apps/Messaging/src/com/android/messaging/ui/animation/
DRectEvaluatorCompat.java38 public Rect evaluate(float fraction, Rect startValue, Rect endValue) { in evaluate() argument
39 int left = startValue.left + (int) ((endValue.left - startValue.left) * fraction); in evaluate()
40 int top = startValue.top + (int) ((endValue.top - startValue.top) * fraction); in evaluate()
41 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction); in evaluate()
42 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction); in evaluate()
/packages/apps/Dialer/src/com/android/dialer/widget/
DSearchEditTextLayout.java291 final Float fraction = (Float) animation.getAnimatedValue(); in prepareAnimator()
292 setMargins(fraction); in prepareAnimator()
313 private void setMargins(float fraction) { in setMargins() argument
315 params.topMargin = (int) (mTopMargin * fraction); in setMargins()
316 params.bottomMargin = (int) (mBottomMargin * fraction); in setMargins()
317 params.leftMargin = (int) (mLeftMargin * fraction); in setMargins()
318 params.rightMargin = (int) (mRightMargin * fraction); in setMargins()
/packages/apps/TV/src/com/android/tv/ui/
DTvViewUiManager.java495 public FrameLayout.LayoutParams evaluate(float fraction, in setTvViewPosition()
501 interpolateMarginsRelative(lp, startValue, endValue, fraction); in setTvViewPosition()
684 float fraction = animator.getAnimatedFraction(); in initTvAnimatorIfNeeded()
687 mOldTvViewFrame, mTvViewFrame, fraction); in initTvAnimatorIfNeeded()
803 private static int interpolate(int start, int end, float fraction) { in interpolate() argument
804 return (int) (start + (end - start) * fraction); in interpolate()
808 MarginLayoutParams startValue, MarginLayoutParams endValue, float fraction) { in interpolateMarginsRelative() argument
809 out.topMargin = interpolate(startValue.topMargin, endValue.topMargin, fraction); in interpolateMarginsRelative()
810 out.bottomMargin = interpolate(startValue.bottomMargin, endValue.bottomMargin, fraction); in interpolateMarginsRelative()
812 fraction)); in interpolateMarginsRelative() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiLayoutParams.java43 mKeyVerticalGap = (int) res.getFraction(R.fraction.config_key_vertical_gap_holo, in EmojiLayoutParams()
45 mBottomPadding = (int) res.getFraction(R.fraction.config_keyboard_bottom_padding_holo, in EmojiLayoutParams()
47 mTopPadding = (int) res.getFraction(R.fraction.config_keyboard_top_padding_holo, in EmojiLayoutParams()
49 mKeyHorizontalGap = (int) (res.getFraction(R.fraction.config_key_horizontal_gap_holo, in EmojiLayoutParams()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DResourceUtils.java210 R.fraction.config_max_keyboard_height, dm.heightPixels, dm.heightPixels); in getDefaultKeyboardHeight()
212 R.fraction.config_min_keyboard_height, dm.heightPixels, dm.heightPixels); in getDefaultKeyboardHeight()
217 R.fraction.config_min_keyboard_height, dm.widthPixels, dm.widthPixels); in getDefaultKeyboardHeight()
224 public static boolean isValidFraction(final float fraction) { in isValidFraction() argument
225 return fraction >= 0.0f; in isValidFraction()
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DFabDrawable.java197 float fraction = mStrokeAnimator.getAnimatedFraction(); in updateRadius() local
198 mStrokeRadius = (int) (normalRadius + (mStrokeWidth * fraction)); in updateRadius()
199 mFabRadius = (int) (normalRadius + (mFabGrowth * fraction)); in updateRadius()
/packages/apps/Camera2/src/com/android/camera/widget/
DRoundedThumbnailView.java510 float fraction = valueAnimator.getAnimatedFraction(); in runPendingRequestAnimation()
514 THUMBNAIL_REVEAL_CIRCLE_OPACITY_BEGIN + fraction * opacityDiff; in runPendingRequestAnimation()
573 float fraction = valueAnimator.getAnimatedFraction(); in runPendingRequestAnimation()
575 fraction * (mRippleRingThicknessEnd - mRippleRingThicknessBegin); in runPendingRequestAnimation()
577 fraction * (RIPPLE_OPACITY_END - RIPPLE_OPACITY_BEGIN); in runPendingRequestAnimation()
DFilmstripLayout.java304 private void translateContentLayout(float fraction) { in translateContentLayout() argument
305 mFilmstripContentTranslationProgress = fraction; in translateContentLayout()
306 mFilmstripContentLayout.setTranslationX(fraction * getMeasuredWidth()); in translateContentLayout()
/packages/apps/PhoneCommon/src/com/android/phone/common/compat/
DPathInterpolatorCompat.java97 final float fraction = tInRange / xRange; in getInterpolation() local
102 return startY + (fraction * (endY - startY)); in getInterpolation()
/packages/apps/Settings/src/com/android/settings/widget/
DChartDataUsageView.java514 final double fraction = Math.pow(10, in convertToPoint() local
516 return (float) (fraction * mSize); in convertToPoint()
526 final double fraction = 1.3102228476089056629 in convertToValue() local
528 return (long) (mMin + (fraction * (mMax - mMin))); in convertToValue()
DDotsPageIndicator.java649 private void setJoiningFraction(int leftDot, float fraction) { in setJoiningFraction() argument
650 joiningFractions[leftDot] = fraction; in setJoiningFraction()
659 private void setDotRevealFraction(int dot, float fraction) { in setDotRevealFraction() argument
660 dotRevealFractions[dot] = fraction; in setDotRevealFraction()
/packages/apps/Settings/src/com/android/settings/fingerprint/
DFingerprintLocationAnimationView.java61 R.fraction.fingerprint_sensor_location_fraction_x, 1, 1); in FingerprintLocationAnimationView()
63 R.fraction.fingerprint_sensor_location_fraction_y, 1, 1); in FingerprintLocationAnimationView()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DAutoFocusHelper.java128 float fraction, final Rect cropRegion, int sensorOrientation) { in regionsForNormalizedCoord() argument
131 int halfSideLength = (int) (0.5f * fraction * minCropEdge); in regionsForNormalizedCoord()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettings.java335 final float fraction = prefs.getFloat(prefKey, UNDEFINED_PREFERENCE_VALUE_FLOAT); in readKeyPreviewAnimationScale() local
336 return (fraction != UNDEFINED_PREFERENCE_VALUE_FLOAT) ? fraction : defaultValue; in readKeyPreviewAnimationScale()
DDebugSettingsFragment.java73 res, R.fraction.config_key_preview_show_up_start_scale); in onCreate()
75 res, R.fraction.config_key_preview_dismiss_end_scale); in onCreate()
DSettingsValues.java200 res, R.fraction.config_key_preview_show_up_start_scale); in SettingsValues()
202 res, R.fraction.config_key_preview_dismiss_end_scale); in SettingsValues()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DInstallAppProgress.java287 final float fraction = ((float) c / (float) sizeBytes);
288 session.addProgress(fraction);
/packages/apps/Launcher3/src/com/android/launcher3/
DBaseContainerView.java74 (int) getResources().getFraction(R.fraction.container_margin, width, 1)); in BaseContainerView()
DFolderPagedView.java476 float fraction = (direction == DragController.SCROLL_LEFT) ^ mIsRtl in showScrollHint() local
478 int hint = (int) (fraction * getWidth()); in showScrollHint()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorResult.java399 String fraction = result.substring(msdIndex + 1, resLen); in formatResult() local
401 + "." + fraction; in formatResult()
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DSetupAnimationHelper.java210 public Integer evaluate(float fraction, Integer startValue, Integer endValue) { in createFrameAnimatorWithDelay()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DMasterImage.java390 public void setAnimFraction(float fraction) { in setAnimFraction() argument
391 mAnimFraction = fraction; in setAnimFraction()

12