Home
last modified time | relevance | path

Searched refs:ZonedDateTime (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowNetworkPolicyManager.java28 import java.time.ZonedDateTime;
37 private static Iterator<Pair<ZonedDateTime, ZonedDateTime>> sCycleIterator;
58 protected static Iterator<Pair<ZonedDateTime, ZonedDateTime>> cycleIterator( in cycleIterator()
64 Iterator<Pair<ZonedDateTime, ZonedDateTime>> cycleIterator) { in setCycleIterator() argument
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetylabel/
DTestSafetyLabels.kt24 import java.time.ZonedDateTime
33 val DATE_2022_09_01: Instant = ZonedDateTime.parse("2022-09-01T00:00:00.000Z").toInstant()
34 val DATE_2022_10_10: Instant = ZonedDateTime.parse("2022-10-10T00:00:00.000Z").toInstant()
35 val DATE_2022_10_12: Instant = ZonedDateTime.parse("2022-10-12T00:00:00.000Z").toInstant()
36 val DATE_2022_10_14: Instant = ZonedDateTime.parse("2022-10-14T00:00:00.000Z").toInstant()
37 val DATE_2022_12_10: Instant = ZonedDateTime.parse("2022-12-10T00:00:00.000Z").toInstant()
38 val DATE_2022_12_30: Instant = ZonedDateTime.parse("2022-12-30T00:00:00.000Z").toInstant()
DAppsSafetyLabelHistoryTest.kt40 import java.time.ZonedDateTime
235 private val DATE_2022_09_01 = ZonedDateTime.parse("2022-09-01T00:00:00.000Z").toInstant()
236 private val DATE_2022_10_10 = ZonedDateTime.parse("2022-10-10T00:00:00.000Z").toInstant()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/testutils/
DDateTimeTestUtil.kt21 import java.time.ZonedDateTime
23 fun zonedDateTime(epochMilli: Long): ZonedDateTime? =
24 ZonedDateTime.ofInstant(Instant.ofEpochMilli(epochMilli), ZoneId.systemDefault())
/packages/services/Car/service/src/com/android/car/watchdog/
DTimeSource.java21 import java.time.ZonedDateTime;
34 public ZonedDateTime getCurrentDateTime() { in getCurrentDateTime()
39 public ZonedDateTime getCurrentDate() { in getCurrentDate()
DWatchdogPerfHandler.java147 import java.time.ZonedDateTime;
282 private ZonedDateTime mLatestStatsReportDate;
301 private ZonedDateTime mLastSystemIoUsageSummaryReportedDate;
303 private ZonedDateTime mLastUidIoUsageSummaryReportedDate;
1243 ZonedDateTime systemIoUsageSummaryReportDate; in writeMetadataFile()
1244 ZonedDateTime uidIoUsageSummaryReportDate; in writeMetadataFile()
1313 ZonedDateTime curReportDate = mTimeSource.getCurrentDate(); in readFromDatabase()
1337 ZonedDateTime usageModifiedDate = lastModifiedDate.atZone(ZONE_OFFSET); in readFromDatabase()
1512 ZonedDateTime currentDate = mTimeSource.getCurrentDate(); in checkAndResetUserPackageKillableStatesLocked()
1556 ZonedDateTime currentDate = mTimeSource.getCurrentDate(); in checkAndHandleDateChange()
[all …]
DWatchdogStorage.java52 import java.time.ZonedDateTime;
308 ZonedDateTime currentDate = mTimeSource.getCurrentDate(); in getHistoricalIoOveruseStats()
392 ZonedDateTime currentDate = in getNotForgivenHistoricalIoOveruses()
427 ZonedDateTime currentDate = in forgiveHistoricalOveruses()
469 ZonedDateTime currentDate = mTimeSource.getCurrentDate(); in saveIoUsageStats()
482 ZonedDateTime statsDate = Instant.ofEpochSecond(ioOveruseStats.startTime) in saveIoUsageStats()
1251 public static void truncateToDate(SQLiteDatabase db, ZonedDateTime latestTruncateDate) { in truncateToDate()
1259 public static void trimHistoricalStats(SQLiteDatabase db, ZonedDateTime currentDate) { in trimHistoricalStats()
1284 private ZonedDateTime mLatestShrinkDate;
1316 ZonedDateTime currentDate = mTimeSource.getCurrentDate(); in onShrink()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DDataUsageEntryPreferenceControllerTest.java63 import java.time.ZonedDateTime;
236 Iterator<Range<ZonedDateTime>> cycle = new Iterator<Range<ZonedDateTime>>() { in refreshUi_hasPrimaryPlan_setsSummary()
243 public Range<ZonedDateTime> next() { in refreshUi_hasPrimaryPlan_setsSummary()
244 return new Range<>(ZonedDateTime.now(), ZonedDateTime.now()); in refreshUi_hasPrimaryPlan_setsSummary()
DDataUsageSummaryPreferenceControllerTest.java62 import java.time.ZonedDateTime;
313 ZonedDateTime start = ZonedDateTime.now(); in setSubscriptionPlan()
314 ZonedDateTime end = ZonedDateTime.now().plusDays(30); in setSubscriptionPlan()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DWearUtils.kt23 import java.time.ZonedDateTime
63 (ZonedDateTime.now().truncatedTo(ChronoUnit.DAYS).toEpochSecond() * 1000L) in getPermissionLastAccessSummaryTimestamp()
65 ZonedDateTime.now().minusDays(1).truncatedTo(ChronoUnit.DAYS).toEpochSecond() * 1000L in getPermissionLastAccessSummaryTimestamp()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/
DNetworkCycleBucketRepositoryTest.kt30 import java.time.ZonedDateTime
87 on { cycleIterator() } doReturn emptyList<Range<ZonedDateTime>>().iterator() in loadCycles_policyHasNoCycle_asFourWeeks()
186 private fun zonedDateTime(epochMilli: Long): ZonedDateTime? = in zonedDateTime()
187 ZonedDateTime.ofInstant(Instant.ofEpochMilli(epochMilli), ZoneId.systemDefault()) in zonedDateTime()
DNetworkCycleDataRepositoryTest.kt28 import java.time.ZonedDateTime
83 on { cycleIterator() } doReturn emptyList<Range<ZonedDateTime>>().iterator() in <lambda>()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/cpim/
DCpimUtils.java20 import java.time.ZonedDateTime;
40 .addHeader("DateTime", ZonedDateTime.now(ZoneId.systemDefault()).format( in createForText()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsCollectionTest.java81 import java.time.ZonedDateTime;
328 .createRecurringMonthly(ZonedDateTime.parse("2011-01-14T00:00:00.00Z")).build()); in testAugmentPlan()
331 .createRecurringMonthly(ZonedDateTime.parse("2011-01-14T00:00:00.00Z")) in testAugmentPlan()
335 .createRecurringMonthly(ZonedDateTime.parse("2011-01-14T00:00:00.00Z")) in testAugmentPlan()
339 .createNonrecurring(ZonedDateTime.parse("2012-01-09T09:00:00.00Z"), in testAugmentPlan()
340 ZonedDateTime.parse("2012-01-09T15:00:00.00Z")) in testAugmentPlan()
397 .createNonrecurring(ZonedDateTime.parse("2012-01-09T09:00:00.00Z"), in testAugmentPlan()
398 ZonedDateTime.parse("2012-01-09T15:00:00.00Z")) in testAugmentPlan()
454 .createNonrecurring(ZonedDateTime.parse("2012-01-09T09:00:00.00Z"), in testAugmentPlan()
455 ZonedDateTime.parse("2012-01-09T15:00:00.00Z")) in testAugmentPlan()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/dashboard/
DAutoPermissionUsageDetailsFragment.kt52 import java.time.ZonedDateTime
65 ZonedDateTime.now(ZoneId.systemDefault()).truncatedTo(ChronoUnit.DAYS).toEpochSecond() *
68 ZonedDateTime.now(ZoneId.systemDefault())
300 ZonedDateTime.ofInstant( in renderHistoryPreferences()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java91 import java.time.ZonedDateTime;
193 final ZonedDateTime now = ZonedDateTime.ofInstant( in prepareGetMultipathPreferenceTest()
195 final ZonedDateTime startOfDay = now.truncatedTo(ChronoUnit.DAYS); in prepareGetMultipathPreferenceTest()
213 ZonedDateTime.ofInstant( in prepareGetMultipathPreferenceTest()
236 final Range<ZonedDateTime> cycleOfTheMonth = recurrenceRule.cycleIterator().next(); in prepareGetMultipathPreferenceTest()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageEntryPreferenceController.java32 import java.time.ZonedDateTime;
74 Iterator<Range<ZonedDateTime>> cycle = defaultPlan.cycleIterator(); in formatUsedData()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DWatchdogStorageUnitTest.java64 import java.time.ZonedDateTime;
347 ZonedDateTime currentDate = mTimeSource.getCurrentDate(); in testGetHistoricalIoOveruseStats()
391 ZonedDateTime currentDate = mTimeSource.getCurrentDate(); in testGetHistoricalIoOveruseStatsWithNoRecentStats()
418 ZonedDateTime currentDate = mTimeSource.getCurrentDate(); in testGetDailySystemIoUsageSummaries()
453 ZonedDateTime currentDate = mTimeSource.getCurrentDate(); in testGetDailySystemIoUsageSummariesWithLowSystemTotalWrittenBytes()
479 ZonedDateTime currentDate = mTimeSource.getCurrentDate(); in testGetDailySystemIoUsageSummariesWithoutStats()
505 ZonedDateTime currentDate = mTimeSource.getCurrentDate(); in testGetTopUsersDailyIoUsageSummaries()
561 ZonedDateTime currentDate = mTimeSource.getCurrentDate(); in testGetTopUsersDailyIoUsageSummariesWithLowSystemTotalWrittenBytes()
587 ZonedDateTime currentDate = mTimeSource.getCurrentDate(); in testGetTopUsersDailyIoUsageSummariesWithoutStats()
771 ZonedDateTime currentDate = mTimeSource.getCurrentDate(); in testTruncateStatsOutsideRetentionPeriodOnDateChange()
[all …]
DWatchdogPerfHandlerUnitTest.java155 import java.time.ZonedDateTime;
666 ZonedDateTime systemIoUsageReportedDate = null; in testWriteMetadataFile()
667 ZonedDateTime uidIoUsageReportedDate = null; in testWriteMetadataFile()
687 systemIoUsageReportedDate = ZonedDateTime.parse(reader.nextString(), in testWriteMetadataFile()
691 uidIoUsageReportedDate = ZonedDateTime.parse(reader.nextString(), in testWriteMetadataFile()
2143 ZonedDateTime now = mTimeSource.getCurrentDateTime(); in testGetAllResourceOveruseStatsWithNoMinimumForPast7days()
2327 ZonedDateTime now = mTimeSource.getCurrentDateTime(); in testGetAllResourceOveruseStatsWithMinimumForPast7days()
2560 ZonedDateTime now = mTimeSource.getCurrentDateTime(); in testGetResourceOveruseStatsForUserPackageForPast7days()
3843 ZonedDateTime beginReportDate) { in verifyAndGetSystemIoUsageSummaries()
3844 ZonedDateTime beginWeekStartDate = beginReportDate.with(ChronoField.DAY_OF_WEEK, 1); in verifyAndGetSystemIoUsageSummaries()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/
DObexTime.java21 import java.time.ZonedDateTime;
131 GregorianCalendar.from(ZonedDateTime.ofInstant(mInstant, ZoneId.systemDefault())); in toString()
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
DDataWarningReceiverTest.java41 import java.time.ZonedDateTime;
77 .createRecurring(ZonedDateTime.parse("2007-03-14T00:00:00.000Z"), in testSnoozeWarningNotReceived()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/
DPermissionUsageDetailsFragment.java64 import java.time.ZonedDateTime;
329 ZonedDateTime.now(ZoneId.systemDefault()) in renderHistoryPreferences()
334 ZonedDateTime.now(ZoneId.systemDefault()) in renderHistoryPreferences()
345 ZonedDateTime.ofInstant( in renderHistoryPreferences()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/util/
DDateTimeUtilsTest.java31 import java.time.ZonedDateTime;
199 return ZonedDateTime.of(when.atTime(hour, minute, second), ZoneId.systemDefault()) in generateDateTimeMillisAt()
/packages/apps/Settings/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2.java99 import java.time.ZonedDateTime;
439 final ZonedDateTime now = mClock.now(); in getExpiryTimeSummary()
440 final ZonedDateTime expiryTime = ZonedDateTime.ofInstant( in getExpiryTimeSummary()
1026 public ZonedDateTime now() { in now()
1027 return ZonedDateTime.now(); in now()
/packages/modules/ConfigInfrastructure/service/java/com/android/server/deviceconfig/
DBootNotificationCreator.java26 import java.time.ZonedDateTime;
108 ZonedDateTime now = Instant in onPropertiesChanged()

12