Home
last modified time | relevance | path

Searched refs:mediaItems (Results 1 – 7 of 7) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ui/
DPhotosTabAdapterTest.java52 final List<Item> mediaItems = generateFakeImageItemList(1); in test_hasRecentItem() local
53 final Item mediaItem = mediaItems.get(0); in test_hasRecentItem()
55 adapter.setMediaItems(mediaItems); in test_hasRecentItem()
78 final List<Item> mediaItems = generateFakeImageItemList(mediaItemCount); in test_exceedMinCount_notSameDay_hasRecentItemAndOneDateItem() local
80 adapter.setMediaItems(mediaItems); in test_exceedMinCount_notSameDay_hasRecentItemAndOneDateItem()
106 final List<Item> mediaItems = generateFakeImageItemList(12); in test_exceedMinCount_sameDay_hasRecentItemNoDateItem() local
109 final long dateTakenMs = mediaItems.get(mediaItems.size() - 1).getDateTaken(); in test_exceedMinCount_sameDay_hasRecentItemNoDateItem()
112 mediaItems.add(lastItem); in test_exceedMinCount_sameDay_hasRecentItemNoDateItem()
114 final int mediaItemsCount = mediaItems.size(); in test_exceedMinCount_sameDay_hasRecentItemNoDateItem()
115 adapter.setMediaItems(mediaItems); in test_exceedMinCount_sameDay_hasRecentItemNoDateItem()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DPhotosTabAdapter.java161 void setMediaItems(@NonNull List<Item> mediaItems) { in setMediaItems() argument
162 setMediaItems(mediaItems, ACTION_CLEAR_AND_UPDATE_LIST); in setMediaItems()
165 void setMediaItems(@NonNull List<Item> mediaItems, @ItemsAction.Type int action) { in setMediaItems() argument
167 if (!mediaItems.isEmpty()) { in setMediaItems()
169 mediaItemsWithDateHeaders = new ArrayList<>(mediaItems.size() + 1); in setMediaItems()
178 for (Item mediaItem : mediaItems) { in setMediaItems()
/packages/apps/TvSystemUI/src/com/android/systemui/tv/media/
DTvMediaOutputController.java222 private void addOtherDevicesDivider(List<MediaItem> mediaItems) { in addOtherDevicesDivider() argument
223 mediaItems.add( in addOtherDevicesDivider()
228 private void addConnectAnotherDeviceItem(List<MediaItem> mediaItems) { in addConnectAnotherDeviceItem() argument
229 mediaItems.add(MediaItem.createGroupDividerMediaItem(/* title */ null)); in addConnectAnotherDeviceItem()
230 mediaItems.add(MediaItem.createPairNewDeviceMediaItem()); in addConnectAnotherDeviceItem()
/packages/apps/Camera2/src/com/android/camera/burst/
DBurstResultsSaver.java133 List<BurstMediaItem> mediaItems = artifactList.get(artifactIndex).getMediaItems(); in saveArtifacts() local
134 for (int index = 0; index < mediaItems.size(); index++) { in saveArtifacts()
135 saveBurstMediaItem(stackSaver, mediaItems.get(index), in saveArtifacts()
/packages/apps/Gallery2/src/com/android/photos/shims/
DMediaItemsLoader.java113 final SparseArray<MediaItem> mediaItems = new SparseArray<MediaItem>(); in loadInBackground() local
134 mediaItems.append(index, item); in loadInBackground()
138 mMediaItems = mediaItems; in loadInBackground()
/packages/modules/Bluetooth/android/pandora/server/src/
DMediaPlayerBrowserService.kt248 var mediaItems = mutableListOf<MediaItem>() in initMediaItems() variable
266 mediaItems.add(mediaItem) in initMediaItems()
269 mediaIdToChildren[NOW_PLAYING_PREFIX] = mediaItems in initMediaItems()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/data/
DTestMediaProvider.kt162 private fun getMedia(mediaItems: List<Media> = media): Cursor { in getMedia()
178 mediaItems.forEach { in getMedia()