/cts/tests/tests/graphics/src/android/graphics/cts/ |
InterpolatorTest.java | 24 import android.graphics.Interpolator; 25 import android.graphics.Interpolator.Result; 41 Interpolator interpolator = new Interpolator(10); local 42 assertEquals(10, interpolator.getValueCount()); 43 assertEquals(DEFAULT_KEYFRAME_COUNT, interpolator.getKeyFrameCount()); 45 interpolator = new Interpolator(15, 20); 46 assertEquals(15, interpolator.getValueCount()) 53 Interpolator interpolator = new Interpolator(10); local 65 Interpolator interpolator = new Interpolator(10); local 73 Interpolator interpolator = new Interpolator(1); local 113 Interpolator interpolator = new Interpolator(1); local 155 Interpolator interpolator = new Interpolator(1, 3); local 189 Interpolator interpolator = new Interpolator(1); local [all...] |
/frameworks/base/core/java/android/view/ |
RenderNodeAnimatorSetHelper.java | 36 public static long createNativeInterpolator(TimeInterpolator interpolator, long 38 if (interpolator == null) { 41 } else if (RenderNodeAnimator.isNativeInterpolator(interpolator)) { 42 return ((NativeInterpolatorFactory)interpolator).createNativeInterpolator(); 44 return FallbackLUTInterpolator.createNativeInterpolator(interpolator, duration);
|
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/apache-commons-math/src/main/java/org/apache/commons/math/ode/sampling/ |
StepNormalizer.java | 104 * @param interpolator interpolator for the last accepted step. For 115 public void handleStep(final StepInterpolator interpolator, final boolean isLast) 120 lastTime = interpolator.getPreviousTime(); 121 interpolator.setInterpolatedTime(lastTime); 122 lastState = interpolator.getInterpolatedState().clone(); 123 lastDerivatives = interpolator.getInterpolatedDerivatives().clone(); 126 forward = interpolator.getCurrentTime() >= lastTime; 134 boolean nextInStep = forward ^ (nextTime > interpolator.getCurrentTime()); 142 interpolator.setInterpolatedTime(lastTime) [all...] |
StepHandler.java | 49 * than a custom interpolator.</p> 62 * @param interpolator interpolator for the last accepted step. For 69 * using the clone method of the interpolator and store this copy. 70 * Keeping only a reference to the interpolator and reusing it will 73 * @exception DerivativeException if user code called from step interpolator 76 void handleStep(StepInterpolator interpolator, boolean isLast) throws DerivativeException;
|
DummyStepHandler.java | 71 * @param interpolator interpolator for the last accepted step. For 80 public void handleStep(final StepInterpolator interpolator, final boolean isLast) {
|
NordsieckStepInterpolator.java | 30 * This class implements an interpolator for integrators using Nordsieck representation. 32 * <p>This interpolator computes dense output around the current point. 77 * @param interpolator interpolator to copy from. The copy is a deep 81 public NordsieckStepInterpolator(final NordsieckStepInterpolator interpolator) { 82 super(interpolator); 83 scalingH = interpolator.scalingH; 84 referenceTime = interpolator.referenceTime; 85 if (interpolator.scaled != null) { 86 scaled = interpolator.scaled.clone() [all...] |
AbstractStepInterpolator.java | 26 /** This abstract class represents an interpolator over the last step 135 * <p>The copied interpolator should have been finalized before the 141 * interpolator, finalization is <strong>not</strong> done 147 * @param interpolator interpolator to copy from. 150 protected AbstractStepInterpolator(final AbstractStepInterpolator interpolator) { 152 globalPreviousTime = interpolator.globalPreviousTime; 153 globalCurrentTime = interpolator.globalCurrentTime; 154 softPreviousTime = interpolator.softPreviousTime; 155 softCurrentTime = interpolator.softCurrentTime [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 40 * interpolator creation 42 public FallbackLUTInterpolator(TimeInterpolator interpolator, long duration) { 43 mSourceInterpolator = interpolator; 44 mLut = createLUT(interpolator, duration); 47 private static float[] createLUT(TimeInterpolator interpolator, long duration) { 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) [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/ |
AdamsBashforthIntegrator.java | 111 * <li>it greatly simplifies step interpolation as the interpolator mainly applies 205 // set up an interpolator sharing the integrator arrays 206 final NordsieckStepInterpolator interpolator = new NordsieckStepInterpolator(); local 207 interpolator.reinitialize(y, forward); 217 interpolator.reinitialize(stepStart, stepSize, scaled, nordsieck); 218 interpolator.storeTime(stepStart); 223 interpolator.rescale(hNew); 250 interpolator.rescale(hNew); 257 interpolator.shift(); 258 interpolator.setInterpolatedTime(stepEnd) [all...] |
RungeKuttaStepInterpolator.java | 27 /** This class represents an interpolator over the last step during an 64 * <p>The copied interpolator should have been finalized before the 69 * method to modify the state of the copied interpolator, 76 * @param interpolator interpolator to copy from. 79 public RungeKuttaStepInterpolator(final RungeKuttaStepInterpolator interpolator) { 81 super(interpolator); 83 if (interpolator.currentState != null) { 86 yDotK = new double[interpolator.yDotK.length][]; 87 for (int k = 0; k < interpolator.yDotK.length; ++k) [all...] |
EulerStepInterpolator.java | 24 * This class implements a linear interpolator for step. 26 * <p>This interpolator computes dense output inside the last 63 * @param interpolator interpolator to copy from. The copy is a deep 67 public EulerStepInterpolator(final EulerStepInterpolator interpolator) { 68 super(interpolator);
|
AdamsMoultonIntegrator.java | 117 * <li>it greatly simplifies step interpolation as the interpolator mainly applies 226 final NordsieckStepInterpolator interpolator = new NordsieckStepInterpolator(); local 227 interpolator.reinitialize(y, forward); 237 interpolator.reinitialize(stepStart, stepSize, scaled, nordsieck); 238 interpolator.storeTime(stepStart); 241 interpolator.rescale(hNew); 253 interpolator.setInterpolatedTime(stepEnd); 254 System.arraycopy(interpolator.getInterpolatedState(), 0, yTmp, 0, y0.length); 273 interpolator.rescale(hNew); 290 interpolator.reinitialize(stepEnd, stepSize, correctedScaled, nordsieckTmp) [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/ |
DisappearAnimationUtils.java | 21 import android.view.animation.Interpolator; 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);
|
AppearAnimationCreator.java | 19 import android.view.animation.Interpolator; 27 float translationY, boolean appearing, Interpolator interpolator,
|
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/ |
AnimationUtilsCompat.java | 41 import android.view.animation.Interpolator; 57 * Loads an {@link Interpolator} object from a resource 63 public static Interpolator loadInterpolator(Context context, int id) 65 // From API 21, we added path Interpolator . 72 // Special treatment for the interpolator introduced at API 21. 99 private static Interpolator createInterpolatorFromXml(Context context, Resources res, 104 Interpolator interpolator = null; local 122 interpolator = new LinearInterpolator(); 124 interpolator = new AccelerateInterpolator(context, attrs) [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/jacobians/ |
StepHandlerWithJacobians.java | 81 * @param interpolator interpolator for the last accepted step. For 88 * using the clone method of the interpolator and store this copy. 89 * Keeping only a reference to the interpolator and reusing it will 95 void handleStep(StepInterpolatorWithJacobians interpolator, boolean isLast) throws DerivativeException;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
AnimationProps.java | 26 import android.view.animation.Interpolator; 58 private SparseArray<Interpolator> mPropInterpolators; 67 * Creates an animation with a default {@param duration} and {@param interpolator} for all 70 public AnimationProps(int duration, Interpolator interpolator) { 71 this(0, duration, interpolator, null); 75 * Creates an animation with a default {@param duration} and {@param interpolator} for all 78 public AnimationProps(int duration, Interpolator interpolator, 80 this(0, duration, interpolator, listener) [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/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/ |
PathInterpolatorValueParameterizedTest.java | 26 import android.view.animation.Interpolator; 52 {R.interpolator.control_points_interpolator, 0.89f}, 53 {R.interpolator.single_control_point_interpolator, 0.086f}, 54 {R.interpolator.path_interpolator, 0.85f} 71 Interpolator interpolator = AnimationUtilsCompat.loadInterpolator(mActivity, mResId); local 72 float value = interpolator.getInterpolation(0.5f);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/events/ |
EventState.java | 143 * @param interpolator valid for the current step 147 public void reinitializeBegin(final StepInterpolator interpolator) 169 final double ignoreZone = interpolator.isForward() ? getConvergence() : -getConvergence(); 170 t0 = interpolator.getPreviousTime() + ignoreZone; 171 interpolator.setInterpolatedTime(t0); 172 g0 = handler.g(t0, interpolator.getInterpolatedState()); 176 final double tStart = interpolator.getPreviousTime(); 177 interpolator.setInterpolatedTime(tStart); 178 g0Positive = handler.g(tStart, interpolator.getInterpolatedState()) <= 0; 189 * @param interpolator step interpolator for the proposed ste [all...] |
/cts/tests/tests/view/src/android/view/animation/cts/ |
LinearInterpolatorTest.java | 33 import android.view.animation.Interpolator; 76 LinearInterpolator interpolator = new LinearInterpolator(); local 77 final float delta1 = interpolator.getInterpolation(0.1f) 78 - interpolator.getInterpolation(0.0f); 79 final float delta2 = interpolator.getInterpolation(0.2f) 80 - interpolator.getInterpolation(0.1f); 81 final float delta3 = interpolator.getInterpolation(0.3f) 82 - interpolator.getInterpolation(0.2f); 94 Interpolator interpolator = new LinearInterpolator() local [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 | 64 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 65 if (interpolator != null) { 66 fraction = interpolator.getInterpolation(fraction); 80 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 81 if (interpolator != null) { 82 fraction = interpolator.getInterpolation(fraction); 94 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 99 // Apply interpolator on the proportional duration. 100 if (interpolator != null) { 101 intervalFraction = interpolator.getInterpolation(intervalFraction) [all...] |
IntKeyframeSet.java | 64 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 65 if (interpolator != null) { 66 fraction = interpolator.getInterpolation(fraction); 80 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 81 if (interpolator != null) { 82 fraction = interpolator.getInterpolation(fraction); 93 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 98 // Apply interpolator on the proportional duration. 99 if (interpolator != null) { 100 intervalFraction = interpolator.getInterpolation(intervalFraction) [all...] |