/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | CaptureAnimation.java | 37 // Calculate the slide factor based on the give time fraction. 38 public static float calculateSlide(float fraction) { argument 39 return sSlideInterpolator.getInterpolation(fraction); 42 // Calculate the scale factor based on the given time fraction. 43 public static float calculateScale(float fraction) { argument 45 if (fraction <= 0.5f) { 48 sZoomOutInterpolator.getInterpolation(fraction * 2); 52 sZoomInInterpolator.getInterpolation((fraction - 0.5f) * 2f);
|
/packages/apps/Messaging/src/com/android/messaging/ui/animation/ |
H A D | RectEvaluatorCompat.java | 38 public Rect evaluate(float fraction, Rect startValue, Rect endValue) { argument 39 int left = startValue.left + (int) ((endValue.left - startValue.left) * fraction); 40 int top = startValue.top + (int) ((endValue.top - startValue.top) * fraction); 41 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction); 42 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
H A D | EmojiLayoutParams.java | 43 mKeyVerticalGap = (int) res.getFraction(R.fraction.config_key_vertical_gap_holo, 45 mBottomPadding = (int) res.getFraction(R.fraction.config_keyboard_bottom_padding_holo, 47 mTopPadding = (int) res.getFraction(R.fraction.config_keyboard_top_padding_holo, 49 mKeyHorizontalGap = (int) (res.getFraction(R.fraction.config_key_horizontal_gap_holo,
|
/packages/apps/Dialer/java/com/android/dialer/app/widget/ |
H A D | SearchEditTextLayout.java | 301 final Float fraction = (Float) animation.getAnimatedValue(); 302 setMargins(fraction); 319 * Assigns margins to the search box as a fraction of its maximum margin size 321 * @param fraction How large the margins should be as a fraction of their full size 323 private void setMargins(float fraction) { argument 325 params.topMargin = (int) (topMargin * fraction); 326 params.bottomMargin = (int) (bottomMargin * fraction); 327 params.leftMargin = (int) (leftMargin * fraction); 328 params.rightMargin = (int) (rightMargin * fraction); [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
H A D | AnimatorPlaybackController.java | 46 * to float (animation-fraction * total duration) to int conversion. 145 public abstract void setPlayFraction(float fraction); argument 164 protected long clampDuration(float fraction) { argument 165 float playPos = mDuration * fraction; 248 public void setPlayFraction(float fraction) { argument 249 mCurrentFraction = fraction; 255 long playPos = clampDuration(fraction);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | AnimatorUtils.java | 125 public static void setAnimatedFraction(ValueAnimator animator, float fraction) { argument 127 animator.setCurrentFraction(fraction); 132 // try to set the animated fraction directly so that it isn't affected by the 141 sAnimateValue.invoke(animator, fraction); 152 animator.setCurrentPlayTime(Math.round(fraction * animator.getDuration())); 157 final float fraction = animator.getAnimatedFraction(); 158 if (fraction > 0.0f) { 160 setAnimatedFraction(animator, 1.0f - fraction);
|
/packages/apps/TV/src/com/android/tv/ui/ |
H A D | TvViewUiManager.java | 396 float fraction, 403 interpolateMargins(lp, startValue, endValue, fraction); 475 float fraction = animator.getAnimatedFraction(); 479 mLastAnimatedTvViewFrame, mOldTvViewFrame, mTvViewFrame, fraction); 600 private static int interpolate(int start, int end, float fraction) { argument 601 return (int) (start + (end - start) * fraction); 608 float fraction) { 609 out.topMargin = interpolate(startValue.topMargin, endValue.topMargin, fraction); 610 out.bottomMargin = interpolate(startValue.bottomMargin, endValue.bottomMargin, fraction); 612 interpolate(startValue.getMarginStart(), endValue.getMarginStart(), fraction)); 604 interpolateMargins( MarginLayoutParams out, MarginLayoutParams startValue, MarginLayoutParams endValue, float fraction) argument [all...] |
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
H A D | FabDrawable.java | 198 float fraction = mStrokeAnimator.getAnimatedFraction(); 199 mStrokeRadius = (int) (normalRadius + (mStrokeWidth * fraction)); 200 mFabRadius = (int) (normalRadius + (mFabGrowth * fraction));
|
/packages/apps/Dialer/java/com/android/dialer/compat/ |
H A D | PathInterpolatorCompat.java | 112 final float fraction = tInRange / xRange; 117 return startY + (fraction * (endY - startY));
|
/packages/apps/PhoneCommon/src/com/android/phone/common/compat/ |
H A D | PathInterpolatorCompat.java | 97 final float fraction = tInRange / xRange; 102 return startY + (fraction * (endY - startY));
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
H A D | PreloadIconDrawable.java | 98 // Progress of the internal state. [0, 1] indicates the fraction of completed progress, 251 * - progress bar is visible with dominant color. Progress bar is drawn as a fraction of 255 * - we calculate fraction of progress in the above range 256 * - progress track is drawn with alpha based on fraction 257 * - progress bar is drawn at 100% with alpha based on fraction 258 * - icon is scaled up based on fraction and is drawn in enabled state 279 float fraction = (progress - 1) / COMPLETE_ANIM_FRACTION; 281 if (fraction >= 1) { 286 mTrackAlpha = Math.round((1 - fraction) * MAX_PAINT_ALPHA); 287 mIconScale = SMALL_SCALE + (1 - SMALL_SCALE) * fraction; [all...] |
/packages/services/BuiltInPrintService/jni/plugins/ |
H A D | wprint_scaler.h | 35 uint32 fraction; member in struct:float64_s
|
H A D | wprint_scaler.c | 67 pscaler_config->fSrcStartRow.fraction = 0; 122 pscaler_config->fSrcStartRow.fraction = _scaler_fraction_part( 136 fSrcEndRow.fraction = _scaler_fraction_part( 142 if (0 != fSrcEndRow.fraction) { 156 fSrcEndRow.fraction = _scaler_fraction_part( 162 if (0 == fSrcEndRow.fraction) { 236 fOrigSrcStartRow.fraction = pscaler_config->fSrcStartRow.fraction; 242 pscaler_config->fSrcStartRow.fraction = 0; 254 pscaler_config->fSrcStartRow.fraction [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | ResourceUtils.java | 210 R.fraction.config_max_keyboard_height, dm.heightPixels, dm.heightPixels); 212 R.fraction.config_min_keyboard_height, dm.heightPixels, dm.heightPixels); 214 // Specified fraction was negative, so it should be calculated against display 217 R.fraction.config_min_keyboard_height, dm.widthPixels, dm.widthPixels); 224 public static boolean isValidFraction(final float fraction) { argument 225 return fraction >= 0.0f;
|
/packages/apps/Settings/src/com/android/settings/fingerprint/ |
H A D | FingerprintLocationAnimationView.java | 62 R.fraction.fingerprint_sensor_location_fraction_x, 1, 1); 64 R.fraction.fingerprint_sensor_location_fraction_y, 1, 1);
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
H A D | ChangeImageTransformWithScaledParent.java | 74 .getFraction(R.fraction.lb_focus_zoom_factor_medium, 1, 1);
|
/packages/apps/Dialer/java/com/android/dialer/main/impl/toolbar/ |
H A D | SearchBarView.java | 176 * Assigns margins to the search box as a fraction of its maximum margin size 178 * @param fraction How large the margins should be as a fraction of their full size 180 private void setMargins(float fraction) { argument 181 int margin = (int) (this.margin * fraction); 188 (int) (animationEndHeight - (animationEndHeight - animationStartHeight) * fraction);
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
H A D | RoundedThumbnailView.java | 510 float fraction = valueAnimator.getAnimatedFraction(); 514 THUMBNAIL_REVEAL_CIRCLE_OPACITY_BEGIN + fraction * opacityDiff; 573 float fraction = valueAnimator.getAnimatedFraction(); 575 fraction * (mRippleRingThicknessEnd - mRippleRingThicknessBegin); 577 fraction * (RIPPLE_OPACITY_END - RIPPLE_OPACITY_BEGIN);
|
H A D | FilmstripLayout.java | 304 private void translateContentLayout(float fraction) { argument 305 mFilmstripContentTranslationProgress = fraction; 306 mFilmstripContentLayout.setTranslationX(fraction * getMeasuredWidth());
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
H A D | AbstractStateChangeTouchController.java | 277 protected void updateProgress(float fraction) { argument 278 mCurrentAnimation.setPlayFraction(fraction); 280 mAtomicComponentsController.setPlayFraction(fraction - mAtomicComponentsStartProgress); 282 maybeUpdateAtomicAnim(mFromState, mToState, fraction);
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | BluetoothDetailsHeaderController.java | 64 mContext.getResources().getFraction(R.fraction.bt_battery_scale_fraction, 1, 1));
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
H A D | AutoFocusHelper.java | 121 * @param fraction Fraction in [0,1]. Multiplied by min(cropRegion.width(), cropRegion.height()) 128 float fraction, final Rect cropRegion, int sensorOrientation) { 131 int halfSideLength = (int) (0.5f * fraction * minCropEdge); 127 regionsForNormalizedCoord(float nx, float ny, float fraction, final Rect cropRegion, int sensorOrientation) argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
H A D | DebugSettingsFragment.java | 73 res, R.fraction.config_key_preview_show_up_start_scale); 75 res, R.fraction.config_key_preview_dismiss_end_scale);
|
H A D | Settings.java | 335 final float fraction = prefs.getFloat(prefKey, UNDEFINED_PREFERENCE_VALUE_FLOAT); 336 return (fraction != UNDEFINED_PREFERENCE_VALUE_FLOAT) ? fraction : defaultValue;
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/ |
H A D | SwipeButtonView.java | 172 float fraction = 182 fraction *= finishingFraction; 186 (int) (Color.alpha(circleColor) * fraction),
|