Home
last modified time | relevance | path

Searched refs:newProgram (Results 1 – 1 of 1) sorted by relevance

/packages/apps/TV/src/com/android/tv/data/epg/
DEpgFetchHelper.java95 Program newProgram = fetchedPrograms.get(newProgramsIndex); in updateEpgData()
98 if (oldProgram.equals(newProgram)) { in updateEpgData()
102 } else if (hasSameTitleAndOverlap(oldProgram, newProgram)) { in updateEpgData()
109 .withValues(Program.toContentValues(newProgram, context)) in updateEpgData()
113 } else if (oldProgram.getEndTimeUtcMillis() < newProgram.getEndTimeUtcMillis()) { in updateEpgData()
135 .withValues(Program.toContentValues(newProgram, context)) in updateEpgData()
232 private static boolean hasSameTitleAndOverlap(Program oldProgram, Program newProgram) { in hasSameTitleAndOverlap() argument
237 return TextUtils.equals(oldProgram.getTitle(), newProgram.getTitle()) in hasSameTitleAndOverlap()
238 && oldProgram.getStartTimeUtcMillis() <= newProgram.getEndTimeUtcMillis() in hasSameTitleAndOverlap()
239 && newProgram.getStartTimeUtcMillis() <= oldProgram.getEndTimeUtcMillis(); in hasSameTitleAndOverlap()