Home
last modified time | relevance | path

Searched refs:oldPlayer (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/packages/MediaComponents/src/com/android/media/
DMediaSession2Impl.java227 final MediaPlayerBase oldPlayer; in updatePlayer() local
231 oldPlayer = mPlayer; in updatePlayer()
245 if (player != oldPlayer) { in updatePlayer()
247 if (oldPlayer != null) { in updatePlayer()
249 oldPlayer.unregisterPlayerEventCallback(mPlayerEventCallback); in updatePlayer()
260 if (oldPlayer != null) { in updatePlayer()
262 notifyPlayerUpdatedNotLocked(oldPlayer); in updatePlayer()
763 private void notifyPlayerUpdatedNotLocked(MediaPlayerBase oldPlayer) { in notifyPlayerUpdatedNotLocked() argument
771 if (state != oldPlayer.getPlayerState()) { in notifyPlayerUpdatedNotLocked()
777 if (position != oldPlayer.getCurrentPosition()) { in notifyPlayerUpdatedNotLocked()
[all …]
/frameworks/support/media/src/main/java/androidx/media/
DMediaSession2ImplBase.java152 final MediaPlayerInterface oldPlayer; in updatePlayer() local
159 oldPlayer = mPlayer; in updatePlayer()
177 if (player != oldPlayer) { in updatePlayer()
179 if (oldPlayer != null) { in updatePlayer()
181 oldPlayer.unregisterPlayerEventCallback(mPlayerEventCallback); in updatePlayer()
192 if (oldPlayer != null) { in updatePlayer()
201 notifyPlayerUpdatedNotLocked(oldPlayer); in updatePlayer()
1022 private void notifyPlayerUpdatedNotLocked(MediaPlayerInterface oldPlayer) { in notifyPlayerUpdatedNotLocked() argument
1043 if (speed != oldPlayer.getPlaybackSpeed()) { in notifyPlayerUpdatedNotLocked()
/frameworks/av/media/libmediaplayer2/
Dmediaplayer2.cpp498 sp<MediaPlayer2Interface> oldPlayer; in setDataSource() local
528 sp<MediaPlayer2Interface> oldPlayer = mPlayer; in setDataSource() local
534 if (oldPlayer != NULL) { in setDataSource()
535 oldPlayer->setListener(NULL); in setDataSource()
536 oldPlayer->reset(); in setDataSource()