Searched refs:mediaItems (Results 1 – 7 of 7) sorted by relevance
52 final List<Item> mediaItems = generateFakeImageItemList(1); in test_hasRecentItem() local53 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() local80 adapter.setMediaItems(mediaItems); in test_exceedMinCount_notSameDay_hasRecentItemAndOneDateItem()106 final List<Item> mediaItems = generateFakeImageItemList(12); in test_exceedMinCount_sameDay_hasRecentItemNoDateItem() local109 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 …]
161 void setMediaItems(@NonNull List<Item> mediaItems) { in setMediaItems() argument162 setMediaItems(mediaItems, ACTION_CLEAR_AND_UPDATE_LIST); in setMediaItems()165 void setMediaItems(@NonNull List<Item> mediaItems, @ItemsAction.Type int action) { in setMediaItems() argument167 if (!mediaItems.isEmpty()) { in setMediaItems()169 mediaItemsWithDateHeaders = new ArrayList<>(mediaItems.size() + 1); in setMediaItems()178 for (Item mediaItem : mediaItems) { in setMediaItems()
222 private void addOtherDevicesDivider(List<MediaItem> mediaItems) { in addOtherDevicesDivider() argument223 mediaItems.add( in addOtherDevicesDivider()228 private void addConnectAnotherDeviceItem(List<MediaItem> mediaItems) { in addConnectAnotherDeviceItem() argument229 mediaItems.add(MediaItem.createGroupDividerMediaItem(/* title */ null)); in addConnectAnotherDeviceItem()230 mediaItems.add(MediaItem.createPairNewDeviceMediaItem()); in addConnectAnotherDeviceItem()
133 List<BurstMediaItem> mediaItems = artifactList.get(artifactIndex).getMediaItems(); in saveArtifacts() local134 for (int index = 0; index < mediaItems.size(); index++) { in saveArtifacts()135 saveBurstMediaItem(stackSaver, mediaItems.get(index), in saveArtifacts()
113 final SparseArray<MediaItem> mediaItems = new SparseArray<MediaItem>(); in loadInBackground() local134 mediaItems.append(index, item); in loadInBackground()138 mMediaItems = mediaItems; in loadInBackground()
248 var mediaItems = mutableListOf<MediaItem>() in initMediaItems() variable266 mediaItems.add(mediaItem) in initMediaItems()269 mediaIdToChildren[NOW_PLAYING_PREFIX] = mediaItems in initMediaItems()
162 private fun getMedia(mediaItems: List<Media> = media): Cursor { in getMedia()178 mediaItems.forEach { in getMedia()