Home
last modified time | relevance | path

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

/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/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/TV/src/com/android/tv/
DTimeShiftManager.java210 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/
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.java251 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()
DScheduleRow.java97 long currentTimeMs = System.currentTimeMillis(); in isOnAir() local
98 return getStartTimeMs() <= currentTimeMs && getEndTimeMs() > currentTimeMs; in isOnAir()
/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/Settings/src/com/android/settings/notification/zen/
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.java680 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/
DTestTvInputService.java129 long currentTimeMs = System.currentTimeMillis();
132 ((currentTimeMs - mLastCurrentPositionUpdateTimeMs)
137 Math.min(mCurrentPositionMs, currentTimeMs));
138 mLastCurrentPositionUpdateTimeMs = currentTimeMs;
/packages/services/Car/watchdog/car-watchdog-lib/src/android/car/watchdoglib/
DCarWatchdogDaemonHelper.java316 long currentTimeMs = SystemClock.uptimeMillis(); in makeBinderConnection() local
322 long elapsedTimeMs = SystemClock.uptimeMillis() - currentTimeMs; in makeBinderConnection()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java965 long currentTimeMs = getCurrentPosition(); in handleMessageScheduleOfPrograms() local
977 } else if (item.getStartTimeUtcMillis() > currentTimeMs) { in handleMessageScheduleOfPrograms()
984 + (item.getStartTimeUtcMillis() - currentTimeMs)); in handleMessageScheduleOfPrograms()
988 item.getStartTimeUtcMillis() - currentTimeMs); in handleMessageScheduleOfPrograms()
1919 long currentTimeMs = getCurrentPosition(); in getCurrentProgram() local
1921 if (item.getStartTimeUtcMillis() <= currentTimeMs in getCurrentProgram()
1922 && item.getEndTimeUtcMillis() >= currentTimeMs) { in getCurrentProgram()
DTunerSessionWorker.java1010 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/
DBatteryUtilsTest.java448 final long currentTimeMs = System.currentTimeMillis(); in testCalculateLastFullChargeTime() local
450 currentTimeMs - TIME_SINCE_LAST_FULL_CHARGE_MS); in testCalculateLastFullChargeTime()
453 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()