Home
last modified time | relevance | path

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

12

/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/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java180 when(mClock.millis()).thenReturn(now.toInstant().toEpochMilli()); in testGetMultipathPreference()
205 snoozeWarning ? recurrenceStart.toEpochMilli() + 1 : SNOOZE_NEVER, in testGetMultipathPreference()
206 snoozeLimit ? recurrenceStart.toEpochMilli() + 1 : SNOOZE_NEVER, in testGetMultipathPreference()
224 eq(startOfDay.toInstant().toEpochMilli()), in testGetMultipathPreference()
225 eq(now.toInstant().toEpochMilli()))).thenReturn(usedBytesToday); in testGetMultipathPreference()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java248 start.toInstant().toEpochMilli(), in getDailyNonDefaultDataUsage()
249 end.toInstant().toEpochMilli()); in getDailyNonDefaultDataUsage()
277 final long start = cycle.getLower().toInstant().toEpochMilli(); in getRemainingDailyBudget()
278 final long end = cycle.getUpper().toInstant().toEpochMilli(); in getRemainingDailyBudget()
299 .toInstant().toEpochMilli(); in getUserPolicyOpportunisticQuotaBytes()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DNetworkCycleDataLoader.java95 final long cycleStart = cycle.first.toInstant().toEpochMilli(); in loadPolicyData()
96 final long cycleEnd = cycle.second.toInstant().toEpochMilli(); in loadPolicyData()
DDataUsageController.java130 start = cycle.getLower().toInstant().toEpochMilli(); in getDataUsageInfo()
131 end = cycle.getUpper().toInstant().toEpochMilli(); in getDataUsageInfo()
/frameworks/base/core/tests/benchmarks/src/android/text/format/
DAndroidTimeVsOthersBenchmark.java52 answer = time.toInstant(offset).toEpochMilli(); in toMillis_javaTime()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1175 final long cycleStart = cycle.first.toInstant().toEpochMilli();
1176 final long cycleEnd = cycle.second.toInstant().toEpochMilli();
1731 final long start = cycle.first.toInstant().toEpochMilli(); in updateNetworkEnabledNL()
1732 final long end = cycle.second.toInstant().toEpochMilli(); in updateNetworkEnabledNL()
1916 final long start = cycle.first.toInstant().toEpochMilli();
1917 final long end = cycle.second.toInstant().toEpochMilli();
2013 final long start = cycle.getLower().toInstant().toEpochMilli();
2014 final long end = cycle.getUpper().toInstant().toEpochMilli();
2018 .toInstant().toEpochMilli();
2025 1 + ((end - now.toEpochMilli() - 1) / TimeUnit.DAYS.toMillis(1));
[all …]
DNetworkStatsCollection.java272 final long cycleStart = cycle.getLower().toInstant().toEpochMilli(); in getHistory()
273 final long cycleEnd = cycle.getUpper().toInstant().toEpochMilli(); in getHistory()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/color/
DColorDisplayServiceTest.java1321 .toEpochMilli(); in getTwilightStateRelativeToNow()
1325 .toEpochMilli(); in getTwilightStateRelativeToNow()
1330 .toEpochMilli(); in getTwilightStateRelativeToNow()
1335 .toEpochMilli(); in getTwilightStateRelativeToNow()
/frameworks/base/services/core/java/com/android/server/location/
DLocationUsageLogger.java230 long currentHour = Instant.now().toEpochMilli() / ONE_HOUR_IN_MILLIS; in hitApiUsageLogCap()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleDataLoaderTest.java122 final long nowInMs = now.toInstant().toEpochMilli(); in loadPolicyData_shouldRecordUsageFromPolicyCycle()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMissedIncomingCallSmsFilter.java144 return instant.toEpochMilli(); in getEpochTime()
/frameworks/base/core/java/android/app/admin/
DSystemUpdatePolicy.java681 .toEpochMilli(); in dateToMillis()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java935 if (cycle.getLower().toInstant().toEpochMilli() < currentTime) {
936 return cycle.getLower().toInstant().toEpochMilli();
946 return policy.cycleIterator().next().getUpper().toInstant().toEpochMilli();
1951 return ZonedDateTime.parse(time).toInstant().toEpochMilli(); in parseTime()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DSystemUpdatePolicyTest.java511 .toInstant().toEpochMilli(); in toMillis()
/frameworks/base/core/java/android/widget/
DDateTimeView.java538 return instant.toEpochMilli(); in toEpochMillis()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java392 final long millis = next.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli(); in customTime_alarmSetInTheFutureWhenOn()
/frameworks/base/services/core/java/com/android/server/display/color/
DColorDisplayService.java1004 final long millis = next.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli(); in updateNextAlarm()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java1144 final long millis = next.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli(); in scheduleNextCustomTimeListener()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DBearerData.java319 return instant.toEpochMilli(); in toMillis()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java5845 Instant.now().plus(1, ChronoUnit.HOURS).toEpochMilli()); in reportRuntimeAppOpAccessMessageAndGetConfig()
5856 Instant.now().plus(1, ChronoUnit.HOURS).toEpochMilli()); in reportRuntimeAppOpAccessMessageAndGetConfig()
5978 Math.max(Instant.now().minus(7, ChronoUnit.DAYS).toEpochMilli(), 0), in initializeRarelyUsedPackagesList()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java3539 Math.max(Instant.now().minus(1, ChronoUnit.DAYS).toEpochMilli(), 0),
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/base/config/
Dboot-image-profile.txt34934 HSPLjava/time/Instant;->toEpochMilli()J

12