Home
last modified time | relevance | path

Searched refs:mediaId (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DMediaPlayerList.java165 (int status, String mediaId, List<ListItem> results) -> { in init()
166 d("Got the contents for: " + mediaId + " : num results=" in init()
288 data.mediaId = ""; in getNowPlayingList()
296 void playItem(int playerId, boolean nowPlaying, String mediaId) { in playItem() argument
298 playNowPlayingItem(mediaId); in playItem()
300 playFolderItem(mediaId); in playItem()
304 private void playNowPlayingItem(String mediaId) { in playNowPlayingItem() argument
305 d("playNowPlayingItem: mediaId=" + mediaId); in playNowPlayingItem()
308 Matcher m = regex.matcher(mediaId); in playNowPlayingItem()
312 + mediaId); in playNowPlayingItem()
[all …]
DBrowsedPlayerWrapper.java50 void run(int status, String mediaId, List<ListItem> results); in run() argument
144 public void playItem(String mediaId) { in playItem() argument
145 if (DEBUG) Log.d(TAG, "playItem: Play Item from media ID: " + mediaId); in playItem()
152 Log.i(TAG, "playItem: Playing " + mediaId); in playItem()
153 ctrl.playFromMediaId(mediaId, null); in playItem()
167 public boolean getFolderItems(String mediaId, BrowseCallback cb) { in getFolderItems() argument
168 if (mCachedFolders.containsKey(mediaId)) { in getFolderItems()
169 Log.i(TAG, "getFolderItems: Grabbing cached data for mediaId: " + mediaId); in getFolderItems()
170 cb.run(STATUS_SUCCESS, mediaId, Util.cloneList(mCachedFolders.get(mediaId))); in getFolderItems()
191 getFolderItemsInternal(mediaId, cb); in getFolderItems()
[all …]
DAvrcpNativeInterface.java146 void getFolderItemsRequest(int playerId, String mediaId) { in getFolderItemsRequest() argument
147 d("getFolderItemsRequest: playerId=" + playerId + " mediaId=" + mediaId); in getFolderItemsRequest()
148 mAvrcpService.getFolderItems(playerId, mediaId, (a, b) -> getFolderItemsResponse(a, b)); in getFolderItemsRequest()
170 void playItem(int playerId, boolean nowPlaying, String mediaId) { in playItem() argument
171 d("playItem: playerId=" + playerId + " nowPlaying=" + nowPlaying + " mediaId" + mediaId); in playItem()
177 mAvrcpService.playItem(playerId, nowPlaying, mediaId); in playItem()
DAvrcpTargetService.java306 if (song != null) return song.mediaId; in getCurrentMediaId()
329 void getFolderItems(int playerId, String mediaId, MediaPlayerList.GetFolderItemsCallback cb) { in getFolderItems() argument
330 mMediaPlayerList.getFolderItems(playerId, mediaId, cb); in getFolderItems()
333 void playItem(int playerId, boolean nowPlaying, String mediaId) { in playItem() argument
336 mMediaPlayerList.playItem(playerId, nowPlaying, mediaId); in playItem()
DBrowsablePlayerConnector.java133 (int status, String mediaId, List<ListItem> results) -> { in BrowsablePlayerConnector()
/packages/apps/Car/libs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/media/
DBrowseTree.java169 String mediaId, String title, ProgramSelector sel, Bitmap icon) { in createChild() argument
171 .setMediaId(mediaId) in createChild()
179 private static MediaItem createFolder(MediaDescription.Builder descBuilder, String mediaId, in createFolder() argument
186 .setMediaId(mediaId).setTitle(title).setExtras(extras).build(); in createFolder()
280 String mediaId = selectorToMediaId(sel); in getPrograms() local
281 mProgramSelectors.put(mediaId, sel); in getPrograms()
291 mProgramListCache.add(createChild(dbld, mediaId, in getPrograms()
337 String mediaId = selectorToMediaId(sel); in getFavorites() local
338 mProgramSelectors.putIfAbsent(mediaId, sel); // prefer program list entries in getFavorites()
339 mFavoritesCache.add(createChild(dbld, mediaId, fav.getName(), sel, fav.getIcon())); in getFavorites()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/
DMetadata.java22 public String mediaId; field in Metadata
34 data.mediaId = mediaId; in clone()
59 return "{ mediaId=\"" + mediaId + "\" title=\"" + title + "\" artist=\"" + artist in toString()
DFolder.java20 public String mediaId; field in Folder
25 mediaId = i; in Folder()
32 return new Folder(mediaId, isPlayable, title); in clone()
DUtil.java42 ret.mediaId = "Not Provided"; in empty_data()
154 ret.mediaId = NOW_PLAYING_PREFIX + item.getQueueId(); in toMetadata()
183 ret.mediaId = "currsong"; in toMetadata()
202 ret.mediaId = item.getMediaId(); in toMetadata()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DVideoThumbnailRequest.java60 final Long mediaId = mDescriptor.getMediaStoreId(); in getBitmapForResource() local
62 if (mediaId != null) { in getBitmapForResource()
64 bitmap = Thumbnails.getThumbnail(cr, mediaId, Thumbnails.MICRO_KIND, null); in getBitmapForResource()
/packages/apps/Car/Radio/src/com/android/car/radio/media/
DTunerSession.java180 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument
181 if (mBrowseTree.getRoot().getRootId().equals(mediaId)) { in onPlayFromMediaId()
187 ProgramSelector selector = mBrowseTree.parseMediaId(mediaId); in onPlayFromMediaId()
191 Log.w(TAG, "Invalid media ID: " + mediaId); in onPlayFromMediaId()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/mockable/
DMediaController.java273 public void prepareFromMediaId(String mediaId, Bundle extras) { in prepareFromMediaId() argument
274 mTransportDelegate.prepareFromMediaId(mediaId, extras); in prepareFromMediaId()
301 public void playFromMediaId(String mediaId, Bundle extras) { in playFromMediaId() argument
302 mTransportDelegate.playFromMediaId(mediaId, extras); in playFromMediaId()
DMediaBrowser.java94 public void getItem(String mediaId, ItemCallback callback) { in getItem() argument
95 mDelegate.getItem(mediaId, callback); in getItem()
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DPlayer.java212 song.mediaId = description.getMediaId(); in saveState()
253 .setMediaId(song.mediaId) in maybeRebuildQueue()
542 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument
543 super.onPlayFromMediaId(mediaId, extras); in onPlayFromMediaId()
545 Log.d(TAG, "onPlayFromMediaId mediaId" + mediaId + " extras=" + extras); in onPlayFromMediaId()
548 requestAudioFocus(() -> startPlayback(mediaId)); in onPlayFromMediaId()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaLibrary.java63 TmaMediaItem getMediaItemById(String mediaId) { in getMediaItemById() argument
64 TmaMediaItem result = mMediaItemsByMediaId.get(mediaId); in getMediaItemById()
DTmaPlayer.java142 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument
143 super.onPlayFromMediaId(mediaId, extras); in onPlayFromMediaId()
144 playItem(mLibrary.getMediaItemById(mediaId)); in onPlayFromMediaId()
/packages/apps/Music/src/com/android/music/
DMediaPlaybackService.java92 public void onPlayFromMediaId(String mediaId, Bundle extras) {} in onPlayFromMediaId() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java766 public void onPlayFromMediaId(String mediaId, Bundle extras) {
770 BrowseTree.BrowseNode node = mBrowseTree.findBrowseNodeByID(mediaId);