/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/ |
D | AppDataUsageFragmentTest.java | 47 import java.time.ZonedDateTime; 62 private Iterator<Pair<ZonedDateTime, ZonedDateTime>> mIterator; 97 ArrayList<Pair<ZonedDateTime, ZonedDateTime>> list = new ArrayList<>(); in onActivityCreated_iteratorIsEmpty_startAndEndDateShouldHaveFourWeeksDifference() 114 ZonedDateTime start1 = ZonedDateTime.now(); in onActivityCreated_iteratorIsNotEmpty_startAndEndDateShouldBeLastOneInIterator() 115 ZonedDateTime end1 = ZonedDateTime.now(); in onActivityCreated_iteratorIsNotEmpty_startAndEndDateShouldBeLastOneInIterator() 116 ZonedDateTime start2 = ZonedDateTime.now(); in onActivityCreated_iteratorIsNotEmpty_startAndEndDateShouldBeLastOneInIterator() 117 ZonedDateTime end2 = ZonedDateTime.now(); in onActivityCreated_iteratorIsNotEmpty_startAndEndDateShouldBeLastOneInIterator() 122 ArrayList<Pair<ZonedDateTime, ZonedDateTime>> list = new ArrayList<>(); in onActivityCreated_iteratorIsNotEmpty_startAndEndDateShouldBeLastOneInIterator() 154 private Iterator<Pair<ZonedDateTime, ZonedDateTime>> mIterator; 157 Iterator<Pair<ZonedDateTime, ZonedDateTime>> cycleIterator) { in newInstance() argument [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowNetworkPolicyManager.java | 28 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/apps/Car/Calendar/src/com/android/car/calendar/common/ |
D | EventsLiveData.java | 44 import java.time.ZonedDateTime; 125 ZonedDateTime now = ZonedDateTime.now(mClock); in getEventsUntilTomorrow() 128 ZonedDateTime startDateTime = now.truncatedTo(DAYS); in getEventsUntilTomorrow() 129 ZonedDateTime endDateTime = startDateTime.plusDays(2).truncatedTo(ChronoUnit.DAYS); in getEventsUntilTomorrow() 163 private Cursor createEventsCursor(ZonedDateTime startDateTime, ZonedDateTime endDateTime) { in createEventsCursor() 299 ZonedDateTime now = ZonedDateTime.now(mClock); in updateAndScheduleNext() 300 ZonedDateTime truncatedNowTime = now.truncatedTo(MINUTES); in updateAndScheduleNext() 301 ZonedDateTime updateTime = truncatedNowTime.plus(1, MINUTES); in updateAndScheduleNext()
|
D | CalendarFormatter.java | 34 import java.time.ZonedDateTime; 97 ZonedDateTime zonedDateTime = localDate.atStartOfDay(mClock.getZone()); in getDateText()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | AppDataUsageFragment.java | 38 import java.time.ZonedDateTime; 117 Iterator<Pair<ZonedDateTime, ZonedDateTime>> it = getCycleIterator(policy); in getBundleForNetworkStats() 119 Pair<ZonedDateTime, ZonedDateTime> cycle = it.next(); in getBundleForNetworkStats() 152 Iterator<Pair<ZonedDateTime, ZonedDateTime>> getCycleIterator(NetworkPolicy policy) { in getCycleIterator()
|
D | DataUsageEntryPreferenceController.java | 32 import java.time.ZonedDateTime; 74 Iterator<Range<ZonedDateTime>> cycle = defaultPlan.cycleIterator(); in formatUsedData()
|
/packages/apps/Car/Calendar/tests/unit/src/com/android/car/calendar/common/ |
D | EventsLiveDataTest.java | 66 import java.time.ZonedDateTime; 77 private static final ZonedDateTime CURRENT_DATE_TIME = 360 ZonedDateTime expectedStartTime = CURRENT_DATE_TIME.truncatedTo(HOURS); in multiDayEvent_keepsOriginalTimes() 362 ZonedDateTime expectedEndTime = expectedStartTime.plus(hours, HOURS); in multiDayEvent_keepsOriginalTimes() 369 ZonedDateTime twoHoursAfterCurrentTime = CURRENT_DATE_TIME.plus(Duration.ofHours(2)); in multipleEvents_resultsSortedStart() 413 ZonedDateTime utcMidnightStart = in allDayEvent_timesSetToLocal() 434 ZonedDateTime utcMidnightStart = in allDayEvent_queryCoversLocalDayStart() 595 void setTime(ZonedDateTime time) { in setTime() 625 static long addHoursAndTruncate(ZonedDateTime dateTime, int hours) { 629 static Object[] buildTestRowWithDuration(ZonedDateTime startDateTime, int eventDurationHours) { [all …]
|
D | CalendarFormatterTest.java | 31 import java.time.ZonedDateTime; 37 private static final ZonedDateTime CURRENT_DATE_TIME =
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | CycleAdapter.java | 29 import java.time.ZonedDateTime; 93 final Iterator<Pair<ZonedDateTime, ZonedDateTime>> it = NetworkPolicyManager in updateCycleList() 96 final Pair<ZonedDateTime, ZonedDateTime> cycle = it.next(); in updateCycleList()
|
/packages/apps/Car/Calendar/tests/ui/src/com/android/car/calendar/ |
D | CarCalendarUiTest.java | 67 import java.time.ZonedDateTime; 81 private static final ZonedDateTime CURRENT_DATE_TIME = 83 private static final ZonedDateTime START_DATE_TIME = 198 ZonedDateTime utcDayStartTime = in singleAllDayEvent_notCollapsed() 301 ZonedDateTime utcDayStartTime = in buildTestRowAllDay() 307 ZonedDateTime startDateTime, int eventDurationHours, String title, boolean allDay) { in buildTestRow()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 77 import java.time.ZonedDateTime; 295 .createRecurringMonthly(ZonedDateTime.parse("2011-01-14T00:00:00.00Z")).build()); in testAugmentPlan() 298 .createRecurringMonthly(ZonedDateTime.parse("2011-01-14T00:00:00.00Z")) in testAugmentPlan() 302 .createRecurringMonthly(ZonedDateTime.parse("2011-01-14T00:00:00.00Z")) in testAugmentPlan() 306 .createNonrecurring(ZonedDateTime.parse("2012-01-09T09:00:00.00Z"), in testAugmentPlan() 307 ZonedDateTime.parse("2012-01-09T15:00:00.00Z")) in testAugmentPlan() 362 .createNonrecurring(ZonedDateTime.parse("2012-01-09T09:00:00.00Z"), in testAugmentPlan() 363 ZonedDateTime.parse("2012-01-09T15:00:00.00Z")) in testAugmentPlan() 417 .createNonrecurring(ZonedDateTime.parse("2012-01-09T09:00:00.00Z"), in testAugmentPlan() 418 ZonedDateTime.parse("2012-01-09T15:00:00.00Z")) in testAugmentPlan() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | DataUsageSummaryPreferenceControllerTest.java | 60 import java.time.ZonedDateTime; 370 ZonedDateTime start = ZonedDateTime.now(); in setSubscriptionPlan() 371 ZonedDateTime end = ZonedDateTime.now().plusDays(30); in setSubscriptionPlan()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | MultipathPolicyTrackerTest.java | 88 import java.time.ZonedDateTime; 191 final ZonedDateTime now = ZonedDateTime.ofInstant( in testGetMultipathPreference() 193 final ZonedDateTime startOfDay = now.truncatedTo(ChronoUnit.DAYS); in testGetMultipathPreference() 206 ZonedDateTime.ofInstant( in testGetMultipathPreference()
|
/packages/apps/Settings/src/com/android/settings/core/instrumentation/ |
D | SettingsIntelligenceLogWriter.java | 42 import java.time.ZonedDateTime; 119 final ZonedDateTime now = ZonedDateTime.now(ZoneId.systemDefault()); in action()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/cpim/ |
D | CpimUtils.java | 20 import java.time.ZonedDateTime; 40 .addHeader("DateTime", ZonedDateTime.now(ZoneId.systemDefault()).format( in createForText()
|
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | DataWarningReceiverTest.java | 41 import java.time.ZonedDateTime; 77 .createRecurring(ZonedDateTime.parse("2007-03-14T00:00:00.000Z"), in testSnoozeWarningNotReceived()
|
/packages/apps/Settings/src/com/android/settings/wifi/details2/ |
D | WifiDetailPreferenceController2.java | 102 import java.time.ZonedDateTime; 464 final ZonedDateTime now = mClock.now(); in getExpiryTimeSummary() 465 final ZonedDateTime expiryTime = ZonedDateTime.ofInstant( in getExpiryTimeSummary() 1074 public ZonedDateTime now() { in now() 1075 return ZonedDateTime.now(); in now()
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | WatchdogPerfHandler.java | 83 import java.time.ZonedDateTime; 128 private ZonedDateTime mLastStatsReportUTC; 141 mLastStatsReportUTC = ZonedDateTime.now(ZoneOffset.UTC); in WatchdogPerfHandler() 666 ZonedDateTime previousUTC = mLastStatsReportUTC; in checkAndHandleDateChangeLocked() 667 mLastStatsReportUTC = ZonedDateTime.now(ZoneOffset.UTC); in checkAndHandleDateChangeLocked()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/ |
D | WifiDetailPreferenceController2Test.java | 108 import java.time.ZonedDateTime; 560 private void doShouldShowRemainingTimeTest(ZonedDateTime now, long timeRemainingMs) { in doShouldShowRemainingTimeTest() 579 final ZonedDateTime fakeNow = ZonedDateTime.of(2020, 1, 2, 3, 4, 5, 6, in entityHeader_shouldShowShortRemainingTime() 599 final ZonedDateTime fakeNow = ZonedDateTime.of(2020, 1, 2, 3, 4, 5, 6, in entityHeader_shouldShowExpiryDate()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/ |
D | PermissionDetailsFragment.java | 69 import java.time.ZonedDateTime; 415 final long midnightToday = ZonedDateTime.now().truncatedTo(ChronoUnit.DAYS).toEpochSecond() in updateUI()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
D | Utils.java | 100 import java.time.ZonedDateTime; 1211 long midnightToday = ZonedDateTime.now().truncatedTo(ChronoUnit.DAYS).toEpochSecond() in getPermissionLastAccessSummaryTimestamp()
|