Home
last modified time | relevance | path

Searched refs:MediaPlayerWrapper (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/mockable/
DMediaPlayerWrapperFactory.java31 private static MediaPlayerWrapper sInjectedWrapper;
33 static MediaPlayerWrapper wrap(Context context, MediaController controller, Looper looper) { in wrap()
39 MediaPlayerWrapper newWrapper; in wrap()
43 newWrapper = new MediaPlayerWrapper(context, controller, looper); in wrap()
49 static void inject(MediaPlayerWrapper wrapper) { in inject()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/
DMediaPlayerWrapperTest.java72 @Mock MediaPlayerWrapper.Callback mTestCbs;
161 MediaPlayerWrapper.sTesting = true; in setUp()
175 MediaPlayerWrapper wrapper = in testNullControllerLooper()
189 MediaPlayerWrapper wrapper = in testIsReady()
218 MediaPlayerWrapper wrapper = in testControllerUpdate()
252 MediaPlayerWrapper wrapper = in testNoQueueMediaUpdates()
314 MediaPlayerWrapper wrapper = in testDataOnUpdateNoQueue()
358 MediaPlayerWrapper wrapper = in testNullMetadata()
387 MediaPlayerWrapper wrapper = in testNullQueue()
414 MediaPlayerWrapper wrapper = in testQueueCached()
[all …]
DMediaPlayerListTest.java53 private @Captor ArgumentCaptor<MediaPlayerWrapper.Callback> mPlayerWrapperCb;
58 private @Mock MediaPlayerWrapper mMockPlayerWrapper;
61 private MediaPlayerWrapper.Callback mActivePlayerCallback;
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/
DMediaPlayerList.java98 private Map<Integer, MediaPlayerWrapper> mMediaPlayers =
99 Collections.synchronizedMap(new HashMap<Integer, MediaPlayerWrapper>());
218 for (MediaPlayerWrapper player : mMediaPlayers.values()) { in cleanup()
244 public MediaPlayerWrapper getActivePlayer() { in getActivePlayer()
288 final MediaPlayerWrapper player = getActivePlayer(); in getCurrentMediaId()
309 final MediaPlayerWrapper player = getActivePlayer(); in getCurrentSongInfo()
316 final MediaPlayerWrapper player = getActivePlayer(); in getCurrentPlayStatus()
494 MediaPlayerWrapper player = mMediaPlayers.get(playerId); in addMediaPlayer()
505 MediaPlayerWrapper newPlayer = MediaPlayerWrapperFactory.wrap( in addMediaPlayer()
570 final MediaPlayerWrapper wrapper = mMediaPlayers.get(playerId); in removeMediaPlayer()
[all …]
DGPMWrapper.java29 class GPMWrapper extends MediaPlayerWrapper {
DMediaPlayerWrapper.java42 public class MediaPlayerWrapper { class
86 MediaPlayerWrapper(Context context, MediaController controller, Looper looper) { in MediaPlayerWrapper() method in MediaPlayerWrapper
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpTargetService.java41 import com.android.bluetooth.audio_util.MediaPlayerWrapper;
91 boolean state = !MediaPlayerWrapper.playstateEquals(mCurrentData.state, data.state); in run()
447 MediaPlayerWrapper player = mMediaPlayerList.getActivePlayer(); in sendMediaKeyEvent()
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/helpers/
DMediaData.java45 if (!MediaPlayerWrapper.playstateEquals(state, u.state)) { in equals()