/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | CaptureAnimation.java | 38 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/services/BuiltInPrintService/jni/plugins/ |
D | wprint_scaler.c | 67 pscaler_config->fSrcStartRow.fraction = 0; in scaler_make_image_scaler_tables() 122 pscaler_config->fSrcStartRow.fraction = _scaler_fraction_part( in scaler_calculate_scaling_rows() 136 fSrcEndRow.fraction = _scaler_fraction_part( in scaler_calculate_scaling_rows() 142 if (0 != fSrcEndRow.fraction) { in scaler_calculate_scaling_rows() 156 fSrcEndRow.fraction = _scaler_fraction_part( in scaler_calculate_scaling_rows() 162 if (0 == fSrcEndRow.fraction) { in scaler_calculate_scaling_rows() 236 fOrigSrcStartRow.fraction = pscaler_config->fSrcStartRow.fraction; in scaler_scale_image_data() 242 pscaler_config->fSrcStartRow.fraction = 0; in scaler_scale_image_data() 254 pscaler_config->fSrcStartRow.fraction = fOrigSrcStartRow.fraction; in scaler_scale_image_data() 271 fOrigSrcStartRow.fraction = pscaler_config->fSrcStartRow.fraction; in scaler_scale_image_data() [all …]
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TvViewUiManager.java | 396 float fraction, in setTvViewPosition() 403 interpolateMargins(lp, startValue, endValue, fraction); in setTvViewPosition() 470 float fraction = animator.getAnimatedFraction(); in initTvAnimatorIfNeeded() 474 mLastAnimatedTvViewFrame, mOldTvViewFrame, mTvViewFrame, fraction); in initTvAnimatorIfNeeded() 589 private static int interpolate(int start, int end, float fraction) { in interpolate() argument 590 return (int) (start + (end - start) * fraction); in interpolate() 597 float fraction) { in interpolateMargins() argument 598 out.topMargin = interpolate(startValue.topMargin, endValue.topMargin, fraction); in interpolateMargins() 599 out.bottomMargin = interpolate(startValue.bottomMargin, endValue.bottomMargin, fraction); in interpolateMargins() 601 interpolate(startValue.getMarginStart(), endValue.getMarginStart(), fraction)); in interpolateMargins() local [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/animation/ |
D | RectEvaluatorCompat.java | 38 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/java/com/android/dialer/app/widget/ |
D | SearchEditTextLayout.java | 301 final Float fraction = (Float) animation.getAnimatedValue(); in prepareAnimator() 302 setMargins(fraction); in prepareAnimator() 323 private void setMargins(float fraction) { in setMargins() argument 325 params.topMargin = (int) (topMargin * fraction); in setMargins() 326 params.bottomMargin = (int) (bottomMargin * fraction); in setMargins() 327 params.leftMargin = (int) (leftMargin * fraction); in setMargins() 328 params.rightMargin = (int) (rightMargin * fraction); in setMargins()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AnimatorUtils.java | 125 public static void setAnimatedFraction(ValueAnimator animator, float fraction) { in setAnimatedFraction() argument 127 animator.setCurrentFraction(fraction); in setAnimatedFraction() 141 sAnimateValue.invoke(animator, fraction); in setAnimatedFraction() 152 animator.setCurrentPlayTime(Math.round(fraction * animator.getDuration())); in setAnimatedFraction() 157 final float fraction = animator.getAnimatedFraction(); in reverse() local 158 if (fraction > 0.0f) { in reverse() 160 setAnimatedFraction(animator, 1.0f - fraction); in reverse()
|
/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
D | AnimatorPlaybackController.java | 178 public abstract void setPlayFraction(float fraction); in setPlayFraction() argument 201 protected long clampDuration(float fraction) { in clampDuration() argument 202 float playPos = mDuration * fraction; in clampDuration() 336 public void setPlayFraction(float fraction) { in setPlayFraction() argument 337 mCurrentFraction = fraction; in setPlayFraction() 343 long playPos = clampDuration(fraction); in setPlayFraction()
|
D | SpringObjectAnimator.java | 263 public void setCurrentFraction(float fraction) { in setCurrentFraction() argument 264 mObjectAnimator.setCurrentFraction(fraction); in setCurrentFraction()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
D | EmojiLayoutParams.java | 43 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/ |
D | ResourceUtils.java | 210 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/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | PreloadIconDrawable.java | 279 float fraction = (progress - 1) / COMPLETE_ANIM_FRACTION; in setInternalProgress() local 281 if (fraction >= 1) { in setInternalProgress() 286 mTrackAlpha = Math.round((1 - fraction) * MAX_PAINT_ALPHA); in setInternalProgress() 287 mIconScale = SMALL_SCALE + (1 - SMALL_SCALE) * fraction; in setInternalProgress()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | RoundedThumbnailView.java | 510 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()
|
D | FilmstripLayout.java | 304 private void translateContentLayout(float fraction) { in translateContentLayout() argument 305 mFilmstripContentTranslationProgress = fraction; in translateContentLayout() 306 mFilmstripContentLayout.setTranslationX(fraction * getMeasuredWidth()); in translateContentLayout()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
D | MaterialProgressDrawable.java | 324 private int evaluateColorChange(float fraction, int startValue, int endValue) { in evaluateColorChange() argument 337 return (int) ((startA + (int) (fraction * (endA - startA))) << 24) in evaluateColorChange() 338 | (int) ((startR + (int) (fraction * (endR - startR))) << 16) in evaluateColorChange() 339 | (int) ((startG + (int) (fraction * (endG - startG))) << 8) in evaluateColorChange() 340 | (int) ((startB + (int) (fraction * (endB - startB)))); in evaluateColorChange()
|
/packages/apps/Dialer/java/com/android/dialer/main/impl/toolbar/ |
D | SearchBarView.java | 188 private void setMargins(float fraction) { in setMargins() argument 189 int margin = (int) (this.margin * fraction); in setMargins() 196 (int) (animationEndHeight - (animationEndHeight - animationStartHeight) * fraction); in setMargins()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | AbstractStateChangeTouchController.java | 304 protected void updateProgress(float fraction) { in updateProgress() argument 305 mCurrentAnimation.setPlayFraction(fraction); in updateProgress() 309 mAtomicComponentsController.setPlayFraction((fraction - start) / (1 - start)); in updateProgress() 311 maybeUpdateAtomicAnim(mFromState, mToState, fraction); in updateProgress()
|
/packages/apps/PhoneCommon/src/com/android/phone/common/compat/ |
D | PathInterpolatorCompat.java | 97 final float fraction = tInRange / xRange; in getInterpolation() local 102 return startY + (fraction * (endY - startY)); in getInterpolation()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/ |
D | FingerprintLocationAnimationView.java | 62 R.fraction.fingerprint_sensor_location_fraction_x, 1, 1); in FingerprintLocationAnimationView() 64 R.fraction.fingerprint_sensor_location_fraction_y, 1, 1); in FingerprintLocationAnimationView()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/ |
D | FingerprintLocationAnimationView.java | 62 R.fraction.fingerprint_sensor_location_fraction_x, 1, 1); in FingerprintLocationAnimationView() 64 R.fraction.fingerprint_sensor_location_fraction_y, 1, 1); in FingerprintLocationAnimationView()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/ |
D | SwipeButtonView.java | 172 float fraction = in updateCircleColor() local 182 fraction *= finishingFraction; in updateCircleColor() 186 (int) (Color.alpha(circleColor) * fraction), in updateCircleColor()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | Settings.java | 335 final float fraction = prefs.getFloat(prefKey, UNDEFINED_PREFERENCE_VALUE_FLOAT); in readKeyPreviewAnimationScale() local 336 return (fraction != UNDEFINED_PREFERENCE_VALUE_FLOAT) ? fraction : defaultValue; in readKeyPreviewAnimationScale()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | DotsPageIndicator.java | 651 private void setJoiningFraction(int leftDot, float fraction) { in setJoiningFraction() argument 652 joiningFractions[leftDot] = fraction; in setJoiningFraction() 661 private void setDotRevealFraction(int dot, float fraction) { in setDotRevealFraction() argument 662 dotRevealFractions[dot] = fraction; in setDotRevealFraction()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | DotsPageIndicator.java | 651 private void setJoiningFraction(int leftDot, float fraction) { in setJoiningFraction() argument 652 joiningFractions[leftDot] = fraction; in setJoiningFraction() 661 private void setDotRevealFraction(int dot, float fraction) { in setDotRevealFraction() argument 662 dotRevealFractions[dot] = fraction; in setDotRevealFraction()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | AutoFocusHelper.java | 128 float fraction, final Rect cropRegion, int sensorOrientation) { in regionsForNormalizedCoord() argument 131 int halfSideLength = (int) (0.5f * fraction * minCropEdge); in regionsForNormalizedCoord()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragView.java | 544 float fraction = 1 - animation.getAnimatedFraction(); in animateShift() 545 mAnimatedShiftX = (int) (fraction * shiftX); in animateShift() 546 mAnimatedShiftY = (int) (fraction * shiftY); in animateShift()
|