/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/ |
D | TemperatureColorStore.java | 112 float fraction = (temperature - startValue.getTemperature()) / (endValue.getTemperature() in getColorForTemperature() local 114 return lerpColor(fraction, startValue.getColor(), endValue.getColor()); in getColorForTemperature() 117 int lerpColor(float fraction, int startColor, int endColor) { in lerpColor() argument 132 outColor[0] = hueLerp(fraction, startHsv[0], endHsv[0]); in lerpColor() 133 outColor[1] = lerp(fraction, startHsv[1], endHsv[1]); in lerpColor() 134 outColor[2] = lerp(fraction, startHsv[2], endHsv[2]); in lerpColor() 139 private float hueLerp(float fraction, float start, float end) { in hueLerp() argument 155 return lerp(fraction, start, end) % 360f; in hueLerp() 159 private float lerp(float fraction, float start, float end) { in lerp() argument 166 if (fraction >= 1) { in lerp() [all …]
|
/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/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/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/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.kt | 123 fun setAnimatedFraction(animator: ValueAnimator, fraction: Float) { in <lambda>() 125 animator.setCurrentFraction(fraction) in <lambda>() 139 sAnimateValue!!.invoke(animator, fraction) in <lambda>() 155 animator.currentPlayTime = (fraction * animator.duration).roundToLong() in <lambda>() 161 val fraction = animator.animatedFraction in <lambda>() constant 162 if (fraction > 0.0f) { in <lambda>() 164 setAnimatedFraction(animator, 1.0f - fraction) in <lambda>()
|
/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/anim/ |
D | AnimatorPlaybackController.java | 238 public void setPlayFraction(float fraction) { in setPlayFraction() argument 239 mCurrentFraction = fraction; in setPlayFraction() 245 float progress = boundToRange(fraction, 0, 1); in setPlayFraction() 272 protected long clampDuration(float fraction) { in clampDuration() argument 273 float playPos = mDuration * fraction; in clampDuration()
|
D | SpringAnimationBuilder.java | 128 public float getInterpolatedValue(float fraction) { in getInterpolatedValue() argument 129 return getValue(mDuration * fraction); in getInterpolatedValue()
|
/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/services/Car/experimental/service/src/com/android/experimentalcar/ |
D | GazeDriverAwarenessSupplier.java | 181 resources.getFloat(R.fraction.driverAwarenessGazeModelInitialValue), in loadConfiguration() 182 resources.getFloat(R.fraction.driverAwarenessGazeModelDecayRate), in loadConfiguration() 183 resources.getFloat(R.fraction.driverAwarenessGazeModelGrowthRate)); in loadConfiguration()
|
/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/src/com/android/experimentalcar/ |
D | GazeDriverAwarenessSupplierTest.java | 65 .getFloat(R.fraction.driverAwarenessGazeModelInitialValue); in setUp() 67 mSpyContext.getResources().getFloat(R.fraction.driverAwarenessGazeModelGrowthRate); in setUp() 69 mSpyContext.getResources().getFloat(R.fraction.driverAwarenessGazeModelDecayRate); in setUp()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | TwoButtonNavbarTouchController.java | 145 protected void updateProgress(float fraction) { in updateProgress() argument 146 super.updateProgress(fraction); in updateProgress() 149 if (fraction >= 1 && mToState == HINT_STATE_TWO_BUTTON) { in updateProgress()
|
D | NoButtonNavbarToOverviewTouchController.java | 133 protected void updateProgress(float fraction) { in updateProgress() argument 134 super.updateProgress(fraction); in updateProgress() 136 mNormalToHintOverviewScrimAnimator.setCurrentFraction(fraction); in updateProgress()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | PreloadIconDrawable.java | 314 float fraction = (progress - 1) / COMPLETE_ANIM_FRACTION; in setInternalProgress() local 316 if (fraction >= 1) { in setInternalProgress() 321 mTrackAlpha = Math.round((1 - fraction) * MAX_PAINT_ALPHA); in setInternalProgress() 322 mIconScale = SMALL_SCALE + (1 - SMALL_SCALE) * fraction; in setInternalProgress()
|
/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/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/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/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/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()
|