/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/src/com/android/tv/recommendation/ |
D | ChannelPreviewUpdater.java | 171 Set<Program> programs = new HashSet<>(); in updatePreviewDataForChannels() local 180 programs.add(program); in updatePreviewDataForChannels() 181 if (programs.size() >= RECOMMENDATION_COUNT) { in updatePreviewDataForChannels() 190 return programs; in updatePreviewDataForChannels() 220 protected void onPostExecute(Set<Program> programs) { in updatePreviewDataForChannels() argument 221 updatePreviewDataForChannelsInternal(programs); in updatePreviewDataForChannels() 226 private void updatePreviewDataForChannelsInternal(Set<Program> programs) { in updatePreviewDataForChannelsInternal() argument 232 if (programs.size() > MIN_COUNT_TO_ADD_ROW) { in updatePreviewDataForChannelsInternal() 245 createdPreviewChannelId, programs)); in updatePreviewDataForChannelsInternal() 254 + 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 | 345 private int getProgramIndexAt(List<Program> programs, long time) { in getProgramIndexAt() argument 351 int index = Collections.binarySearch(programs, key); in getProgramIndexAt() 354 if (index > 0 && isProgramPlayedAt(programs.get(index - 1), time)) { in getProgramIndexAt() 575 ArrayList<Program> programs = programMap.get(program.getChannelId()); in doInBackground() local 576 if (programs == null) { in doInBackground() 577 programs = new ArrayList<>(); in doInBackground() 587 programMap.put(program.getChannelId(), programs); in doInBackground() local 589 programs.add(program); in doInBackground() 616 protected void onPostExecute(Map<Long, ArrayList<Program>> programs) { in onPostExecute() argument 635 mChannelIdProgramCache = programs; in onPostExecute() [all …]
|
D | PreviewDataManager.java | 162 Set<PreviewProgramContent> programs, in updatePreviewProgramsForChannel() argument 167 && currentRunningUpdateTask.getPrograms().equals(programs)) { in updatePreviewProgramsForChannel() 172 new UpdatePreviewProgramTask(previewChannelId, programs); in updatePreviewProgramsForChannel() 379 long previewChannelId, Set<PreviewProgramContent> programs) { in UpdatePreviewProgramTask() argument 381 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 | 1101 List<Program> programs = new ArrayList<>(); in createDummyPrograms() local 1105 programs.add( in createDummyPrograms() 1113 programs.add( in createDummyPrograms() 1118 return programs; in createDummyPrograms() 1234 protected void onPostExecute(List<Program> programs) { in onPostExecute() argument 1254 if (programs == null || programs.isEmpty()) { in onPostExecute() 1266 removeOverlappedPrograms(programs); in onPostExecute() 1267 Program loadedProgram = programs.get(0); in onPostExecute() 1268 for (int i = 0; i < mPrograms.size() && !programs.isEmpty(); ++i) { in onPostExecute() 1273 programs.remove(0); in onPostExecute() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | SeriesRecordingScheduler.java | 397 List<SeriesRecording> seriesRecordings, List<Program> programs) { in pickOneProgramPerEpisode() argument 398 return pickOneProgramPerEpisode(mDataManager, seriesRecordings, programs); in pickOneProgramPerEpisode() 405 List<Program> programs) { in pickOneProgramPerEpisode() argument 415 for (Program program : programs) { in pickOneProgramPerEpisode() 490 protected void onPostExecute(List<Program> programs) { in onPostExecute() argument 491 if (DEBUG) Log.d(TAG, "onPostExecute: updating schedules with programs:" + programs); in onPostExecute() 493 if (programs == null) { in onPostExecute() 500 pickOneProgramPerEpisode(getSeriesRecordings(), programs); in onPostExecute() 517 protected void onCancelled(List<Program> programs) { in onCancelled() argument
|
/packages/apps/TV/src/com/android/tv/dvr/provider/ |
D | EpisodicProgramLoadTask.java | 180 protected void onPostExecute(List<Program> programs) {} in onPostExecute() argument 183 protected void onCancelled(List<Program> programs) {} in onCancelled() argument 196 protected void onPostExecute(List<Program> programs) { in createTask() 197 EpisodicProgramLoadTask.this.onPostExecute(programs); in createTask() 201 protected void onCancelled(List<Program> programs) { in createTask() argument 202 EpisodicProgramLoadTask.this.onCancelled(programs); in createTask()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | SeriesScheduleRowAdapter.java | 84 public void setPrograms(List<Program> programs) { in setPrograms() argument 85 if (programs == null) { in setPrograms() 86 programs = Collections.emptyList(); in setPrograms() 90 List<Program> sortedPrograms = new ArrayList<>(programs); in setPrograms() 99 programs); in setPrograms()
|
D | DvrSchedulesActivity.java | 91 protected void onPostExecute(List<Program> programs) { in onCreate() argument 99 programs == null ? Collections.EMPTY_LIST : programs); in onCreate()
|
D | DvrSeriesSchedulesFragment.java | 221 protected void onPostExecute(List<Program> programs) { in executeProgramLoadingTask() 222 mPrograms = programs == null ? Collections.EMPTY_LIST : programs; in executeProgramLoadingTask()
|
D | SchedulesHeaderRow.java | 90 List<Program> programs) { in SeriesRecordingHeaderRow() argument 93 mPrograms = programs; in SeriesRecordingHeaderRow()
|
D | DvrHistoryRowAdapter.java | 131 List<RecordedProgram> programs, int maxDays) { in recordedProgramsToScheduledRecordings() argument 133 for (RecordedProgram recordedProgram : programs) { in recordedProgramsToScheduledRecordings()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrUiHelper.java | 458 @Nullable List<Program> programs, in startSeriesSettingsActivity() argument 470 if (programs != null) { in startSeriesSettingsActivity() 474 programs, in startSeriesSettingsActivity() 523 @NonNull List<Program> programs, in startSeriesSettingsActivityInternal() argument 529 programs != null, TAG, "Start series settings activity but programs is null"); in startSeriesSettingsActivityInternal() 533 BigArguments.setArgument(DvrSeriesSettingsActivity.PROGRAM_LIST, programs); in startSeriesSettingsActivityInternal() 549 List<Program> programs) { in startSeriesScheduledDialogActivity() argument 561 DvrSeriesScheduledFragment.SERIES_SCHEDULED_KEY_PROGRAMS, programs); in startSeriesScheduledDialogActivity()
|
/packages/apps/TV/src/com/android/tv/data/epg/ |
D | EpgFetcherImpl.java | 488 List<Program> programs = new ArrayList(entry.getValue()); in batchUpdateEpg() local 489 if (programs == null) { in batchUpdateEpg() 492 Collections.sort(programs); in batchUpdateEpg() 495 "Batch fetched " + programs.size() + " programs for channel " + entry.getKey()); in batchUpdateEpg() 497 mContext, mClock, entry.getKey().getChannel().getId(), programs); in batchUpdateEpg() 710 List<Program> programs = new ArrayList<>(mEpgReader.getPrograms(epgChannel)); in fetchEpgFor() local 712 Collections.sort(programs); in fetchEpgFor() 716 + programs.size() in fetchEpgFor() 720 mContext, mClock, epgChannel.getChannel().getId(), programs); in fetchEpgFor()
|
D | EpgFetchHelper.java | 220 ArrayList<Program> programs = new ArrayList<>(); in queryPrograms() local 222 programs.add(Program.fromCursor(c)); in queryPrograms() 224 return programs; in queryPrograms()
|
/packages/apps/Car/Radio/src/com/android/car/radio/storage/ |
D | RadioStorage.java | 107 protected Void doInBackground(Program... programs) { in doInBackground() argument 108 mDatabase.insertFavorite(programs[0]); in doInBackground()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
D | EpgTestData.java | 188 private static Iterable<Program> updateTime(long time, Program... programs) { 190 ImmutableList.copyOf(programs),
|
D | FakeEpgReader.java | 133 Iterable<Program> programs = getPrograms(epgChannel); in getPrograms() local 137 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()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | ProgramManager.java | 625 List<Program> programs = mProgramDataManager.getPrograms(channelId, mStartUtcMillis); in createProgramEntries() local 626 for (Program program : programs) { in createProgramEntries()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
D | TunerSessionWorkerExoV2.java | 597 public void onProgramsArrived(TunerChannel channel, List<EitItem> programs) { in onProgramsArrived() argument 598 sendMessage(MSG_SCHEDULE_OF_PROGRAMS, new Pair<>(channel, programs)); in onProgramsArrived() 612 public void onRequestProgramsResponse(TunerChannel channel, List<EitItem> programs) { in onRequestProgramsResponse() argument 613 sendMessage(MSG_PROGRAM_DATA_RESULT, new Pair<>(channel, programs)); in onRequestProgramsResponse()
|