Home
last modified time | relevance | path

Searched refs:mAnimationController (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DVideoPreferenceTest.java58 private VideoPreference.AnimationController mAnimationController; field in VideoPreferenceTest
73 mAnimationController = spy( in setUp()
76 mVideoPreference.mAnimationController = mAnimationController; in setUp()
77 when(mAnimationController.getVideoWidth()).thenReturn(VIDEO_WIDTH); in setUp()
78 when(mAnimationController.getVideoHeight()).thenReturn(VIDEO_HEIGHT); in setUp()
102 mAnimationController.attachView(video, fakePreview, fakePlayButton); in onSurfaceTextureUpdated_viewInvisible_shouldNotStartPlayingVideo()
103 when(mAnimationController.isPlaying()).thenReturn(false); in onSurfaceTextureUpdated_viewInvisible_shouldNotStartPlayingVideo()
109 verify(mAnimationController, never()).start(); in onSurfaceTextureUpdated_viewInvisible_shouldNotStartPlayingVideo()
116 verify(mAnimationController).release(); in onViewInvisible_shouldReleaseMediaplayer()
121 mAnimationController.start(); in updateViewStates_paused_updatesViews()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DVideoPreference.java45 AnimationController mAnimationController; field in VideoPreference
92 if (mAnimationController != null && mAnimationController.getDuration() > 0) { in initialize()
127 if (mAnimationController != null) { in onBindViewHolder()
128 mAnimationController.attachView(mVideo, mPreviewImage, mPlayButton); in onBindViewHolder()
168 mAnimationController = new VectorAnimationController(mContext, mVectorAnimationId); in initAnimationController()
172 mAnimationController = new MediaAnimationController(mContext, mAnimationId); in initAnimationController()
174 mAnimationController.attachView(mVideo, mPreviewImage, mPlayButton); in initAnimationController()
180 if (mAnimationController != null) { in releaseAnimationController()
181 mAnimationController.release(); in releaseAnimationController()
182 mAnimationController = null; in releaseAnimationController()
[all …]