/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/datenavigation/ |
D | DatePickerSpinnerAdapter.kt | 27 private val timeSource: TimeSource = SystemTimeSource constant 65 if (areInSameYear(startTime, Instant.ofEpochMilli(timeSource.currentTimeMillis()))) { in formatDateTimeForTimePeriod() 107 Instant.ofEpochMilli(timeSource.currentTimeMillis()), in maybeReplaceWithTemporalDeixis() 108 timeSource.deviceZoneOffset()) in maybeReplaceWithTemporalDeixis() 109 .atStartOfDay(timeSource.deviceZoneOffset()) in maybeReplaceWithTemporalDeixis() 112 LocalDate.ofInstant(currentPeriod, timeSource.deviceZoneOffset()) in maybeReplaceWithTemporalDeixis() 114 .atStartOfDay(timeSource.deviceZoneOffset()) in maybeReplaceWithTemporalDeixis() 161 val localDate1 = instant1.atZone(timeSource.deviceZoneOffset()).toLocalDate() in areOnSameDay() 162 val localDate2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate() in areOnSameDay() 169 val localDate1 = instant1.atZone(timeSource.deviceZoneOffset()).toLocalDate() in areOnSameWeek() [all …]
|
D | DateNavigationView.kt | 52 private val timeSource: TimeSource = SystemTimeSource constant 60 private var selectedDate = Instant.ofEpochMilli(timeSource.currentTimeMillis()) 125 DatePickerSpinnerAdapter(view.context, getDisplayedStartDate(), period, timeSource) in bindDateTextView() 170 Instant.ofEpochMilli(timeSource.currentTimeMillis()), in updateDisplayedDates() 171 timeSource.deviceZoneOffset()) in updateDisplayedDates() 172 .atStartOfDay(timeSource.deviceZoneOffset()) in updateDisplayedDates()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/ |
D | LoadLastDateWithPriorityDataUseCaseTest.kt | 70 private val timeSource = TestTimeSource in <lambda>() constant 87 timeSource, in <lambda>() 94 timeSource.reset() in <lambda>() 110 timeSource.setNow(now) in <lambda>() 117 queryDate = timeSource.currentLocalDateTime().toLocalDate().minusMonths(1), in <lambda>() 128 timeSource.setNow(now) in <lambda>() 130 val queryDate = timeSource.currentLocalDateTime().toLocalDate().minusMonths(1) in <lambda>() 147 timeSource.setNow(now) in <lambda>() 167 timeSource.setNow(now) in <lambda>() 179 queryDate = timeSource.currentLocalDateTime().toLocalDate().minusMonths(1), in <lambda>() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/ |
D | PermissionStorageTimeChangeReceiver.kt | 44 private val timeSource: TimeSource = SystemTimeSource() constant in com.android.permissioncontroller.permission.service.PermissionStorageTimeChangeReceiver 76 timeSource.currentTimeMillis(), in onReceive() 77 timeSource.elapsedRealtime() in onReceive() 99 val actualSystemTime = timeSource.currentTimeMillis() in checkForTimeChanged() 100 val actualRealtime = timeSource.elapsedRealtime() in checkForTimeChanged()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/autodelete/ |
D | AutoDeleteRangeTest.kt | 30 private val timeSource: TimeSource = TestTimeSource constant in com.android.healthconnect.controller.tests.autodelete.AutoDeleteRangeTest 79 autoDeleteRangeEnd(timeSource, AutoDeleteRange.AUTO_DELETE_RANGE_NEVER) in deletionEnd_rangeNever_throws() 87 autoDeleteRangeEnd(timeSource, AutoDeleteRange.AUTO_DELETE_RANGE_THREE_MONTHS) in deletionEnd_threeMonths_returnCorrectValue() 95 autoDeleteRangeEnd(timeSource, AutoDeleteRange.AUTO_DELETE_RANGE_EIGHTEEN_MONTHS) in deletionEnd_eighteenMonths_returnCorrectValue()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/autodelete/ |
D | AutoDeleteRange.kt | 56 fun autoDeleteRangeEnd(timeSource: TimeSource, range: AutoDeleteRange): Instant { in autoDeleteRangeEnd() 57 val localDateTimeNow: LocalDateTime = timeSource.currentLocalDateTime() in autoDeleteRangeEnd() 65 .atStartOfDay(timeSource.deviceZoneOffset()) in autoDeleteRangeEnd()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/api/ |
D | LoadEntriesHelper.kt | 60 private val timeSource: TimeSource = SystemTimeSource in <lambda>() constant in com.android.healthconnect.controller.data.entries.api.LoadEntriesHelper 151 Instant.ofEpochMilli(timeSource.currentTimeMillis()) in <lambda>() 153 .atStartOfDay(timeSource.deviceZoneOffset()) in <lambda>() 159 .atStartOfDay(timeSource.deviceZoneOffset()) in <lambda>() 172 val localDate1 = instant1.atZone(timeSource.deviceZoneOffset()).toLocalDate() in <lambda>() 173 val localDate2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate() in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/ |
D | EntriesViewModelTest.kt | 90 private val timeSource = TestTimeSource in formattedAggregation() constant 123 Instant.ofEpochMilli(timeSource.currentTimeMillis()), in <lambda>() 142 Instant.ofEpochMilli(timeSource.currentTimeMillis()), in <lambda>() 160 Instant.ofEpochMilli(timeSource.currentTimeMillis()), in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/ |
D | DateNavigationViewTest.kt | 51 private val timeSource: TimeSource = TestTimeSource constant in com.android.healthconnect.controller.tests.dataentries.DateNavigationViewTest 60 DateNavigationView(context = context, attrs = null, timeSource = timeSource) in setup()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/recentaccess/ |
D | RecentAccessFragmentTest.kt | 65 @BindValue val timeSource = TestTimeSource constant in com.android.healthconnect.controller.tests.recentaccess.RecentAccessFragmentTest 77 timeSource.reset() in teardown() 113 timeSource.setIs24Hour(true) in test_RecentAccessFragment_displaysCorrectly() 202 timeSource.setIs24Hour(false) in test_RecentAccessFragment_display12HourFormatCorrectly()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/recentaccess/ |
D | LoadRecentAccessUseCase.kt | 39 private val timeSource: TimeSource in <lambda>() constant in com.android.healthconnect.controller.recentaccess.LoadRecentAccessUseCase 60 Instant.ofEpochMilli(timeSource.currentTimeMillis()).minus(Duration.ofDays(1)) in <lambda>()
|
D | RecentAccessViewModel.kt | 45 private val timeSource: TimeSource in <lambda>() constant in com.android.healthconnect.controller.recentaccess.RecentAccessViewModel 195 timeSource in <lambda>() 198 .atStartOfDay(timeSource.deviceZoneOffset()) in <lambda>()
|
D | RecentAccessPreference.kt | 41 private val timeSource: TimeSource, constant 116 return if (timeSource.is24Hour(context)) { in formatTime()
|
D | RecentAccessFragment.kt | 59 @Inject lateinit var timeSource: TimeSource in <lambda>() variable in com.android.healthconnect.controller.recentaccess.RecentAccessFragment 172 RecentAccessPreference(requireContext(), recentApp, timeSource, true).also { in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/ |
D | DateNavigationView.kt | 50 private val timeSource: TimeSource = SystemTimeSource in <lambda>() constant 59 private var selectedDate: Instant = timeSource.currentTimeMillis().toInstant() in <lambda>() 61 private var maxDate: Instant? = timeSource.currentTimeMillis().toInstant() in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/ |
D | TestConstants.kt | 383 fun getMixedRecordsAcrossTwoDays(timeSource: TimeSource): List<Record> { in getMixedRecordsAcrossTwoDays() 384 val instantToday: Instant = timeSource.currentLocalDateTime().toInstant() in getMixedRecordsAcrossTwoDays() 385 val instantYesterday: Instant = timeSource.currentLocalDateTime().minusDays(1).toInstant() in getMixedRecordsAcrossTwoDays() 393 fun getMixedRecordsAcrossThreeDays(timeSource: TimeSource): List<Record> { in getMixedRecordsAcrossThreeDays() 394 val instantTwoDaysAgo: Instant = timeSource.currentLocalDateTime().minusDays(2).toInstant() in getMixedRecordsAcrossThreeDays() 395 return getMixedRecordsAcrossTwoDays(timeSource) in getMixedRecordsAcrossThreeDays()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/api/ |
D | LoadEntriesHelperUseCaseTest.kt | 106 @BindValue @JvmField val timeSource = TestTimeSource in <lambda>() constant in com.android.healthconnect.controller.tests.data.entries.api.LoadEntriesHelperUseCaseTest 148 LoadEntriesHelper(context, healthDataEntryFormatter, healthConnectManager, timeSource) in <lambda>() 154 timeSource.reset() in <lambda>() 365 timeSource.setNow(START_TIME) in <lambda>() 367 val recordList: List<Record> = getMixedRecordsAcrossTwoDays(timeSource) in <lambda>() 388 timeSource.setNow(START_TIME) in <lambda>() 389 val recordList: List<Record> = getMixedRecordsAcrossThreeDays(timeSource) in <lambda>() 412 .formatLongDate(timeSource.currentLocalDateTime().minusDays(2).toInstant())) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/preference/ |
D | AggregationDataCard.kt | 43 private val timeSource: TimeSource = SystemTimeSource constant 133 timeSource in isLessThanOneYearAgo() 137 .atStartOfDay(timeSource.deviceZoneOffset()) in isLessThanOneYearAgo()
|
D | CardContainerPreference.kt | 36 constructor(context: Context, private val timeSource: TimeSource = SystemTimeSource) : constant 172 context, null, AggregationDataCard.CardTypeEnum.LARGE_CARD, cardInfo, timeSource) in addSingleLargeCard() 242 context, null, AggregationDataCard.CardTypeEnum.SMALL_CARD, cardInfo, timeSource) in constructSmallCard() 319 context, null, AggregationDataCard.CardTypeEnum.LARGE_CARD, cardInfo, timeSource) in constructLargeCard()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/service/ |
D | UseCaseModule.kt | 94 timeSource: TimeSource in providesLoadRecentAccessUseCase() 96 return LoadRecentAccessUseCase(manager, dispatcher, timeSource) in providesLoadRecentAccessUseCase() 225 timeSource: TimeSource, in providesLoadLastDateWithPriorityDataUseCase() 232 timeSource, in providesLoadLastDateWithPriorityDataUseCase()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/datenavigation/ |
D | DateNavigationViewTest.kt | 54 private val timeSource: TimeSource = TestTimeSource constant in com.android.healthconnect.controller.tests.data.entries.datenavigation.DateNavigationViewTest 63 DateNavigationView(context = context, attrs = null, timeSource = timeSource) in setup()
|
/packages/modules/Bluetooth/service/src/airplane/ |
D | ModeListener.kt | 73 timeSource: TimeSource, in initialize() 114 timeSource.markNow(), in initialize() 153 timeSource.markNow(), in initialize()
|
/packages/services/Car/experimental/service/src/com/android/experimentalcar/ |
D | GazeDriverAwarenessSupplier.java | 77 GazeDriverAwarenessSupplier(Context context, ITimeSource timeSource) { in GazeDriverAwarenessSupplier() argument 79 mTimeSource = timeSource; in GazeDriverAwarenessSupplier()
|
D | TouchDriverAwarenessSupplier.java | 97 ITimeSource timeSource) { in TouchDriverAwarenessSupplier() argument 102 mTimeSource = timeSource; in TouchDriverAwarenessSupplier()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/api/ |
D | LoadLastDateWithPriorityDataUseCase.kt | 45 private val timeSource: TimeSource, in <lambda>() constant in com.android.healthconnect.controller.datasources.api.LoadLastDateWithPriorityDataUseCase 105 val today = timeSource.currentLocalDateTime().toLocalDate() in <lambda>()
|