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.java98 Program newProgram = fetchedPrograms.get(newProgramsIndex); in updateEpgData()
101 if (oldProgram.equals(newProgram)) { in updateEpgData()
105 } else if (hasSameTitleAndOverlap(oldProgram, newProgram)) { in updateEpgData()
112 .withValues(ProgramImpl.toContentValues(newProgram, context)) in updateEpgData()
116 } else if (oldProgram.getEndTimeUtcMillis() < newProgram.getEndTimeUtcMillis()) { in updateEpgData()
138 .withValues(ProgramImpl.toContentValues(newProgram, context)) in updateEpgData()
235 private static boolean hasSameTitleAndOverlap(Program oldProgram, Program newProgram) { in hasSameTitleAndOverlap() argument
240 return TextUtils.equals(oldProgram.getTitle(), newProgram.getTitle()) in hasSameTitleAndOverlap()
241 && oldProgram.getStartTimeUtcMillis() <= newProgram.getEndTimeUtcMillis() in hasSameTitleAndOverlap()
242 && newProgram.getStartTimeUtcMillis() <= oldProgram.getEndTimeUtcMillis(); in hasSameTitleAndOverlap()