/frameworks/base/core/java/android/view/ |
H A D | RenderNodeAnimatorSetHelper.java | 36 public static long createNativeInterpolator(TimeInterpolator interpolator, long argument 38 if (interpolator == null) { 41 } else if (RenderNodeAnimator.isNativeInterpolator(interpolator)) { 42 return ((NativeInterpolatorFactory)interpolator).createNativeInterpolator(); 44 return FallbackLUTInterpolator.createNativeInterpolator(interpolator, duration);
|
H A D | ViewPropertyAnimatorRT.java | 71 TimeInterpolator interpolator = parent.getInterpolator(); 72 if (interpolator == null) { 74 interpolator = sLinearInterpolator; 76 if (!RenderNodeAnimator.isNativeInterpolator(interpolator)) { 77 interpolator = new FallbackLUTInterpolator(interpolator, duration); 87 animator.setInterpolator(interpolator);
|
/frameworks/base/core/java/com/android/internal/view/animation/ |
H A D | FallbackLUTInterpolator.java | 25 * building a native interpolator from a TimeInterpolator that is not marked 40 * interpolator creation 42 public FallbackLUTInterpolator(TimeInterpolator interpolator, long duration) { argument 43 mSourceInterpolator = interpolator; 44 mLut = createLUT(interpolator, duration); 47 private static float[] createLUT(TimeInterpolator interpolator, long duration) { argument 57 values[i] = interpolator.getInterpolation(inValue); 68 * Used to create a one-shot float[] LUT & native interpolator 70 public static long createNativeInterpolator(TimeInterpolator interpolator, long duration) { argument 71 float[] lut = createLUT(interpolator, duratio [all...] |
/frameworks/support/graphics/drawable/animated/src/main/java/androidx/vectordrawable/graphics/drawable/ |
H A D | AnimationUtilsCompat.java | 42 import androidx.interpolator.view.animation.FastOutLinearInInterpolator; 43 import androidx.interpolator.view.animation.FastOutSlowInInterpolator; 44 import androidx.interpolator.view.animation.LinearOutSlowInInterpolator; 73 // Special treatment for the interpolator introduced at API 21. 105 Interpolator interpolator = null; 123 interpolator = new LinearInterpolator(); 125 interpolator = new AccelerateInterpolator(context, attrs); 127 interpolator = new DecelerateInterpolator(context, attrs); 129 interpolator = new AccelerateDecelerateInterpolator(); 131 interpolator [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/ |
H A D | DisappearAnimationUtils.java | 31 AnimationUtils.loadInterpolator(ctx, android.R.interpolator.fast_out_linear_in)); 35 float delayScaleFactor, Interpolator interpolator) { 36 this(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator, 41 float delayScaleFactor, Interpolator interpolator, RowTranslationScaler rowScaler) { 42 super(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator); 34 DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, float delayScaleFactor, Interpolator interpolator) argument 40 DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, float delayScaleFactor, Interpolator interpolator, RowTranslationScaler rowScaler) argument
|
H A D | AppearAnimationCreator.java | 27 float translationY, boolean appearing, Interpolator interpolator, 26 createAnimation(T animatedObject, long delay, long duration, float translationY, boolean appearing, Interpolator interpolator, Runnable finishListener) argument
|
H A D | AppearAnimationUtils.java | 51 AnimationUtils.loadInterpolator(ctx, android.R.interpolator.linear_out_slow_in)); 55 float delayScaleFactor, Interpolator interpolator) { 56 mInterpolator = interpolator; 185 boolean appearing, Interpolator interpolator, final Runnable endRunnable) { 199 alphaAnim.setInterpolator(interpolator); 221 interpolator); 226 float endTranslationY, Interpolator interpolator) { 237 translationAnim.setInterpolator(interpolator); 54 AppearAnimationUtils(Context ctx, long duration, float translationScaleFactor, float delayScaleFactor, Interpolator interpolator) argument 184 createAnimation(final View view, long delay, long duration, float translationY, boolean appearing, Interpolator interpolator, final Runnable endRunnable) argument 225 startTranslationYAnimation(View view, long delay, long duration, float endTranslationY, Interpolator interpolator) argument
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
H A D | AnimationProps.java | 66 * Creates an animation with a default {@param duration} and {@param interpolator} for all 69 public AnimationProps(int duration, Interpolator interpolator) { argument 70 this(0, duration, interpolator, null); 74 * Creates an animation with a default {@param duration} and {@param interpolator} for all 77 public AnimationProps(int duration, Interpolator interpolator, argument 79 this(0, duration, interpolator, listener); 84 * {@param interpolator} for all properties in this animation. 86 public AnimationProps(int startDelay, int duration, Interpolator interpolator) { argument 87 this(startDelay, duration, interpolator, null); 92 * {@param interpolator} fo 94 AnimationProps(int startDelay, int duration, Interpolator interpolator, Animator.AnimatorListener listener) argument 179 setInterpolator(@ropType int propertyType, Interpolator interpolator) argument [all...] |
/frameworks/support/graphics/drawable/animated/src/androidTest/java/androidx/vectordrawable/graphics/drawable/tests/ |
H A D | PathInterpolatorValueParameterizedTest.java | 53 {R.interpolator.control_points_interpolator, 0.89f}, 54 {R.interpolator.single_control_point_interpolator, 0.086f}, 55 {R.interpolator.path_interpolator, 0.85f} 72 Interpolator interpolator = AnimationUtilsCompat.loadInterpolator(mActivity, mResId); 73 float value = interpolator.getInterpolation(0.5f);
|
/frameworks/base/core/java/android/animation/ |
H A D | FloatKeyframeSet.java | 64 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); 65 if (interpolator != null) { 66 fraction = interpolator.getInterpolation(fraction); 80 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); 81 if (interpolator != null) { 82 fraction = interpolator.getInterpolation(fraction); 94 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); 99 // Apply interpolator on the proportional duration. 100 if (interpolator != null) { 101 intervalFraction = interpolator [all...] |
H A D | IntKeyframeSet.java | 64 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); 65 if (interpolator != null) { 66 fraction = interpolator.getInterpolation(fraction); 80 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); 81 if (interpolator != null) { 82 fraction = interpolator.getInterpolation(fraction); 93 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); 98 // Apply interpolator on the proportional duration. 99 if (interpolator != null) { 100 intervalFraction = interpolator [all...] |
H A D | KeyframeSet.java | 186 * animation's interpolator) and the evaluator used to calculate in-between values. This 189 * outside the [0-1] bounds, if the animation's interpolator made that happen (e.g., a 207 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); 208 if (interpolator != null) { 209 fraction = interpolator.getInterpolation(fraction); 218 final TimeInterpolator interpolator = mLastKeyframe.getInterpolator(); 219 if (interpolator != null) { 220 fraction = interpolator.getInterpolation(fraction); 232 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); 236 // Apply interpolator o [all...] |
/frameworks/support/compat/src/main/java/androidx/core/widget/ |
H A D | ScrollerCompat.java | 48 public static ScrollerCompat create(Context context, Interpolator interpolator) { argument 49 return new ScrollerCompat(context, interpolator); 56 ScrollerCompat(Context context, Interpolator interpolator) { argument 57 mScroller = interpolator != null ? 58 new OverScroller(context, interpolator) : new OverScroller(context);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | FlingAnimationUtils.java | 98 * Applies the interpolator and length to the animator, such that the fling animation is 111 * Applies the interpolator and length to the animator, such that the fling animation is 125 * Applies the interpolator and length to the animator, such that the fling animation is 140 animator.setInterpolator(properties.interpolator); 144 * Applies the interpolator and length to the animator, such that the fling animation is 159 animator.setInterpolator(properties.interpolator); 175 mAnimatorProperties.interpolator = slowInInterpolator; 178 // Cross fade between fast-out-slow-in and linear interpolator with current velocity. 184 mAnimatorProperties.interpolator = superInterpolator; 187 // Just use a normal interpolator whic 349 Interpolator interpolator; field in class:FlingAnimationUtils.AnimatorProperties [all...] |
/frameworks/base/core/java/android/view/animation/ |
H A D | AnimationUtils.java | 362 * @return The interpolator object reference by the specified id 391 BaseInterpolator interpolator = null; 409 interpolator = new LinearInterpolator(); 411 interpolator = new AccelerateInterpolator(res, theme, attrs); 413 interpolator = new DecelerateInterpolator(res, theme, attrs); 415 interpolator = new AccelerateDecelerateInterpolator(); 417 interpolator = new CycleInterpolator(res, theme, attrs); 419 interpolator = new AnticipateInterpolator(res, theme, attrs); 421 interpolator = new OvershootInterpolator(res, theme, attrs); 423 interpolator [all...] |
/frameworks/support/interpolator/src/main/java/androidx/interpolator/view/animation/ |
H A D | LookupTableInterpolator.java | 17 package androidx.interpolator.view.animation;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | AnimationProperties.java | 65 * Get a custom interpolator for a property instead of the normal one. 83 * Set a custom interpolator to use for all views for a property. 85 public AnimationProperties setCustomInterpolator(Property property, Interpolator interpolator) { argument 89 mInterpolatorMap.put(property, interpolator);
|
/frameworks/support/compat/src/androidTest/java/androidx/core/widget/ |
H A D | ScrollerCompatTestBase.java | 44 protected void createScroller(Interpolator interpolator) argument 47 mScroller = new ScrollerCompat(InstrumentationRegistry.getContext(), interpolator);
|
/frameworks/base/libs/hwui/ |
H A D | PropertyValuesAnimatorSet.cpp | 26 Interpolator* interpolator, nsecs_t startDelay, 30 propertyValuesHolder, interpolator, startDelay, duration, repeatCount, repeatMode); 128 PropertyAnimator::PropertyAnimator(PropertyValuesHolder* holder, Interpolator* interpolator, argument 132 , mInterpolator(interpolator) 25 addPropertyAnimator(PropertyValuesHolder* propertyValuesHolder, Interpolator* interpolator, nsecs_t startDelay, nsecs_t duration, int repeatCount, RepeatMode repeatMode) argument
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/ |
H A D | ViewPropertyAnimatorCompatSet.java | 106 public ViewPropertyAnimatorCompatSet setInterpolator(Interpolator interpolator) { argument 108 mInterpolator = interpolator;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | TrustDrawable.java | 222 int startAlpha, int endAlpha, long duration, Interpolator interpolator, 226 duration, mAlphaUpdateListener, interpolator, repeating); 229 duration, mRadiusUpdateListener, interpolator, repeating); 240 ValueAnimator.AnimatorUpdateListener updateListener, Interpolator interpolator, 244 animator.setInterpolator(interpolator); 221 makeAnimators(float startRadius, float endRadius, int startAlpha, int endAlpha, long duration, Interpolator interpolator, boolean repeating, boolean stateUpdateListener) argument 239 configureAnimator(ValueAnimator animator, long duration, ValueAnimator.AnimatorUpdateListener updateListener, Interpolator interpolator, boolean repeating) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | OverScroller.java | 46 * Creates an OverScroller with a viscous fluid scroll interpolator and flywheel. 56 * @param interpolator The scroll interpolator. If null, a default (viscous) interpolator will 59 public OverScroller(Context context, Interpolator interpolator) { argument 60 this(context, interpolator, true); 66 * @param interpolator The scroll interpolator. If null, a default (viscous) interpolator will 71 public OverScroller(Context context, Interpolator interpolator, boolea argument 95 OverScroller(Context context, Interpolator interpolator, float bounceCoefficientX, float bounceCoefficientY) argument 114 OverScroller(Context context, Interpolator interpolator, float bounceCoefficientX, float bounceCoefficientY, boolean flywheel) argument 119 setInterpolator(Interpolator interpolator) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | MessagingPropertyAnimator.java | 101 * @param interpolator The interpolator to use. 104 Interpolator interpolator) { 105 startTopAnimation(view, getTop(view) + startTranslation, getLayoutTop(view), interpolator); 112 * @param interpolator The interpolator to use. 115 Interpolator interpolator) { 117 startTopAnimation(view, top, top + endTranslation, interpolator); 141 Interpolator interpolator) { 153 animator.setInterpolator(interpolator); 103 startLocalTranslationFrom(View view, int startTranslation, Interpolator interpolator) argument 114 startLocalTranslationTo(View view, int endTranslation, Interpolator interpolator) argument 140 startTopAnimation(final View v, int start, int end, Interpolator interpolator) argument [all...] |
/frameworks/support/transition/src/androidTest/java/androidx/transition/ |
H A D | TransitionSetTest.java | 157 TimeInterpolator interpolator = new DecelerateInterpolator(); 167 transitionSet.setInterpolator(interpolator); 174 assertSame(interpolator, fade.getInterpolator()); 213 TimeInterpolator interpolator = new DecelerateInterpolator(); 223 fade.setInterpolator(interpolator); 232 assertSame(interpolator, fade.getInterpolator());
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | PathInterpolatorTests.cpp | 83 PathInterpolator interpolator(getX(data), getY(data)); 85 EXPECT_FLOAT_EQ(data.outFraction[i], interpolator.interpolate(data.inFraction[i]));
|