Home
last modified time | relevance | path

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

/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DProgramUtils.java59 long currentTimeMs = clock.currentTimeMillis(); in populatePrograms() local
60 long targetEndTimeMs = currentTimeMs + programInsertDurationMs; in populatePrograms()
61 populatePrograms(context, channelUri, program, currentTimeMs, targetEndTimeMs); in populatePrograms()
68 long currentTimeMs, in populatePrograms() argument
79 long timeMs = getLastProgramEndTimeMs(context, channelUri, currentTimeMs, targetEndTimeMs); in populatePrograms()
81 timeMs = currentTimeMs; in populatePrograms()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/eligibility/
DDismissedChecker.java58 final long currentTimeMs = System.currentTimeMillis(); in isEligible() local
62 .putLong(keySetupTime, currentTimeMs) in isEligible()
77 if (setupTime > currentTimeMs) { in isEligible()
80 setupTime = currentTimeMs; in isEligible()
83 if (currentTimeMs >= firstAppearDayInMs) { in isEligible()
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java207 void setCurrentPositionMs(long currentTimeMs) { in setCurrentPositionMs() argument
208 mCurrentPositionMediator.onCurrentPositionChanged(currentTimeMs); in setCurrentPositionMs()
345 long currentTimeMs = System.currentTimeMillis(); in jumpToNext() local
348 if (nextProgram == null || nextProgram.getStartTimeUtcMillis() > currentTimeMs) { in jumpToNext()
349 mPlayController.seekTo(currentTimeMs); in jumpToNext()
353 mCurrentPositionMediator.initialize(currentTimeMs); in jumpToNext()
357 mCurrentPositionMediator.onSeekRequested(currentTimeMs); in jumpToNext()
710 long currentTimeMs = in handleGetCurrentPosition() local
716 Math.min(mTvView.timeShiftGetCurrentPositionMs(), currentTimeMs), in handleGetCurrentPosition()
719 currentTimeMs - currentPositionMs < RECORDING_BOUNDARY_THRESHOLD; in handleGetCurrentPosition()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DScheduleRowAdapter.java65 long currentTimeMs = System.currentTimeMillis();
66 handleUpdateRow(currentTimeMs);
67 sendNextUpdateMessage(currentTimeMs);
386 protected void handleUpdateRow(long currentTimeMs) { in handleUpdateRow() argument
391 if (row.getEndTimeMs() <= currentTimeMs) { in handleUpdateRow()
399 protected long getNextTimerMs(long currentTimeMs) { in getNextTimerMs() argument
416 protected final void sendNextUpdateMessage(long currentTimeMs) { in sendNextUpdateMessage() argument
418 long nextTime = getNextTimerMs(currentTimeMs); in sendNextUpdateMessage()
DSeriesScheduleRowAdapter.java248 protected void handleUpdateRow(long currentTimeMs) { in handleUpdateRow() argument
251 if (program.getEndTimeUtcMillis() <= currentTimeMs) { in handleUpdateRow()
255 } else if (program.getStartTimeUtcMillis() < currentTimeMs) { in handleUpdateRow()
267 protected long getNextTimerMs(long currentTimeMs) { in getNextTimerMs() argument
271 && program.getStartTimeUtcMillis() >= currentTimeMs) { in getNextTimerMs()
DScheduleRow.java97 long currentTimeMs = System.currentTimeMillis(); in isOnAir() local
98 return getStartTimeMs() <= currentTimeMs && getEndTimeMs() > currentTimeMs; in isOnAir()
/packages/apps/Settings/src/com/android/settings/notification/
DZenOnboardingActivity.java185 final long currentTimeMs = System.currentTimeMillis(); in withinShowTimeThreshold() local
189 firstDisplayTimeMs = currentTimeMs; in withinShowTimeThreshold()
190 prefs.edit().putLong(PREF_KEY_SUGGESTION_FIRST_DISPLAY_TIME, currentTimeMs).commit(); in withinShowTimeThreshold()
196 final boolean stillShow = currentTimeMs < showTimeMs; in withinShowTimeThreshold()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenOnboardingActivity.java185 final long currentTimeMs = System.currentTimeMillis(); in withinShowTimeThreshold() local
189 firstDisplayTimeMs = currentTimeMs; in withinShowTimeThreshold()
190 prefs.edit().putLong(PREF_KEY_SUGGESTION_FIRST_DISPLAY_TIME, currentTimeMs).commit(); in withinShowTimeThreshold()
196 final boolean stillShow = currentTimeMs < showTimeMs; in withinShowTimeThreshold()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DConflictChecker.java217 long currentTimeMs = System.currentTimeMillis(); 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()
244 mHandler.sendEmptyMessageDelayed(MSG_CHECK_CONFLICT, earliestToCheck - currentTimeMs); in onCheckConflict()
DInputTaskScheduler.java274 long currentTimeMs = mClock.currentTimeMillis(); in handleBuildSchedule() local
279 if (schedule.getEndTimeMs() - currentTimeMs in handleBuildSchedule()
296 <= currentTimeMs in handleBuildSchedule()
297 && schedule.getEndTimeMs() > currentTimeMs) { in handleBuildSchedule()
353 mHandler.sendEmptyMessageDelayed(MSG_BUILD_SCHEDULE, earliest - currentTimeMs); in handleBuildSchedule()
/packages/apps/TV/tests/unit/src/com/android/tv/
DCurrentPositionMediatorTest.java46 long currentTimeMs = System.currentTimeMillis(); in testInitialize() local
47 mMediator.initialize(currentTimeMs); in testInitialize()
48 assertCurrentPositionMediator(INVALID_TIME, currentTimeMs); in testInitialize()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrScheduleManager.java678 long currentTimeMs, in getConflictingSchedulesForTune() argument
694 ScheduledRecording.builder(inputId, channelId, currentTimeMs, currentTimeMs + 1) in getConflictingSchedulesForTune()
748 long currentTimeMs, in getConflictingSchedulesForWatching() argument
762 ScheduledRecording.builder(inputId, channelId, currentTimeMs, Long.MAX_VALUE) in getConflictingSchedulesForWatching()
932 List<ScheduledRecording> recordings, long currentTimeMs) { in removeFinishedRecordings() argument
934 if (iter.next().getEndTimeMs() <= currentTimeMs) { in removeFinishedRecordings()
/packages/apps/TV/tests/input/src/com/android/tv/testinput/
DTestTvInputService.java129 long currentTimeMs = System.currentTimeMillis();
132 ((currentTimeMs - mLastCurrentPositionUpdateTimeMs)
137 Math.min(mCurrentPositionMs, currentTimeMs));
138 mLastCurrentPositionUpdateTimeMs = currentTimeMs;
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java969 long currentTimeMs = getCurrentPosition(); in handleMessageScheduleOfPrograms() local
981 } else if (item.getStartTimeUtcMillis() > currentTimeMs) { in handleMessageScheduleOfPrograms()
988 + (item.getStartTimeUtcMillis() - currentTimeMs)); in handleMessageScheduleOfPrograms()
992 item.getStartTimeUtcMillis() - currentTimeMs); in handleMessageScheduleOfPrograms()
1947 long currentTimeMs = getCurrentPosition(); in getCurrentProgram() local
1949 if (item.getStartTimeUtcMillis() <= currentTimeMs in getCurrentProgram()
1950 && item.getEndTimeUtcMillis() >= currentTimeMs) { in getCurrentProgram()
DTunerSessionWorker.java959 long currentTimeMs = getCurrentPosition(); in handleMessageScheduleOfPrograms() local
971 } else if (item.getStartTimeUtcMillis() > currentTimeMs) { in handleMessageScheduleOfPrograms()
978 + (item.getStartTimeUtcMillis() - currentTimeMs)); in handleMessageScheduleOfPrograms()
982 item.getStartTimeUtcMillis() - currentTimeMs); in handleMessageScheduleOfPrograms()
1933 long currentTimeMs = getCurrentPosition(); in getCurrentProgram() local
1935 if (item.getStartTimeUtcMillis() <= currentTimeMs in getCurrentProgram()
1936 && item.getEndTimeUtcMillis() >= currentTimeMs) { in getCurrentProgram()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java447 final long currentTimeMs = System.currentTimeMillis(); in testCalculateLastFullChargeTime() local
449 currentTimeMs - TIME_SINCE_LAST_FULL_CHARGE_MS); in testCalculateLastFullChargeTime()
452 mBatteryStatsHelper, currentTimeMs)).isEqualTo(TIME_SINCE_LAST_FULL_CHARGE_MS); in testCalculateLastFullChargeTime()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryUtils.java358 long currentTimeMs) { in calculateLastFullChargeTime() argument
359 return currentTimeMs - batteryStatsHelper.getStats().getStartClockTime(); in calculateLastFullChargeTime()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java385 long currentTimeMs) { in calculateLastFullChargeTime() argument
386 return currentTimeMs - batteryStatsHelper.getStats().getStartClockTime(); in calculateLastFullChargeTime()