/cts/tests/tests/view/src/android/view/animation/cts/ |
AccelerateDecelerateInterpolatorTest.java | 45 /** It is defined in R.anim.accelarate_decelerate_alpha */ 74 R.anim.accelerate_decelerate_alpha); 90 // XML file of R.anim.accelerate_decelerate_alpha 92 // android:interpolator="@android:anim/accelerate_decelerate_interpolator" 96 final Animation anim = AnimationUtils.loadAnimation(mActivity, local 97 R.anim.accelerate_decelerate_alpha); 98 assertEquals(ALPHA_DURATION, anim.getDuration()); 99 assertTrue(anim instanceof AlphaAnimation); 100 assertFalse(anim.hasStarted()); 102 AnimationTestUtils.assertRunAnimation(getInstrumentation(), animWindow, anim); local [all...] |
AccelerateInterpolatorTest.java | 50 /** It is defined in R.anim.accelerate_alpha */ 81 XmlResourceParser parser = mActivity.getResources().getAnimation(R.anim.accelerate_alpha); 96 // XML file of R.anim.accelerate_alpha 98 // android:interpolator="@android:anim/accelerate_interpolator" 102 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.accelerate_alpha); local 104 assertEquals(ACCELERATE_ALPHA_DURATION, anim.getDuration()); 105 assertTrue(anim instanceof AlphaAnimation); 109 anim.setInterpolator(interpolator); 110 assertFalse(anim.hasStarted()) 112 AnimationTestUtils.assertRunAnimation(getInstrumentation(), animWindow, anim); local [all...] |
LinearInterpolatorTest.java | 45 /** It is defined in R.anim.alpha */ 95 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.alpha); local 96 assertEquals(LINEAR_ALPHA_DURATION, anim.getDuration()); 97 assertTrue(anim instanceof AlphaAnimation); 100 anim.setInterpolator(interpolator); 101 assertFalse(anim.hasStarted()); 103 AnimationTestUtils.assertRunAnimation(getInstrumentation(), animWindow, anim); local 106 final long startTime = anim.getStartTime(); 107 anim.getTransformation(startTime, transformation) [all...] |
DecelerateInterpolatorTest.java | 49 /** It is defined in R.anim.decelerate_alpha */ 87 XmlResourceParser parser = mActivity.getResources().getAnimation(R.anim.decelerate_alpha); 102 // XML file of R.anim.decelerate_alpha 104 // android:interpolator="@android:anim/decelerate_interpolator" 108 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); local 110 assertEquals(DECELERATE_ALPHA_DURATION, anim.getDuration()); 111 assertTrue(anim instanceof AlphaAnimation); 115 anim.setInterpolator(interpolator); 116 assertFalse(anim.hasStarted()) 118 AnimationTestUtils.assertRunAnimation(getInstrumentation(), animWindow, anim); local 152 AnimationTestUtils.assertRunAnimation(getInstrumentation(), animWindow, anim); local [all...] |
AnimationTest.java | 49 /** It is defined in R.anim.accelerate_alpha */ 52 /** It is defined in R.anim.decelerate_alpha */ 83 XmlResourceParser parser = mActivity.getResources().getAnimation(R.anim.alpha); 136 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); 141 animation = AnimationUtils.loadAnimation(mActivity, R.anim.accelerate_alpha); 212 // XML file of R.anim.accelerate_alpha 214 // android:interpolator="@android:anim/accelerate_interpolator" 218 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.accelerate_alpha); 284 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); 342 // XML file of R.anim.decelerate_alph 348 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); local 353 AnimationTestUtils.assertRunAnimation(getInstrumentation(), animWindow, anim); local 594 Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.accelerate_alpha); local 598 AnimationTestUtils.assertRunAnimation(getInstrumentation(), animWindow, anim); local 627 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.accelerate_alpha); local [all...] |
CycleInterpolatorTest.java | 48 /** It is defined in R.anim.cycle_alpha */ 77 XmlResourceParser parser = mActivity.getResources().getAnimation(R.anim.cycle_alpha); 84 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.cycle_alpha); local 85 assertEquals(CYCLE_ALPHA_DURATION, anim.getDuration()); 86 assertTrue(anim instanceof AlphaAnimation); 90 anim.setInterpolator(interpolator); 91 assertFalse(anim.hasStarted()); 93 AnimationTestUtils.assertRunAnimation(getInstrumentation(), animWindow, anim); local 96 long startTime = anim.getStartTime() 132 AnimationTestUtils.assertRunAnimation(getInstrumentation(), animWindow, anim); local [all...] |
/packages/apps/AccountsAndSyncSettings/src/com/android/settings/ |
SyncStateCheckBoxPreference.java | 66 final AnimationDrawable anim = (AnimationDrawable) syncActiveView.getDrawable(); local 72 anim.start(); 78 anim.stop();
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
AnimateDrawable.java | 43 public void setAnimation(Animation anim) { 44 mAnimation = anim; 60 Animation anim = mAnimation; local 61 if (anim != null) { 62 anim.getTransformation(
|
/frameworks/base/core/java/android/widget/ |
ZoomControls.java | 91 AlphaAnimation anim = new AlphaAnimation(startAlpha, endAlpha); local 92 anim.setDuration(500); 93 startAnimation(anim);
|
/external/skia/src/views/ |
SkImageView.cpp | 264 SkAnimator* anim = new SkAnimator; local 266 if (!anim->decodeURI(fUri.c_str())) 268 delete anim; 272 anim->setHostEventSink(this); 274 fData.fAnim = anim;
|
SkWidgetViews.cpp | 45 void init_skin_anim(const char path[], SkAnimator* anim) 47 SkASSERT(path && anim); 57 if (!anim->decodeStream(&stream)) 64 void init_skin_anim(SkinEnum se, SkAnimator* anim) 66 init_skin_anim(get_skin_enum_path(se), anim); local 73 SkAnimator anim; local 76 init_skin_anim(se, &anim); 77 anim.draw(&canvas, paint, 0); 84 SkAnimator anim; local 87 if (!anim.decodeDOM(dom, node) [all...] |
SkWidgets.cpp | 261 SkAnimator* anim = get_skin_animator(kPushButton_SkinType); local 263 if (anim) 273 (void)anim->doUserEvent(evt); 275 anim->draw(canvas, &paint, SkTime::GetMSecs());
|
/packages/apps/Camera/src/com/android/camera/ui/ |
AbstractIndicator.java | 77 AlphaAnimation anim = new AlphaAnimation(0.2f, 1); local 78 anim.setDuration(200); 79 startAnimation(anim);
|
IndicatorBar.java | 155 AlphaAnimation anim = new AlphaAnimation(0, 1); local 156 anim.setDuration(200); 157 background.startAnimation(anim); 161 AlphaAnimation anim = new AlphaAnimation(1, 0); local 162 anim.setDuration(200); 163 background.startAnimation(anim);
|
/frameworks/base/core/java/android/view/animation/ |
AnimationUtils.java | 89 Animation anim = null; local 105 anim = new AnimationSet(c, attrs); 106 createAnimationFromXml(c, parser, (AnimationSet)anim, attrs); 108 anim = new AlphaAnimation(c, attrs); 110 anim = new ScaleAnimation(c, attrs); 112 anim = new RotateAnimation(c, attrs); 114 anim = new TranslateAnimation(c, attrs); 120 parent.addAnimation(anim); 124 return anim; 196 a = AnimationUtils.loadAnimation(c, com.android.internal.R.anim.slide_in_left) [all...] |
/packages/apps/Phone/src/com/android/phone/ |
InCallTouchUi.java | 597 AlphaAnimation anim = new AlphaAnimation(1.0f, 0.0f); local 598 anim.setDuration(IN_CALL_WIDGET_TRANSITION_TIME); 599 anim.setAnimationListener(new AnimationListener() { 615 mIncomingCallWidget.startAnimation(anim); 622 Animation anim = mIncomingCallWidget.getAnimation(); local 623 if (anim != null) { 624 anim.reset(); [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
AllApps2D.java | 224 startAnimation(AnimationUtils.loadAnimation(getContext(), R.anim.all_apps_2d_fade_in)); 230 startAnimation(AnimationUtils.loadAnimation(getContext(), R.anim.all_apps_2d_fade_out));
|
/external/skia/src/animator/ |
SkDisplayPost.cpp | 227 SkAnimator* anim = maker.getAnimator(); local 231 targetID = anim->getSinkID(); 237 anim = fTargetMaker->getAnimator(); 242 anim->onEventPost(new SkEvent(fEvent), targetID); 244 anim->onEventPostTime(new SkEvent(fEvent), targetID, futureTime); 276 SkAnimator* anim = fTargetMaker->getAnimator(); local 277 fSinkID = anim->getSinkID();
|
SkDisplayApply.cpp | 177 SkAnimateBase* anim = (SkAnimateBase*) (*animPtr)->deepCopy(maker); local 178 *result->fAnimators.append() = anim; 179 maker->helperAdd(anim); 678 SkAnimateBase* anim = *animPtr; local 680 if (anim->fTarget == NULL || anim->fTargetIsScope) { 681 anim->fTargetIsScope = true; 683 anim->fTarget = scope; 685 anim->setTarget(maker); 686 anim->onEndElement(maker); // allows animate->fFieldInfo to be se [all...] |
/external/webkit/WebCore/page/animation/ |
CompositeAnimation.cpp | 63 KeyframeAnimation* anim = it->second.get(); local 64 anim->clearRenderer(); 86 const Animation* anim = targetStyle->transitions()->animation(i); local 87 bool isActiveTransition = anim->duration() || anim->delay() > 0; 89 int prop = anim->property(); 160 m_transitions.set(prop, ImplicitAnimation::create(const_cast<Animation*>(anim), prop, renderer, this, modifiedCurrentStyle ? modifiedCurrentStyle.get() : fromStyle)); 174 ImplicitAnimation* anim = it->second.get(); local 175 if (!anim->active()) 176 toBeRemoved.append(anim->animatingProperty()) 213 const Animation* anim = targetStyle->animations()->animation(i); local 327 KeyframeAnimation* anim = it->second.get(); local 376 RefPtr<KeyframeAnimation> anim = it->second; local 403 ImplicitAnimation* anim = it->second.get(); local 421 KeyframeAnimation* anim = it->second.get(); local 430 ImplicitAnimation* anim = it->second.get(); local 442 ImplicitAnimation* anim = it->second.get(); local 454 ImplicitAnimation* anim = it->second.get(); local 467 KeyframeAnimation* anim = it->second.get(); local 476 ImplicitAnimation* anim = it->second.get(); local 529 KeyframeAnimation* anim = it->second.get(); local 538 ImplicitAnimation* anim = it->second.get(); local [all...] |
/packages/apps/Camera/src/com/android/camera/ |
Util.java | 201 Animation anim; local 204 anim = new TranslateAnimation(0, -view.getWidth(), 0, 0); 207 anim = new TranslateAnimation(0, view.getWidth(), 0, 0); 210 anim = new TranslateAnimation(0, 0, 0, -view.getHeight()); 213 anim = new TranslateAnimation(0, 0, 0, view.getHeight()); 218 anim.setDuration(500); 219 view.startAnimation(anim); 220 return anim; 225 Animation anim; local 228 anim = new TranslateAnimation(-view.getWidth(), 0, 0, 0) [all...] |
/frameworks/base/libs/rs/java/Film/src/com/android/film/ |
FilmRS.java | 58 float anim = ((float)x-50) / 270.f; local 59 mPos.translate = 2f * anim + 0.5f; // translation 60 mPos.rotate = (anim * 40); // rotation
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ProgressBarTest.java | 363 progressBar.setInterpolator(mContext.getApplicationContext(), R.anim.move_cycle); 368 progressBar.setInterpolator(null, R.anim.move_ani);
|
/external/quake/quake/src/QW/client/ |
sbar.c | 675 int f, anim; local 706 anim = 1; 707 sb_updates = 0; // make sure the anim gets drawn over 710 anim = 0; 711 Sbar_DrawPic (112, 0, sb_faces[f][anim]);
|
/external/quake/quake/src/WinQuake/ |
sbar.cpp | 830 int f, anim; local 913 anim = 1; 914 sb_updates = 0; // make sure the anim gets drawn over 917 anim = 0; 918 Sbar_DrawPic (112, 0, sb_faces[f][anim]);
|