/cts/tests/tests/graphics/src/android/graphics/cts/ |
InterpolatorTest.java | 20 import android.graphics.Interpolator; 21 import android.graphics.Interpolator.Result; 30 Interpolator i = new Interpolator(10); 34 i = new Interpolator(15, 20); 41 Interpolator interpolator = new Interpolator(10); local 42 assertEquals(DEFAULT_KEYFRAME_COUNT, interpolator.getKeyFrameCount()); 43 interpolator.reset(expected) 52 Interpolator interpolator = new Interpolator(10); local 59 Interpolator interpolator = new Interpolator(1); local 98 Interpolator interpolator = new Interpolator(1); local 139 Interpolator interpolator = new Interpolator(1, 3); local 172 Interpolator interpolator = new Interpolator(1); local [all...] |
/frameworks/base/core/java/com/android/internal/view/animation/ |
FallbackLUTInterpolator.java | 24 * Interpolator that builds a lookup table to use. This is a fallback for 25 * building a native interpolator from a TimeInterpolator that is not marked 38 * interpolator creation 40 public FallbackLUTInterpolator(TimeInterpolator interpolator, long duration) { 41 mSourceInterpolator = interpolator; 42 mLut = createLUT(interpolator, duration); 45 private static float[] createLUT(TimeInterpolator interpolator, long duration) { 53 values[i] = interpolator.getInterpolation(inValue); 64 * Used to create a one-shot float[] LUT & native interpolator 66 public static long createNativeInterpolator(TimeInterpolator interpolator, long duration) [all...] |
/cts/tests/tests/view/src/android/view/animation/cts/ |
LinearInterpolatorTest.java | 25 import android.view.animation.Interpolator; 60 LinearInterpolator interpolator = new LinearInterpolator(); local 61 final float delta1 = interpolator.getInterpolation(0.1f) 62 - interpolator.getInterpolation(0.0f); 63 final float delta2 = interpolator.getInterpolation(0.2f) 64 - interpolator.getInterpolation(0.1f); 65 final float delta3 = interpolator.getInterpolation(0.3f) 66 - interpolator.getInterpolation(0.2f); 77 Interpolator interpolator = new LinearInterpolator() local [all...] |
AccelerateDecelerateInterpolatorTest.java | 32 import android.view.animation.Interpolator; 67 // android:interpolator="@android:anim/accelerate_decelerate_interpolator" 109 Interpolator interpolator = new AccelerateDecelerateInterpolator(); local 111 float alpha1 = interpolator.getInterpolation(0f); 112 float alpha2 = interpolator.getInterpolation(0.25f); 113 float alpha3 = interpolator.getInterpolation(0.5f); 114 float alpha4 = interpolator.getInterpolation(0.75f); 115 float alpha5 = interpolator.getInterpolation(1f);
|
AccelerateInterpolatorTest.java | 32 import android.view.animation.Interpolator; 69 // android:interpolator="@android:anim/accelerate_interpolator" 79 Interpolator interpolator = new AccelerateInterpolator(1.0f); local 80 anim.setInterpolator(interpolator); 114 interpolator = new AccelerateInterpolator(1.5f); 115 anim.setInterpolator(interpolator); 153 Interpolator interpolator1 = new AccelerateInterpolator(1.0f); 155 Interpolator interpolator2 = new AccelerateInterpolator(2.0f); 164 Interpolator interpolator = new AccelerateInterpolator() [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
DisappearAnimationUtils.java | 22 import android.view.animation.Interpolator; 32 AnimationUtils.loadInterpolator(ctx, android.R.interpolator.linear_out_slow_in)); 36 float delayScaleFactor, Interpolator interpolator) { 37 super(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator);
|
AppearAnimationCreator.java | 20 import android.view.animation.Interpolator; 28 float translationY, boolean appearing, Interpolator interpolator,
|
/frameworks/base/core/java/android/view/ |
ViewPropertyAnimatorRT.java | 21 import android.view.animation.Interpolator; 34 private static final Interpolator sLinearInterpolator = new LinearInterpolator(); 71 TimeInterpolator interpolator = parent.getInterpolator(); local 72 if (interpolator == null) { 74 interpolator = sLinearInterpolator; 76 if (!RenderNodeAnimator.isNativeInterpolator(interpolator)) { 77 interpolator = new FallbackLUTInterpolator(interpolator, duration); 87 animator.setInterpolator(interpolator);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowAnimation.java | 4 import android.view.animation.Interpolator; 19 private Interpolator interpolator; field in class:ShadowAnimation 68 public void setInterpolator(Interpolator interpolator) { 69 this.interpolator = interpolator; 73 public Interpolator getInterpolator() { 74 return interpolator;
|
/developers/build/prebuilts/gradle/Interpolator/Application/src/main/java/com/example/android/interpolator/ |
InterpolatorFragment.java | 17 package com.example.android.interpolator; 27 import android.view.animation.Interpolator; 49 * Spinner for selection of interpolator. 64 private Interpolator mInterpolators[]; 102 // selected: the Interpolator, duration and animation path 107 // Interpolator selected in the spinner 108 Interpolator interpolator = mInterpolators[mInterpolatorSpinner.getSelectedItemPosition()]; 120 startAnimation(interpolator, duration, path); 132 mInterpolators = new Interpolator[]{ [all...] |
/developers/samples/android/ui/Interpolator/Application/src/main/java/com/example/android/interpolator/ |
InterpolatorFragment.java | 17 package com.example.android.interpolator; 27 import android.view.animation.Interpolator; 49 * Spinner for selection of interpolator. 64 private Interpolator mInterpolators[]; 102 // selected: the Interpolator, duration and animation path 107 // Interpolator selected in the spinner 108 Interpolator interpolator = mInterpolators[mInterpolatorSpinner.getSelectedItemPosition()]; 120 startAnimation(interpolator, duration, path); 132 mInterpolators = new Interpolator[]{ [all...] |
/development/samples/browseable/Interpolator/src/com.example.android.interpolator/ |
InterpolatorFragment.java | 17 package com.example.android.interpolator; 27 import android.view.animation.Interpolator; 49 * Spinner for selection of interpolator. 64 private Interpolator mInterpolators[]; 102 // selected: the Interpolator, duration and animation path 107 // Interpolator selected in the spinner 108 Interpolator interpolator = mInterpolators[mInterpolatorSpinner.getSelectedItemPosition()]; 120 startAnimation(interpolator, duration, path); 132 mInterpolators = new Interpolator[]{ [all...] |
/frameworks/base/core/java/android/animation/ |
FloatKeyframeSet.java | 91 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 92 if (interpolator != null) { 93 fraction = interpolator.getInterpolation(fraction); 107 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 108 if (interpolator != null) { 109 fraction = interpolator.getInterpolation(fraction); 121 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 122 if (interpolator != null) { 123 fraction = interpolator.getInterpolation(fraction);
|
IntKeyframeSet.java | 91 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 92 if (interpolator != null) { 93 fraction = interpolator.getInterpolation(fraction); 107 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 108 if (interpolator != null) { 109 fraction = interpolator.getInterpolation(fraction); 120 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 121 if (interpolator != null) { 122 fraction = interpolator.getInterpolation(fraction);
|
KeyframeSet.java | 194 * animation's interpolator) and the evaluator used to calculate in-between values. This 197 * outside the [0-1] bounds, if the animation's interpolator made that happen (e.g., a 216 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 217 if (interpolator != null) { 218 fraction = interpolator.getInterpolation(fraction); 227 final TimeInterpolator interpolator = mLastKeyframe.getInterpolator(); local 228 if (interpolator != null) { 229 fraction = interpolator.getInterpolation(fraction); 241 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 242 if (interpolator != null) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
FlingAnimationUtils.java | 24 import android.view.animation.Interpolator; 44 private Interpolator mLinearOutSlowIn; 45 private Interpolator mFastOutSlowIn; 46 private Interpolator mFastOutLinearIn; 58 = AnimationUtils.loadInterpolator(ctx, android.R.interpolator.fast_out_slow_in); 60 = AnimationUtils.loadInterpolator(ctx, android.R.interpolator.fast_out_linear_in); 68 * Applies the interpolator and length to the animator, such that the fling animation is 81 * Applies the interpolator and length to the animator, such that the fling animation is 95 * Applies the interpolator and length to the animator, such that the fling animation is 110 animator.setInterpolator(properties.interpolator); 301 Interpolator interpolator; field in class:FlingAnimationUtils.AnimatorProperties [all...] |
StackScrollerDecorView.java | 22 import android.view.animation.Interpolator; 82 Interpolator interpolator; local 84 interpolator = PhoneStatusBar.ALPHA_IN; 86 interpolator = PhoneStatusBar.ALPHA_OUT; 91 .setInterpolator(interpolator)
|
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
Animation.java | 19 import android.view.animation.Interpolator; 37 // Before onCalculate(float) is called, There is an optional interpolator which 38 // can change the progress value. The interpolator can be set by 39 // setInterpolator(Interpolator). If the interpolator is used, the value passed 54 private Interpolator mInterpolator; 56 public void setInterpolator(Interpolator interpolator) { 57 mInterpolator = interpolator; 85 Interpolator i = mInterpolator [all...] |
/frameworks/base/core/java/android/view/animation/ |
AnimationUtils.java | 262 * Loads an {@link Interpolator} object from a resource 269 public static Interpolator loadInterpolator(Context context, int id) throws NotFoundException { 291 * Loads an {@link Interpolator} object from a resource 295 * @return The interpolator object reference by the specified id 299 public static Interpolator loadInterpolator(Resources res, Theme theme, int id) throws NotFoundException { 321 private static Interpolator createInterpolatorFromXml(Resources res, Theme theme, XmlPullParser parser) 324 BaseInterpolator interpolator = null; local 342 interpolator = new LinearInterpolator(); 344 interpolator = new AccelerateInterpolator(res, theme, attrs); 346 interpolator = new DecelerateInterpolator(res, theme, attrs) [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
ScrollerCompat.java | 22 import android.view.animation.Interpolator; 39 Object createScroller(Context context, Interpolator interpolator); 63 public Object createScroller(Context context, Interpolator interpolator) { 64 return interpolator != null ? 65 new Scroller(context, interpolator) : new Scroller(context); 152 public Object createScroller(Context context, Interpolator interpolator) { 153 return ScrollerCompatGingerbread.createScroller(context, interpolator); [all...] |
/development/ndk/sources/android/ndk_helper/ |
Android.mk | 6 LOCAL_SRC_FILES:= JNIHelper.cpp interpolator.cpp tapCamera.cpp gestureDetector.cpp perfMonitor.cpp vecmath.cpp GLContext.cpp shader.cpp gl3stub.c
|
/frameworks/support/v4/tests/java/android/support/v4/widget/ |
ScrollerCompatTestBase.java | 22 import android.view.animation.Interpolator; 44 protected void createScroller(Interpolator interpolator) 48 .getDeclaredConstructor(int.class, Context.class, Interpolator.class); 50 mScroller = constructor.newInstance(mApiLevel, getContext(), interpolator);
|
/external/chromium_org/third_party/skia/src/animator/ |
SkAnimateActive.cpp | 172 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 183 interpolator.timeToValues(time, values.get()); 210 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 221 interpolator.timeToValues(time, values.get()); 355 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 357 int count = interpolator.getValuesCount(); 358 memcpy(interpolator.getValues(), fSaveInterpolators[index], count * sizeof(SkOperand)); 362 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 364 int count = interpolator.getValuesCount(); 367 memcpy(cache, interpolator.getValues(), count * sizeof(SkOperand)) 378 SkOperandInterpolator& interpolator = *fInterpolators[index]; local [all...] |
/external/skia/src/animator/ |
SkAnimateActive.cpp | 172 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 183 interpolator.timeToValues(time, values.get()); 210 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 221 interpolator.timeToValues(time, values.get()); 355 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 357 int count = interpolator.getValuesCount(); 358 memcpy(interpolator.getValues(), fSaveInterpolators[index], count * sizeof(SkOperand)); 362 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 364 int count = interpolator.getValuesCount(); 367 memcpy(cache, interpolator.getValues(), count * sizeof(SkOperand)) 378 SkOperandInterpolator& interpolator = *fInterpolators[index]; local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
TrustDrawable.java | 36 import android.view.animation.Interpolator; 72 private final Interpolator mLinearOutSlowInInterpolator; 73 private final Interpolator mFastOutSlowInInterpolator; 74 private final Interpolator mAccelerateDecelerateInterpolator; 87 context, android.R.interpolator.linear_out_slow_in); 89 context, android.R.interpolator.fast_out_slow_in); 232 int startAlpha, int endAlpha, long duration, Interpolator interpolator, 236 duration, mAlphaUpdateListener, interpolator, repeating); 239 duration, mRadiusUpdateListener, interpolator, repeating) [all...] |