Home
last modified time | relevance | path

Searched refs:toEpochMilli (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DCacheOomRankerTest.java209 NOW.minus(40, ChronoUnit.MINUTES).toEpochMilli(), 10 * 1024L, 1000); in reRankLruCachedApps_lruImpactsOrdering()
212 NOW.minus(42, ChronoUnit.MINUTES).toEpochMilli(), 20 * 1024L, 2000); in reRankLruCachedApps_lruImpactsOrdering()
215 NOW.minus(60, ChronoUnit.MINUTES).toEpochMilli(), 1024L, 10000); in reRankLruCachedApps_lruImpactsOrdering()
218 NOW.minus(15, ChronoUnit.MINUTES).toEpochMilli(), 100 * 1024L, 10); in reRankLruCachedApps_lruImpactsOrdering()
221 NOW.minus(17, ChronoUnit.MINUTES).toEpochMilli(), 1024L, 20); in reRankLruCachedApps_lruImpactsOrdering()
225 NOW.minus(30, ChronoUnit.MINUTES).toEpochMilli(), 1024L, 20); in reRankLruCachedApps_lruImpactsOrdering()
250 NOW.minus(40, ChronoUnit.MINUTES).toEpochMilli(), 10 * 1024L, 1000); in reRankLruCachedApps_rssImpactsOrdering()
253 NOW.minus(42, ChronoUnit.MINUTES).toEpochMilli(), 20 * 1024L, 2000); in reRankLruCachedApps_rssImpactsOrdering()
256 NOW.minus(60, ChronoUnit.MINUTES).toEpochMilli(), 1024L, 10000); in reRankLruCachedApps_rssImpactsOrdering()
259 NOW.minus(15, ChronoUnit.MINUTES).toEpochMilli(), 100 * 1024L, 10); in reRankLruCachedApps_rssImpactsOrdering()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DTestUtils.java33 return toEpochMilli(LocalDateTime.parse(str, formatter)); in timestamp()
36 private static long toEpochMilli(LocalDateTime localDateTime) { in toEpochMilli() method in TestUtils
37 return localDateTime.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli(); in toEpochMilli()
/frameworks/base/services/people/java/com/android/server/people/data/
DEventIndex.java311 private static long toEpochMilli(LocalDateTime localDateTime) { in toEpochMilli() method in EventIndex
312 return localDateTime.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli(); in toEpochMilli()
394 return Range.create(toEpochMilli(beginTime), toEpochMilli(beginTime.plusDays(1))); in createOneDayLongTimeSlot()
405 return Range.create(toEpochMilli(beginTime), toEpochMilli(beginTime.plusHours(4))); in createFourHoursLongTimeSlot()
414 return Range.create(toEpochMilli(beginTime), toEpochMilli(beginTime.plusHours(1))); in createOneHourLongTimeSlot()
425 return Range.create(toEpochMilli(beginTime), toEpochMilli(beginTime.plusMinutes(2))); in createTwoMinutesLongTimeSlot()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DPowerStatsSchedulerTest.java76 mClock.currentTime = Instant.parse("2023-01-02T03:04:05.00Z").toEpochMilli(); in setup()
190 Instant.parse("2007-12-03T10:13:30.00Z").toEpochMilli())).isEqualTo( in alignToWallClock()
196 Instant.parse("2007-12-03T10:57:15.00Z").toEpochMilli())).isEqualTo( in alignToWallClock()
202 Instant.parse("2007-12-03T10:14:45.00Z").toEpochMilli())).isEqualTo( in alignToWallClock()
209 Instant.parse("2007-12-03T10:13:30.00Z").toEpochMilli())).isEqualTo( in alignToWallClock()
/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/
DTimeDetectorStrategyImplTest.java430 suggestionInstant.toEpochMilli()); in testSuggestTelephonyTime_autoTimeDisabled_suggestionMatchesSystemClock()
467 suggestionInstant.toEpochMilli()); in testSuggestTelephonyTime_autoTimeDisabled_suggestionMismatchesSystemClock()
502 initialClockInstant.plusMillis(timeElapsedMillis + 1_000_000).toEpochMilli()); in testSuggestTelephonyTime_autoTimeDisabled_suggestionMismatchesSystemClock2()
713 .verifySystemClockWasSetAndResetCallTracking(aboveLowerBound.toEpochMilli()); in testSuggestTelephonyTime_notRejectedAboveLowerBound()
749 .verifySystemClockWasSetAndResetCallTracking(belowUpperBound.toEpochMilli()); in testSuggestTelephonyTime_notRejectedBelowUpperBound()
923 .verifySystemClockWasSetAndResetCallTracking(belowUpperBound.toEpochMilli()); in testSuggestManualTime_notRejectedBelowUpperBound()
961 .verifySystemClockWasSetAndResetCallTracking(aboveLowerBound.toEpochMilli()); in testSuggestManualTimes_notRejectedAboveLowerBound()
1122 .verifySystemClockWasSetAndResetCallTracking(aboveLowerBound.toEpochMilli()); in testSuggestNetworkTime_notRejectedAboveLowerBound()
1174 .verifySystemClockWasSetAndResetCallTracking(belowUpperBound.toEpochMilli()); in testSuggestNetworkTime_notRejectedBelowUpperBound()
1252 .verifySystemClockWasSetAndResetCallTracking(aboveLowerBound.toEpochMilli()); in testSuggestGnssTime_notRejectedAboveLowerBound()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DPowerUtilTest.java93 var currentTimeMs = Instant.parse("2024-06-06T15:00:00Z").toEpochMilli(); in getTargetTimeShortString_lessThan15Minutes_returnsTimeShortStringWithoutRounded()
107 var currentTimeMs = Instant.parse("2024-06-06T15:00:00Z").toEpochMilli(); in getTargetTimeShortString_moreThan15Minutes_returnsTimeShortStringWithRounded()
/frameworks/base/services/core/java/com/android/server/timedetector/
DConfigurationInternal.java277 + "(" + mAutoSuggestionLowerBound.toEpochMilli() + ")" in toString()
279 + "(" + mManualSuggestionLowerBound.toEpochMilli() + ")" in toString()
281 + "(" + mSuggestionUpperBound.toEpochMilli() + ")" in toString()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java265 start.toInstant().toEpochMilli(), in getDailyNonDefaultDataUsage()
266 end.toInstant().toEpochMilli()); in getDailyNonDefaultDataUsage()
293 final long start = cycle.getLower().toInstant().toEpochMilli(); in getRemainingDailyBudget()
294 final long end = cycle.getUpper().toInstant().toEpochMilli(); in getRemainingDailyBudget()
315 .toInstant().toEpochMilli(); in getUserPolicyOpportunisticQuotaBytes()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DNetworkCycleDataLoader.java84 final long cycleStart = cycle.first.toInstant().toEpochMilli(); in loadPolicyData()
85 final long cycleEnd = cycle.second.toInstant().toEpochMilli(); in loadPolicyData()
DDataUsageController.java104 start = cycle.getLower().toInstant().toEpochMilli(); in getDataUsageInfo()
105 end = cycle.getUpper().toInstant().toEpochMilli(); in getDataUsageInfo()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionTimestampStore.java110 mSharedPreferences.edit().putLong(TIMESTAMP_PREF_KEY, timestamp.toEpochMilli()).apply(); in setLastActiveSessionTimestamp()
/frameworks/base/core/tests/benchmarks/src/android/text/format/
DAndroidTimeVsOthersBenchmark.java52 answer = time.toInstant(offset).toEpochMilli(); in toMillis_javaTime()
/frameworks/base/core/tests/coretests/src/android/net/
DSntpClientTest.java221 long expectedOffset = serverTime.toEpochMilli() - clientTime.toEpochMilli(); in checkRequestTimeCalcs()
224 assertNearlyEquals(clientTime.toEpochMilli() + expectedOffset, in checkRequestTimeCalcs()
/frameworks/base/core/tests/coretests/src/com/android/internal/security/
DVerityUtilsTest.java350 new Date(now.minus(Duration.ofDays(1)).toEpochMilli()),
351 new Date(now.plus(Duration.ofDays(1)).toEpochMilli()),
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNitzData.java111 .toEpochMilli(); in parse()
DMissedIncomingCallSmsFilter.java146 return instant.toEpochMilli(); in getEpochTime()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/util/
DUceUtils.java375 retryTimeMillis = retryTime.get().toEpochMilli(); in getDeviceStateSharedPrefValue()
382 exitStateTimeMillis = exitStateTime.get().toEpochMilli(); in getDeviceStateSharedPrefValue()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/color/
DColorDisplayServiceTest.java1353 .toEpochMilli(); in getTwilightStateRelativeToNow()
1357 .toEpochMilli(); in getTwilightStateRelativeToNow()
1362 .toEpochMilli(); in getTwilightStateRelativeToNow()
1367 .toEpochMilli(); in getTwilightStateRelativeToNow()
/frameworks/base/services/core/java/com/android/server/location/injector/
DLocationUsageLogger.java241 long currentHour = Instant.now().toEpochMilli() / ONE_HOUR_IN_MILLIS; in hitApiUsageLogCap()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1684 final long cycleStart = cycle.first.toInstant().toEpochMilli();
1685 final long cycleEnd = cycle.second.toInstant().toEpochMilli();
2232 final long start = cycle.first.toInstant().toEpochMilli(); in updateNetworkEnabledNL()
2233 final long end = cycle.second.toInstant().toEpochMilli(); in updateNetworkEnabledNL()
2418 final long start = cycle.first.toInstant().toEpochMilli();
2419 final long end = cycle.second.toInstant().toEpochMilli();
2523 final long start = cycle.getLower().toInstant().toEpochMilli();
2524 final long end = cycle.getUpper().toInstant().toEpochMilli();
2528 .toInstant().toEpochMilli();
2536 1 + ((end - now.toEpochMilli() - 1) / TimeUnit.DAYS.toMillis(1));
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHearingAidStatsLogUtilsTest.java176 return date.atStartOfDay(zoneId).toInstant().toEpochMilli(); in convertToStartOfDayTime()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleDataLoaderTest.java123 final long nowInMs = now.toInstant().toEpochMilli(); in loadPolicyData_shouldRecordUsageFromPolicyCycle()
/frameworks/base/services/core/java/com/android/server/appop/
DDiscreteRegistry.java291 ChronoUnit.MILLIS).toEpochMilli()); in addFilteredDiscreteOpsToHistoricalOps()
389 ChronoUnit.MILLIS).toEpochMilli(); in readDiscreteOpsFromDisk()
450 discreteOps.filter(0, Instant.now().toEpochMilli(), filter, uidFilter, packageNameFilter, in dump()
786 long currentTimeStamp = Instant.now().toEpochMilli(); in persistDiscreteOpsLocked()
816 ChronoUnit.MILLIS).toEpochMilli() > timestamp) { in deleteOldDiscreteHistoryFilesLocked()
/frameworks/base/core/java/android/net/
DSntpClient.java209 mNtpTime = responseTime.plus(clockOffsetDuration).toEpochMilli(); in requestTime()
/frameworks/base/core/java/android/widget/
DAnalogClock.java764 onTimeChanged(now.atZone(mClock.getZone()).toLocalTime(), now.toEpochMilli()); in onTimeChanged()
852 onTimeChanged(localTime, now.toEpochMilli());

12