Searched refs:programs (Results 1 - 8 of 8) sorted by relevance

/packages/providers/TvProvider/tests/src/com/android/providers/tv/
H A DEpgDataCleanupServiceTests.java131 private void insertPrograms(Program... programs) { argument
132 insertPrograms(Arrays.asList(programs));
135 private void insertPrograms(Collection<Program> programs) { argument
140 for (Program program : programs) {
159 Set<Program> programs = Sets.newHashSet();
161 programs.add(new Program(cursor.getLong(0), cursor.getLong(1), cursor.getLong(2)));
163 return programs;
169 private void insertWatchedPrograms(Program... programs) { argument
170 insertWatchedPrograms(Arrays.asList(programs));
173 private void insertWatchedPrograms(Collection<Program> programs) { argument
[all...]
/packages/apps/TV/src/com/android/tv/data/
H A DProgramDataManager.java75 // COLUMN_CHANNEL_ID, COLUMN_END_TIME_UTC_MILLIS are added to detect duplicated programs.
76 // Duplicated programs are always consecutive by the sorting order.
152 * Set the program prefetch update wait which gives the delay to query all programs from DB
170 // to the handler. If not, another DB task can be executed before loading current programs.
274 * Returns the programs for the given channel which ends after the given start time.
293 // If there isn't, return the first program among programs that starts after the given time
295 private int getProgramIndexAt(List<Program> programs, long time) { argument
301 int index = Collections.binarySearch(programs, key);
304 if (index > 0 && isProgramPlayedAt(programs.get(index - 1), time)) {
386 // Remove previous programs whic
514 onPostExecute(Map<Long, ArrayList<Program>> programs) argument
580 onPostExecute(List<Program> programs) argument
[all...]
/packages/apps/TV/src/com/android/tv/data/epg/
H A DEpgFetcher.java165 List<Program> programs = new ArrayList<>(epgReader.getPrograms(channel.getId()));
166 Collections.sort(programs);
168 Log.d(TAG, "Fetching " + programs.size() + " programs for channel " + channel);
170 updateEpg(channel.getId(), programs);
202 // Skip the past programs. They will be automatically removed by the system.
212 // Compare the new programs with old programs one by one and update/delete the old one
223 // Exact match. No need to update. Move on to the next programs.
247 // No match. The new program does not match any of the old programs
[all...]
/packages/apps/TV/src/com/android/tv/
H A DTimeShiftManager.java59 * {@link ProgramManager} loads programs of the current channel in the background.
1012 // Insert dummy programs if the holes exist in the list.
1043 // Skip previous programs.
1051 // Remove overlapped programs.
1063 // Returns a list of dummy programs.
1066 // we need to create multiple dummy programs.
1074 List<Program> programs = new ArrayList<>();
1078 programs.add(new Program.Builder()
1085 programs.add(new Program.Builder()
1089 return programs;
1194 onPostExecute(List<Program> programs) argument
1244 onCancelled(List<Program> programs) argument
[all...]
/packages/apps/TV/tests/unit/src/com/android/tv/data/
H A DProgramDataManagerTest.java138 List<Program> programs =
142 for (Program program : programs) {
149 long startTimeMs = programs.get(0).getStartTimeUtcMillis();
150 programs = mProgramDataManager.getPrograms(channelId, startTimeMs);
151 assertEquals(startTimeMs, programs.get(0).getStartTimeUtcMillis());
154 programs = mProgramDataManager.getPrograms(channelId,
156 for (Program program : programs) {
328 * Simulate program data appends at the end of the existing programs.
329 * This appends programs until the maximum program query range
387 * @param channelId channel ID to query programs belong
[all...]
/packages/apps/TV/src/com/android/tv/guide/
H A DProgramManager.java42 * Manages the channels and programs for the program guide.
71 * programs. This is needed for {@link ProgramListAdapter} because
317 * Build genre filters based on the current programs.
331 // TODO: Use programs in visible area instead of using current programs only.
593 * (e.g., whose channelId is INVALID_ID), when it corresponds to a gap between programs.
607 List<Program> programs = mProgramDataManager.getPrograms(channelId, mStartUtcMillis);
608 for (Program program : programs) {
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/
H A DChannelDataManager.java106 * Invoked when a request for getting programs of a channel has been processed and passes
107 * the requested channel and the programs retrieved from database to the listener.
109 void onRequestProgramsResponse(TunerChannel channel, List<EitItem> programs); argument
112 * Invoked when programs of a channel have been arrived and passes the arrived channel and
113 * programs to the listener.
115 void onProgramsArrived(TunerChannel channel, List<EitItem> programs); argument
324 // TODO: Find a right to check if the programs are added outside.
327 // The event has been added outside TV tuner. Do not update programs.
409 // Schedule the audio and caption tracks of the current program and the programs being
H A DTunerSessionWorker.java350 public void onProgramsArrived(TunerChannel channel, List<EitItem> programs) { argument
351 sendMessage(MSG_SCHEDULE_OF_PROGRAMS, new Pair<>(channel, programs));
365 public void onRequestProgramsResponse(TunerChannel channel, List<EitItem> programs) { argument
366 sendMessage(MSG_PROGRAM_DATA_RESULT, new Pair<>(channel, programs));
1276 // this means that there is a change of playback status and the programs of the current
1280 Log.d(TAG, "reschedule programs size:"

Completed in 242 milliseconds