Lines Matching refs:mPrograms
847 private final List<Program> mPrograms = new ArrayList<>(); field in TimeShiftManager.ProgramManager
867 mPrograms.clear(); in onAvailabilityChanged()
877 mPrograms.add(program); in onAvailabilityChanged()
884 mPrograms.addAll(createDummyPrograms(prefetchStartTimeMs, in onAvailabilityChanged()
979 if (mPrograms.isEmpty()) { in addDummyPrograms()
981 mPrograms.addAll(createDummyPrograms(startTimeMs, endTimeMs)); in addDummyPrograms()
985 Program firstProgram = mPrograms.get(0); in addDummyPrograms()
989 mPrograms.remove(0); in addDummyPrograms()
990 mPrograms.addAll(0, in addDummyPrograms()
993 mPrograms.addAll(0, in addDummyPrograms()
999 Program lastProgram = mPrograms.get(mPrograms.size() - 1); in addDummyPrograms()
1003 mPrograms.remove(mPrograms.size() - 1); in addDummyPrograms()
1004 mPrograms.addAll( in addDummyPrograms()
1007 mPrograms.addAll( in addDummyPrograms()
1013 for (int i = 1; i < mPrograms.size(); ++i) { in addDummyPrograms()
1014 long endOfPrevious = mPrograms.get(i - 1).getEndTimeUtcMillis(); in addDummyPrograms()
1015 long startOfCurrent = mPrograms.get(i).getStartTimeUtcMillis(); in addDummyPrograms()
1019 mPrograms.addAll(i, dummyPrograms); in addDummyPrograms()
1028 for (int i = 0; i < mPrograms.size(); ++i) { in removeDummyPrograms()
1029 Program program = mPrograms.get(i); in removeDummyPrograms()
1031 mPrograms.remove(i--); in removeDummyPrograms()
1037 if (mPrograms.size() == 0) { in removeOverlappedPrograms()
1040 Program program = mPrograms.get(0); in removeOverlappedPrograms()
1041 for (int i = 0, j = 0; i < mPrograms.size() && j < loadedPrograms.size(); ++j) { in removeOverlappedPrograms()
1046 if (++i == mPrograms.size()) { in removeOverlappedPrograms()
1049 program = mPrograms.get(i); in removeOverlappedPrograms()
1054 mPrograms.remove(i); in removeOverlappedPrograms()
1055 if (i >= mPrograms.size()) { in removeOverlappedPrograms()
1058 program = mPrograms.get(i); in removeOverlappedPrograms()
1093 return getProgramAt(timeMs, 0, mPrograms.size() - 1); in getProgramAt()
1101 Program program = mPrograms.get(mid); in getProgramAt()
1112 if (mPrograms.isEmpty()) { in getOldestProgramStartTime()
1115 return mPrograms.get(0).getStartTimeUtcMillis(); in getOldestProgramStartTime()
1119 for (int i = mPrograms.size() - 1; i >= 0; --i) { in getLastValidProgram()
1120 Program program = mPrograms.get(i); in getLastValidProgram()
1219 if(!mPrograms.isEmpty()) { in onPostExecute()
1223 for (int i = 0; i < mPrograms.size() && !programs.isEmpty(); ++i) { in onPostExecute()
1224 Program program = mPrograms.get(i); in onPostExecute()
1227 mPrograms.add(i++, loadedProgram); in onPostExecute()
1236 mPrograms.addAll(programs); in onPostExecute()