Home
last modified time | relevance | path

Searched refs:interpolator (Results 1 – 25 of 102) sorted by relevance

12345

/frameworks/base/core/java/com/android/internal/view/animation/
DFallbackLUTInterpolator.java42 public FallbackLUTInterpolator(TimeInterpolator interpolator, long duration) { in FallbackLUTInterpolator() argument
43 mSourceInterpolator = interpolator; in FallbackLUTInterpolator()
44 mLut = createLUT(interpolator, duration); in FallbackLUTInterpolator()
47 private static float[] createLUT(TimeInterpolator interpolator, long duration) { in createLUT() argument
57 values[i] = interpolator.getInterpolation(inValue); in createLUT()
70 public static long createNativeInterpolator(TimeInterpolator interpolator, long duration) { in createNativeInterpolator() argument
71 float[] lut = createLUT(interpolator, duration); in createNativeInterpolator()
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/
DAnimationUtilsCompat.java104 Interpolator interpolator = null; in createInterpolatorFromXml() local
122 interpolator = new LinearInterpolator(); in createInterpolatorFromXml()
124 interpolator = new AccelerateInterpolator(context, attrs); in createInterpolatorFromXml()
126 interpolator = new DecelerateInterpolator(context, attrs); in createInterpolatorFromXml()
128 interpolator = new AccelerateDecelerateInterpolator(); in createInterpolatorFromXml()
130 interpolator = new CycleInterpolator(context, attrs); in createInterpolatorFromXml()
132 interpolator = new AnticipateInterpolator(context, attrs); in createInterpolatorFromXml()
134 interpolator = new OvershootInterpolator(context, attrs); in createInterpolatorFromXml()
136 interpolator = new AnticipateOvershootInterpolator(context, attrs); in createInterpolatorFromXml()
138 interpolator = new BounceInterpolator(); in createInterpolatorFromXml()
[all …]
/frameworks/base/core/java/android/animation/
DIntKeyframeSet.java64 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); in getIntValue() local
65 if (interpolator != null) { in getIntValue()
66 fraction = interpolator.getInterpolation(fraction); in getIntValue()
80 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); in getIntValue() local
81 if (interpolator != null) { in getIntValue()
82 fraction = interpolator.getInterpolation(fraction); in getIntValue()
93 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); in getIntValue() local
99 if (interpolator != null) { in getIntValue()
100 intervalFraction = interpolator.getInterpolation(intervalFraction); in getIntValue()
DFloatKeyframeSet.java64 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); in getFloatValue() local
65 if (interpolator != null) { in getFloatValue()
66 fraction = interpolator.getInterpolation(fraction); in getFloatValue()
80 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); in getFloatValue() local
81 if (interpolator != null) { in getFloatValue()
82 fraction = interpolator.getInterpolation(fraction); in getFloatValue()
94 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); in getFloatValue() local
100 if (interpolator != null) { in getFloatValue()
101 intervalFraction = interpolator.getInterpolation(intervalFraction); in getFloatValue()
DKeyframeSet.java207 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); in getValue() local
208 if (interpolator != null) { in getValue()
209 fraction = interpolator.getInterpolation(fraction); in getValue()
218 final TimeInterpolator interpolator = mLastKeyframe.getInterpolator(); in getValue() local
219 if (interpolator != null) { in getValue()
220 fraction = interpolator.getInterpolation(fraction); in getValue()
232 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); in getValue() local
237 if (interpolator != null) { in getValue()
238 intervalFraction = interpolator.getInterpolation(intervalFraction); in getValue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DAnimationProps.java70 public AnimationProps(int duration, Interpolator interpolator) { in AnimationProps() argument
71 this(0, duration, interpolator, null); in AnimationProps()
78 public AnimationProps(int duration, Interpolator interpolator, in AnimationProps() argument
80 this(0, duration, interpolator, listener); in AnimationProps()
87 public AnimationProps(int startDelay, int duration, Interpolator interpolator) { in AnimationProps() argument
88 this(startDelay, duration, interpolator, null); in AnimationProps()
95 public AnimationProps(int startDelay, int duration, Interpolator interpolator, in AnimationProps() argument
99 setInterpolator(ALL, interpolator); in AnimationProps()
180 public AnimationProps setInterpolator(@PropType int propertyType, Interpolator interpolator) { in setInterpolator() argument
184 mPropInterpolators.append(propertyType, interpolator); in setInterpolator()
/frameworks/base/core/java/android/view/
DRenderNodeAnimatorSetHelper.java36 public static long createNativeInterpolator(TimeInterpolator interpolator, long in createNativeInterpolator() argument
38 if (interpolator == null) { in createNativeInterpolator()
41 } else if (RenderNodeAnimator.isNativeInterpolator(interpolator)) { in createNativeInterpolator()
42 return ((NativeInterpolatorFactory)interpolator).createNativeInterpolator(); in createNativeInterpolator()
44 return FallbackLUTInterpolator.createNativeInterpolator(interpolator, duration); in createNativeInterpolator()
DViewPropertyAnimatorRT.java71 TimeInterpolator interpolator = parent.getInterpolator(); in doStartAnimation() local
72 if (interpolator == null) { in doStartAnimation()
74 interpolator = sLinearInterpolator; in doStartAnimation()
76 if (!RenderNodeAnimator.isNativeInterpolator(interpolator)) { in doStartAnimation()
77 interpolator = new FallbackLUTInterpolator(interpolator, duration); in doStartAnimation()
87 animator.setInterpolator(interpolator); in doStartAnimation()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/
DDisappearAnimationUtils.java31 AnimationUtils.loadInterpolator(ctx, android.R.interpolator.fast_out_linear_in)); in DisappearAnimationUtils()
35 float delayScaleFactor, Interpolator interpolator) { in DisappearAnimationUtils() argument
36 this(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator, in DisappearAnimationUtils()
41 float delayScaleFactor, Interpolator interpolator, RowTranslationScaler rowScaler) { in DisappearAnimationUtils() argument
42 super(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator); in DisappearAnimationUtils()
DAppearAnimationUtils.java51 AnimationUtils.loadInterpolator(ctx, android.R.interpolator.linear_out_slow_in)); in AppearAnimationUtils()
55 float delayScaleFactor, Interpolator interpolator) { in AppearAnimationUtils() argument
56 mInterpolator = interpolator; in AppearAnimationUtils()
185 boolean appearing, Interpolator interpolator, final Runnable endRunnable) { in createAnimation() argument
199 alphaAnim.setInterpolator(interpolator); in createAnimation()
221 interpolator); in createAnimation()
226 float endTranslationY, Interpolator interpolator) { in startTranslationYAnimation() argument
237 translationAnim.setInterpolator(interpolator); in startTranslationYAnimation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DFlingAnimationUtils.java140 animator.setInterpolator(properties.interpolator); in apply()
159 animator.setInterpolator(properties.interpolator); in apply()
175 mAnimatorProperties.interpolator = slowInInterpolator; in getProperties()
184 mAnimatorProperties.interpolator = superInterpolator; in getProperties()
189 mAnimatorProperties.interpolator = Interpolators.FAST_OUT_SLOW_IN; in getProperties()
225 animator.setInterpolator(properties.interpolator); in applyDismissing()
245 animator.setInterpolator(properties.interpolator); in applyDismissing()
260 mAnimatorProperties.interpolator = mLinearOutFasterIn; in getDismissingProperties()
270 mAnimatorProperties.interpolator = superInterpolator; in getDismissingProperties()
275 mAnimatorProperties.interpolator = Interpolators.FAST_OUT_LINEAR_IN; in getDismissingProperties()
[all …]
DStackScrollerDecorView.java81 Interpolator interpolator; in animateText() local
83 interpolator = Interpolators.ALPHA_IN; in animateText()
85 interpolator = Interpolators.ALPHA_OUT; in animateText()
90 .setInterpolator(interpolator) in animateText()
DKeyguardAffordanceView.java359 Interpolator interpolator = circleRadius == 0.0f in setCircleRadius() local
362 animator.setInterpolator(interpolator); in setCircleRadius()
377 mPreviewClipper.setInterpolator(interpolator); in setCircleRadius()
428 Interpolator interpolator) { in setImageScale() argument
444 if (interpolator == null) { in setImageScale()
445 interpolator = imageScale == 0.0f in setImageScale()
449 animator.setInterpolator(interpolator); in setImageScale()
486 Interpolator interpolator, Runnable runnable) { in setImageAlpha() argument
507 if (interpolator == null) { in setImageAlpha()
508 interpolator = alpha == 0.0f in setImageAlpha()
[all …]
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
DPathInterpolatorValueParameterizedTest.java52 {R.interpolator.control_points_interpolator, 0.89f}, in data()
53 {R.interpolator.single_control_point_interpolator, 0.086f}, in data()
54 {R.interpolator.path_interpolator, 0.85f} in data()
71 Interpolator interpolator = AnimationUtilsCompat.loadInterpolator(mActivity, mResId); in testPathInterpolator() local
72 float value = interpolator.getInterpolation(0.5f); in testPathInterpolator()
/frameworks/base/core/java/android/view/animation/
DAnimationUtils.java359 BaseInterpolator interpolator = null; in createInterpolatorFromXml() local
377 interpolator = new LinearInterpolator(); in createInterpolatorFromXml()
379 interpolator = new AccelerateInterpolator(res, theme, attrs); in createInterpolatorFromXml()
381 interpolator = new DecelerateInterpolator(res, theme, attrs); in createInterpolatorFromXml()
383 interpolator = new AccelerateDecelerateInterpolator(); in createInterpolatorFromXml()
385 interpolator = new CycleInterpolator(res, theme, attrs); in createInterpolatorFromXml()
387 interpolator = new AnticipateInterpolator(res, theme, attrs); in createInterpolatorFromXml()
389 interpolator = new OvershootInterpolator(res, theme, attrs); in createInterpolatorFromXml()
391 interpolator = new AnticipateOvershootInterpolator(res, theme, attrs); in createInterpolatorFromXml()
393 interpolator = new BounceInterpolator(); in createInterpolatorFromXml()
[all …]
/frameworks/support/compat/java/android/support/v4/widget/
DScrollerCompat.java48 public static ScrollerCompat create(Context context, Interpolator interpolator) { in create() argument
49 return new ScrollerCompat(context, interpolator); in create()
56 ScrollerCompat(Context context, Interpolator interpolator) { in ScrollerCompat() argument
57 mScroller = interpolator != null ? in ScrollerCompat()
58 new OverScroller(context, interpolator) : new OverScroller(context); in ScrollerCompat()
/frameworks/base/core/java/android/widget/
DOverScroller.java59 public OverScroller(Context context, Interpolator interpolator) { in OverScroller() argument
60 this(context, interpolator, true); in OverScroller()
71 public OverScroller(Context context, Interpolator interpolator, boolean flywheel) { in OverScroller() argument
72 if (interpolator == null) { in OverScroller()
75 mInterpolator = interpolator; in OverScroller()
95 public OverScroller(Context context, Interpolator interpolator, in OverScroller() argument
97 this(context, interpolator, true); in OverScroller()
114 public OverScroller(Context context, Interpolator interpolator, in OverScroller() argument
116 this(context, interpolator, flywheel); in OverScroller()
119 void setInterpolator(Interpolator interpolator) { in setInterpolator() argument
[all …]
/frameworks/base/libs/hwui/
DPropertyValuesAnimatorSet.cpp26 Interpolator* interpolator, nsecs_t startDelay, nsecs_t duration, int repeatCount, in addPropertyAnimator() argument
30 interpolator, startDelay, duration, repeatCount, repeatMode); in addPropertyAnimator()
130 PropertyAnimator::PropertyAnimator(PropertyValuesHolder* holder, Interpolator* interpolator, in PropertyAnimator() argument
133 : mPropertyValuesHolder(holder), mInterpolator(interpolator), mStartDelay(startDelay), in PropertyAnimator()
/frameworks/base/libs/hwui/tests/unit/
DPathInterpolatorTests.cpp102 PathInterpolator interpolator(getX(data), getY(data)); in TEST() local
104 EXPECT_FLOAT_EQ(data.outFraction[i], interpolator.interpolate(data.inFraction[i])); in TEST()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DTrustDrawable.java221 int startAlpha, int endAlpha, long duration, Interpolator interpolator, in makeAnimators() argument
225 duration, mAlphaUpdateListener, interpolator, repeating); in makeAnimators()
228 duration, mRadiusUpdateListener, interpolator, repeating); in makeAnimators()
239 ValueAnimator.AnimatorUpdateListener updateListener, Interpolator interpolator, in configureAnimator() argument
243 animator.setInterpolator(interpolator); in configureAnimator()
DDozeScrimController.java196 Interpolator interpolator) { in startScrimAnimation() argument
197 startScrimAnimation(inFront, target, duration, interpolator, null /* endRunnable */); in startScrimAnimation()
201 Interpolator interpolator, final Runnable endRunnable) { in startScrimAnimation() argument
218 anim.setInterpolator(interpolator); in startScrimAnimation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DAnimationProperties.java74 public AnimationProperties setCustomInterpolator(Property property, Interpolator interpolator) { in setCustomInterpolator() argument
78 mInterpolatorMap.put(property, interpolator); in setCustomInterpolator()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternView.java340 AnimationUtils.loadInterpolator(context, android.R.interpolator.fast_out_slow_in); in LockPatternView()
342 AnimationUtils.loadInterpolator(context, android.R.interpolator.linear_out_slow_in); in LockPatternView()
438 Interpolator interpolator, Runnable finishRunnable) { in startCellStateAnimation() argument
441 endTranslationY, startScale, endScale, delay, duration, interpolator, in startCellStateAnimation()
445 endTranslationY, startScale, endScale, delay, duration, interpolator, in startCellStateAnimation()
454 long delay, long duration, Interpolator interpolator, final Runnable finishRunnable) { in startCellStateAnimationSw() argument
461 animator.setInterpolator(interpolator); in startCellStateAnimationSw()
487 long delay, long duration, Interpolator interpolator, final Runnable finishRunnable) { in startCellStateAnimationHw() argument
501 getCenterYForRow(cellState.row) + endTranslationY, delay, duration, interpolator); in startCellStateAnimationHw()
503 interpolator); in startCellStateAnimationHw()
[all …]
/frameworks/support/compat/tests/java/android/support/v4/widget/
DScrollerCompatTestBase.java44 protected void createScroller(Interpolator interpolator) in createScroller() argument
47 mScroller = new ScrollerCompat(InstrumentationRegistry.getContext(), interpolator); in createScroller()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardPatternView.java114 mContext, android.R.interpolator.linear_out_slow_in)); in KeyguardPatternView()
118 mContext, android.R.interpolator.fast_out_linear_in)); in KeyguardPatternView()
122 mContext, android.R.interpolator.fast_out_linear_in)); in KeyguardPatternView()
474 Interpolator interpolator, in createAnimation() argument
480 delay, duration, interpolator, finishListener); in createAnimation()
484 appearing, interpolator, null); in createAnimation()

12345