Lines Matching refs:TableEntry
76 public static class TableEntry {
93 private TableEntry(long channelId, long startUtcMillis, long endUtcMillis) {
97 private TableEntry(long channelId, long startUtcMillis, long endUtcMillis,
102 private TableEntry(long channelId, Program program, long entryStartUtcMillis,
107 private TableEntry(long channelId, Program program, ScheduledRecording scheduledRecording,
163 return "TableEntry{"
173 private final Map<Long, List<TableEntry>> mChannelIdEntriesMap = new HashMap<>();
234 TableEntry oldEntry = getTableEntry(schedule);
236 TableEntry newEntry = new TableEntry(oldEntry.channelId, oldEntry.program,
247 TableEntry oldEntry = getTableEntry(schedule);
249 TableEntry newEntry = new TableEntry(oldEntry.channelId, oldEntry.program, null,
260 TableEntry oldEntry = getTableEntry(schedule);
262 TableEntry newEntry = new TableEntry(oldEntry.channelId, oldEntry.program,
277 TableEntry entry = getTableEntry(schedule);
456 List<TableEntry> entries = createProgramEntries(channelId, parentalControlsEnabled);
467 TableEntry lastEntry = entries.get(size - 1);
476 List<TableEntry> entries = mChannelIdEntriesMap.get(channelId);
478 entries.add(new TableEntry(channelId, mStartUtcMillis, mEndUtcMillis));
480 TableEntry lastEntry = entries.get(entries.size() - 1);
482 entries.add(new TableEntry(channelId, lastEntry.entryEndUtcMillis,
486 entries.add(new TableEntry(lastEntry.channelId, lastEntry.program,
523 private void notifyTableEntryUpdated(TableEntry entry) {
529 private void updateEntry(TableEntry old, TableEntry newEntry) {
530 List<TableEntry> entries = mChannelIdEntriesMap.get(old.channelId);
537 private TableEntry getTableEntry(ScheduledRecording scheduledRecording) {
542 private TableEntry getTableEntry(long channelId, long entryId) {
543 List<TableEntry> entries = mChannelIdEntriesMap.get(channelId);
545 for (TableEntry entry : entries) {
642 public TableEntry getTableEntry(long channelId, int index) {
646 private List<TableEntry> createProgramEntries(long channelId, boolean parentalControlsEnabled) {
647 List<TableEntry> entries = new ArrayList<>();
651 entries.add(new TableEntry(channelId, mStartUtcMillis, Long.MAX_VALUE, true));
665 entries.add(new TableEntry(channelId, lastProgramEndTime,
672 entries.add(new TableEntry(channelId, program, scheduledRecording,
680 TableEntry secondEntry = entries.get(1);
685 entries.set(0, new TableEntry(secondEntry.channelId, secondEntry.program,
704 void onTableEntryChanged(TableEntry entry);
753 List<TableEntry> entries = mChannelIdEntriesMap.get(channelId);
768 List<TableEntry> entries = mChannelIdEntriesMap.get(channelId);
770 TableEntry entry = entries.get(i);