Searched refs:mScaleAnimation (Results 1 – 2 of 2) sorted by relevance
83 assertNull("Scale animation not null.", mFastBitmapDrawable.mScaleAnimation); in testOnStateChange_noState()94 assertEquals("Duration not correct.", mFastBitmapDrawable.mScaleAnimation.getDuration(), in testOnStateChange_statePressed()96 mFastBitmapDrawable.mScaleAnimation.end(); in testOnStateChange_statePressed()100 mFastBitmapDrawable.mScaleAnimation.getInterpolator() in testOnStateChange_statePressed()112 assertEquals("Duration not correct.", mFastBitmapDrawable.mScaleAnimation.getDuration(), in testOnStateChange_stateHovered()114 mFastBitmapDrawable.mScaleAnimation.end(); in testOnStateChange_stateHovered()118 mFastBitmapDrawable.mScaleAnimation.getInterpolator() instanceof PathInterpolator); in testOnStateChange_stateHovered()131 mFastBitmapDrawable.mScaleAnimation); in testOnStateChange_stateHoveredFlagDisabled()142 assertEquals("Duration not correct.", mFastBitmapDrawable.mScaleAnimation.getDuration(), in testOnStateChange_statePressedAndHovered()144 mFastBitmapDrawable.mScaleAnimation.end(); in testOnStateChange_statePressedAndHovered()[all …]
75 private ObjectAnimator mScaleAnimation; field in FastBitmapDrawable162 if (mScaleAnimation != null) { in resetScale()163 mScaleAnimation.cancel(); in resetScale()164 mScaleAnimation = null; in resetScale()171 return mScaleAnimation == null ? 1 : mScale; in getAnimatedScale()216 if (mScaleAnimation != null) { in onStateChange()217 mScaleAnimation.cancel(); in onStateChange()218 mScaleAnimation = null; in onStateChange()223 mScaleAnimation = ObjectAnimator.ofFloat(this, SCALE, PRESSED_SCALE); in onStateChange()224 mScaleAnimation.setDuration(CLICK_FEEDBACK_DURATION); in onStateChange()[all …]