/frameworks/base/core/java/android/animation/ |
D | LayoutTransition.java | 844 final Animator anim = baseAnimator.clone(); in setupChangeAnimation() local 847 anim.setTarget(child); in setupChangeAnimation() 851 anim.setupStartValues(); in setupChangeAnimation() 860 pendingAnimations.put(child, anim); in setupChangeAnimation() 884 anim.setupEndValues(); in setupChangeAnimation() 885 if (anim instanceof ValueAnimator) { in setupChangeAnimation() 887 ValueAnimator valueAnim = (ValueAnimator)anim; in setupChangeAnimation() 914 anim.setInterpolator(mChangingAppearingInterpolator); in setupChangeAnimation() 922 anim.setInterpolator(mChangingDisappearingInterpolator); in setupChangeAnimation() 929 anim.setInterpolator(mChangingInterpolator); in setupChangeAnimation() [all …]
|
D | ValueAnimator.java | 295 ValueAnimator anim = new ValueAnimator(); in ofInt() local 296 anim.setIntValues(values); in ofInt() 297 return anim; in ofInt() 312 ValueAnimator anim = new ValueAnimator(); in ofArgb() local 313 anim.setIntValues(values); in ofArgb() 314 anim.setEvaluator(ArgbEvaluator.getInstance()); in ofArgb() 315 return anim; in ofArgb() 330 ValueAnimator anim = new ValueAnimator(); in ofFloat() local 331 anim.setFloatValues(values); in ofFloat() 332 return anim; in ofFloat() [all …]
|
D | ObjectAnimator.java | 244 ObjectAnimator anim = new ObjectAnimator(target, propertyName); in ofInt() local 245 anim.setIntValues(values); in ofInt() 246 return anim; in ofInt() 290 ObjectAnimator anim = new ObjectAnimator(target, property); in ofInt() local 291 anim.setIntValues(values); in ofInt() 292 return anim; in ofInt() 443 ObjectAnimator anim = new ObjectAnimator(target, propertyName); in ofFloat() local 444 anim.setFloatValues(values); in ofFloat() 445 return anim; in ofFloat() 490 ObjectAnimator anim = new ObjectAnimator(target, property); in ofFloat() local [all …]
|
D | AnimatorSet.java | 188 for (Animator anim : items) { in playTogether() 190 builder = play(anim); in playTogether() 192 builder.with(anim); in playTogether() 337 public Builder play(Animator anim) { in play() argument 338 if (anim != null) { in play() 339 return new Builder(anim); in play() 412 Animator anim = remainingList.get(index); in endRemainingAnimations() local 413 anim.end(); in endRemainingAnimations() 415 Node node = mNodeMap.get(anim); in endRemainingAnimations() 675 final Animator anim = node.mAnimation; in start() local [all …]
|
D | AnimatorInflater.java | 410 private static void parseAnimatorFromTypeArray(ValueAnimator anim, in parseAnimatorFromTypeArray() argument 425 anim.setValues(pvh); in parseAnimatorFromTypeArray() 428 anim.setDuration(duration); in parseAnimatorFromTypeArray() 429 anim.setStartDelay(startDelay); in parseAnimatorFromTypeArray() 432 anim.setRepeatCount( in parseAnimatorFromTypeArray() 436 anim.setRepeatMode( in parseAnimatorFromTypeArray() 442 setupObjectAnimator(anim, arrayObjectAnimator, valueType == VALUE_TYPE_FLOAT, in parseAnimatorFromTypeArray() 454 private static TypeEvaluator setupAnimatorForPath(ValueAnimator anim, in setupAnimatorForPath() argument 466 anim.setObjectValues(pathDataFrom, pathDataTo); in setupAnimatorForPath() 472 anim.setObjectValues((Object)pathDataFrom); in setupAnimatorForPath() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | DrawableHolder.java | 75 ObjectAnimator anim = ObjectAnimator.ofFloat(this, property, toValue); in addAnimTo() local 76 anim.setDuration(duration); in addAnimTo() 77 anim.setStartDelay(delay); in addAnimTo() 78 anim.setInterpolator(EASE_OUT_INTERPOLATOR); in addAnimTo() 79 this.addAnimation(anim, replace); in addAnimTo() 81 return anim; in addAnimTo() 115 private DrawableHolder addAnimation(ObjectAnimator anim, boolean overwrite) { in addAnimation() argument 116 if (anim != null) in addAnimation() 117 mAnimators.add(anim); in addAnimation() 118 mNeedToStart.add(anim); in addAnimation() [all …]
|
D | AbsActionBarView.java | 206 ObjectAnimator anim = ObjectAnimator.ofFloat(this, View.ALPHA, 1); in setupAnimatorToVisibility() local 207 anim.setDuration(duration); in setupAnimatorToVisibility() 208 anim.setInterpolator(sAlphaInterpolator); in setupAnimatorToVisibility() 214 set.play(anim).with(splitAnim); in setupAnimatorToVisibility() 217 anim.addListener(mVisAnimListener.withFinalVisibility(visibility)); in setupAnimatorToVisibility() 218 return anim; in setupAnimatorToVisibility() 221 ObjectAnimator anim = ObjectAnimator.ofFloat(this, View.ALPHA, 0); in setupAnimatorToVisibility() local 222 anim.setDuration(duration); in setupAnimatorToVisibility() 223 anim.setInterpolator(sAlphaInterpolator); in setupAnimatorToVisibility() 229 set.play(anim).with(splitAnim); in setupAnimatorToVisibility() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | RippleComponent.java | 299 public void add(RenderNodeAnimator anim) { in add() argument 300 mAnimators.add(anim); in add() 315 final RenderNodeAnimator anim = animators.get(i); in start() local 316 anim.setTarget(target); in start() 317 anim.start(); in start() 325 final RenderNodeAnimator anim = animators.get(i); in cancel() local 326 anim.cancel(); in cancel() 334 final RenderNodeAnimator anim = animators.get(i); in end() local 335 anim.end(); in end() 343 final RenderNodeAnimator anim = animators.get(i); in isRunning() local [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | AbsActionBarView.java | 169 ViewPropertyAnimatorCompat anim = ViewCompat.animate(this).alpha(1f); in setupAnimatorToVisibility() local 170 anim.setDuration(duration); in setupAnimatorToVisibility() 171 anim.setListener(mVisAnimListener.withFinalVisibility(anim, visibility)); in setupAnimatorToVisibility() 172 return anim; in setupAnimatorToVisibility() 174 ViewPropertyAnimatorCompat anim = ViewCompat.animate(this).alpha(0f); in setupAnimatorToVisibility() local 175 anim.setDuration(duration); in setupAnimatorToVisibility() 176 anim.setListener(mVisAnimListener.withFinalVisibility(anim, visibility)); in setupAnimatorToVisibility() 177 return anim; in setupAnimatorToVisibility() 182 ViewPropertyAnimatorCompat anim = setupAnimatorToVisibility(visibility, FADE_DURATION); in animateToVisibility() local 183 anim.start(); in animateToVisibility()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DirectoryItemAnimator.java | 55 for (ColorAnimation anim: mPendingAnimations) { in runPendingAnimations() 56 anim.start(); in runPendingAnimations() 57 mRunningAnimations.put(anim.viewHolder, anim); in runPendingAnimations() 67 ColorAnimation anim = mPendingAnimations.get(i); in endAnimation() local 68 if (anim.viewHolder == vh) { in endAnimation() 70 anim.end(); in endAnimation() 74 ColorAnimation anim = mRunningAnimations.get(vh); in endAnimation() local 75 if (anim != null) { in endAnimation() 76 anim.cancel(); in endAnimation()
|
/frameworks/support/design/eclair-mr1/android/support/design/widget/ |
D | FloatingActionButtonEclairMr1.java | 166 Animation anim = android.view.animation.AnimationUtils.loadAnimation( in hide() local 167 mView.getContext(), R.anim.design_fab_out); in hide() 168 anim.setInterpolator(AnimationUtils.FAST_OUT_LINEAR_IN_INTERPOLATOR); in hide() 169 anim.setDuration(SHOW_HIDE_ANIM_DURATION); in hide() 170 anim.setAnimationListener(new AnimationUtils.AnimationListenerAdapter() { in hide() 185 mView.startAnimation(anim); in hide() 195 Animation anim = android.view.animation.AnimationUtils.loadAnimation( in show() local 196 mView.getContext(), R.anim.design_fab_in); in show() 197 anim.setDuration(SHOW_HIDE_ANIM_DURATION); in show() 198 anim.setInterpolator(AnimationUtils.LINEAR_OUT_SLOW_IN_INTERPOLATOR); in show() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 140 ObjectAnimator anim = ObjectAnimator.ofFloat(v, in createTranslationAnimation() local 142 return anim; in createTranslationAnimation() 152 ObjectAnimator anim = createTranslationAnimation(v, target); in getViewTranslationAnimator() local 154 anim.addUpdateListener(listener); in getViewTranslationAnimator() 156 return anim; in getViewTranslationAnimator() 387 Animator anim = getViewTranslationAnimator(animView, newPos, updateListener); in dismissChild() 388 if (anim == null) { in dismissChild() 392 anim.setInterpolator(Interpolators.FAST_OUT_LINEAR_IN); in dismissChild() 393 anim.setDuration(duration); in dismissChild() 395 mFlingAnimationUtils.applyDismissing(anim, getTranslation(animView), in dismissChild() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | DragDownHelper.java | 187 ObjectAnimator anim = ObjectAnimator.ofInt(child, "actualHeight", in cancelExpansion() local 189 anim.setInterpolator(Interpolators.FAST_OUT_SLOW_IN); in cancelExpansion() 190 anim.setDuration(SPRING_BACK_ANIMATION_LENGTH_MS); in cancelExpansion() 191 anim.addListener(new AnimatorListenerAdapter() { in cancelExpansion() 197 anim.start(); in cancelExpansion() 201 ValueAnimator anim = ValueAnimator.ofFloat(mLastHeight, 0); in cancelExpansion() local 202 anim.setInterpolator(Interpolators.FAST_OUT_SLOW_IN); in cancelExpansion() 203 anim.setDuration(SPRING_BACK_ANIMATION_LENGTH_MS); in cancelExpansion() 204 anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in cancelExpansion() 210 anim.start(); in cancelExpansion()
|
/frameworks/base/core/java/android/view/animation/ |
D | AnimationUtils.java | 101 Animation anim = null; in createAnimationFromXml() local 117 anim = new AnimationSet(c, attrs); in createAnimationFromXml() 118 createAnimationFromXml(c, parser, (AnimationSet)anim, attrs); in createAnimationFromXml() 120 anim = new AlphaAnimation(c, attrs); in createAnimationFromXml() 122 anim = new ScaleAnimation(c, attrs); in createAnimationFromXml() 124 anim = new RotateAnimation(c, attrs); in createAnimationFromXml() 126 anim = new TranslateAnimation(c, attrs); in createAnimationFromXml() 132 parent.addAnimation(anim); in createAnimationFromXml() 136 return anim; in createAnimationFromXml() 216 a = AnimationUtils.loadAnimation(c, com.android.internal.R.anim.slide_in_left); in makeInAnimation() [all …]
|
/frameworks/support/v4/tests/java/android/support/v4/app/ |
D | FragmentTest.java | 79 .setCustomAnimations(R.anim.long_fade_in, R.anim.long_fade_out, in testChildFragmentManagerGone() 80 R.anim.long_fade_in, R.anim.long_fade_out) in testChildFragmentManagerGone() 92 .setCustomAnimations(R.anim.long_fade_in, R.anim.long_fade_out, in testChildFragmentManagerGone() 93 R.anim.long_fade_in, R.anim.long_fade_out) in testChildFragmentManagerGone()
|
D | FragmentLifecycleTest.java | 386 .setCustomAnimations(0, R.anim.fade_out, R.anim.fade_in, R.anim.fade_out) in saveAnimationState() 392 assertAnimationsMatch(fm, 0, R.anim.fade_out, R.anim.fade_in, R.anim.fade_out); in saveAnimationState() 398 assertAnimationsMatch(fm, 0, R.anim.fade_out, R.anim.fade_in, R.anim.fade_out); in saveAnimationState() 401 .setCustomAnimations(R.anim.fade_in, R.anim.fade_out, 0, 0) in saveAnimationState() 407 assertAnimationsMatch(fm, R.anim.fade_in, R.anim.fade_out, 0, 0); in saveAnimationState() 413 assertAnimationsMatch(fm, R.anim.fade_in, R.anim.fade_out, 0, 0); in saveAnimationState() 417 assertAnimationsMatch(fm, 0, R.anim.fade_out, R.anim.fade_in, R.anim.fade_out); in saveAnimationState()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | CirclePropActivity.java | 126 RenderNodeAnimator anim = mRunningAnimations.get(i); in performClick() local 127 anim.setDuration(1000); in performClick() 128 anim.setTarget(this); in performClick() 131 anim.setStartValue(64.0f); in performClick() 132 anim.setStartDelay(anim.getDuration()); in performClick() 134 anim.start(); in performClick()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/ |
D | PipOnboardingActivity.java | 58 loadAnimator(R.id.background, R.anim.tv_pip_onboarding_background_enter_animation), in onResume() 59 loadAnimator(R.id.remote, R.anim.tv_pip_onboarding_image_enter_animation), in onResume() 60 loadAnimator(R.id.remote_button, R.anim.tv_pip_onboarding_image_enter_animation), in onResume() 61 loadAnimator(R.id.title, R.anim.tv_pip_onboarding_title_enter_animation), in onResume() 63 R.anim.tv_pip_onboarding_description_enter_animation), in onResume() 64 loadAnimator(R.id.button, R.anim.tv_pip_onboarding_button_enter_animation)); in onResume()
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
D | HitRectBug.java | 63 ObjectAnimator anim = ObjectAnimator.ofFloat(mImageView, View.ROTATION, 0, 360); in TestDrawingView() local 64 anim.setRepeatCount(ValueAnimator.INFINITE); in TestDrawingView() 65 anim.setDuration(5000); in TestDrawingView() 66 anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in TestDrawingView() 72 anim.start(); in TestDrawingView()
|
/frameworks/base/core/java/android/transition/ |
D | ChangeText.java | 190 Animator anim; in createAnimator() local 193 anim = ValueAnimator.ofFloat(0, 1); in createAnimator() 194 anim.addListener(new AnimatorListenerAdapter() { in createAnimator() 258 anim = new AnimatorSet(); in createAnimator() 259 ((AnimatorSet) anim).playSequentially(outAnim, inAnim); in createAnimator() 261 anim = outAnim; in createAnimator() 264 anim = inAnim; in createAnimator() 299 Log.d(LOG_TAG, "createAnimator returning " + anim); in createAnimator() 301 return anim; in createAnimator()
|
D | Crossfade.java | 197 ObjectAnimator anim; in createAnimator() local 200 anim = ObjectAnimator.ofInt(startDrawable, "alpha", 255, 0, 0); in createAnimator() 202 anim = ObjectAnimator.ofInt(startDrawable, "alpha", 0); in createAnimator() 204 anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in createAnimator() 219 Log.d(LOG_TAG, "Crossfade: created anim " + anim + " for start, end values " + in createAnimator() 222 anim.addListener(new AnimatorListenerAdapter() { in createAnimator() 234 set.playTogether(anim); in createAnimator()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | TaskViewTransform.java | 161 ObjectAnimator anim = ObjectAnimator.ofFloat(v, View.TRANSLATION_Z, in applyToTaskView() local 163 animators.add(animation.apply(AnimationProps.TRANSLATION_Z, anim)); in applyToTaskView() 166 ObjectAnimator anim = ObjectAnimator.ofPropertyValuesHolder(v, in applyToTaskView() local 169 animators.add(animation.apply(AnimationProps.SCALE, anim)); in applyToTaskView() 172 ObjectAnimator anim = ObjectAnimator.ofFloat(v, View.ALPHA, v.getAlpha(), alpha); in applyToTaskView() local 173 animators.add(animation.apply(AnimationProps.ALPHA, anim)); in applyToTaskView() 179 ObjectAnimator anim = ObjectAnimator.ofPropertyValuesHolder(v, in applyToTaskView() local 182 animators.add(animation.apply(AnimationProps.BOUNDS, anim)); in applyToTaskView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DozeScrimController.java | 175 ValueAnimator anim = ValueAnimator.ofFloat(getDozeAlpha(inFront), target); in startScrimAnimation() local 176 anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in startScrimAnimation() 183 anim.setInterpolator(interpolator); in startScrimAnimation() 184 anim.setDuration(duration); in startScrimAnimation() 185 anim.addListener(new AnimatorListenerAdapter() { in startScrimAnimation() 194 anim.start(); in startScrimAnimation() 195 setCurrentAnimator(inFront, anim); in startScrimAnimation()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/ |
D | ItemTouchHelper.java | 673 private void postDispatchSwipe(final RecoverAnimation anim, final int swipeDir) { in postDispatchSwipe() argument 679 !anim.mOverridden && in postDispatchSwipe() 680 anim.mViewHolder.getAdapterPosition() != RecyclerView.NO_POSITION) { in postDispatchSwipe() 687 mCallback.onSwiped(anim.mViewHolder, swipeDir); in postDispatchSwipe() 887 final RecoverAnimation anim = mRecoverAnimations.get(i); in endRecoverAnimation() local 888 if (anim.mViewHolder == viewHolder) { in endRecoverAnimation() 889 anim.mOverridden |= override; in endRecoverAnimation() 890 if (!anim.mEnded) { in endRecoverAnimation() 891 anim.cancel(); in endRecoverAnimation() 894 return anim.mAnimationType; in endRecoverAnimation() [all …]
|
/frameworks/base/core/java/android/app/ |
D | FragmentManager.java | 512 static boolean modifiesAlpha(Animator anim) { in modifiesAlpha() argument 513 if (anim == null) { in modifiesAlpha() 516 if (anim instanceof ValueAnimator) { in modifiesAlpha() 517 ValueAnimator valueAnim = (ValueAnimator) anim; in modifiesAlpha() 524 } else if (anim instanceof AnimatorSet) { in modifiesAlpha() 525 List<Animator> animList = ((AnimatorSet) anim).getChildAnimations(); in modifiesAlpha() 535 static boolean shouldRunOnHWLayer(View v, Animator anim) { in shouldRunOnHWLayer() argument 536 if (v == null || anim == null) { in shouldRunOnHWLayer() 541 && modifiesAlpha(anim); in shouldRunOnHWLayer() 547 private void setHWLayerAnimListenerIfAlpha(final View v, Animator anim) { in setHWLayerAnimListenerIfAlpha() argument [all …]
|