Lines Matching refs:start
65 // Returns the media items in the range [start, start + count).
72 public ArrayList<MediaItem> getMediaItem(int start, int count) {
122 int start = Math.max(0,
125 start, MEDIAITEM_BATCH_FETCH_COUNT);
127 if (index != INDEX_NOT_FOUND) return start + index;
130 start = start == 0 ? MEDIAITEM_BATCH_FETCH_COUNT : 0;
131 list = getMediaItem(start, MEDIAITEM_BATCH_FETCH_COUNT);
134 if (index != INDEX_NOT_FOUND) return start + index;
136 start += MEDIAITEM_BATCH_FETCH_COUNT;
137 list = getMediaItem(start, MEDIAITEM_BATCH_FETCH_COUNT);
204 int start = 0;
205 while (start < total) {
206 int count = Math.min(MEDIAITEM_BATCH_FETCH_COUNT, total - start);
207 ArrayList<MediaItem> items = getMediaItem(start, count);
210 consumer.consume(startIndex + start + i, item);
212 start += count;
221 int start = 0;
222 start += enumerateMediaItems(consumer, startIndex);
225 start += getSubMediaSet(i).enumerateTotalMediaItems(
226 consumer, startIndex + start);
228 return start;