Home
last modified time | relevance | path

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

12

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/
DLoadLastDateWithPriorityDataUseCaseTest.kt38 import java.time.LocalDate in <lambda>()
149 val dateWithData = LocalDate.of(2023, 10, 10) in <lambda>()
169 val dateWithData = LocalDate.of(2023, 9, 10) in <lambda>()
200 LocalDate.of(2023, 10, 1), in <lambda>()
202 LocalDate.of(2023, 7, 11), in <lambda>()
203 LocalDate.of(2023, 11, 1), in <lambda>()
204 LocalDate.of(2023, 11, 2), in <lambda>()
206 LocalDate.of(2023, 11, 4), in <lambda>()
209 LocalDate.of(2024, 11, 2)) in <lambda>()
212 val minDateWithin1Month = LocalDate.of(2023, 11, 1) in <lambda>()
[all …]
DSleepSessionHelperTest.kt14 import java.time.LocalDate
56 val sleepDate = LocalDate.of(2023, 2, 13) in <lambda>()
92 val sleepDate = LocalDate.of(2023, 2, 13) in clusterSessions_allSessionStartAndEndOnSameDay_withSessionUnknownStart_doesNotIncludeUnknownSessionInMinAndMax()
110 val pastSleepDate = LocalDate.of(2023, 2, 10) in clusterSessions_allSessionStartAndEndOnSameDay_withSessionUnknownStart_doesNotIncludeUnknownSessionInMinAndMax()
140 val sleepDate = LocalDate.of(2023, 2, 13) in clusterSessions_allSessionStartAndEndOnSameDay_withSessionUnknownStartEnd_doesNotIncludeUnknownSessionInMinAndMax()
158 val pastSleepSessionStartDate = LocalDate.of(2023, 2, 10) in clusterSessions_allSessionStartAndEndOnSameDay_withSessionUnknownStartEnd_doesNotIncludeUnknownSessionInMinAndMax()
186 val lastDateWithSleepData = LocalDate.of(2023, 2, 13) in clusterSessions_atLeastOneSessionStartsYesterdayAndEndsToday_includesCrossingSessionInMinAndMax()
187 val secondToLastDateWithData = LocalDate.of(2023, 2, 12) in clusterSessions_atLeastOneSessionStartsYesterdayAndEndsToday_includesCrossingSessionInMinAndMax()
240 val lastDateWithSleepData = LocalDate.of(2023, 2, 13) in clusterSessions_atLeastOneSessionStartsYesterdayAndEndsToday_withGaps_returnsCorrectMinAndMax()
241 val secondToLastDateWithSleepData = LocalDate.of(2023, 2, 12) in clusterSessions_atLeastOneSessionStartsYesterdayAndEndsToday_withGaps_returnsCorrectMinAndMax()
[all …]
DLoadMostRecentAggregationsUseCaseTest.kt21 import java.time.LocalDate
83 val stepsDate = LocalDate.of(2023, 4, 9) in <lambda>()
84 val distanceDate = LocalDate.of(2023, 2, 8) in <lambda>()
85 val caloriesDate = LocalDate.of(2023, 4, 19) in <lambda>()
121 val distanceDate = LocalDate.of(2023, 2, 8) in loadMostRecentAggregations_forActivity_whenNoStepsData_returnsInOrder_DistanceCalories()
122 val caloriesDate = LocalDate.of(2023, 4, 19) in loadMostRecentAggregations_forActivity_whenNoStepsData_returnsInOrder_DistanceCalories()
153 val stepsDate = LocalDate.of(2023, 4, 9) in loadMostRecentAggregations_forActivity_whenNoDistanceData_returnsInOrder_StepsCalories()
155 val caloriesDate = LocalDate.of(2023, 4, 19) in loadMostRecentAggregations_forActivity_whenNoDistanceData_returnsInOrder_StepsCalories()
186 val stepsDate = LocalDate.of(2023, 4, 9) in loadMostRecentAggregations_forActivity_whenNoCaloriesData_returnsInOrder_StepsDistance()
187 val distanceDate = LocalDate.of(2023, 2, 8) in loadMostRecentAggregations_forActivity_whenNoCaloriesData_returnsInOrder_StepsDistance()
[all …]
DLoadPriorityEntriesUseCaseTest.kt37 import java.time.LocalDate in <lambda>()
84 val sleepDate = LocalDate.of(2023, 2, 13) in <lambda>()
130 val sleepDate = LocalDate.of(2023, 2, 13) in <lambda>()
131 val pastSleepDate = LocalDate.of(2023, 2, 12) in <lambda>()
215 val noDataDate = LocalDate.of(2023, 2, 14) in <lambda>()
216 val sleepDate = LocalDate.of(2023, 2, 13) in <lambda>()
217 val pastSleepDate = LocalDate.of(2023, 2, 12) in <lambda>()
305 val queryDate = LocalDate.of(2023, 1, 4) in <lambda>()
317 val queryDate = LocalDate.of(2023, 1, 4) in <lambda>()
333 queryDate: LocalDate, in <lambda>()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/util/
DDateTimeUtilsTest.java28 import java.time.LocalDate;
37 private static LocalDate FAKE_DATE =
38 LocalDate.of(2020 /* year */, 7 /* month */, 7 /* dayOfMonth */);
58 final LocalDate whenDate = FAKE_DATE.minusDays(1); in testGetDateHeaderString_yesterday()
68 final LocalDate whenDate = FAKE_DATE.minusDays(3); in testGetDateHeaderString_weekday()
78 final LocalDate whenDate = FAKE_DATE.minusMonths(1); in testGetDateHeaderString_weekdayAndDate()
88 final LocalDate whenDate = FAKE_DATE.minusYears(1); in testGetDateHeaderString_weekdayDateAndYear()
104 final LocalDate whenDate = FAKE_DATE.minusMonths(1).minusDays(4);; in testCapitalizedInDifferentLanguages()
167 final LocalDate whenDate = FAKE_DATE.minusYears(1); in testIsSameDay_differentYear_false()
175 final LocalDate whenDate = FAKE_DATE.minusMonths(1); in testIsSameDay_differentMonth_false()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/api/
DLoadLastDateWithPriorityDataUseCase.kt31 import java.time.LocalDate in <lambda>()
55 ): UseCaseResults<LocalDate?> = in <lambda>()
57 var latestDateWithData: LocalDate? = null in <lambda>()
96 ): LocalDate? { in <lambda>()
113 val minDate: LocalDate = in <lambda>()
141 private fun maxDateOrNull(firstDate: LocalDate?, secondDate: LocalDate?): LocalDate? { in <lambda>()
151 suspend fun invoke(healthPermissionType: HealthPermissionType): UseCaseResults<LocalDate?>
DLoadMostRecentAggregationsUseCase.kt27 import java.time.LocalDate in <lambda>()
63 val lastDateWithData: LocalDate? in <lambda>()
81 val lastDateWithSleepData: LocalDate? in <lambda>()
104 lastDateWithData: LocalDate?, in <lambda>()
135 lastDateWithData: LocalDate? in <lambda>()
DLoadPriorityEntriesUseCase.kt13 import java.time.LocalDate in <lambda>()
34 localDate: LocalDate in <lambda>()
78 localDate: LocalDate
DSleepSessionHelper.kt17 import java.time.LocalDate in <lambda>()
38 lastDateWithData: LocalDate in <lambda>()
189 lastDateWithData: LocalDate in <lambda>()
205 lastDateWithData: LocalDate
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DGetActivityDatesTest.java43 import java.time.LocalDate;
68 List<LocalDate> activityDates = in testEmptyActivityDates()
82 List<LocalDate> activityDates = in testActivityDates()
98 List<LocalDate> activityDates = in testGetActivityDates_onUpdate()
132 List<LocalDate> updatedActivityDates = in testGetActivityDates_onUpdate()
150 List<LocalDate> activityDates = in testGetActivityDates_onDelete()
171 List<LocalDate> updatedActivityDates = in testGetActivityDates_onDelete()
209 private LocalDate getRecordDate(Record record) { in getRecordDate()
210 LocalDate activityDate; in getRecordDate()
213 LocalDate.ofInstant( in getRecordDate()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/aidl/
DActivityDatesResponseParcel.java23 import java.time.LocalDate;
31 private final List<LocalDate> mLocalDates;
33 public ActivityDatesResponseParcel(@NonNull List<LocalDate> localDates) { in ActivityDatesResponseParcel()
57 mLocalDates.add(LocalDate.parse(date)); in ActivityDatesResponseParcel()
62 public List<LocalDate> getDates() { in getDates()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DTimeExtensions.kt21 import java.time.LocalDate
36 val date = LocalDate.of(year, month, day) in getInstant()
44 fun Instant.toLocalDate(): LocalDate { in toLocalDate()
84 fun LocalDate.toInstantAtStartOfDay(): Instant { in toInstantAtStartOfDay() method
88 fun LocalDate.randomInstant(): Instant { in LocalDate() method
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/util/
DDateTimeUtils.java33 import java.time.LocalDate;
66 final LocalDate nowDate = LocalDate.now(zoneId); in getDateHeaderString()
86 static String getDateHeaderString(long when, LocalDate nowDate) { in getDateHeaderString()
89 final LocalDate whenDate = LocalDateTime.ofInstant(Instant.ofEpochMilli(when), in getDateHeaderString()
/packages/apps/Dialer/java/com/android/contacts/common/util/
DDateUtils.java20 import java.time.LocalDate;
38 LocalDate localDate1 = Instant.ofEpochMilli(date1).atZone(timeZone).toLocalDate(); in getDayDifference()
39 LocalDate localDate2 = Instant.ofEpochMilli(date2).atZone(timeZone).toLocalDate(); in getDayDifference()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DMigrationConstants.java19 import java.time.LocalDate;
51 static final LocalDate PREMATURE_MIGRATION_TIMEOUT_DATE = LocalDate.of(2023, 6, 15);
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DActivityDateHelper.java40 import java.time.LocalDate;
91 public static List<LocalDate> getActivityDates( in getActivityDates()
195 private static List<LocalDate> readDates(@NonNull ReadTableRequest request) { in readDates()
198 List<LocalDate> dates = new ArrayList<>(); in readDates()
201 dates.add(LocalDate.ofEpochDay(epochDay)); in readDates()
216 ChronoUnit.DAYS.between(LocalDate.EPOCH, recordInternal.getLocalDate())); in getUpsertTableRequest()
DInstantRecordHelper.java37 import java.time.LocalDate;
136 LocalDate.ofEpochDay(0), in populateContentValues()
137 LocalDate.ofInstant( in populateContentValues()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DInstantRecordInternal.java24 import java.time.LocalDate;
50 public LocalDate getLocalDate() { in getLocalDate()
51 return LocalDate.ofInstant(this.getTime(), this.getZoneOffset()); in getLocalDate()
DIntervalRecordInternal.java23 import java.time.LocalDate;
122 public LocalDate getLocalDate() { in getLocalDate()
123 return LocalDate.ofInstant(this.getStartTime(), this.getStartZoneOffset()); in getLocalDate()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DDataMigrationTest.java100 import java.time.LocalDate;
141 private final LocalDate mStartDate =
142 LocalDate.ofInstant(
145 private final LocalDate mEndDate =
146 LocalDate.ofInstant(
247 List<LocalDate> activityDates = TestUtils.getActivityDates(List.of(record.getClass())); in migrateHeight_clientRecordId_heightSaved()
267 List<LocalDate> activityDates = TestUtils.getActivityDates(List.of(record.getClass())); in migrateHeight_uuid_heightSaved()
304 List<LocalDate> activityDates = in migrateHeightUsingSharedMemory_heightSaved()
326 List<LocalDate> activityDates = TestUtils.getActivityDates(List.of(record.getClass())); in migrateSteps_clientRecordId_stepsSaved()
347 List<LocalDate> activityDates = TestUtils.getActivityDates(List.of(record.getClass())); in migrateSteps_uuid_stepsSaved()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/
DFakeComponents.kt65 import java.time.LocalDate
212 lastDateWithData: LocalDate in clusterSleepSessions()
227 private var priorityEntries = mutableMapOf<LocalDate, List<Record>>()
233 localDate: LocalDate in invoke()
239 fun setEntriesList(localDate: LocalDate, list: List<Record>) { in setEntriesList()
379 private var lastDateWithPriorityDataMap = mutableMapOf<HealthPermissionType, LocalDate?>()
385 localDate: LocalDate? in setLastDateWithPriorityDataForHealthPermissionType()
397 ): UseCaseResults<LocalDate?> { in invoke()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/api/
DLoadDataEntriesUseCaseTest.kt28 import java.time.LocalDate in <lambda>()
70 val stepsDate = LocalDate.of(2023, 4, 5) in <lambda>()
109 val sleepDate = LocalDate.of(2021, 9, 13) in <lambda>()
143 args.arguments[2] as OutcomeReceiver<List<LocalDate>, HealthConnectException> in <lambda>()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/fieldviews/
DDateTimePicker.kt29 import java.time.LocalDate in <lambda>()
112 val localDate: LocalDate = LocalDate.of(mSelectedYear, mSelectedMonth, mSelectedDay) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/
DTimeExtensionsTest.kt32 import java.time.LocalDate
62 val expected = LocalDate.of(2023, 2, 13) in instantToLocalDate_returnsCorrectLocalDate()
184 val testLocalDate = LocalDate.of(2021, 10, 1) in localDateToInstantAtStartOfDay_returnsCorrectInstant()
205 val localDate = LocalDate.of(2023, 7, 18) in localDateRandomInstant_returnsInstantOnTheLocalDate()
/packages/services/Telephony/tests/src/com/android/phone/slice/
DSlicePurchaseControllerTest.java73 import java.time.LocalDate;
238 mSlicePurchaseController.setLocalDate(LocalDate.of(YEAR, MONTH, DATE)); in testUpdateNotificationCounts()
243 mSlicePurchaseController.setLocalDate(LocalDate.of(YEAR, MONTH, DATE + 1)); in testUpdateNotificationCounts()
250 mSlicePurchaseController.setLocalDate(LocalDate.of(YEAR, MONTH + 1, DATE + 1)); in testUpdateNotificationCounts()
257 mSlicePurchaseController.setLocalDate(LocalDate.of(YEAR + 1, MONTH + 1, DATE + 1)); in testUpdateNotificationCounts()
264 mSlicePurchaseController.setLocalDate(LocalDate.of(YEAR + 2, MONTH + 2, DATE + 1)); in testUpdateNotificationCounts()
271 mSlicePurchaseController.setLocalDate(LocalDate.of(YEAR + 3, MONTH + 2, DATE + 2)); in testUpdateNotificationCounts()
278 mSlicePurchaseController.setLocalDate(LocalDate.of(YEAR + 3, MONTH + 3, DATE + 3)); in testUpdateNotificationCounts()
678 mSlicePurchaseController.setLocalDate(LocalDate.of(YEAR, MONTH, DATE)); in testPurchasePremiumCapabilityResultNotificationThrottled()
694 mSlicePurchaseController.setLocalDate(LocalDate.of(YEAR, MONTH, DATE + 1)); in testPurchasePremiumCapabilityResultNotificationThrottled()

12