HomeSort by relevance Sort by last modified time
    Searched refs:Keyframe (Results 1 - 25 of 42) sorted by null

1 2

  /cts/tests/tests/animation/src/android/animation/cts/
KeyframeTest.java 19 import android.animation.Keyframe;
26 Keyframe keyFrame = Keyframe.ofInt(0.0f);
27 float fraction = keyFrame.getFraction();
32 Keyframe keyFrame = Keyframe.ofInt(0.0f);
33 keyFrame.setFraction(0.5f);
34 float fraction = keyFrame.getFraction()
    [all...]
PropertyValuesHolderTest.java 21 import android.animation.Keyframe;
95 private ObjectAnimator createAnimator(Keyframe... keyframes) {
137 Keyframe emptyKeyframe1 = Keyframe.ofFloat(.0f);
138 ObjectAnimator objAnimator1 = createAnimator(emptyKeyframe1, Keyframe.ofFloat(1f, 100f));
140 assertTrue("Keyframe should be assigned a value", emptyKeyframe1.hasValue());
141 assertEquals("Keyframe should get the value from the target", emptyKeyframe1.getValue(),
149 Keyframe emptyKeyframe2 = Keyframe.ofFloat(.0f);
150 ObjectAnimator objAnimator2 = createAnimator(emptyKeyframe2, Keyframe.ofFloat(1f, 200f))
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/animation/
Keyframe.h 19 // FIXME: Make Keyframe immutable
20 class Keyframe : public RefCountedWillBeGarbageCollectedFinalized<Keyframe> {
22 virtual ~Keyframe() { }
33 static bool compareOffsets(const RefPtrWillBeMember<Keyframe>& a, const RefPtrWillBeMember<Keyframe>& b)
40 virtual PassRefPtrWillBeRawPtr<Keyframe> clone() const = 0;
41 PassRefPtrWillBeRawPtr<Keyframe> cloneWithOffset(double offset) const
43 RefPtrWillBeRawPtr<Keyframe> theClone = clone();
67 virtual PassRefPtrWillBeRawPtr<Interpolation> createInterpolation(CSSPropertyID, WebCore::Keyframe::PropertySpecificKeyframe* end, Element*) const = 0
    [all...]
AnimatableValueKeyframe.h 9 #include "core/animation/Keyframe.h"
13 class AnimatableValueKeyframe : public Keyframe {
33 class PropertySpecificKeyframe : public Keyframe::PropertySpecificKeyframe {
40 virtual PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const OVERRIDE FINAL;
41 virtual PassRefPtrWillBeRawPtr<Interpolation> createInterpolation(CSSPropertyID, WebCore::Keyframe::PropertySpecificKeyframe* end, Element*) const OVERRIDE FINAL;
48 virtual PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> cloneWithOffset(double offset) const OVERRIDE;
59 virtual PassRefPtrWillBeRawPtr<Keyframe> clone() const OVERRIDE;
60 virtual PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> createPropertySpecificKeyframe(CSSPropertyID) const OVERRIDE;
70 DEFINE_TYPE_CASTS(AnimatableValueKeyframe, Keyframe, value, value->isAnimatableValueKeyframe(), value.isAnimatableValueKeyframe());
71 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe, Keyframe::PropertySpecificKeyframe, value, value->isAnimatableValuePropertySpecificKeyframe(), value.isAnim (…)
    [all...]
StringKeyframe.h 8 #include "core/animation/Keyframe.h"
15 class StringKeyframe : public Keyframe {
33 class PropertySpecificKeyframe : public Keyframe::PropertySpecificKeyframe {
42 virtual PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const OVERRIDE FINAL;
43 virtual PassRefPtrWillBeRawPtr<Interpolation> createInterpolation(CSSPropertyID, WebCore::Keyframe::PropertySpecificKeyframe* end, Element*) const OVERRIDE FINAL;
50 virtual PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> cloneWithOffset(double offset) const;
64 virtual PassRefPtrWillBeRawPtr<Keyframe> clone() const OVERRIDE;
65 virtual PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> createPropertySpecificKeyframe(CSSPropertyID) const OVERRIDE;
74 DEFINE_TYPE_CASTS(StringKeyframe, Keyframe, value, value->isStringKeyframe(), value.isStringKeyframe());
75 DEFINE_TYPE_CASTS(StringPropertySpecificKeyframe, Keyframe::PropertySpecificKeyframe, value, value->isStringPropertySpecificKeyframe(), value.isStringPropert (…)
    [all...]
AnimatableValueKeyframe.cpp 13 : Keyframe(copyFrom.m_offset, copyFrom.m_composite, copyFrom.m_easing)
29 PassRefPtrWillBeRawPtr<Keyframe> AnimatableValueKeyframe::clone() const
34 PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> AnimatableValueKeyframe::createPropertySpecificKeyframe(CSSPropertyID property) const
42 Keyframe::trace(visitor);
46 : Keyframe::PropertySpecificKeyframe(offset, easing, op)
51 : Keyframe::PropertySpecificKeyframe(offset, easing, AnimationEffect::CompositeReplace)
57 PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> AnimatableValueKeyframe::PropertySpecificKeyframe::cloneWithOffset(double offset) const
59 Keyframe::PropertySpecificKeyframe* theClone = new PropertySpecificKeyframe(offset, m_easing, m_value);
63 PassRefPtrWillBeRawPtr<Interpolation> AnimatableValueKeyframe::PropertySpecificKeyframe::createInterpolation(CSSPropertyID property, Keyframe::PropertySpecificKeyframe* end, Element*) const
69 PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> AnimatableValueKeyframe::PropertySpecificKeyframe::neutralKeyframe(doub (…)
    [all...]
StringKeyframe.cpp 19 : Keyframe(copyFrom.m_offset, copyFrom.m_composite, copyFrom.m_easing)
41 PassRefPtrWillBeRawPtr<Keyframe> StringKeyframe::clone() const
45 PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> StringKeyframe::createPropertySpecificKeyframe(CSSPropertyID property) const
53 Keyframe::trace(visitor);
57 : Keyframe::PropertySpecificKeyframe(offset, easing, op)
62 : Keyframe::PropertySpecificKeyframe(offset, easing, AnimationEffect::CompositeReplace)
68 PassRefPtrWillBeRawPtr<Interpolation> StringKeyframe::PropertySpecificKeyframe::createInterpolation(CSSPropertyID property, Keyframe::PropertySpecificKeyframe* end, Element* element) const
133 PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> StringKeyframe::PropertySpecificKeyframe::neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const
138 PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> StringKeyframe::PropertySpecificKeyframe::cloneWithOffset(double offset) const
140 Keyframe::PropertySpecificKeyframe* theClone = new PropertySpecificKeyframe(offset, m_easing, m_value.get() (…)
    [all...]
KeyframeEffectModel.h 57 typedef WillBeHeapVector<OwnPtrWillBeMember<Keyframe::PropertySpecificKeyframe> > PropertySpecificKeyframeVector;
60 void appendKeyframe(PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe>);
78 typedef WillBeHeapVector<RefPtrWillBeMember<Keyframe> > KeyframeVector;
130 template <class Keyframe>
133 typedef WillBeHeapVector<RefPtrWillBeMember<Keyframe> > KeyframeVector;
134 static PassRefPtrWillBeRawPtr<KeyframeEffectModel<Keyframe> > create(const KeyframeVector& keyframes) { return adoptRefWillBeNoop(new KeyframeEffectModel(keyframes)); }
  /frameworks/base/core/java/android/animation/
KeyframeSet.java 21 import android.animation.Keyframe.IntKeyframe;
22 import android.animation.Keyframe.FloatKeyframe;
23 import android.animation.Keyframe.ObjectKeyframe;
28 * This class holds a collection of Keyframe objects and is called by ValueAnimator to calculate
36 Keyframe mFirstKeyframe;
37 Keyframe mLastKeyframe;
38 TimeInterpolator mInterpolator; // only used in the 2-keyframe case
39 ArrayList<Keyframe> mKeyframes; // only used when there are not 2 keyframes
43 public KeyframeSet(Keyframe... keyframes) {
45 mKeyframes = new ArrayList<Keyframe>();
    [all...]
Keyframe.java 20 * This class holds a time/value pair for an animation. The Keyframe class is used
22 * of the animation. As the time proceeds from one keyframe to the other, the value of the
23 * target object will animate between the value at the previous keyframe and the value at the
24 * next keyframe. Each keyframe also holds an optional {@link TimeInterpolator}
25 * object, which defines the time interpolation over the intervalue preceding the keyframe.
27 * <p>The Keyframe class itself is abstract. The type-specific factory methods will return
28 * a subclass of Keyframe specific to the type of value being stored. This is done to improve
30 * <code>int</code> values). Other types will fall into a more general Keyframe class that
36 public abstract class Keyframe implements Cloneable
    [all...]
Keyframes.java 21 * This interface abstracts a collection of Keyframe objects and is called by
44 * function maps the input fraction to the appropriate keyframe interval and a fraction
57 * when this method is called because Keyframe contents might have changed.
65 ArrayList<Keyframe> getKeyframes();
PathKeyframes.java 27 * to a Keyframe and a linear interpolation between Keyframes creates a good approximation
43 private static final ArrayList<Keyframe> EMPTY_KEYFRAMES = new ArrayList<Keyframe>();
60 public ArrayList<Keyframe> getKeyframes() {
220 public ArrayList<Keyframe> getKeyframes() {
PropertyValuesHolder.java 266 TypeConverter<T, int[]> converter, TypeEvaluator<T> evaluator, Keyframe... values) {
383 TypeConverter<T, float[]> converter, TypeEvaluator<T> evaluator, Keyframe... values) {
525 public static PropertyValuesHolder ofKeyframe(String propertyName, Keyframe... values) {
546 public static PropertyValuesHolder ofKeyframe(Property property, Keyframe... values) {
619 public void setKeyframes(Keyframe... values) {
621 Keyframe keyframes[] = new Keyframe[Math.max(numKeyframes,2)];
622 mValueType = ((Keyframe)values[0]).getType();
624 keyframes[i] = (Keyframe)values[i];
    [all...]
FloatKeyframeSet.java 19 import android.animation.Keyframe.FloatKeyframe;
50 ArrayList<Keyframe> keyframes = mKeyframes;
IntKeyframeSet.java 19 import android.animation.Keyframe.IntKeyframe;
50 ArrayList<Keyframe> keyframes = mKeyframes;
  /frameworks/opt/datetimepicker/src/com/android/datetimepicker/
Utils.java 19 import android.animation.Keyframe;
127 Keyframe k0 = Keyframe.ofFloat(0f, 1f);
128 Keyframe k1 = Keyframe.ofFloat(0.275f, decreaseRatio);
129 Keyframe k2 = Keyframe.ofFloat(0.69f, increaseRatio);
130 Keyframe k3 = Keyframe.ofFloat(1f, 1f);
  /external/chromium_org/cc/animation/
keyframed_animation_curve.h 16 class CC_EXPORT Keyframe {
24 Keyframe(double time, scoped_ptr<TimingFunction> timing_function);
25 virtual ~Keyframe();
31 DISALLOW_COPY_AND_ASSIGN(Keyframe);
34 class CC_EXPORT ColorKeyframe : public Keyframe {
54 class CC_EXPORT FloatKeyframe : public Keyframe {
74 class CC_EXPORT TransformKeyframe : public Keyframe {
95 class CC_EXPORT FilterKeyframe : public Keyframe {
123 void AddKeyframe(scoped_ptr<ColorKeyframe> keyframe);
149 void AddKeyframe(scoped_ptr<FloatKeyframe> keyframe);
    [all...]
keyframed_animation_curve.cc 15 template <class Keyframe>
16 void InsertKeyframe(scoped_ptr<Keyframe> keyframe,
17 ScopedPtrVector<Keyframe>& keyframes) {
20 if (!keyframes.empty() && keyframe->Time() < keyframes.back()->Time()) {
22 if (keyframe->Time() < keyframes[i]->Time()) {
23 keyframes.insert(keyframes.begin() + i, keyframe.Pass());
29 keyframes.push_back(keyframe.Pass());
53 Keyframe::Keyframe(double time, scoped_ptr<TimingFunction> timing_function
    [all...]
  /frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
RadialSelectorView.java 19 import android.animation.Keyframe;
330 Keyframe kf0, kf1, kf2;
334 kf0 = Keyframe.ofFloat(0f, 1);
335 kf1 = Keyframe.ofFloat(midwayPoint, mTransitionMidRadiusMultiplier);
336 kf2 = Keyframe.ofFloat(1f, mTransitionEndRadiusMultiplier);
340 kf0 = Keyframe.ofFloat(0f, 1f);
341 kf1 = Keyframe.ofFloat(1f, 0f);
357 Keyframe kf0, kf1, kf2, kf3;
371 kf0 = Keyframe.ofFloat(0f, mTransitionEndRadiusMultiplier);
372 kf1 = Keyframe.ofFloat(delayPoint, mTransitionEndRadiusMultiplier)
    [all...]
RadialTextsView.java 19 import android.animation.Keyframe;
290 Keyframe kf0, kf1, kf2, kf3;
295 kf0 = Keyframe.ofFloat(0f, 1);
296 kf1 = Keyframe.ofFloat(midwayPoint, mTransitionMidRadiusMultiplier);
297 kf2 = Keyframe.ofFloat(1f, mTransitionEndRadiusMultiplier);
301 kf0 = Keyframe.ofFloat(0f, 1f);
302 kf1 = Keyframe.ofFloat(1f, 0f);
318 kf0 = Keyframe.ofFloat(0f, mTransitionEndRadiusMultiplier);
319 kf1 = Keyframe.ofFloat(delayPoint, mTransitionEndRadiusMultiplier);
320 kf2 = Keyframe.ofFloat(midwayPoint, mTransitionMidRadiusMultiplier)
    [all...]