Home
last modified time | relevance | path

Searched refs:mMediaItems (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/libstagefright/httplive/
DM3UParser.cpp84 Vector<Media> mMediaItems; member
108 mMediaItems.push(); in addMedia()
109 Media &item = mMediaItems.editItemAt(mMediaItems.size() - 1); in addMedia()
137 if (mSelectedIndex >= (ssize_t)mMediaItems.size()) { in pickRandomMediaItems()
138 mSelectedIndex = mMediaItems.size() - 1; in pickRandomMediaItems()
162 mSelectedIndex = (rand() * mMediaItems.size()) / RAND_MAX; in pickRandomMediaItems()
173 if (index >= mMediaItems.size()) { in selectTrack()
196 return mMediaItems.size(); in countTracks()
200 if (index >= mMediaItems.size()) { in getTrackInfo()
218 const Media &item = mMediaItems.itemAt(index); in getTrackInfo()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputAdapterTest.java93 private List<MediaItem> mMediaItems = new ArrayList<>(); field in MediaOutputAdapterTest
98 when(mMediaOutputController.getMediaItemList()).thenReturn(mMediaItems); in setUp()
116 mMediaItems.add(MediaItem.createDeviceMediaItem(mMediaDevice1)); in setUp()
117 mMediaItems.add(MediaItem.createDeviceMediaItem(mMediaDevice2)); in setUp()
128 assertThat(mMediaOutputAdapter.getItemCount()).isEqualTo(mMediaItems.size()); in getItemCount_returnsMediaItemSize()
133 assertThat(mMediaOutputAdapter.getItemId(0)).isEqualTo(mMediaItems.get( in getItemId_validPosition_returnCorrespondingId()
139 int invalidPosition = mMediaItems.size() + 1; in getItemId_invalidPosition_returnPosition()
149 mMediaItems.add(MediaItem.createPairNewDeviceMediaItem()); in onBindViewHolder_bindPairNew_verifyView()
150 mMediaItems.add(MediaItem.createPairNewDeviceMediaItem()); in onBindViewHolder_bindPairNew_verifyView()
165 mMediaItems.stream().map((item) -> item.getMediaDevice().get()).collect( in onBindViewHolder_bindGroup_withSessionName_verifyView()
[all …]