Home
last modified time | relevance | path

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

/packages/apps/TV/src/com/android/tv/data/epg/
DEpgFetchHelper.java94 Program oldProgram = in updateEpgData() local
100 if (oldProgram != null) { in updateEpgData()
101 if (oldProgram.equals(newProgram)) { in updateEpgData()
105 } else if (hasSameTitleAndOverlap(oldProgram, newProgram)) { in updateEpgData()
111 TvContract.buildProgramUri(oldProgram.getId())) in updateEpgData()
116 } else if (oldProgram.getEndTimeUtcMillis() < newProgram.getEndTimeUtcMillis()) { in updateEpgData()
121 TvContract.buildProgramUri(oldProgram.getId())) 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()
[all …]