/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | EpgDataCleanupServiceTests.java | 134 private void insertPrograms(Program... programs) { in insertPrograms() argument 135 insertPrograms(Arrays.asList(programs)); in insertPrograms() 138 private void insertPrograms(Collection<Program> programs) { in insertPrograms() argument 143 for (Program program : programs) { in insertPrograms() 162 Set<Program> programs = Sets.newHashSet(); in queryPrograms() local 164 programs.add(new Program(cursor.getLong(0), cursor.getLong(1), cursor.getLong(2))); in queryPrograms() 166 return programs; in queryPrograms() 172 private void insertWatchedPrograms(Program... programs) { in insertWatchedPrograms() argument 173 insertWatchedPrograms(Arrays.asList(programs)); in insertWatchedPrograms() 176 private void insertWatchedPrograms(Collection<Program> programs) { in insertWatchedPrograms() argument [all …]
|
D | Utils.java | 200 ContentResolver resolver, long channelId, Program... programs) { in insertPrograms() argument 203 for (Program program : programs) { in insertPrograms() 220 Set<Program> programs = Sets.newHashSet(); in queryPrograms() local 222 programs.add(new Program(cursor.getLong(0), cursor.getString(1))); in queryPrograms() 224 return programs; in queryPrograms() 231 ContentResolver resolver, long channelId, PreviewProgram... programs) { in insertPreviewPrograms() argument 236 for (PreviewProgram program : programs) { in insertPreviewPrograms() 254 Set<PreviewProgram> programs = Sets.newHashSet(); in queryPreviewPrograms() local 256 programs.add(new PreviewProgram(cursor.getLong(0), cursor.getString(1))); in queryPreviewPrograms() 258 return programs; in queryPreviewPrograms() [all …]
|
D | TransientRowHelperTests.java | 130 private void insertPreviewPrograms(long channelId, PreviewProgram... programs) { in insertPreviewPrograms() argument 131 insertPreviewPrograms(channelId, Arrays.asList(programs)); in insertPreviewPrograms() 134 private void insertPreviewPrograms(long channelId, Collection<PreviewProgram> programs) { in insertPreviewPrograms() argument 137 for (PreviewProgram program : programs) { in insertPreviewPrograms() 155 Set<PreviewProgram> programs = Sets.newHashSet(); in queryPreviewPrograms() local 157 programs.add(new PreviewProgram(cursor.getLong(0), cursor.getInt(1) == 1)); in queryPreviewPrograms() 159 return programs; in queryPreviewPrograms()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/ |
D | SeriesRecordingSchedulerTest.java | 91 List<Program> programs = new ArrayList<>(); in testPickOneProgramPerEpisode_onePerEpisode() local 97 programs.add(program1); in testPickOneProgramPerEpisode_onePerEpisode() 103 programs.add(program2); in testPickOneProgramPerEpisode_onePerEpisode() 106 mDataManager, Collections.singletonList(seriesRecording), programs); in testPickOneProgramPerEpisode_onePerEpisode() 115 List<Program> programs = new ArrayList<>(); in testPickOneProgramPerEpisode_manyPerEpisode() local 122 programs.add(program1); in testPickOneProgramPerEpisode_manyPerEpisode() 124 programs.add(program2); in testPickOneProgramPerEpisode_manyPerEpisode() 130 programs.add(program3); in testPickOneProgramPerEpisode_manyPerEpisode() 132 programs.add(program4); in testPickOneProgramPerEpisode_manyPerEpisode() 135 mDataManager, Collections.singletonList(seriesRecording), programs); in testPickOneProgramPerEpisode_manyPerEpisode() [all …]
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | ChannelPreviewUpdater.java | 174 Set<Program> programs = new HashSet<>(); in updatePreviewDataForChannels() local 183 programs.add(program); in updatePreviewDataForChannels() 184 if (programs.size() >= RECOMMENDATION_COUNT) { in updatePreviewDataForChannels() 193 return programs; in updatePreviewDataForChannels() 223 protected void onPostExecute(Set<Program> programs) { in updatePreviewDataForChannels() argument 224 updatePreviewDataForChannelsInternal(programs); in updatePreviewDataForChannels() 229 private void updatePreviewDataForChannelsInternal(Set<Program> programs) { in updatePreviewDataForChannelsInternal() argument 235 if (programs.size() > MIN_COUNT_TO_ADD_ROW) { in updatePreviewDataForChannelsInternal() 248 createdPreviewChannelId, programs)); in updatePreviewDataForChannelsInternal() 257 + programs.size() in updatePreviewDataForChannelsInternal() [all …]
|
D | RecordedProgramPreviewUpdater.java | 147 Set<RecordedProgram> programs = new HashSet<>(); in generateRecommendationRecordedPrograms() local 154 programs.add(recordedProgram); in generateRecommendationRecordedPrograms() 155 if (programs.size() >= RECOMMENDATION_COUNT) { in generateRecommendationRecordedPrograms() 160 return programs; in generateRecommendationRecordedPrograms()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ProgramDataManager.java | 342 ArrayList<Program> programs = mChannelIdProgramCache.get(channelId); in isHorizontalLoadNeeded() local 344 return programs.size() > selectedProgramIndex && in isHorizontalLoadNeeded() 345 programs.get(selectedProgramIndex).getEndTimeUtcMillis() > marginEndTime; in isHorizontalLoadNeeded() 425 private int getProgramIndexAt(List<Program> programs, long time) { in getProgramIndexAt() argument 431 int index = Collections.binarySearch(programs, key); in getProgramIndexAt() 434 if (index > 0 && isProgramPlayedAt(programs.get(index - 1), time)) { in getProgramIndexAt() 649 ArrayList<Program> programs = programMap.get(program.getChannelId()); in doInBackground() local 650 if (programs == null) { in doInBackground() 651 programs = new ArrayList<>(); in doInBackground() 660 programMap.put(program.getChannelId(), programs); in doInBackground() local [all …]
|
D | PreviewDataManager.java | 166 Set<PreviewProgramContent> programs, in updatePreviewProgramsForChannel() argument 171 && currentRunningUpdateTask.getPrograms().equals(programs)) { in updatePreviewProgramsForChannel() 176 new UpdatePreviewProgramTask(previewChannelId, programs); in updatePreviewProgramsForChannel() 383 long previewChannelId, Set<PreviewProgramContent> programs) { in UpdatePreviewProgramTask() argument 385 mPrograms = programs; in UpdatePreviewProgramTask()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | SeriesRecordingDetailsFragment.java | 113 List<RecordedProgram> programs = mDvrDataManager.getRecordedPrograms(mSeries.getId()); in updateWatchAction() local 114 Collections.sort(programs, RecordedProgram.EPISODE_COMPARATOR); in updateWatchAction() 115 mRecommendRecordedProgram = getRecommendProgram(programs); in updateWatchAction() 221 private RecordedProgram getRecommendProgram(List<RecordedProgram> programs) { 222 for (int i = programs.size() - 1; i >= 0; i--) { 223 RecordedProgram program = programs.get(i); 231 if (i == programs.size() - 1) { 234 return programs.get(i + 1); 237 return programs.isEmpty() ? null : programs.get(0);
|
/packages/apps/TV/src/com/android/tv/ |
D | TimeShiftManager.java | 1104 List<Program> programs = new ArrayList<>(); in createPlaceholderPrograms() local 1108 programs.add( in createPlaceholderPrograms() 1116 programs.add( in createPlaceholderPrograms() 1121 return programs; in createPlaceholderPrograms() 1237 protected void onPostExecute(List<Program> programs) { in onPostExecute() argument 1257 if (programs == null || programs.isEmpty()) { in onPostExecute() 1269 removeOverlappedPrograms(programs); in onPostExecute() 1270 Program loadedProgram = programs.get(0); in onPostExecute() 1271 for (int i = 0; i < mPrograms.size() && !programs.isEmpty(); ++i) { in onPostExecute() 1276 programs.remove(0); in onPostExecute() [all …]
|
/packages/apps/TV/tests/robotests/src/com/android/tv/data/ |
D | ProgramDataManagerTest.java | 158 List<Program> programs = in testGetPrograms() local 162 for (Program program : programs) { in testGetPrograms() 169 long startTimeMs = programs.get(0).getStartTimeUtcMillis(); in testGetPrograms() 170 programs = mProgramDataManager.getPrograms(channelId, startTimeMs); in testGetPrograms() 171 assertThat(programs.get(0).getStartTimeUtcMillis()).isEqualTo(startTimeMs); in testGetPrograms() 174 programs = in testGetPrograms() 177 for (Program program : programs) { in testGetPrograms()
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | SeriesRecordingScheduler.java | 400 List<SeriesRecording> seriesRecordings, List<Program> programs) { in pickOneProgramPerEpisode() argument 401 return pickOneProgramPerEpisode(mDataManager, seriesRecordings, programs); in pickOneProgramPerEpisode() 408 List<Program> programs) { in pickOneProgramPerEpisode() argument 418 for (Program program : programs) { in pickOneProgramPerEpisode() 493 protected void onPostExecute(List<Program> programs) { in onPostExecute() argument 494 if (DEBUG) Log.d(TAG, "onPostExecute: updating schedules with programs:" + programs); in onPostExecute() 496 if (programs == null) { in onPostExecute() 503 pickOneProgramPerEpisode(getSeriesRecordings(), programs); in onPostExecute() 520 protected void onCancelled(List<Program> programs) { in onCancelled() argument
|
/packages/apps/TV/src/com/android/tv/dvr/provider/ |
D | EpisodicProgramLoadTask.java | 183 protected void onPostExecute(List<Program> programs) {} in onPostExecute() argument 186 protected void onCancelled(List<Program> programs) {} in onCancelled() argument 199 protected void onPostExecute(List<Program> programs) { in createTask() 200 EpisodicProgramLoadTask.this.onPostExecute(programs); in createTask() 204 protected void onCancelled(List<Program> programs) { in createTask() argument 205 EpisodicProgramLoadTask.this.onCancelled(programs); in createTask()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | SeriesScheduleRowAdapter.java | 87 public void setPrograms(List<Program> programs) { in setPrograms() argument 88 if (programs == null) { in setPrograms() 89 programs = Collections.emptyList(); in setPrograms() 93 List<Program> sortedPrograms = new ArrayList<>(programs); in setPrograms() 102 programs); in setPrograms()
|
D | DvrSchedulesActivity.java | 93 protected void onPostExecute(List<Program> programs) { in onCreate() argument 101 programs == null ? Collections.EMPTY_LIST : programs); in onCreate()
|
D | DvrSeriesSchedulesFragment.java | 225 protected void onPostExecute(List<Program> programs) { in executeProgramLoadingTask() 226 mPrograms = programs == null ? Collections.EMPTY_LIST : programs; in executeProgramLoadingTask()
|
D | SchedulesHeaderRow.java | 91 List<Program> programs) { in SeriesRecordingHeaderRow() argument 94 mPrograms = programs; in SeriesRecordingHeaderRow()
|
D | DvrHistoryRowAdapter.java | 135 List<RecordedProgram> programs, long maxDays) { in recordedProgramsToScheduledRecordings() argument 137 for (RecordedProgram recordedProgram : programs) { in recordedProgramsToScheduledRecordings()
|
/packages/apps/TV/src/com/android/tv/data/epg/ |
D | EpgFetcherImpl.java | 467 List<Program> programs = new ArrayList<>(entry.getValue()); in batchUpdateEpg() local 468 if (programs == null) { in batchUpdateEpg() 471 Collections.sort(programs); in batchUpdateEpg() 474 "Batch fetched " + programs.size() + " programs for channel " + entry.getKey()); in batchUpdateEpg() 476 mContext, mClock, entry.getKey().getChannel().getId(), programs); in batchUpdateEpg() 690 List<Program> programs = new ArrayList<>(mEpgReader.getPrograms(epgChannel)); in fetchEpgFor() local 692 Collections.sort(programs); in fetchEpgFor() 696 + programs.size() in fetchEpgFor() 700 mContext, mClock, epgChannel.getChannel().getId(), programs); in fetchEpgFor()
|
D | EpgFetchHelper.java | 223 ArrayList<Program> programs = new ArrayList<>(); in queryPrograms() local 225 programs.add(ProgramImpl.fromCursor(c)); in queryPrograms() 227 return programs; in queryPrograms()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrUiHelper.java | 464 @Nullable List<Program> programs, in startSeriesSettingsActivity() argument 476 if (programs != null) { in startSeriesSettingsActivity() 480 programs, in startSeriesSettingsActivity() 547 @NonNull List<Program> programs, in startSeriesSettingsActivityInternal() argument 553 programs != null, TAG, "Start series settings activity but programs is null"); in startSeriesSettingsActivityInternal() 557 BigArguments.setArgument(DvrSeriesSettingsActivity.PROGRAM_LIST, programs); in startSeriesSettingsActivityInternal() 575 List<Program> programs) { in startSeriesScheduledDialogActivity() argument 587 DvrSeriesScheduledFragment.SERIES_SCHEDULED_KEY_PROGRAMS, programs); in startSeriesScheduledDialogActivity()
|
/packages/apps/Car/Radio/src/com/android/car/radio/storage/ |
D | RadioStorage.java | 110 protected Void doInBackground(Program... programs) { in doInBackground() argument 111 mDatabase.insertFavorite(programs[0]); in doInBackground()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
D | EpgTestData.java | 192 private static Iterable<Program> updateTime(long time, Program... programs) { 194 ImmutableList.copyOf(programs),
|
D | FakeEpgReader.java | 138 Iterable<Program> programs = getPrograms(epgChannel); in getPrograms() local 142 ImmutableList.copyOf(Iterables.filter(programs, isProgramDuring(validRange)))); in getPrograms()
|
/packages/apps/Car/Radio/src/com/android/car/radio/ |
D | BrowseAdapter.java | 123 public void setProgramList(@NonNull List<ProgramInfo> programs) { in setProgramList() argument 124 Map<ProgramSelector.Identifier, ProgramInfo> liveMap = programs.stream().collect( in setProgramList()
|