Home
last modified time | relevance | path

Searched refs:currentTimeMs (Results 1 – 21 of 21) 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/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/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/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/services/Car/service/src/com/android/car/audio/
DCarAudioUtils.java23 static boolean hasExpired(long startTimeMs, long currentTimeMs, int timeoutMs) { in hasExpired() argument
24 return (currentTimeMs - startTimeMs) > timeoutMs; in hasExpired()
/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/cpp/watchdog/car-watchdog-lib/src/android/car/watchdoglib/
DCarWatchdogDaemonHelper.java324 long currentTimeMs = SystemClock.uptimeMillis(); in makeBinderConnection() local
330 long elapsedTimeMs = SystemClock.uptimeMillis() - currentTimeMs; in makeBinderConnection()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java990 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()
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/modules/Connectivity/framework/src/android/net/
DNetworkAgent.java525 long currentTimeMs = System.currentTimeMillis(); in handleMessage() local
529 if (currentTimeMs >= (mLastBwRefreshTime + BW_REFRESH_MIN_WIN_MS)) { in handleMessage()
538 - currentTimeMs + 1; in handleMessage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java263 final long currentTimeMs = System.currentTimeMillis(); in testCalculateLastFullChargeTime() local
265 currentTimeMs - TIME_SINCE_LAST_FULL_CHARGE_MS); in testCalculateLastFullChargeTime()
267 assertThat(mBatteryUtils.calculateLastFullChargeTime(mBatteryUsageStats, currentTimeMs)) in testCalculateLastFullChargeTime()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java298 long currentTimeMs) { in calculateLastFullChargeTime() argument
299 return currentTimeMs - batteryUsageStats.getStatsStartTimestamp(); in calculateLastFullChargeTime()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java3064 long currentTimeMs = 67823; in testHandleUserSwitchDoesNotChangeSharedNetworksId() local
3065 when(mClock.getWallClockMillis()).thenReturn(currentTimeMs); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
5054 long currentTimeMs = disableTimeMs; in verifyExpiryOfTimeout() local
5055 when(mClock.getWallClockMillis()).thenReturn(currentTimeMs); in verifyExpiryOfTimeout()
5059 currentTimeMs = disableTimeMs in verifyExpiryOfTimeout()
5061 when(mClock.getWallClockMillis()).thenReturn(currentTimeMs); in verifyExpiryOfTimeout()
5067 currentTimeMs = currentTimeMs in verifyExpiryOfTimeout()
5069 when(mClock.getWallClockMillis()).thenReturn(currentTimeMs); in verifyExpiryOfTimeout()
5073 currentTimeMs = currentTimeMs in verifyExpiryOfTimeout()
5075 when(mClock.getWallClockMillis()).thenReturn(currentTimeMs); in verifyExpiryOfTimeout()
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java1406 long currentTimeMs = SystemClock.uptimeMillis(); in makeBinderConnection() local
1413 long elapsedTimeMs = SystemClock.uptimeMillis() - currentTimeMs; in makeBinderConnection()