/developers/samples/android/ui/Interpolator/Application/src/main/java/com/example/android/interpolator/ |
InterpolatorFragment.java | 17 package com.example.android.interpolator; 29 import android.view.animation.Interpolator; 50 * Spinner for selection of interpolator. 65 private Interpolator mInterpolators[]; 139 * selected: the Interpolator, duration and animation path 149 // Interpolator selected in the spinner 151 Interpolator interpolator = mInterpolators[selectedItemPosition]; 163 startAnimation(interpolator, duration, path); 207 * @param interpolator The interpolator to use for the animation [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...] |
/external/robolectric/v1/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;
|
/frameworks/base/core/java/android/animation/ |
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(); local 208 if (interpolator != null) { 209 fraction = interpolator.getInterpolation(fraction); 218 final TimeInterpolator interpolator = mLastKeyframe.getInterpolator(); local 219 if (interpolator != null) { 220 fraction = interpolator.getInterpolation(fraction); 232 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 236 // Apply interpolator on the proportional duration [all...] |
/frameworks/base/core/java/android/view/animation/ |
AnimationUtils.java | 328 * Loads an {@link Interpolator} object from a resource 335 public static Interpolator loadInterpolator(Context context, @AnimRes @InterpolatorRes int id) 358 * Loads an {@link Interpolator} object from a resource 362 * @return The interpolator object reference by the specified id 366 public static Interpolator loadInterpolator(Resources res, Theme theme, int id) throws NotFoundException { 388 private static Interpolator createInterpolatorFromXml(Resources res, Theme theme, XmlPullParser parser) 391 BaseInterpolator interpolator = null; local 409 interpolator = new LinearInterpolator(); 411 interpolator = new AccelerateInterpolator(res, theme, attrs); 413 interpolator = new DecelerateInterpolator(res, theme, attrs) [all...] |
AnimationSet.java | 117 * should use the interpolator associated with this AnimationSet. 118 * Pass false if each animation should use its own interpolator. 353 final Interpolator interpolator = a.mInterpolator; local 354 a.applyTransformation(interpolator != null ? interpolator.getInterpolation(0.0f) 447 final Interpolator interpolator = mInterpolator; local 475 a.setInterpolator(interpolator);
|
/frameworks/base/core/jni/ |
android_view_RenderNodeAnimator.cpp | 25 #include <Interpolator.h> 166 Interpolator* interpolator = reinterpret_cast<Interpolator*>(interpolatorPtr); local 167 animator->setInterpolator(interpolator);
|
android_graphics_drawable_AnimatedVectorDrawable.cpp | 25 #include "Interpolator.h" 91 Interpolator* interpolator = reinterpret_cast<Interpolator*>(interpolatorPtr); local 93 set->addPropertyAnimator(holder, interpolator, startDelay, duration, repeatCount, mode);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
StackScrollerDecorView.java | 23 import android.view.animation.Interpolator; 184 Interpolator interpolator = nowVisible ? Interpolators.ALPHA_IN : Interpolators.ALPHA_OUT; local 187 .setInterpolator(interpolator)
|
FlingAnimationUtils.java | 22 import android.view.animation.Interpolator; 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); 173 Interpolator slowInInterpolator = getInterpolator(startGradient, velocityFactor); 175 mAnimatorProperties.interpolator = slowInInterpolator; 178 // Cross fade between fast-out-slow-in and linear interpolator with current velocity 349 Interpolator interpolator; field in class:FlingAnimationUtils.AnimatorProperties [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
PropertyAnimator.java | 25 import android.view.animation.Interpolator; 89 Interpolator customInterpolator = properties.getCustomInterpolator(view, property); 90 Interpolator interpolator = customInterpolator != null ? customInterpolator local 92 animator.setInterpolator(interpolator);
|
/cts/tests/tests/animation/src/android/animation/cts/ |
AnimatorTest.java | 117 AccelerateInterpolator interpolator = new AccelerateInterpolator(); local 118 ValueAnimator mValueAnimator = mActivity.createAnimatorWithInterpolator(interpolator); 120 assertTrue(interpolator.equals(mValueAnimator.getInterpolator()));
|
ValueAnimatorTest.java | 449 AccelerateInterpolator interpolator = new AccelerateInterpolator(); local 450 ValueAnimator mValueAnimator = mActivity.createAnimatorWithInterpolator(interpolator); 452 assertTrue(interpolator.equals(mValueAnimator.getInterpolator()));
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/ |
GraggBulirschStoerIntegrator.java | 614 // set up an interpolator sharing the integrator arrays 615 AbstractStepInterpolator interpolator = null; local 617 interpolator = new GraggBulirschStoerStepInterpolator(y, yDot0, 621 interpolator = new DummyStepInterpolator(y, yDot1, forward); 623 interpolator.storeTime(t0); 645 interpolator.shift(); 859 = (GraggBulirschStoerStepInterpolator) interpolator; 880 interpolator.storeTime(stepStart + stepSize); 881 stepStart = acceptStep(interpolator, y1, yDot1, t); 884 interpolator.storeTime(stepStart) [all...] |
/cts/tests/tests/view/src/android/view/animation/cts/ |
DecelerateInterpolatorTest.java | 37 import android.view.animation.Interpolator; 87 // android:interpolator="@android:anim/decelerate_interpolator" 97 Interpolator interpolator = new DecelerateInterpolator(1.0f); local 98 anim.setInterpolator(interpolator); 132 interpolator = new DecelerateInterpolator(1.5f); 133 anim.setInterpolator(interpolator); 172 Interpolator interpolator1 = new DecelerateInterpolator(1.0f); 174 Interpolator interpolator2 = new DecelerateInterpolator(2.0f);
|
AnimationTest.java | 52 import android.view.animation.Interpolator; 108 // check default interpolator 110 Interpolator interpolator = myAnimation.getInterpolator(); local 111 assertTrue(interpolator instanceof AccelerateDecelerateInterpolator); // issue 1561186. 114 assertSame(interpolator, myAnimation.getInterpolator()); 119 interpolator = myAnimation.getInterpolator(); 120 assertTrue(interpolator instanceof AccelerateDecelerateInterpolator); 123 interpolator = animation.getInterpolator(); 124 assertNotNull(interpolator); [all...] |
CycleInterpolatorTest.java | 37 import android.view.animation.Interpolator; 86 Interpolator interpolator = new CycleInterpolator(1.0f); local 87 anim.setInterpolator(interpolator); 126 interpolator = new CycleInterpolator(2.0f); 127 anim.setInterpolator(interpolator);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/ |
ContinuousOutputModel.java | 104 /** Current interpolator index. */ 120 * @exception DerivativeException if user code called from step interpolator 161 for (StepInterpolator interpolator : model.steps) { 162 steps.add(interpolator.copy()); 195 * @param interpolator interpolator for the last accepted step. 197 * @exception DerivativeException if user code called from step interpolator 200 public void handleStep(final StepInterpolator interpolator, final boolean isLast) 204 initialTime = interpolator.getPreviousTime(); 205 forward = interpolator.isForward() [all...] |
/packages/apps/Camera2/src/com/android/camera/ui/ |
StickyBottomCaptureLayout.java | 21 import android.view.animation.Interpolator; 185 final Interpolator interpolator = local 189 .setInterpolator(interpolator) 201 final Interpolator interpolator = local 205 .setInterpolator(interpolator)
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/utils/ |
FlingAnimationUtils.java | 22 import android.view.animation.Interpolator; 38 private Interpolator linearOutSlowIn; 56 * Applies the interpolator and length to the animator, such that the fling animation is 69 * Applies the interpolator and length to the animator, such that the fling animation is 83 * Applies the interpolator and length to the animator, such that the fling animation is 97 animator.setInterpolator(properties.interpolator); 101 * Applies the interpolator and length to the animator, such that the fling animation is 119 animator.setInterpolator(properties.interpolator); 130 animatorProperties.interpolator = linearOutSlowIn; 133 // Cross fade between fast-out-slow-in and linear interpolator with current velocity 290 Interpolator interpolator; field in class:FlingAnimationUtils.AnimatorProperties [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
AllAppsTransitionController.java | 20 import android.view.animation.Interpolator; 178 Interpolator interpolator = config.userControlled ? LINEAR : toState == OVERVIEW local 184 anim.setInterpolator(builder.getInterpolator(ANIM_VERTICAL_PROGRESS, interpolator));
|
/packages/apps/Settings/src/com/android/settings/ |
PreviewPagerAdapter.java | 30 import android.view.animation.Interpolator; 44 /** Interpolator to use when cross-fading between previews. */ 45 private static final Interpolator FADE_IN_INTERPOLATOR = new DecelerateInterpolator(); 47 /** Interpolator to use when cross-fading between previews. */ 48 private static final Interpolator FADE_OUT_INTERPOLATOR = new AccelerateInterpolator(); 162 final Interpolator interpolator = (visibility == View.VISIBLE ? FADE_IN_INTERPOLATOR local
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
SchedulesHeaderRowPresenter.java | 233 DecelerateInterpolator interpolator = new DecelerateInterpolator(); local 277 .setInterpolator(interpolator) 286 .setInterpolator(interpolator)
|
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/cards/ |
CallCard.java | 129 TimeInterpolator interpolator = local 143 .setInterpolator(interpolator) 150 .setInterpolator(interpolator) 186 TimeInterpolator interpolator = local 193 .setInterpolator(interpolator) 203 .setInterpolator(interpolator)
|
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
StateTransitionAnimation.java | 21 import android.view.animation.Interpolator; 35 private static final Interpolator DEFAULT_INTERPOLATOR = 51 public Interpolator interpolator = DEFAULT_INTERPOLATOR; field in class:StateTransitionAnimation.Spec 110 setInterpolator(mTransitionSpec.interpolator);
|