/packages/apps/TV/tests/common/src/com/android/tv/testing/data/ |
D | ProgramUtils.java | 59 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/ |
D | DismissedChecker.java | 58 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/ |
D | TimeShiftManager.java | 210 void setCurrentPositionMs(long currentTimeMs) { in setCurrentPositionMs() argument 211 mCurrentPositionMediator.onCurrentPositionChanged(currentTimeMs); in setCurrentPositionMs() 348 long currentTimeMs = System.currentTimeMillis(); in jumpToNext() local 351 if (nextProgram == null || nextProgram.getStartTimeUtcMillis() > currentTimeMs) { in jumpToNext() 352 mPlayController.seekTo(currentTimeMs); in jumpToNext() 356 mCurrentPositionMediator.initialize(currentTimeMs); in jumpToNext() 360 mCurrentPositionMediator.onSeekRequested(currentTimeMs); in jumpToNext() 713 long currentTimeMs = in handleGetCurrentPosition() local 719 Math.min(mTvView.timeShiftGetCurrentPositionMs(), currentTimeMs), in handleGetCurrentPosition() 722 currentTimeMs - currentPositionMs < RECORDING_BOUNDARY_THRESHOLD; in handleGetCurrentPosition() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | ScheduleRowAdapter.java | 65 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()
|
D | SeriesScheduleRowAdapter.java | 251 protected void handleUpdateRow(long currentTimeMs) { in handleUpdateRow() argument 254 if (program.getEndTimeUtcMillis() <= currentTimeMs) { in handleUpdateRow() 258 } else if (program.getStartTimeUtcMillis() < currentTimeMs) { in handleUpdateRow() 270 protected long getNextTimerMs(long currentTimeMs) { in getNextTimerMs() argument 274 && program.getStartTimeUtcMillis() >= currentTimeMs) { in getNextTimerMs()
|
D | ScheduleRow.java | 97 long currentTimeMs = System.currentTimeMillis(); in isOnAir() local 98 return getStartTimeMs() <= currentTimeMs && getEndTimeMs() > currentTimeMs; in isOnAir()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | ZenOnboardingActivity.java | 185 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/ |
D | ZenOnboardingActivity.java | 185 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/ |
D | ConflictChecker.java | 217 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()
|
D | InputTaskScheduler.java | 274 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/ |
D | CurrentPositionMediatorTest.java | 46 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/ |
D | DvrScheduleManager.java | 680 long currentTimeMs, in getConflictingSchedulesForTune() argument 696 ScheduledRecording.builder(inputId, channelId, currentTimeMs, currentTimeMs + 1) in getConflictingSchedulesForTune() 750 long currentTimeMs, in getConflictingSchedulesForWatching() argument 764 ScheduledRecording.builder(inputId, channelId, currentTimeMs, Long.MAX_VALUE) in getConflictingSchedulesForWatching() 934 List<ScheduledRecording> recordings, long currentTimeMs) { in removeFinishedRecordings() argument 936 if (iter.next().getEndTimeMs() <= currentTimeMs) { in removeFinishedRecordings()
|
/packages/apps/TV/tests/input/src/com/android/tv/testinput/ |
D | TestTvInputService.java | 129 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/ |
D | TunerSessionWorkerExoV2.java | 990 long currentTimeMs = getCurrentPosition(); in handleMessageScheduleOfPrograms() local 1002 } else if (item.getStartTimeUtcMillis() > currentTimeMs) { in handleMessageScheduleOfPrograms() 1009 + (item.getStartTimeUtcMillis() - currentTimeMs)); in handleMessageScheduleOfPrograms() 1013 item.getStartTimeUtcMillis() - currentTimeMs); in handleMessageScheduleOfPrograms() 1925 long currentTimeMs = getCurrentPosition(); in getCurrentProgram() local 1927 if (item.getStartTimeUtcMillis() <= currentTimeMs in getCurrentProgram() 1928 && item.getEndTimeUtcMillis() >= currentTimeMs) { in getCurrentProgram()
|
D | TunerSessionWorker.java | 1010 long currentTimeMs = getCurrentPosition(); in handleMessageScheduleOfPrograms() local 1022 } else if (item.getStartTimeUtcMillis() > currentTimeMs) { in handleMessageScheduleOfPrograms() 1029 + (item.getStartTimeUtcMillis() - currentTimeMs)); in handleMessageScheduleOfPrograms() 1033 item.getStartTimeUtcMillis() - currentTimeMs); in handleMessageScheduleOfPrograms() 2002 long currentTimeMs = getCurrentPosition(); in getCurrentProgram() local 2004 if (item.getStartTimeUtcMillis() <= currentTimeMs in getCurrentProgram() 2005 && item.getEndTimeUtcMillis() >= currentTimeMs) { in getCurrentProgram()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryUtilsTest.java | 447 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/ |
D | BatteryUtils.java | 358 long currentTimeMs) { in calculateLastFullChargeTime() argument 359 return currentTimeMs - batteryStatsHelper.getStats().getStartClockTime(); in calculateLastFullChargeTime()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryUtils.java | 385 long currentTimeMs) { in calculateLastFullChargeTime() argument 386 return currentTimeMs - batteryStatsHelper.getStats().getStartClockTime(); in calculateLastFullChargeTime()
|