Home
last modified time | relevance | path

Searched refs:startTimeMs (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/
DInputTaskSchedulerTest.java148 long startTimeMs = mFakeClock.currentTimeMillis(); in testAddSchedule_consecutiveNoStop() local
149 long endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveNoStop()
153 ++id, CHANNEL_ID, LOW_PRIORITY, startTimeMs, endTimeMs)); in testAddSchedule_consecutiveNoStop()
155 startTimeMs = endTimeMs; in testAddSchedule_consecutiveNoStop()
156 endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveNoStop()
159 ++id, CHANNEL_ID, HIGH_PRIORITY, startTimeMs, endTimeMs)); in testAddSchedule_consecutiveNoStop()
170 long startTimeMs = mFakeClock.currentTimeMillis(); in testAddSchedule_consecutiveNoFail() local
171 long endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveNoFail()
177 ++id, CHANNEL_ID, HIGH_PRIORITY, startTimeMs, endTimeMs)); in testAddSchedule_consecutiveNoFail()
179 startTimeMs = endTimeMs; in testAddSchedule_consecutiveNoFail()
[all …]
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java924 void onRecordTimeRangeChanged(long startTimeMs, long endTimeMs) { in onRecordTimeRangeChanged() argument
932 long fetchStartTimeMs = Utils.floorTime(startTimeMs, MAX_PLACEHOLDER_PROGRAM_DURATION); in onRecordTimeRangeChanged()
994 private boolean addPlaceholderPrograms(long startTimeMs, long endTimeMs) { in addPlaceholderPrograms() argument
998 mPrograms.addAll(createPlaceholderPrograms(startTimeMs, endTimeMs)); in addPlaceholderPrograms()
1003 if (startTimeMs < firstProgram.getStartTimeUtcMillis()) { in addPlaceholderPrograms()
1009 … createPlaceholderPrograms(startTimeMs, firstProgram.getEndTimeUtcMillis())); in addPlaceholderPrograms()
1013 … createPlaceholderPrograms(startTimeMs, firstProgram.getStartTimeUtcMillis())); in addPlaceholderPrograms()
1046 private void removeOutdatedPrograms(long startTimeMs) { in removeOutdatedPrograms() argument
1047 while (mPrograms.size() > 0 && mPrograms.get(0).getEndTimeUtcMillis() <= startTimeMs) { in removeOutdatedPrograms()
1094 private List<Program> createPlaceholderPrograms(long startTimeMs, long endTimeMs) { in createPlaceholderPrograms() argument
[all …]
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/provider/
DDvrDbSyncTest.java129 long startTimeMs = BASE_START_TIME_MS + 1; in testHandleUpdateProgram_changeTimeNotStarted() local
133 .setStartTimeUtcMillis(startTimeMs) in testHandleUpdateProgram_changeTimeNotStarted()
147 long startTimeMs = BASE_START_TIME_MS + 1; in testHandleUpdateProgram_changeTimeInProgressNotCalled() local
149 new ProgramImpl.Builder(baseProgram).setStartTimeUtcMillis(startTimeMs).build(); in testHandleUpdateProgram_changeTimeInProgressNotCalled()
232 long startTimeMs = BASE_START_TIME_MS + 1; in testHandleUpdateProgram_changeTimeNotStartedWithScheduleOffsets() local
236 .setStartTimeUtcMillis(startTimeMs) in testHandleUpdateProgram_changeTimeNotStartedWithScheduleOffsets()
260 long startTimeMs = BASE_START_TIME_MS + 1; in testHandleUpdateProgram_changeTimeInProgressWithScheduleOffsets() local
264 .setStartTimeUtcMillis(startTimeMs) in testHandleUpdateProgram_changeTimeInProgressWithScheduleOffsets()
285 long startTimeMs = System.currentTimeMillis() + RECORD_MARGIN_MS; in testHandleUpdateProgram_addStartTimeInPastOffsetNotStarted() local
286 long startOffsetMs = BASE_START_TIME_MS - startTimeMs; in testHandleUpdateProgram_addStartTimeInPastOffsetNotStarted()
[all …]
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DProgramInfo.java165 long startTimeMs = channelId * DURATIONS_MS[((int) (channelId % DURATIONS_MS.length))]; in getIndex() local
166 int index = (int) ((timeMs - startTimeMs) / durationsSumMs) * DURATIONS_MS.length; in getIndex()
167 startTimeMs += (index / DURATIONS_MS.length) * durationsSumMs; in getIndex()
168 while (startTimeMs + DURATIONS_MS[index % DURATIONS_MS.length] < timeMs) { in getIndex()
169 startTimeMs += DURATIONS_MS[index % DURATIONS_MS.length]; in getIndex()
184 long startTimeMs = in getStartTimeMs() local
188 startTimeMs += DURATIONS_MS[i]; in getStartTimeMs()
190 return startTimeMs; in getStartTimeMs()
DProgramUtils.java122 Context context, Uri channelUri, long startTimeMs, long endTimeMs) { in getLastProgramEndTimeMs() argument
123 Uri uri = TvContract.buildProgramsUriForChannel(channelUri, startTimeMs, endTimeMs); in getLastProgramEndTimeMs()
/packages/apps/TV/src/com/android/tv/data/
DProgramDataManager.java299 long startTimeMs = in prefetchChannel() local
307 && isHorizontalLoadNeeded(startTimeMs, channelId, selectedProgramIndex)) { in prefetchChannel()
314 endTimeMs = startTimeMs + programGuideMaxHoursMs; in prefetchChannel()
316 endTimeMs = startTimeMs + mMaxFetchHoursMs; in prefetchChannel()
320 new SingleChannelPrefetchTask(channelId, startTimeMs, endTimeMs).executeOnDbThread(); in prefetchChannel()
340 long startTimeMs, long channelId, int selectedProgramIndex) { in isHorizontalLoadNeeded() argument
343 long marginEndTime = startTimeMs + mMaxFetchHoursMs - BUFFER_HOURS_MS; in isHorizontalLoadNeeded()
758 public SingleChannelPrefetchTask(long channelId, long startTimeMs, long endTimeMs) { in SingleChannelPrefetchTask() argument
762 TvContract.buildProgramsUriForChannel(channelId, startTimeMs, endTimeMs), in SingleChannelPrefetchTask()
988 public void setPrefetchTimeRange(long startTimeMs) { in setPrefetchTimeRange() argument
[all …]
/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DProgramDataManagerTest.java121 long startTimeMs = stub.getStartTimeMs(index, channelId); in testProgramUtils() local
123 assertThat(startTimeMs).isAtMost(mClock.currentTimeMillis()); in testProgramUtils()
124 assertThat(mClock.currentTimeMillis()).isLessThan(startTimeMs + programAt.durationMs); in testProgramUtils()
164 long startTimeMs = stub.getStartTimeMs(index, channelId); in testGetPrograms() local
165 assertProgramEquals(startTimeMs, programInfoAt, program); in testGetPrograms()
169 long startTimeMs = programs.get(0).getStartTimeUtcMillis(); in testGetPrograms() local
170 programs = mProgramDataManager.getPrograms(channelId, startTimeMs); in testGetPrograms()
171 assertThat(programs.get(0).getStartTimeUtcMillis()).isEqualTo(startTimeMs); in testGetPrograms()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DConflictChecker.java219 long startTimeMs = schedule.getStartTimeMs(); in onCheckConflict() local
220 if (startTimeMs < currentTimeMs + MIN_WATCH_CONFLICT_CHECK_TIME_MS) { in onCheckConflict()
225 if (startTimeMs > currentTimeMs + MAX_WATCH_CONFLICT_CHECK_TIME_MS) { in onCheckConflict()
228 long nextCheckTimeMs = startTimeMs - MAX_WATCH_CONFLICT_CHECK_TIME_MS; in onCheckConflict()
237 long nextCheckTimeMs = startTimeMs - MIN_WATCH_CONFLICT_CHECK_TIME_MS; in onCheckConflict()
/packages/apps/TV/src/com/android/tv/data/epg/
DEpgFetchHelper.java84 long startTimeMs = clock.currentTimeMillis(); in updateEpgData() local
85 long endTimeMs = startTimeMs + PROGRAM_QUERY_DURATION_MS; in updateEpgData()
86 List<Program> oldPrograms = queryPrograms(context, channelId, startTimeMs, endTimeMs); in updateEpgData()
204 Context context, long channelId, long startTimeMs, long endTimeMs) { in queryPrograms() argument
215 channelId, startTimeMs, endTimeMs), in queryPrograms() argument
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrChannelRecordDurationOptionFragment.java95 long startTimeMs = System.currentTimeMillis(); in onTrackedGuidedActionClicked() local
98 dvrManager.getConflictingSchedules(mChannel.getId(), startTimeMs, endTimeMs); in onTrackedGuidedActionClicked()
99 dvrManager.addSchedule(mChannel, startTimeMs, endTimeMs); in onTrackedGuidedActionClicked()
106 args.putLong(DvrHalfSizedDialogFragment.KEY_START_TIME_MS, startTimeMs); in onTrackedGuidedActionClicked()
DDvrRecordingSettingsFragment.java154 long startTimeMs = mProgram.getStartTimeUtcMillis() - startEarlyTimeMs; in onGuidedActionClicked() local
155 if (startTimeMs < System.currentTimeMillis()) { in onGuidedActionClicked()
156 startTimeMs = System.currentTimeMillis(); in onGuidedActionClicked()
157 startEarlyTimeMs = mProgram.getStartTimeUtcMillis() - startTimeMs; in onGuidedActionClicked()
162 .setStartTimeUtcMillis(startTimeMs) in onGuidedActionClicked()
DDvrUiHelper.java666 Context context, String title, long startTimeMs, long endTimeMs) { in showAddScheduleToast() argument
668 (startTimeMs > System.currentTimeMillis()) in showAddScheduleToast()
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DRoutineWatchEvaluatorTest.java326 long startTimeMs = startTime.getTimeInMillis(); in createDummyProgram() local
329 .setStartTimeUtcMillis(startTimeMs) in createDummyProgram()
330 .setEndTimeUtcMillis(startTimeMs + programDurationMs) in createDummyProgram()
/packages/apps/TV/src/com/android/tv/guide/
DTimeListAdapter.java64 public void update(long startTimeMs) { in update() argument
65 mStartUtcMs = startTimeMs; in update()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrScheduleManager.java575 long channelId, long startTimeMs, long endTimeMs) { in getConflictingSchedules() argument
578 SoftPreconditions.checkState(startTimeMs < endTimeMs, TAG, "Recording duration is empty."); in getConflictingSchedules()
579 if (!mInitialized || channelId == Channel.INVALID_ID || startTimeMs >= endTimeMs) { in getConflictingSchedules()
589 ScheduledRecording.builder(input.getId(), channelId, startTimeMs, endTimeMs) in getConflictingSchedules()
DDvrManager.java614 long channelId, long startTimeMs, long endTimeMs) { in getConflictingSchedules() argument
618 return mScheduleManager.getConflictingSchedules(channelId, startTimeMs, endTimeMs); in getConflictingSchedules()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DPlaybackBufferListener.java27 void onBufferStartTimeChanged(long startTimeMs); in onBufferStartTimeChanged() argument
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DPlaybackBufferListener.java27 void onBufferStartTimeChanged(long startTimeMs); in onBufferStartTimeChanged() argument
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/datamanager/
DChannelDataManager.java714 TunerChannel channel, @Nullable Long startTimeMs, @Nullable Long endTimeMs) { in getAllProgramsForChannel() argument
718 (startTimeMs == null || endTimeMs == null) in getAllProgramsForChannel()
720 : TvContract.buildProgramsUriForChannel(channelId, startTimeMs, endTimeMs); in getAllProgramsForChannel()
/packages/apps/TV/src/com/android/tv/util/
DUtils.java483 public static int computeDateDifference(long startTimeMs, long endTimeMs) { in computeDateDifference() argument
486 calFrom.setTime(new Date(startTimeMs)); in computeDateDifference()
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/exoplayer/tests/
DSampleSourceExtractorTest.java284 public void onBufferStartTimeChanged(long startTimeMs) { in onBufferStartTimeChanged() argument
/packages/apps/TV/src/com/android/tv/ui/
DChannelBannerView.java776 long startTimeMs = program.getStartTimeUtcMillis();
778 if (mLockType != LOCK_CHANNEL_INFO && durationMs > 0 && startTimeMs > 0) {
/packages/apps/TV/src/com/android/tv/dvr/data/
DScheduledRecording.java201 public Builder setStartTimeMs(long startTimeMs) { in setStartTimeMs() argument
202 mStartTimeMs = startTimeMs; in setStartTimeMs()
/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/
DZappingTimeTest.java407 public void onBufferStartTimeChanged(long startTimeMs) { in onBufferStartTimeChanged() argument
DZappingTimeTestExoV2.java434 public void onBufferStartTimeChanged(long startTimeMs) { in onBufferStartTimeChanged() argument

12