Home
last modified time | relevance | path

Searched refs:MILLIS (Results 1 – 25 of 42) sorted by relevance

12

/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/reset/
DResetDataJobService.java47 private static final long MILLIS = 1000; field in ResetDataJobService
62 .setMinimumLatency(flags.getResetDataDelaySeconds() * MILLIS) in schedule()
63 .setOverrideDeadline(flags.getResetDataDeadlineSeconds() * MILLIS) in schedule()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/
DDBEncryptionKeyTest.java118 .truncatedTo(ChronoUnit.MILLIS)) in testBuildEncryptionKey_expiryInstantSetCorrectly()
119 .isEqualTo(encryptionKey.getExpiryInstant().truncatedTo(ChronoUnit.MILLIS)); in testBuildEncryptionKey_expiryInstantSetCorrectly()
DDBProtectedServersEncryptionConfigTest.java154 .truncatedTo(ChronoUnit.MILLIS)) in testBuildEncryptionKey_expiryInstantSetCorrectly()
155 .isEqualTo(encryptionKey.getExpiryInstant().truncatedTo(ChronoUnit.MILLIS)); in testBuildEncryptionKey_expiryInstantSetCorrectly()
DDBAdSelectionInitializationTest.java36 private static final Instant CREATION_INSTANT_1 = Instant.now().truncatedTo(ChronoUnit.MILLIS);
DDBAdSelectionEntryTest.java45 private static final Instant ACTIVATION_TIME = CLOCK.instant().truncatedTo(ChronoUnit.MILLIS);
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/exceptions/
DRetryableAdServicesNetworkExceptionTest.java40 private static final Duration VALID_RETRY_AFTER = Duration.of(1000, ChronoUnit.MILLIS);
42 private static final Duration NEGATIVE_RETRY_AFTER = Duration.of(-1, ChronoUnit.MILLIS);
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/
DDataHandlersFixture.java55 public static final Instant CREATION_INSTANT_1 = CLOCK.instant().truncatedTo(ChronoUnit.MILLIS);
57 CLOCK.instant().plusSeconds(10).truncatedTo(ChronoUnit.MILLIS);
72 Instant.now().truncatedTo(ChronoUnit.MILLIS);
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/
DCustomAudienceDaoTest.java118 private static final Instant CREATION_TIME_1 = CURRENT_TIME.truncatedTo(ChronoUnit.MILLIS);
120 CURRENT_TIME.plus(Duration.ofDays(1)).truncatedTo(ChronoUnit.MILLIS);
122 CURRENT_TIME.plus(Duration.ofDays(3)).truncatedTo(ChronoUnit.MILLIS);
123 private static final Instant LAST_UPDATED_TIME_1 = CURRENT_TIME.truncatedTo(ChronoUnit.MILLIS);
125 CURRENT_TIME.minus(Duration.ofHours(36)).truncatedTo(ChronoUnit.MILLIS);
127 CURRENT_TIME.minus(Duration.ofDays(72)).truncatedTo(ChronoUnit.MILLIS);
129 CURRENT_TIME.plus(Duration.ofMinutes(1)).truncatedTo(ChronoUnit.MILLIS);
134 .truncatedTo(ChronoUnit.MILLIS);
139 .truncatedTo(ChronoUnit.MILLIS);
141 CURRENT_TIME.plus(Duration.ofMinutes(1)).truncatedTo(ChronoUnit.MILLIS);
[all …]
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/common/
DCommonFixture.java54 FIXED_NOW.truncatedTo(ChronoUnit.MILLIS);
58 Clock.fixed(FIXED_NOW.truncatedTo(ChronoUnit.MILLIS), ZoneOffset.UTC);
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/changelogs/
DHealthConnectChangeLogsTests.java46 import static java.time.temporal.ChronoUnit.MILLIS;
686 Instant yesterday = Instant.now().minus(1, ChronoUnit.DAYS).truncatedTo(MILLIS); in testChangeLogs_operationCombinations_expectCorrectChangeLogs()
794 Instant.now().minus(days, ChronoUnit.DAYS).truncatedTo(MILLIS), in getStepsRecord_minusDays()
798 .truncatedTo(MILLIS), in getStepsRecord_minusDays()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/
DPermissionTypesFragmentTest.kt57 val now = Instant.now().truncatedTo(ChronoUnit.MILLIS) in setup()
DHomeFragmentTest.kt57 val now = Instant.now().truncatedTo(ChronoUnit.MILLIS) in setup()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/database/
DProvisionedKey.java103 return original == null ? null : original.truncatedTo(ChronoUnit.MILLIS); in truncate()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/datahandlers/
DReportingDataTest.java42 Instant.now().truncatedTo(ChronoUnit.MILLIS);
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/common/
DFledgeRoomConvertersTest.java51 Instant instant = CLOCK.instant().truncatedTo(ChronoUnit.MILLIS); in testSerializeDeserializeInstant()
/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/
DExerciseRouteTestHelper.java58 static final Instant START_TIME = yesterdayAt("11:00").truncatedTo(ChronoUnit.MILLIS);
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DProvisionedKeyTest.java121 Instant millisecondFloor = expected.expirationTime.truncatedTo(ChronoUnit.MILLIS); in testEqualityWithDifferingTimestampAccuracy()
DSettingsTest.java224 Instant now = Instant.now().truncatedTo(ChronoUnit.MILLIS);
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/rootcts/
DScheduleCustomAudienceUpdateTest.java109 Duration.of(1, ChronoUnit.MILLIS), in testScheduleCustomAudienceUpdate_DelayLowerLimit_failure()
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DMigrationEntityParcelTest.java49 private static final Instant END_TIME = Instant.now().truncatedTo(ChronoUnit.MILLIS);
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/
DHealthConnectChangeLogsDeviceTests.java59 private static final Instant NOW = Instant.now().truncatedTo(ChronoUnit.MILLIS);
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DOnDeviceAdSelectionRunnerTest.java484 Instant adSelectionCreationTs = Clock.systemUTC().instant().truncatedTo(ChronoUnit.MILLIS); in testRunAdSelectionSuccess()
593 Instant adSelectionCreationTs = Clock.systemUTC().instant().truncatedTo(ChronoUnit.MILLIS); in testRunAdSelectionSuccessWithShouldUseUnifiedTablesFlag()
769 Instant adSelectionCreationTs = Clock.systemUTC().instant().truncatedTo(ChronoUnit.MILLIS); in testRunAdSelectionSuccessWithBuyerContextualSignals()
898 Instant adSelectionCreationTs = Clock.systemUTC().instant().truncatedTo(ChronoUnit.MILLIS); in testRunAdSelectionSuccessWithSellerDataVersionHeader()
1044 Instant adSelectionCreationTs = Clock.systemUTC().instant().truncatedTo(ChronoUnit.MILLIS); in testRunAdSelectionSuccessFilteringDisabled()
1155 Instant adSelectionCreationTs = Clock.systemUTC().instant().truncatedTo(ChronoUnit.MILLIS); in testRunAdSelectionRetriesAdSelectionIdGenerationAfterCollision()
1746 Instant adSelectionCreationTs = Clock.systemUTC().instant().truncatedTo(ChronoUnit.MILLIS); in testRunAdSelectionWithValidSubdomainsSuccess()
2595 Instant adSelectionCreationTs = Clock.systemUTC().instant().truncatedTo(ChronoUnit.MILLIS); in testmMockDBAdSeleciton()
2724 Instant adSelectionCreationTs = Clock.systemUTC().instant().truncatedTo(ChronoUnit.MILLIS); in testRunAdSelectionPerBuyerTimeout()
4138 Instant adSelectionCreationTs = Clock.systemUTC().instant().truncatedTo(ChronoUnit.MILLIS); in testRunAdSelection_withKAnonSignJoinEnabled_success()
[all …]
/packages/modules/AdServices/adservices/tests/jetpack/src/com/android/adservices/protectedaudience/
DFledgeCtsDebuggableJetpackTest.java776 return Instant.now().truncatedTo(ChronoUnit.MILLIS).plus(maxActivationDelayIn.dividedBy(2)); in getValidDelayedActivationTime()
784 return Instant.now().truncatedTo(ChronoUnit.MILLIS); in getValidActivationTime()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/provisioner/
DProvisioner.java237 .truncatedTo(ChronoUnit.MILLIS); in checkAndDeleteBadKeys()
/packages/services/Car/tests/RailwayReferenceApp/src/com/google/android/car/networking/railway/
DMainActivity.java56 Duration.of(2000, ChronoUnit.MILLIS);

12