Lines Matching defs:startTimeMs
891 void onRecordTimeRangeChanged(long startTimeMs, long endTimeMs) {
899 long fetchStartTimeMs = Utils.floorTime(startTimeMs, MAX_DUMMY_PROGRAM_DURATION);
977 private boolean addDummyPrograms(long startTimeMs, long endTimeMs) {
981 mPrograms.addAll(createDummyPrograms(startTimeMs, endTimeMs));
986 if (startTimeMs < firstProgram.getStartTimeUtcMillis()) {
991 createDummyPrograms(startTimeMs, firstProgram.getEndTimeUtcMillis()));
994 createDummyPrograms(startTimeMs, firstProgram.getStartTimeUtcMillis()));
1065 // So if the duration ({@code endTimeMs}-{@code startTimeMs}) is greater than the duration,
1070 private List<Program> createDummyPrograms(long startTimeMs, long endTimeMs) {
1071 if (startTimeMs >= endTimeMs) {
1075 long start = startTimeMs;
1076 long end = Utils.ceilTime(startTimeMs, MAX_DUMMY_PROGRAM_DURATION);
1167 long startTimeMs;
1170 startTimeMs = System.currentTimeMillis();
1172 startTimeMs = lastValidProgram.getEndTimeUtcMillis();
1175 if (startTimeMs <= endTimeMs) {
1177 Log.d(TAG, "Prefetch task starts: {startTime=" + Utils.toTimeString(startTimeMs)
1180 mProgramLoadQueue.add(Range.create(startTimeMs, endTimeMs));