Home
last modified time | relevance | path

Searched refs:mAnimator (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/animation/
DEventsTest.java58 protected Animator mAnimator; // The animator used in the tests. Must be set in subclass field in EventsTest
237 mAnimator.addListener(mListener); in setUp()
238 mAnimator.setDuration(ANIM_DURATION); in setUp()
253 mAnimator.cancel(); in testCancel()
263 mAnimator.end(); in testEnd()
278 mAnimator.start(); in testStartCancel()
279 mAnimator.cancel(); in testStartCancel()
301 mAnimator.start(); in testStartEnd()
302 mAnimator.end(); in testStartEnd()
318 mAnimator.setStartDelay(ANIM_DELAY); in testStartDelayedCancel()
[all …]
DViewPropertyAnimatorTest.java57 …protected ViewPropertyAnimator mAnimator; // The animator used in the tests. Must be set in subcla… field in ViewPropertyAnimatorTest
143 mAnimator = button.animate().x(100).y(100); in setUp()
180 mAnimator.setListener(mListener); in setUp()
181 mAnimator.setDuration(ANIM_DURATION); in setUp()
196 mAnimator.cancel(); in testCancel()
211 mAnimator.start(); in testStartCancel()
212 mAnimator.cancel(); in testStartCancel()
228 mAnimator.setStartDelay(ANIM_DELAY); in testStartDelayedCancel()
234 mAnimator.start(); in testStartDelayedCancel()
235 mAnimator.cancel(); in testStartDelayedCancel()
[all …]
DAnimatorSetEventsTest.java38 mAnimator = new AnimatorSet(); in setUp()
39 ((AnimatorSet)mAnimator).playSequentially(xAnim, yAnim); in setUp()
45 return (2 * mAnimator.getDuration()) + (2 * mAnimator.getStartDelay()) + in getTimeout()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DItemAnimatorV2ApiTest.java55 return mAnimator; in createItemAnimator()
67 LoggingInfo pre = mAnimator.preLayoutInfoMap.get(target); in changeMovedOutside()
69 assertNull("test sanity", mAnimator.postLayoutInfoMap.get(target)); in changeMovedOutside()
70 assertTrue(mAnimator.animateChangeList.isEmpty()); in changeMovedOutside()
71 assertEquals(1, mAnimator.animateDisappearanceList.size()); in changeMovedOutside()
73 mAnimator.animateDisappearanceList.get(0)); in changeMovedOutside()
100 mAnimator.canReUseCallback = new CanReUseCallback() { in changeMovedOutsideWithPredictiveAndTwoViewHolders()
128 LoggingInfo pre = mAnimator.preLayoutInfoMap.get(oldTarget); in changeMovedOutsideWithPredictiveAndTwoViewHolders()
130 assertNull("test sanity", mAnimator.postLayoutInfoMap.get(oldTarget)); in changeMovedOutsideWithPredictiveAndTwoViewHolders()
132 assertNull("test sanity", mAnimator.preLayoutInfoMap.get(newTarget)); in changeMovedOutsideWithPredictiveAndTwoViewHolders()
[all …]
DDefaultItemAnimatorTest.java50 DefaultItemAnimator mAnimator; field in DefaultItemAnimatorTest
64 mAnimator = new DefaultItemAnimator() { in setUp()
124 assertFalse(mAnimator.canReuseUpdatedViewHolder(vh, new ArrayList<>())); in reUseWithPayload()
125 assertTrue(mAnimator.canReuseUpdatedViewHolder(vh, Arrays.asList((Object) "a"))); in reUseWithPayload()
140 mAnimator.runPendingAnimations(); in runAndWait()
168 assertTrue(mAnimator.isRunning()); in animateAdd()
177 assertTrue(mAnimator.isRunning()); in animateRemove()
186 assertTrue(mAnimator.isRunning()); in animateMove()
196 assertTrue(mAnimator.isRunning()); in animateChange()
323 mAnimator.endAnimation(vh); in endAnimations()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDetailClipper.java32 private Animator mAnimator; field in QSDetailClipper
40 if (mAnimator != null) { in animateCircularClip()
41 mAnimator.cancel(); in animateCircularClip()
57 mAnimator = ViewAnimationUtils.createCircularReveal(mDetail, x, y, innerR, r); in animateCircularClip()
59 mAnimator = ViewAnimationUtils.createCircularReveal(mDetail, x, y, r, innerR); in animateCircularClip()
61 mAnimator.setDuration((long)(mAnimator.getDuration() * 1.5)); in animateCircularClip()
63 mAnimator.addListener(listener); in animateCircularClip()
66 mBackground.startTransition((int)(mAnimator.getDuration() * 0.6)); in animateCircularClip()
67 mAnimator.addListener(mVisibleOnStart); in animateCircularClip()
69 mDetail.postDelayed(mReverseBackground, (long)(mAnimator.getDuration() * 0.65)); in animateCircularClip()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DSettingsButton.java41 private ObjectAnimator mAnimator; field in SettingsButton
51 return mAnimator != null && mAnimator.isRunning(); in isAnimating()
93 if (mAnimator != null) { in cancelAnimation()
94 mAnimator.removeAllListeners(); in cancelAnimation()
95 mAnimator.cancel(); in cancelAnimation()
96 mAnimator = null; in cancelAnimation()
132 mAnimator = ObjectAnimator.ofFloat(this, View.ROTATION, 0, 360); in startAccelSpin()
133 mAnimator.setInterpolator(AnimationUtils.loadInterpolator(mContext, in startAccelSpin()
135 mAnimator.setDuration(ACCEL_LENGTH); in startAccelSpin()
136 mAnimator.addListener(new AnimatorListener() { in startAccelSpin()
[all …]
/frameworks/base/core/java/android/animation/
DStateListAnimator.java84 tuple.mAnimator.addListener(mAnimatorListener); in addState()
128 mTuples.get(i).mAnimator.setTarget(null); in clearTarget()
148 final Animator animatorClone = tuple.mAnimator.clone(); in clone()
186 match.mAnimator.setTarget(getTarget()); in start()
187 mRunningAnimator = match.mAnimator; in start()
280 final Animator mAnimator; field in StateListAnimator.Tuple
284 mAnimator = animator; in Tuple()
298 return mAnimator; in getAnimator()
311 final StateListAnimator mAnimator; field in StateListAnimator.StateListAnimatorConstantState
316 mAnimator = animator; in StateListAnimatorConstantState()
[all …]
DAnimator.java654 final Animator mAnimator; field in Animator.AnimatorConstantState
658 mAnimator = animator; in AnimatorConstantState()
660 mAnimator.mConstantState = this; in AnimatorConstantState()
661 mChangingConf = mAnimator.getChangingConfigurations(); in AnimatorConstantState()
671 final Animator clone = mAnimator.clone(); in newInstance()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DDividerHandleView.java75 private AnimatorSet mAnimator; field in DividerHandleView
93 if (mAnimator != null) { in setTouching()
94 mAnimator.cancel(); in setTouching()
95 mAnimator = null; in setTouching()
118 mAnimator = new AnimatorSet(); in animateToTarget()
119 mAnimator.playTogether(widthAnimator, heightAnimator); in animateToTarget()
120 mAnimator.setDuration(touching in animateToTarget()
123 mAnimator.setInterpolator(touching in animateToTarget()
126 mAnimator.addListener(new AnimatorListenerAdapter() { in animateToTarget()
129 mAnimator = null; in animateToTarget()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DMovingSurfaceViewActivity.java34 ObjectAnimator mAnimator; field in MovingSurfaceViewActivity
93 mAnimator = ObjectAnimator.ofFloat(mSurfaceView, "myTranslationY", in onCreate()
95 mAnimator.setRepeatMode(ObjectAnimator.REVERSE); in onCreate()
96 mAnimator.setRepeatCount(ObjectAnimator.INFINITE); in onCreate()
97 mAnimator.setDuration(200); in onCreate()
98 mAnimator.setInterpolator(new LinearInterpolator()); in onCreate()
120 mAnimator.start(); in onResume()
125 mAnimator.pause(); in onPause()
DBitmapMutateActivity.java34 private ObjectAnimator mAnimator; field in BitmapMutateActivity
46 mAnimator = ObjectAnimator.ofInt(view, "offset", 0, PATTERN_SIZE - 1); in onCreate()
47 mAnimator.setDuration(1500); in onCreate()
48 mAnimator.setRepeatCount(ObjectAnimator.INFINITE); in onCreate()
49 mAnimator.setRepeatMode(ObjectAnimator.REVERSE); in onCreate()
50 mAnimator.start(); in onCreate()
56 mAnimator.cancel(); in onDestroy()
DLinesActivity.java33 private ObjectAnimator mAnimator; field in LinesActivity
42 mAnimator = ObjectAnimator.ofFloat(view, "offset", 0.0f, 15.0f); in onCreate()
43 mAnimator.setDuration(1500); in onCreate()
44 mAnimator.setRepeatCount(ObjectAnimator.INFINITE); in onCreate()
45 mAnimator.setRepeatMode(ObjectAnimator.REVERSE); in onCreate()
46 mAnimator.start(); in onCreate()
52 mAnimator.cancel(); in onDestroy()
/frameworks/support/wear/src/android/support/wear/widget/
DProgressDrawable.java82 private final ObjectAnimator mAnimator; field in ProgressDrawable
89 mAnimator = ObjectAnimator.ofInt(this, LEVEL, 0, MAX_LEVEL); in ProgressDrawable()
90 mAnimator.setRepeatCount(ValueAnimator.INFINITE); in ProgressDrawable()
91 mAnimator.setRepeatMode(ValueAnimator.RESTART); in ProgressDrawable()
92 mAnimator.setDuration(ANIMATION_DURATION); in ProgressDrawable()
93 mAnimator.setInterpolator(new LinearInterpolator()); in ProgressDrawable()
115 if (!mAnimator.isStarted()) { in startAnimation()
116 mAnimator.start(); in startAnimation()
121 mAnimator.cancel(); in stopAnimation()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DParallaxTarget.java79 private final ObjectAnimator mAnimator; field in ParallaxTarget.PropertyValuesHolderTarget
83 mAnimator = ObjectAnimator.ofPropertyValuesHolder(targetObject, values); in PropertyValuesHolderTarget()
84 mAnimator.setInterpolator(new LinearInterpolator()); in PropertyValuesHolderTarget()
85 mAnimator.setDuration(PSEUDO_DURATION); in PropertyValuesHolderTarget()
91 mAnimator.setCurrentPlayTime((long) (PSEUDO_DURATION * fraction)); in update()
DFocusHighlightHelper.java66 private final TimeAnimator mAnimator = new TimeAnimator(); field in FocusHighlightHelper.FocusAnimator
78 mAnimator.start(); in animateFocus()
91 mAnimator.setTimeListener(this); in FocusAnimator()
125 mAnimator.end(); in endAnimation()
133 mAnimator.end(); in onTimeUpdate()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DDatePickerDialog.java84 private AccessibleDateAnimator mAnimator; field in DatePickerDialog
233 mAnimator = (AccessibleDateAnimator) view.findViewById(R.id.animator); in onCreateView()
234 mAnimator.addView(mDayPickerView); in onCreateView()
235 mAnimator.addView(mYearPickerView); in onCreateView()
236 mAnimator.setDateMillis(mCalendar.getTimeInMillis()); in onCreateView()
240 mAnimator.setInAnimation(animation); in onCreateView()
244 mAnimator.setOutAnimation(animation2); in onCreateView()
302 mAnimator.setDisplayedChild(MONTH_AND_DAY_VIEW); in setCurrentView()
309 mAnimator.setContentDescription(mDayPickerDescription+": "+dayString); in setCurrentView()
310 Utils.tryAccessibilityAnnounce(mAnimator, mSelectDay); in setCurrentView()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DBoundsAnimationControllerTests.java190 private BoundsAnimator mAnimator; field in BoundsAnimationControllerTests.BoundsAnimationDriver
204 if (mAnimator != null) { in start()
222 assertTrue(mAnimator.isPaused()); in start()
225 assertTrue(!mAnimator.isPaused()); in start()
236 if (mAnimator == null) { in restart()
240 BoundsAnimator oldAnimator = mAnimator; in restart()
241 boolean toSameBounds = mAnimator.isStarted() && to.equals(mTo); in restart()
251 assertSame(oldAnimator, mAnimator); in restart()
274 mAnimator = mController.animateBoundsImpl(mTarget, from, to, DURATION, in startImpl()
283 assertTrue(!mAnimator.animatingToLargerSize()); in startImpl()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistDisclosure.java110 private final AnimatorSet mAnimator; field in AssistDisclosure.AssistDisclosureView
125 mAnimator = new AnimatorSet(); in AssistDisclosureView()
126 mAnimator.play(mAlphaInAnimator).before(mAlphaOutAnimator); in AssistDisclosureView()
127 mAnimator.addListener(new AnimatorListenerAdapter() { in AssistDisclosureView()
171 mAnimator.cancel(); in onDetachedFromWindow()
176 mAnimator.cancel(); in startAnimation()
177 mAnimator.start(); in startAnimation()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DPlayAnimationThread.java28 private final Animator mAnimator; field in PlayAnimationThread
33 mAnimator = animator; in PlayAnimationThread()
40 mAnimator.start(); in preAnimation()
/frameworks/support/design/base/android/support/design/widget/
DStateListAnimator.java84 mRunningAnimator = match.mAnimator; in start()
109 final ValueAnimator mAnimator; field in StateListAnimator.Tuple
113 mAnimator = animator; in Tuple()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowSurfaceController.java53 final WindowStateAnimator mAnimator; field in WindowSurfaceController
90 mAnimator = animator; in WindowSurfaceController()
119 mSurfaceControl = new RemoteSurfaceTrace(fd, mSurfaceControl, mAnimator.mWin); in installRemoteTrace()
154 mAnimator.destroyPreservedSurfaceLocked(); in hideInTransaction()
210 mAnimator.destroyPreservedSurfaceLocked(); in setCropInTransaction()
217 mAnimator.reclaimSomeSurfaceMemory("crop", true); in setCropInTransaction()
231 mAnimator.reclaimSomeSurfaceMemory("crop", true); in clearCropInTransaction()
250 if (mAnimator.mWin.usesRelativeZOrdering()) { in setLayer()
252 mAnimator.mWin.getParentWindow() in setLayer()
286 mAnimator.reclaimSomeSurfaceMemory("position", true); in setPositionInTransaction()
[all …]
/frameworks/base/core/java/android/widget/
DDatePickerCalendarDelegate.java76 private ViewAnimator mAnimator; field in DatePickerCalendarDelegate
158 mAnimator = mContainer.findViewById(R.id.animator); in DatePickerCalendarDelegate()
161 mDayPickerView = mAnimator.findViewById(R.id.date_picker_day_picker); in DatePickerCalendarDelegate()
169 mYearPickerView = mAnimator.findViewById(R.id.date_picker_year_picker); in DatePickerCalendarDelegate()
326 mAnimator.announceForAccessibility(getFormattedCurrentDate()); in onCurrentDateChanged()
338 mAnimator.setDisplayedChild(VIEW_MONTH_DAY); in setCurrentView()
342 mAnimator.announceForAccessibility(mSelectDay); in setCurrentView()
361 mAnimator.setDisplayedChild(VIEW_YEAR); in setCurrentView()
365 mAnimator.announceForAccessibility(mSelectYear); in setCurrentView()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DOnboardingFragment.java223 private AnimatorSet mAnimator; field in OnboardingFragment
751 mAnimator = new AnimatorSet(); in startEnterAnimation()
752 mAnimator.playTogether(animators); in startEnterAnimation()
753 mAnimator.start(); in startEnterAnimation()
754 mAnimator.addListener(new AnimatorListenerAdapter() { in startEnterAnimation()
880 if (mAnimator != null) { in onPageChangedInternal()
881 mAnimator.end(); in onPageChangedInternal()
951 mAnimator = new AnimatorSet(); in onPageChangedInternal()
952 mAnimator.playTogether(animators); in onPageChangedInternal()
953 mAnimator.start(); in onPageChangedInternal()
DOnboardingSupportFragment.java226 private AnimatorSet mAnimator; field in OnboardingSupportFragment
754 mAnimator = new AnimatorSet(); in startEnterAnimation()
755 mAnimator.playTogether(animators); in startEnterAnimation()
756 mAnimator.start(); in startEnterAnimation()
757 mAnimator.addListener(new AnimatorListenerAdapter() { in startEnterAnimation()
883 if (mAnimator != null) { in onPageChangedInternal()
884 mAnimator.end(); in onPageChangedInternal()
954 mAnimator = new AnimatorSet(); in onPageChangedInternal()
955 mAnimator.playTogether(animators); in onPageChangedInternal()
956 mAnimator.start(); in onPageChangedInternal()

12