/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/noising/ |
D | SourceNoiseHandlerAttributionProbabilityTest.java | 26 import static java.util.concurrent.TimeUnit.DAYS; 85 DAYS.toMillis(10), // source event report window in data() 99 DAYS.toMillis(10), // source event report window in data() 100 DAYS.toMillis(1), // install cooldown window in data() 112 DAYS.toMillis(10), // source event report window in data() 125 DAYS.toMillis(10), // source event report window in data() 140 DAYS.toMillis(10), // source event report window in data() 141 DAYS.toMillis(1), // install cooldown window in data() 155 DAYS.toMillis(1), // source event report window in data() 156 DAYS.toMillis(1), // install cooldown window in data() [all …]
|
D | SourceNoiseHandlerTest.java | 253 .setExpiryTime(baseTime + TimeUnit.DAYS.toMillis(30)) in fakeReports_flexLiteEventReport_setsTriggerTime() 293 .setEventReportWindow(eventTime + TimeUnit.DAYS.toMillis(30)) in impressionNoiseParamGeneration() 307 .setEventReportWindow(eventTime + TimeUnit.DAYS.toMillis(30)) in impressionNoiseParamGeneration() 321 .setEventReportWindow(eventTime + TimeUnit.DAYS.toMillis(30)) in impressionNoiseParamGeneration() 335 .setExpiryTime(eventTime + TimeUnit.DAYS.toMillis(30)) in impressionNoiseParamGeneration() 336 .setEventReportWindow(eventTime + TimeUnit.DAYS.toMillis(30)) in impressionNoiseParamGeneration() 350 .setExpiryTime(eventTime + TimeUnit.DAYS.toMillis(7)) in impressionNoiseParamGeneration() 351 .setEventReportWindow(eventTime + TimeUnit.DAYS.toMillis(7)) in impressionNoiseParamGeneration() 365 .setExpiryTime(eventTime + TimeUnit.DAYS.toMillis(2)) in impressionNoiseParamGeneration() 366 .setEventReportWindow(eventTime + TimeUnit.DAYS.toMillis(2)) in impressionNoiseParamGeneration() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/ |
D | EventReportWindowCalcDelegateTest.java | 91 long expiryTime = triggerTime + TimeUnit.DAYS.toMillis(30); in getReportingTime_eventSourceAppDestination() 92 long sourceEventTime = triggerTime - TimeUnit.DAYS.toMillis(1); in getReportingTime_eventSourceAppDestination() 109 long expiryTime = triggerTime + TimeUnit.DAYS.toMillis(30); in getReportingTime_eventSrcInstallAttributedAppDestinationTrigger1stWindow() 110 long sourceEventTime = triggerTime - TimeUnit.DAYS.toMillis(1); in getReportingTime_eventSrcInstallAttributedAppDestinationTrigger1stWindow() 129 long expiryTime = triggerTime + TimeUnit.DAYS.toMillis(30); in getReportingTime_eventSrcInstallAttributedAppDestinationTrigger2ndWindow() 130 long sourceEventTime = triggerTime - TimeUnit.DAYS.toMillis(3); in getReportingTime_eventSrcInstallAttributedAppDestinationTrigger2ndWindow() 148 long expiryTime = triggerTime + TimeUnit.DAYS.toMillis(30); in getReportingTime_eventSrcInstallAttributedWebDestinationTrigger1stWindow() 149 long sourceEventTime = triggerTime - TimeUnit.DAYS.toMillis(1); in getReportingTime_eventSrcInstallAttributedWebDestinationTrigger1stWindow() 167 long expiryTime = triggerTime + TimeUnit.DAYS.toMillis(30); in getReportingTime_eventSrcInstallAttributedWebDestinationTrigger2ndWindow() 168 long sourceEventTime = triggerTime - TimeUnit.DAYS.toMillis(3); in getReportingTime_eventSrcInstallAttributedWebDestinationTrigger2ndWindow() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | BasalCaloriesAggregationTest.java | 33 import static java.time.temporal.ChronoUnit.DAYS; 90 .setStartTime(now.minus(2, DAYS)) in testAggregation_BasalCaloriesBurntTotal_noRecord() 91 .setEndTime(now.minus(1, DAYS)) in testAggregation_BasalCaloriesBurntTotal_noRecord() 107 .setStartTime(Instant.now().minus(2, DAYS)) in testAggregation_BasalCaloriesBurntTotal_lbm() 108 .setEndTime(Instant.now().minus(1, DAYS)) in testAggregation_BasalCaloriesBurntTotal_lbm() 114 insertRecords(List.of(getBaseLeanBodyMassRecord(now.minus(2, DAYS), 50000))); in testAggregation_BasalCaloriesBurntTotal_lbm() 119 .setStartTime(Instant.now().minus(2, DAYS)) in testAggregation_BasalCaloriesBurntTotal_lbm() 120 .setEndTime(Instant.now().minus(1, DAYS)) in testAggregation_BasalCaloriesBurntTotal_lbm() 133 getBaseLeanBodyMassRecord(now.minus(1, DAYS), 40000), in testAggregation_BasalCaloriesBurntTotal_lbm_group() 134 getBaseLeanBodyMassRecord(now.minus(2, DAYS), 30000), in testAggregation_BasalCaloriesBurntTotal_lbm_group() [all …]
|
D | TotalCaloriesAggregationTest.java | 40 import static java.time.temporal.ChronoUnit.DAYS; 99 new AggregateRecordsRequest.Builder<Energy>(getTimeFilter(now.minus(1, DAYS), now)) in totalCaloriesBurned_derivedFromDefaultBasalCalories() 118 new AggregateRecordsRequest.Builder<Energy>(getTimeFilter(now.minus(1, DAYS), now)) in totalCaloriesBurned_derivedFromWeightAndHeight() 134 new AggregateRecordsRequest.Builder<Energy>(getTimeFilter(now.minus(1, DAYS), now)) in totalCaloriesBurned_derivedFromLbm() 149 new AggregateRecordsRequest.Builder<Energy>(getTimeFilter(now.minus(1, DAYS), now)) in totalCaloriesBurned_derivedFromBmr() 167 new AggregateRecordsRequest.Builder<Energy>(getTimeFilter(now.minus(1, DAYS), now)) in totalCaloriesBurned_hasActiveCaloriesData_sumActiveAndBasalCalories() 185 new AggregateRecordsRequest.Builder<Energy>(getTimeFilter(now.minus(1, DAYS), now)) in totalCaloriesBurned_hasTotalCaloriesData_addBasalCaloriesAtGaps() 210 new AggregateRecordsRequest.Builder<Energy>(getTimeFilter(now.minus(1, DAYS), now)) in totalCaloriesBurned_hasActiveAndTotalCaloriesData_addBasalCaloriesAtGaps() 231 insertRecords(getTotalCaloriesBurnedRecord(totalCalories, now.minus(1, DAYS), now)); in totalCaloriesBurned_totalCaloriesDataWithoutGap_equalsToTotalCalories() 234 new AggregateRecordsRequest.Builder<Energy>(getTimeFilter(now.minus(1, DAYS), now)) in totalCaloriesBurned_totalCaloriesDataWithoutGap_equalsToTotalCalories() [all …]
|
D | AggregationApisTest.java | 49 import static java.time.temporal.ChronoUnit.DAYS; 126 Instant time = Instant.now().minus(2, DAYS); in groupByDuration_noData_nullResponses() 157 Instant time = Instant.now().minus(2, DAYS); in aggregateWithInstantFilter_stepsCountTotal() 160 getStepsRecord(1234, time.plus(1, DAYS), time.plus(25, HOURS)), in aggregateWithInstantFilter_stepsCountTotal() 163 TimeInstantRangeFilter timeFilter = getTimeFilter(time.minus(1, DAYS), time.plus(2, DAYS)); in aggregateWithInstantFilter_stepsCountTotal() 175 Instant time = Instant.now().minus(1, DAYS).truncatedTo(MILLIS); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal() 211 Instant time = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in groupByDurationWithLocalFilter_distanceTotal() 252 Instant time = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in groupByPeriod_weightAvg() 257 getWeightRecord(50.0, time.minus(30, DAYS), dataZone), in groupByPeriod_weightAvg() 258 getWeightRecord(60.0, time.minus(15, DAYS), dataZone), in groupByPeriod_weightAvg() [all …]
|
D | AggregateWithFiltersTest.java | 49 import static java.time.temporal.ChronoUnit.DAYS; 105 Instant startTime = Instant.now().minus(1, DAYS); in dataOriginFilter_noFilter_everythingIncluded() 128 Instant startTime = Instant.now().minus(1, DAYS); in dataOriginFilter_validFilter_onlyDataFromFilteredApps() 152 Instant startTime = Instant.now().minus(1, DAYS); in dataOriginFilter_invalidApp_noDataReturned() 200 Instant startTime = Instant.now().minus(1, DAYS); in dataOriginFilter_appNotInPriorityList_noDataReturned() 245 Instant startTime = Instant.now().minus(1, DAYS); in dataOriginFilter_noDataFromFilteredApps_noDataReturned() 286 Instant startTime = Instant.now().minus(1, DAYS); in timeRangeFilter_noDataWithinTimeInterval_noDataReturned() 324 Instant startTime = Instant.now().minus(1, DAYS); in timeRangeFilter_priorityType_outOfRangePriorityDataTrimmed() 362 Instant startTime = Instant.now().minus(1, DAYS); in timeRangeFilter_nonPriorityType_outOfRangeNonPriorityDataExcluded() 396 Instant filterEndTime = Instant.now().minus(1, DAYS); in timeRangeFilter_openStartTime_aggregateDataFromEpoch() [all …]
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | AppStateUsageStatsBridgeTest.java | 56 private static final long STARTING_TIME = TimeUnit.DAYS.toMillis(1000); 100 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(1000)); in test_appInstalledSameDayNeverUsed_isInvalid() 114 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(1000)); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid() 128 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(910)); in test_unusedApp_isValid() 142 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(910)); in test_noThresholdFilter_unusedApp_isValid() 156 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(910)); in test_unknownLastUse_isFilteredOut() 171 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(910)); in test_noThresholdFilter_unknownLastUse_isFilteredOut() 186 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(800)); in test_oldAppRecentlyUsed_isNotValid() 187 registerLastUse(PACKAGE_NAME, TimeUnit.DAYS.toMillis(999)); in test_oldAppRecentlyUsed_isNotValid() 201 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(800)); in test_noThresholdFilter_oldAppRecentlyUsed_isValid() [all …]
|
D | AppsAsyncLoaderTest.java | 59 private static final long STARTING_TIME = TimeUnit.DAYS.toMillis(1000); 228 TimeUnit.DAYS.toMillis(800), in test_multipleApps_processCorrectly() 229 TimeUnit.DAYS.toMillis(800)); in test_multipleApps_processCorrectly() 230 registerLastUse(PACKAGE_CLEARABLE, TimeUnit.DAYS.toMillis(800)); in test_multipleApps_processCorrectly() 231 registerApp(clearable, 0, TimeUnit.DAYS.toMillis(800)); in test_multipleApps_processCorrectly() 235 TimeUnit.DAYS.toMillis(1000), in test_multipleApps_processCorrectly() 236 TimeUnit.DAYS.toMillis(1000)); in test_multipleApps_processCorrectly() 237 registerLastUse(PACKAGE_TOO_NEW_TO_DELETE, TimeUnit.DAYS.toMillis(1000)); in test_multipleApps_processCorrectly() 238 registerApp(tooNewtoDelete, 1, TimeUnit.DAYS.toMillis(1000)); in test_multipleApps_processCorrectly() 241 PACKAGE_SYSTEM, TimeUnit.DAYS.toMillis(800), TimeUnit.DAYS.toMillis(800)); in test_multipleApps_processCorrectly() [all …]
|
D | StorageManagerUpsellDialogTest.java | 45 assertThat(StorageManagerUpsellDialog.shouldShow(context, TimeUnit.DAYS.toMillis(90))) in testNoThanksMaximumShownTimes() 50 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 2)); in testNoThanksMaximumShownTimes() 51 assertThat(StorageManagerUpsellDialog.shouldShow(context, TimeUnit.DAYS.toMillis(90 * 2))) in testNoThanksMaximumShownTimes() 56 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 3)); in testNoThanksMaximumShownTimes() 57 assertThat(StorageManagerUpsellDialog.shouldShow(context, TimeUnit.DAYS.toMillis(90 * 3))) in testNoThanksMaximumShownTimes() 62 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 4)); in testNoThanksMaximumShownTimes() 63 assertThat(StorageManagerUpsellDialog.shouldShow(context, TimeUnit.DAYS.toMillis(90 * 4))) in testNoThanksMaximumShownTimes() 68 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 5)); in testNoThanksMaximumShownTimes() 69 assertThat(StorageManagerUpsellDialog.shouldShow(context, TimeUnit.DAYS.toMillis(90 * 5))) in testNoThanksMaximumShownTimes()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | ChartDataUsagePreferenceTest.java | 127 tonight - TimeUnit.DAYS.toMillis(5), in calcPoints_shouldNotDrawPointForFutureDate() 128 tonight - TimeUnit.DAYS.toMillis(4), in calcPoints_shouldNotDrawPointForFutureDate() 131 tonight - TimeUnit.DAYS.toMillis(4), in calcPoints_shouldNotDrawPointForFutureDate() 132 tonight - TimeUnit.DAYS.toMillis(3), in calcPoints_shouldNotDrawPointForFutureDate() 135 tonight - TimeUnit.DAYS.toMillis(3), in calcPoints_shouldNotDrawPointForFutureDate() 136 tonight - TimeUnit.DAYS.toMillis(2), in calcPoints_shouldNotDrawPointForFutureDate() 139 tonight - TimeUnit.DAYS.toMillis(2), in calcPoints_shouldNotDrawPointForFutureDate() 140 tonight - TimeUnit.DAYS.toMillis(1), in calcPoints_shouldNotDrawPointForFutureDate() 143 tonight - TimeUnit.DAYS.toMillis(1), tonight, 1883657L)); in calcPoints_shouldNotDrawPointForFutureDate() 146 tonight, tonight + TimeUnit.DAYS.toMillis(1), 0L)); in calcPoints_shouldNotDrawPointForFutureDate() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ |
D | TriggerSpecTest.java | 128 TimeUnit.DAYS.toMillis(2), TimeUnit.DAYS.toMillis(7), TimeUnit.DAYS.toMillis(30) in triggerSpecBuilder_invalidSummaryOperator_throws() 150 TimeUnit.DAYS.toMillis(2), TimeUnit.DAYS.toMillis(7), TimeUnit.DAYS.toMillis(30) in triggerSpecBuilder_validJson_success() 171 TimeUnit.DAYS.toMillis(2), in triggerSpecBuilder_validJson_success() 172 TimeUnit.DAYS.toMillis(7), in triggerSpecBuilder_validJson_success() 173 TimeUnit.DAYS.toMillis(30)); in triggerSpecBuilder_validJson_success()
|
D | SourceTest.java | 1382 baseTime + TimeUnit.DAYS.toMillis(7), in validateAndSetNumReportStates_flexLiteValid_returnsTrue() 1383 baseTime + TimeUnit.DAYS.toMillis(30))) in validateAndSetNumReportStates_flexLiteValid_returnsTrue() 1409 baseTime + TimeUnit.DAYS.toMillis(7), in validateAndSetMaxEventStates_attributionScopeEnabledValid_returnsTrue() 1410 baseTime + TimeUnit.DAYS.toMillis(30))) in validateAndSetMaxEventStates_attributionScopeEnabledValid_returnsTrue() 1440 baseTime + TimeUnit.DAYS.toMillis(7), in validateAndSetMaxEventStates_maxEventStatesNullNonDefaultVtc_returnsFalse() 1441 baseTime + TimeUnit.DAYS.toMillis(30))) in validateAndSetMaxEventStates_maxEventStatesNullNonDefaultVtc_returnsFalse() 1470 baseTime + TimeUnit.DAYS.toMillis(7), in validateAndSetMaxEventStates_maxEventStatesNullNavigation_returnsFalse() 1471 baseTime + TimeUnit.DAYS.toMillis(30))) in validateAndSetMaxEventStates_maxEventStatesNullNavigation_returnsFalse() 1500 baseTime + TimeUnit.DAYS.toMillis(7), in validateAndSetMaxEventStates_attributionScopeMaxEventStatesTooLow_returnsFalse() 1501 baseTime + TimeUnit.DAYS.toMillis(30))) in validateAndSetMaxEventStates_attributionScopeMaxEventStatesTooLow_returnsFalse() [all …]
|
D | TriggerSpecsTest.java | 101 TimeUnit.DAYS.toMillis(2), in constructorThreeParameters_completeExpectation_success() 102 TimeUnit.DAYS.toMillis(7), in constructorThreeParameters_completeExpectation_success() 103 TimeUnit.DAYS.toMillis(30))), in constructorThreeParameters_completeExpectation_success() 106 new ArrayList<>(Collections.singletonList(TimeUnit.DAYS.toMillis(3))), in constructorThreeParameters_completeExpectation_success() 285 TimeUnit.DAYS.toMillis(2), in getSummaryBucketFromIndex_baseline_equal() 286 TimeUnit.DAYS.toMillis(7), in getSummaryBucketFromIndex_baseline_equal() 287 TimeUnit.DAYS.toMillis(30)) in getSummaryBucketFromIndex_baseline_equal()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/readdata/ |
D | OrderingTests.java | 29 import static java.time.temporal.ChronoUnit.DAYS; 67 Instant startTime1 = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in ordering_ascendingSetToTrue_sortedByStartTimeInAscendingOrder() 90 Instant startTime1 = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in ordering_ascendingSetToFalse_sortedByStartTimeInDescendingOrder() 113 Instant startTime1 = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in ordering_ascendingNotSet_sortedByStartTimeInAscendingOrder() 135 Instant startTime = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in ordering_sameStartTime_sortedByRowIdAscending() 167 Instant startTime1 = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in ordering_pageTokenProvided_retrieveAscOrderFromPageToken() 197 Instant startTime1 = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in ordering_pageTokenProvided_retrieveDecOrderFromPageToken()
|
D | ReadByFilterTests.java | 31 import static java.time.temporal.ChronoUnit.DAYS; 84 Instant startTime = Instant.now().minus(1, DAYS); in filterByDataType_dataOfOtherTypesExcluded() 120 Instant startTime = Instant.now().minus(1, DAYS); in filterByDataOrigin_dataOfOtherOriginsExcluded() 150 Instant startTime = Instant.now().minus(1, DAYS); in filterByDataOrigin_noFilterSet_allDataReturned() 183 Instant filterStartTime = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in filterByTimeRange_physicalTime_returnsDataWithinRange()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/measurement/ |
D | SourceFixture.java | 194 TimeUnit.DAYS.toMillis(2), TimeUnit.DAYS.toMillis(7)) in getValidTriggerSpecsCountBased() 214 + String.format("\"end_times\": [%s]}, ", TimeUnit.DAYS.toMillis(2)) in getValidTriggerSpecsCountBasedWithFewerState() 231 + String.format("\"end_times\": [%s]}, ", TimeUnit.DAYS.toMillis(2)) in getValidTriggerSpecsWithNonDefaultEpsilon() 353 TimeUnit.DAYS.toMillis(2), in getTriggerSpecCountEncodedJsonValidBaseline() 354 TimeUnit.DAYS.toMillis(7), in getTriggerSpecCountEncodedJsonValidBaseline() 355 TimeUnit.DAYS.toMillis(30)) in getTriggerSpecCountEncodedJsonValidBaseline() 375 TimeUnit.DAYS.toMillis(2), TimeUnit.DAYS.toMillis(7)) in getTriggerSpecValueSumEncodedJsonValidBaseline() 396 TimeUnit.DAYS.toMillis(2), in getTriggerSpecValueCountJsonTwoTriggerSpecs() 397 TimeUnit.DAYS.toMillis(7), in getTriggerSpecValueCountJsonTwoTriggerSpecs() 398 TimeUnit.DAYS.toMillis(30)) in getTriggerSpecValueCountJsonTwoTriggerSpecs() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/ |
D | PrivacyParams.java | 48 public static final long RATE_LIMIT_WINDOW_MILLISECONDS = TimeUnit.DAYS.toMillis(30); 55 TimeUnit.DAYS.toMillis(2), TimeUnit.DAYS.toMillis(7) 75 new long[]{ TimeUnit.DAYS.toMillis(2) };
|
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/ |
D | AppsIndexerMaintenanceTest.java | 146 /* intervalMillis= */ TimeUnit.DAYS.toMillis(7)); in testScheduleUpdateJob_periodic_isPeriodic() 156 assertThat(jobInfo.getIntervalMillis()).isEqualTo(TimeUnit.DAYS.toMillis(7)); in testScheduleUpdateJob_periodic_isPeriodic() 157 assertThat(jobInfo.getFlexMillis()).isEqualTo(TimeUnit.DAYS.toMillis(7) / 2); in testScheduleUpdateJob_periodic_isPeriodic() 178 /* intervalMillis= */ TimeUnit.DAYS.toMillis(7)); in testScheduleUpdateJob_oneOffThenPeriodic_isRescheduled() 187 assertThat(jobInfo.getIntervalMillis()).isEqualTo(TimeUnit.DAYS.toMillis(7)); in testScheduleUpdateJob_oneOffThenPeriodic_isRescheduled() 197 /* intervalMillis= */ TimeUnit.DAYS.toMillis(7)); in testScheduleUpdateJob_differentParams_isRescheduled() 208 /* intervalMillis= */ TimeUnit.DAYS.toMillis(30)); in testScheduleUpdateJob_differentParams_isRescheduled() 220 assertThat(jobInfo.getIntervalMillis()).isEqualTo(TimeUnit.DAYS.toMillis(30)); in testScheduleUpdateJob_differentParams_isRescheduled() 230 /* intervalMillis= */ TimeUnit.DAYS.toMillis(7)); in testScheduleUpdateJob_sameParams_isNotRescheduled() 241 /* intervalMillis= */ TimeUnit.DAYS.toMillis(7)); in testScheduleUpdateJob_sameParams_isNotRescheduled() [all …]
|
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/ |
D | ContactsIndexerMaintenanceTest.java | 143 /* intervalMillis= */ TimeUnit.DAYS.toMillis(7)); in testScheduleFullUpdateJob_periodic_isPeriodic() 153 assertThat(jobInfo.getIntervalMillis()).isEqualTo(TimeUnit.DAYS.toMillis(7)); in testScheduleFullUpdateJob_periodic_isPeriodic() 154 assertThat(jobInfo.getFlexMillis()).isEqualTo(TimeUnit.DAYS.toMillis(7)/2); in testScheduleFullUpdateJob_periodic_isPeriodic() 176 /* intervalMillis= */ TimeUnit.DAYS.toMillis(7)); in testScheduleFullUpdateJob_oneOffThenPeriodic_isRescheduled() 185 assertThat(jobInfo.getIntervalMillis()).isEqualTo(TimeUnit.DAYS.toMillis(7)); in testScheduleFullUpdateJob_oneOffThenPeriodic_isRescheduled() 195 /* intervalMillis= */ TimeUnit.DAYS.toMillis(7)); in testScheduleFullUpdateJob_differentParams_isRescheduled() 207 /* intervalMillis= */ TimeUnit.DAYS.toMillis(30)); in testScheduleFullUpdateJob_differentParams_isRescheduled() 219 assertThat(jobInfo.getIntervalMillis()).isEqualTo(TimeUnit.DAYS.toMillis(30)); in testScheduleFullUpdateJob_differentParams_isRescheduled() 229 /* intervalMillis= */ TimeUnit.DAYS.toMillis(7)); in testScheduleFullUpdateJob_sameParams_isNotRescheduled() 241 /* intervalMillis= */ TimeUnit.DAYS.toMillis(7)); in testScheduleFullUpdateJob_sameParams_isNotRescheduled() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/ |
D | AsyncSourceFetcherTest.java | 1168 long expiry = result.getEventTime() + TimeUnit.DAYS.toMillis(1); in sourceRequest_expiry_tooEarly_setToMin() 1237 TimeUnit.DAYS.toSeconds(1) in sourceRequest_expiryCloserToUpperBound_roundsUp() 1238 + TimeUnit.DAYS.toSeconds(1) / 2L) in sourceRequest_expiryCloserToUpperBound_roundsUp() 1255 long expiry = result.getEventTime() + TimeUnit.DAYS.toMillis(2); in sourceRequest_expiryCloserToUpperBound_roundsUp() 1281 TimeUnit.DAYS.toSeconds(1) in sourceRequest_expiryCloserToLowerBound_roundsDown() 1282 + TimeUnit.DAYS.toSeconds(1) / 2L in sourceRequest_expiryCloserToLowerBound_roundsDown() 1300 long expiry = result.getEventTime() + TimeUnit.DAYS.toMillis(1); in sourceRequest_expiryCloserToLowerBound_roundsDown() 1326 TimeUnit.DAYS.toSeconds(1) / 2L - 1L) in sourceRequest_expiryCloserToLowerBound_roundsToOneDayAtLeast() 1346 long expiry = result.getEventTime() + TimeUnit.DAYS.toMillis(1); in sourceRequest_expiryCloserToLowerBound_roundsToOneDayAtLeast() 1428 long expiry = result.getEventTime() + TimeUnit.DAYS.toMillis(2); in sourceRequest_reportWindows_defaultToExpiry() [all …]
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/ |
D | BasePermissionEventStorageTest.kt | 54 private val TEST_MAX_DATA_AGE = TimeUnit.DAYS.toMillis(7) 182 podcastEvent.copy(eventTime = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(6)) in removeOldData_removesOnlyOldData() 184 parkingEvent.copy(eventTime = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(8)) in removeOldData_removesOnlyOldData() 200 storage.updateEventsBySystemTimeDelta(TimeUnit.DAYS.toMillis(1)) in updateEventsBySystemTimeDelta_oneDayForward_shiftsData() 204 musicEvent.copy(eventTime = musicEvent.eventTime + TimeUnit.DAYS.toMillis(1)) in updateEventsBySystemTimeDelta_oneDayForward_shiftsData() 214 storage.updateEventsBySystemTimeDelta(-TimeUnit.DAYS.toMillis(1)) in updateEventsBySystemTimeDelta_oneDayBackward_shiftsData() 218 musicEvent.copy(eventTime = musicEvent.eventTime - TimeUnit.DAYS.toMillis(1)) in updateEventsBySystemTimeDelta_oneDayBackward_shiftsData()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/ |
D | ScheduledProgramReaperTest.java | 95 mFakeClock.increment(TimeUnit.DAYS); in testRun_oneRecordingsStarted() 104 mFakeClock.increment(TimeUnit.DAYS); in testRun_oneRecordingsFinished() 114 mFakeClock.increment(TimeUnit.DAYS, 1 + ScheduledProgramReaper.DAYS); in testRun_oneRecordingsExpired() 127 long startTime = mFakeClock.currentTimeMillis() + TimeUnit.DAYS.toMillis(1); in addNewScheduledRecordingForTomorrow()
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | ScheduledProgramReaper.java | 31 public static final int DAYS = 7; field in ScheduledProgramReaper 43 long cutoff = mClock.currentTimeMillis() - TimeUnit.DAYS.toMillis(DAYS); in run()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/ui/handheld/v31/ |
D | DashboardUtilsTest.kt | 76 val duration: Long = TimeUnit.DAYS.toMillis(1L) in getTimeDiffStr_durationDaysOne() 83 val duration: Long = TimeUnit.DAYS.toMillis(2L) in getTimeDiffStr_durationDaysOther() 132 val duration: Long = TimeUnit.DAYS.toMillis(1L) in getDurationUsedStr_durationDaysOne() 139 val duration: Long = TimeUnit.DAYS.toMillis(2L) in getDurationUsedStr_durationDaysOther()
|