/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/noising/ |
D | SourceNoiseHandlerAttributionProbabilityTest.java | 27 import static java.util.concurrent.TimeUnit.HOURS; 198 new Long[] {HOURS.toSeconds(1)}, // early reporting windows in data() 210 new Long[] {HOURS.toSeconds(1), DAYS.toSeconds(1)}, in data() 234 HOURS.toMillis(6), // source event report window in data() 238 new Long[] {HOURS.toSeconds(1), DAYS.toSeconds(1)}, in data() 248 HOURS.toMillis(6), // source event report window in data() 253 HOURS.toSeconds(1), DAYS.toSeconds(1) in data() 269 HOURS.toSeconds(1), DAYS.toSeconds(1) in data() 285 HOURS.toSeconds(1), DAYS.toSeconds(1) in data() 301 HOURS.toSeconds(1), DAYS.toSeconds(1) in data() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/readdata/ |
D | OrderingTests.java | 30 import static java.time.temporal.ChronoUnit.HOURS; 68 Instant startTime2 = startTime1.plus(1, HOURS); in ordering_ascendingSetToTrue_sortedByStartTimeInAscendingOrder() 69 Instant startTime3 = startTime2.plus(1, HOURS); in ordering_ascendingSetToTrue_sortedByStartTimeInAscendingOrder() 91 Instant startTime2 = startTime1.plus(1, HOURS); in ordering_ascendingSetToFalse_sortedByStartTimeInDescendingOrder() 92 Instant startTime3 = startTime2.plus(1, HOURS); in ordering_ascendingSetToFalse_sortedByStartTimeInDescendingOrder() 114 Instant startTime2 = startTime1.plus(1, HOURS); in ordering_ascendingNotSet_sortedByStartTimeInAscendingOrder() 115 Instant startTime3 = startTime2.plus(1, HOURS); in ordering_ascendingNotSet_sortedByStartTimeInAscendingOrder() 168 Instant startTime2 = startTime1.plus(1, HOURS); in ordering_pageTokenProvided_retrieveAscOrderFromPageToken() 169 Instant startTime3 = startTime2.plus(1, HOURS); in ordering_pageTokenProvided_retrieveAscOrderFromPageToken() 170 Instant startTime4 = startTime3.plus(1, HOURS); in ordering_pageTokenProvided_retrieveAscOrderFromPageToken() [all …]
|
D | ReadByFilterTests.java | 32 import static java.time.temporal.ChronoUnit.HOURS; 184 Instant filterEndTime = filterStartTime.plus(6, HOURS); in filterByTimeRange_physicalTime_returnsDataWithinRange() 190 filterStartTime.plus(2, HOURS), in filterByTimeRange_physicalTime_returnsDataWithinRange() 194 filterEndTime.minus(2, HOURS), in filterByTimeRange_physicalTime_returnsDataWithinRange()
|
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
D | FavoriteChannelEvaluatorTest.java | 37 private static final long DEFAULT_MAX_WATCH_DURATION_MS = TimeUnit.HOURS.toMillis(1); 120 System.currentTimeMillis() - TimeUnit.HOURS.toMillis(1), in testTwoChannelsWithSameWatchDuration() 138 System.currentTimeMillis() - TimeUnit.HOURS.toMillis(3), in testTwoChannelsWithDifferentWatchDuration() 142 System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2), in testTwoChannelsWithDifferentWatchDuration() 143 TimeUnit.HOURS.toMillis(1)); in testTwoChannelsWithDifferentWatchDuration() 152 System.currentTimeMillis() - TimeUnit.HOURS.toMillis(1), in testTwoChannelsWithDifferentWatchDuration() 153 TimeUnit.HOURS.toMillis(1)); in testTwoChannelsWithDifferentWatchDuration()
|
D | RoutineWatchEvaluatorTest.java | 150 createDummyProgram(todayAtHourMin(0, 0), TimeUnit.HOURS.toMillis(1))); in testProgramTime_createFromProgram() 160 createDummyProgram(todayAtHourMin(23, 30), TimeUnit.HOURS.toMillis(1))); in testProgramTime_createFromProgram() 170 createDummyProgram(tomorrowAtHourMin(0, 0), TimeUnit.HOURS.toMillis(1))); in testProgramTime_createFromProgram() 180 createDummyProgram(tomorrowAtHourMin(23, 30), TimeUnit.HOURS.toMillis(1))); in testProgramTime_createFromProgram() 190 createDummyProgram(todayAtHourMin(18, 0), TimeUnit.HOURS.toMillis(18))); in testProgramTime_createFromProgram() 205 createDummyProgram(todayAtHourMin(21, 0), TimeUnit.HOURS.toMillis(3))); in testCalculateOverlappedIntervalScore() 209 createDummyProgram(todayAtHourMin(22, 0), TimeUnit.HOURS.toMillis(3))); in testCalculateOverlappedIntervalScore() 213 createDummyProgram(tomorrowAtHourMin(0, 0), TimeUnit.HOURS.toMillis(3))); in testCalculateOverlappedIntervalScore() 217 createDummyProgram(tomorrowAtHourMin(20, 0), TimeUnit.HOURS.toMillis(3))); in testCalculateOverlappedIntervalScore()
|
D | RecentChannelEvaluatorTest.java | 39 private static final long DEFAULT_MAX_WATCH_DURATION_MS = TimeUnit.HOURS.toMillis(1); 99 addWatchLog(channelId, latestWatchEndTimeMs, TimeUnit.HOURS.toMillis(1)); in testMultiChannelsWithSimpleWatchLogs() 100 latestWatchEndTimeMs += TimeUnit.HOURS.toMillis(1); in testMultiChannelsWithSimpleWatchLogs()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | AggregationApisTest.java | 50 import static java.time.temporal.ChronoUnit.HOURS; 129 getTimeFilter(time, time.plus(2, HOURS))) in groupByDuration_noData_nullResponses() 160 getStepsRecord(1234, time.plus(1, DAYS), time.plus(25, HOURS)), in aggregateWithInstantFilter_stepsCountTotal() 161 getStepsRecord(4321, time, time.plus(1, HOURS)))); in aggregateWithInstantFilter_stepsCountTotal() 178 getActiveCaloriesBurnedRecord(210.0, time, time.plus(3, HOURS)), in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal() 180 15.0, time.plus(3, HOURS), time.plus(4, HOURS)))); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal() 182 getTimeFilter(time.minus(2, HOURS), time.plus(4, HOURS)); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal() 194 assertThat(responses.get(0).getStartTime()).isEqualTo(time.minus(2, HOURS)); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal() 200 assertThat(responses.get(1).getEndTime()).isEqualTo(time.plus(2, HOURS)); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal() 204 assertThat(responses.get(2).getStartTime()).isEqualTo(time.plus(2, HOURS)); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal() [all …]
|
D | AggregateWithFiltersTest.java | 50 import static java.time.temporal.ChronoUnit.HOURS; 116 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS))) in dataOriginFilter_noFilter_everythingIncluded() 139 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS))) in dataOriginFilter_validFilter_onlyDataFromFilteredApps() 166 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS)); in dataOriginFilter_invalidApp_noDataReturned() 211 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS)); in dataOriginFilter_appNotInPriorityList_noDataReturned() 252 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS)); in dataOriginFilter_noDataFromFilteredApps_noDataReturned() 293 TimeInstantRangeFilter instantFilter = getTimeFilter(startTime.minus(1, HOURS), startTime); in timeRangeFilter_noDataWithinTimeInterval_noDataReturned() 325 Instant endTime = startTime.plus(1, HOURS); in timeRangeFilter_priorityType_outOfRangePriorityDataTrimmed() 363 Instant endTime = startTime.plus(1, HOURS); in timeRangeFilter_nonPriorityType_outOfRangeNonPriorityDataExcluded() 406 filterEndTime.minus(29, HOURS), in timeRangeFilter_openStartTime_aggregateDataFromEpoch() [all …]
|
D | TotalCaloriesAggregationTest.java | 41 import static java.time.temporal.ChronoUnit.HOURS; 164 activeCalories, now.minus(3, HOURS), now.minus(2, HOURS))); in totalCaloriesBurned_hasActiveCaloriesData_sumActiveAndBasalCalories() 182 totalCalories, now.minus(3, HOURS), now.minus(2, HOURS))); in totalCaloriesBurned_hasTotalCaloriesData_addBasalCaloriesAtGaps() 204 totalCalories, now.minus(24, HOURS), now.minus(2, HOURS)), in totalCaloriesBurned_hasActiveAndTotalCaloriesData_addBasalCaloriesAtGaps() 206 overlappingActiveCalories, now.minus(150, MINUTES), now.minus(1, HOURS)), in totalCaloriesBurned_hasActiveAndTotalCaloriesData_addBasalCaloriesAtGaps() 207 getActiveCaloriesBurnedRecord(activeCalories, now.minus(1, HOURS), now)); in totalCaloriesBurned_hasActiveAndTotalCaloriesData_addBasalCaloriesAtGaps()
|
D | ExerciseDurationAggregationTest.java | 213 Instant endTime = SESSION_START_TIME.plus(10, ChronoUnit.HOURS); in testAggregationByDuration_oneSession_returnsSplitDurationIntoGroups() 232 Duration.of(1, ChronoUnit.HOURS)); in testAggregationByDuration_oneSession_returnsSplitDurationIntoGroups() 277 Instant endTime = SESSION_START_TIME.plus(1, ChronoUnit.HOURS); in testAggregation_oneSessionLocalTimeFilterExcludeSegment_substractsExcludeInterval()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/ |
D | SleepSessionFormatterTest.kt | 94 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>() 105 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>() 116 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>() 127 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>() 138 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>() 149 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>() 160 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>() 191 return SleepSessionRecord.Builder(getMetaData(), NOW, NOW.plus(8, ChronoUnit.HOURS)) in getRecord()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/ui/handheld/v31/ |
D | DashboardUtilsTest.kt | 62 val duration: Long = TimeUnit.HOURS.toMillis(1L) in getTimeDiffStr_durationHoursOne() 69 val duration: Long = TimeUnit.HOURS.toMillis(23L) in getTimeDiffStr_durationHoursOther() 118 val duration: Long = TimeUnit.HOURS.toMillis(1L) in getDurationUsedStr_durationHoursOne() 125 val duration: Long = TimeUnit.HOURS.toMillis(23L) in getDurationUsedStr_durationHoursOther()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/ |
D | DashboardUtils.kt | 34 const val HOURS = 3 constant 116 HOURS -> in getTimeDiffStr() 143 HOURS -> in getDurationUsedStr() 175 return Pair.create(hours, HOURS) in calculateTimeDiffAndUnit()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/ |
D | LocalDateTimeFormatterTest.kt | 119 val end = time.plus(1, ChronoUnit.HOURS) in <lambda>() 126 val end = time.plus(1, ChronoUnit.HOURS) in <lambda>() 133 val end = time.plus(1, ChronoUnit.HOURS) in <lambda>() 140 val end = time.plus(1, ChronoUnit.HOURS) in <lambda>()
|
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/ |
D | TunnelModeChildSessionParamsTest.java | 120 int hardLifetimeSec = (int) TimeUnit.HOURS.toSeconds(3L); in testBuildChildSessionParamsWithLifetime() 121 int softLifetimeSec = (int) TimeUnit.HOURS.toSeconds(1L); in testBuildChildSessionParamsWithLifetime() 274 (int) TimeUnit.HOURS.toSeconds(3L), in testConstructTunnelModeChildParamsCopy() 275 (int) TimeUnit.HOURS.toSeconds(1L)) in testConstructTunnelModeChildParamsCopy()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceTest.java | 106 - TimeUnit.DAYS.toMillis(baseUnit) - TimeUnit.HOURS.toMillis(smudge); in testCarrierUpdateTime_shouldFormatDaysCorrectly() 119 - TimeUnit.HOURS.toMillis(baseUnit) - TimeUnit.MINUTES.toMillis(smudge); in testCarrierUpdateTime_shouldFormatHoursCorrectly() 174 final long updateTime = System.currentTimeMillis() - TimeUnit.HOURS.toMillis(1); in setUsageInfo_withRecentCarrierUpdate_doesNotSetCarrierInfoWarningColorAndFont() 187 final long updateTime = System.currentTimeMillis() - TimeUnit.HOURS.toMillis(7); in testSetUsageInfo_withStaleCarrierUpdate_setsCarrierInfoWarningColorAndFont() 219 final long cycleEnd = System.currentTimeMillis() + TimeUnit.HOURS.toMillis(23); in testSetUsageInfo_cycleRemainingTimeIsLessOneDay() 246 + TimeUnit.HOURS.toMillis(1); in testSetUsageInfo_cycleRemainingTimeDaysLeft_shouldUsePlurals()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ |
D | Flags.java | 641 long MEASUREMENT_ATTRIBUTION_FALLBACK_JOB_PERIOD_MS = TimeUnit.HOURS.toMillis(1); 809 long MEASUREMENT_MINIMUM_EVENT_REPORT_WINDOW_IN_SECONDS = TimeUnit.HOURS.toSeconds(1); 816 long MEASUREMENT_MINIMUM_AGGREGATABLE_REPORT_WINDOW_IN_SECONDS = TimeUnit.HOURS.toSeconds(1); 1725 long FLEDGE_AUCTION_SERVER_BACKGROUND_KEY_FETCH_JOB_PERIOD_MS = TimeUnit.HOURS.toMillis(24); 1734 long FLEDGE_AUCTION_SERVER_BACKGROUND_KEY_FETCH_JOB_FLEX_MS = TimeUnit.HOURS.toMillis(2); 1757 TimeUnit.HOURS.toMillis(24); 2422 long MEASUREMENT_VERBOSE_DEBUG_REPORTING_FALLBACK_JOB_PERIOD_MS = TimeUnit.HOURS.toMillis(1); 2432 long MEASUREMENT_DEBUG_REPORTING_FALLBACK_JOB_PERIOD_MS = TimeUnit.HOURS.toMillis(1); 3529 long ASYNC_REGISTRATION_JOB_QUEUE_INTERVAL_MS = (int) TimeUnit.HOURS.toMillis(1); 4019 long MEASUREMENT_DELETE_UNINSTALLED_JOB_PERIOD_MS = TimeUnit.HOURS.toMillis(24); [all …]
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/ |
D | InputTaskSchedulerTest.java | 141 mFakeClock.currentTimeMillis() + TimeUnit.HOURS.toMillis(1))); in testAddSchedule_start() 228 mFakeClock.currentTimeMillis() + TimeUnit.HOURS.toMillis(1)); in testUpdateSchedule_noCancel() 243 mFakeClock.currentTimeMillis() + TimeUnit.HOURS.toMillis(2)); in testUpdateSchedule_cancel() 248 .setStartTimeMs(mFakeClock.currentTimeMillis() + TimeUnit.HOURS.toMillis(1)) in testUpdateSchedule_cancel()
|
D | SchedulerTest.java | 104 long startTime = now + TimeUnit.HOURS.toMillis(12); in testUpdate_nextIn12Hours() 107 INPUT_ID, CHANNEL_ID, startTime, startTime + TimeUnit.HOURS.toMillis(1)); in testUpdate_nextIn12Hours()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreference.java | 56 private static final long WARNING_AGE = TimeUnit.HOURS.toMillis(6L); 285 } else if (updateAgeMillis >= TimeUnit.HOURS.toMillis(1)) { in calculateTruncatedUpdateAge() 286 return (updateAgeMillis / TimeUnit.HOURS.toMillis(1)) * TimeUnit.HOURS.toMillis(1); in calculateTruncatedUpdateAge()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | GuideUtils.java | 42 return (int) (millis * sWidthPerHour / TimeUnit.HOURS.toMillis(1)); in convertMillisToPixel() 54 return pixel * TimeUnit.HOURS.toMillis(1) / sWidthPerHour; in convertPixelToMillis()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/ |
D | EventReportWindowCalcDelegateTest.java | 584 eventTime + TimeUnit.HOURS.toMillis(1), in getReportingTimeForNoising_eventSrcWithConfiguredReportingWindows() 620 eventTime + TimeUnit.HOURS.toMillis(1), in getReportingTimeForNoising_eventSrcInstallAttWithConfiguredReportingWindows() 654 eventTime + TimeUnit.HOURS.toMillis(2), in getReportingTimeForNoising_navigationSrcWithConfiguredReportingWindows() 690 eventTime + TimeUnit.HOURS.toMillis(2), in getReportingTimeForNoising_navigationSrcInstallAttWithConfiguredReportingWindows() 884 long sourceEventTime = triggerTime - TimeUnit.HOURS.toMillis(1); in getReportingTime_emptyWindowConfigNavigationSourceTriggerNextHour() 904 long sourceEventTime = triggerTime - TimeUnit.HOURS.toMillis(1); in getReportingTime_emptyWindowConfigEventSrcTriggerNextHour() 926 long sourceEventTime = triggerTime - TimeUnit.HOURS.toMillis(1); in getReportingTime_emptyWindowConfigEventSrcInstallAttTriggerNextHour() 949 long sourceEventTime = triggerTime - TimeUnit.HOURS.toMillis(1); in getReportingTime_emptyWindowConfigNavigationSrcInstallAttTriggerNextHour() 1232 sourceEventTime + TimeUnit.HOURS.toMillis(1), in getReportingTime_validWindowConfigEventSourceTriggerIn1stWindow() 1247 long sourceEventTime = triggerTime - TimeUnit.HOURS.toMillis(2); in getReportingTime_validWindowConfigEventSourceTriggerIn2ndWindow() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | PlannedExerciseSessionRecordTest.java | 32 import static java.time.temporal.ChronoUnit.HOURS; 118 .setEndTime(Instant.now().plus(30, DAYS).plus(1, HOURS)); in insertRecord_startTimeInFuture_bypassesFutureTimeRestrictions() 972 SESSION_START_TIME.plus(3, HOURS), in trainingPlanDeleted_multipleLinkedExerciseSessions_changelogsGeneratedForEach() 973 SESSION_END_TIME.plus(3, HOURS), in trainingPlanDeleted_multipleLinkedExerciseSessions_changelogsGeneratedForEach() 1138 Duration.of(1, HOURS)); in noExplicitTimeSpecified_hasExplicitTimeIsFalse() 1150 Duration.of(1, HOURS)); in noExplicitTimeSpecified_startTimeSetToStartOfDay_endTimeDeterminedFromDuration() 1164 .plus(Duration.of(1, HOURS))); in noExplicitTimeSpecified_startTimeSetToStartOfDay_endTimeDeterminedFromDuration() 1174 Duration.of(1, HOURS)); in getStartDate_returnsLocalDateFromTime() 1225 Duration.of(1, HOURS)); in builder_clearStartZoneOffset() 1241 Duration.of(1, HOURS)); in builder_clearEndZoneOffset() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrChannelRecordDurationOptionFragment.java | 66 mDurations.add(TimeUnit.HOURS.toMillis(1)); in onCreateActions() 67 mDurations.add(TimeUnit.HOURS.toMillis(3)); in onCreateActions()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/backgroundread/ |
D | BackgroundReadTest.java | 44 import static java.time.temporal.ChronoUnit.HOURS; 212 stepsRecord1.getStartTime().minus(10, HOURS), in testAggregate_inBackgroundWithPermission_canAggregateBothOwnAndOtherAppsData() 213 stepsRecord1.getEndTime().minus(10, HOURS), in testAggregate_inBackgroundWithPermission_canAggregateBothOwnAndOtherAppsData()
|