Home
last modified time | relevance | path

Searched refs:FIXED_NOW (Results 1 – 25 of 36) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DCustomAudienceUpdatableDataTest.java74 .setAttemptedUpdateTime(CommonFixture.FIXED_NOW) in testBuildUpdatableDataSuccess()
85 assertEquals(CommonFixture.FIXED_NOW, updatableDataFromBuilder.getAttemptedUpdateTime()); in testBuildUpdatableDataSuccess()
100 CommonFixture.FIXED_NOW, in testBuildUpdatableDataSuccess()
126 .setAttemptedUpdateTime(CommonFixture.FIXED_NOW) in testBuildUpdatableDataSuccessWithAuctionServerFlagsEnabled()
138 assertEquals(CommonFixture.FIXED_NOW, updatableDataFromBuilder.getAttemptedUpdateTime()); in testBuildUpdatableDataSuccessWithAuctionServerFlagsEnabled()
157 CommonFixture.FIXED_NOW, in testBuildUpdatableDataSuccessWithAuctionServerFlagsEnabled()
184 .setAttemptedUpdateTime(CommonFixture.FIXED_NOW) in testBuildUpdatableDataSuccessWithJunkWithAuctionServerFlagsEnabled()
196 assertEquals(CommonFixture.FIXED_NOW, updatableDataFromBuilder.getAttemptedUpdateTime()); in testBuildUpdatableDataSuccessWithJunkWithAuctionServerFlagsEnabled()
216 CommonFixture.FIXED_NOW, in testBuildUpdatableDataSuccessWithJunkWithAuctionServerFlagsEnabled()
242 .setAttemptedUpdateTime(CommonFixture.FIXED_NOW) in testBuildUpdatableDataSuccessWithAuctionServerFlagsDisabled()
[all …]
DBackgroundFetchWorkerTest.java282 .setEligibleUpdateTime(CommonFixture.FIXED_NOW) in testRunBackgroundFetchThrowsTimeoutDuringUpdates()
320 CommonFixture.FIXED_NOW, 1)
325 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW);
356 CommonFixture.FIXED_NOW, 1)
361 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW);
386 .setEligibleUpdateTime(CommonFixture.FIXED_NOW)
398 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW);
423 .setEligibleUpdateTime(CommonFixture.FIXED_NOW);
436 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW);
465 .setEligibleUpdateTime(CommonFixture.FIXED_NOW);
[all …]
DBackgroundFetchRunnerTest.java155 mBackgroundFetchRunnerSpy.deleteExpiredCustomAudiences(CommonFixture.FIXED_NOW); in testDeleteExpiredCustomAudiences()
157 verify(mCustomAudienceDaoMock).deleteAllExpiredCustomAudienceData(CommonFixture.FIXED_NOW); in testDeleteExpiredCustomAudiences()
276 Instant originalEligibleUpdateTime = CommonFixture.FIXED_NOW.minusMillis(60L * 1000L); in testUpdateCustomAudienceWithEmptyUpdate()
280 CommonFixture.FIXED_NOW, mFlags); in testUpdateCustomAudienceWithEmptyUpdate()
295 .updateCustomAudience(CommonFixture.FIXED_NOW, originalFetchData) in testUpdateCustomAudienceWithEmptyUpdate()
314 Instant originalEligibleUpdateTime = CommonFixture.FIXED_NOW.minusMillis(60L * 1000L); in testUpdateCustomAudienceWithFailedUpdate()
330 .updateCustomAudience(CommonFixture.FIXED_NOW, originalFetchData) in testUpdateCustomAudienceWithFailedUpdate()
354 CommonFixture.FIXED_NOW, in testFetchAndValidateSuccessfulEmptyCustomAudienceUpdatableData()
382 CommonFixture.FIXED_NOW, in testFetchAndValidateSuccessfulFullCustomAudienceUpdatableData()
444 CommonFixture.FIXED_NOW, in testFetchAndValidateSuccessfulFullCustomAudienceUpdatableDataWithAuctionServerRequestFlagsEnabled()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/signals/
DDBEncoderEndpointTest.java42 buyer, CommonFixture.getUri(buyer, PATH), CommonFixture.FIXED_NOW); in testCreateEndPoint()
45 assertEquals(CommonFixture.FIXED_NOW, endpoint.getCreationTime()); in testCreateEndPoint()
55 .setCreationTime(CommonFixture.FIXED_NOW) in testBuildEndPoint()
59 assertEquals(CommonFixture.FIXED_NOW, endpoint.getCreationTime()); in testBuildEndPoint()
78 .setCreationTime(CommonFixture.FIXED_NOW) in testEquals()
84 .setCreationTime(CommonFixture.FIXED_NOW) in testEquals()
97 .setCreationTime(CommonFixture.FIXED_NOW) in testNotEquals()
103 .setCreationTime(CommonFixture.FIXED_NOW) in testNotEquals()
115 .setCreationTime(CommonFixture.FIXED_NOW) in testHashCode()
121 .setCreationTime(CommonFixture.FIXED_NOW) in testHashCode()
DDBEncoderLogicMetadataTest.java42 Instant time = CommonFixture.FIXED_NOW; in testCreateEncodingLogic()
57 Instant time = CommonFixture.FIXED_NOW; in testBuildEncodingLogic()
86 Instant time = CommonFixture.FIXED_NOW; in testEquals()
111 Instant time = CommonFixture.FIXED_NOW; in testNotEquals()
136 Instant time = CommonFixture.FIXED_NOW; in testHashCode()
DDBEncodedPayloadTest.java42 Instant time = CommonFixture.FIXED_NOW; in testCreateEncodedPayload()
56 Instant time = CommonFixture.FIXED_NOW; in testBuildEncodedPayload()
DProtectedSignalsDatabaseMigrationTest.java95 contentValuesV2.put("creation_time", CommonFixture.FIXED_NOW.toEpochMilli()); in testMigration2To3()
110 contentValuesV3.put("creation_time", CommonFixture.FIXED_NOW.toEpochMilli()); in testMigration2To3()
DDBEncodedPayloadFixture.java38 .setCreationTime(CommonFixture.FIXED_NOW) in anEncodedPayloadBuilder()
DDBEncoderEndpointFixture.java39 .setCreationTime(CommonFixture.FIXED_NOW); in anEndpointBuilder()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/
DDBCustomAudienceBackgroundFetchDataTest.java167 CommonFixture.FIXED_NOW.plusSeconds( in testComputeNextEligibleUpdateTimeWithInputFlags()
173 CommonFixture.FIXED_NOW, testFlags); in testComputeNextEligibleUpdateTimeWithInputFlags()
183 CommonFixture.FIXED_NOW.plusSeconds(configuredBaseIntervalS); in testComputeNextEligibleUpdateTimeWithPhFlags()
188 CommonFixture.FIXED_NOW, flags); in testComputeNextEligibleUpdateTimeWithPhFlags()
205 .setEligibleUpdateTime(CommonFixture.FIXED_NOW) in testCopyWithFullSuccessfulUpdatableDataResetsFailureCounts()
210 Instant attemptedUpdateTime = CommonFixture.FIXED_NOW.plusSeconds(10); in testCopyWithFullSuccessfulUpdatableDataResetsFailureCounts()
236 .setEligibleUpdateTime(CommonFixture.FIXED_NOW) in testCopyWithFailedUpdatableDataUpdatesValidationFailureCount()
241 Instant attemptedUpdateTime = CommonFixture.FIXED_NOW.plusSeconds(10); in testCopyWithFailedUpdatableDataUpdatesValidationFailureCount()
267 .setEligibleUpdateTime(CommonFixture.FIXED_NOW) in testCopyWithResponseValidationFailureUpdatesValidationFailureCount()
272 Instant attemptedUpdateTime = CommonFixture.FIXED_NOW.plusSeconds(10); in testCopyWithResponseValidationFailureUpdatesValidationFailureCount()
[all …]
DDBPartialCustomAudienceTest.java33 private static final Instant VALID_ACTIVATION_TIME = CommonFixture.FIXED_NOW;
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/
DProtectedSignalsArgumentUtilTest.java48 public static final Instant FIXED_NOW = CommonFixture.FIXED_NOW; field in ProtectedSignalsArgumentUtilTest
73 + FIXED_NOW.getEpochSecond() in testJSArgument()
95 + FIXED_NOW.getEpochSecond() in testSingleSignal()
130 + FIXED_NOW.getEpochSecond() in testMultipleSignals()
135 + FIXED_NOW.getEpochSecond() in testMultipleSignals()
139 + FIXED_NOW.getEpochSecond() in testMultipleSignals()
153 .setCreationTime(FIXED_NOW) in handleEmptyValue()
161 + FIXED_NOW.getEpochSecond() in handleEmptyValue()
172 .setCreationTime(FIXED_NOW) in generateSignal()
DProtectedSignalTest.java40 .setCreationTime(CommonFixture.FIXED_NOW) in testCreateProtectedSignal()
44 assertEquals(CommonFixture.FIXED_NOW, signal.getCreationTime()); in testCreateProtectedSignal()
DSignalsMaintenanceTasksWorkerTest.java77 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW); in setup()
78 mNow = CommonFixture.FIXED_NOW; in setup()
79 mExpirationTime = CommonFixture.FIXED_NOW.minusSeconds(ProtectedSignal.EXPIRATION_SECONDS); in setup()
DProtectedSignalsFixture.java30 private static final Instant NOW = CommonFixture.FIXED_NOW;
DUpdateProcessingOrchestratorTest.java77 private static final Instant NOW = CommonFixture.FIXED_NOW;
402 .setCreationTime(CommonFixture.FIXED_NOW) in createSignal()
413 .setCreationTime(CommonFixture.FIXED_NOW) in createSignal()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/
DAdSelectionDebugReportDaoTest.java21 import static android.adservices.common.CommonFixture.FIXED_NOW;
47 DBAdSelectionDebugReport.create(null, DEBUG_URI, false, FIXED_NOW.toEpochMilli());
71 DBAdSelectionDebugReport.create(1234L, DEBUG_URI, true, FIXED_NOW.toEpochMilli()); in testPersistAdSelectionDebugReportingHandlesDuplicateEntries()
77 mAdSelectionDebugReportDao.getDebugReportsBeforeTime(FIXED_NOW, 1); in testPersistAdSelectionDebugReportingHandlesDuplicateEntries()
89 mAdSelectionDebugReportDao.getDebugReportsBeforeTime(FIXED_NOW, 1); in testGetDebugReportsBeforeTime()
120 mAdSelectionDebugReportDao.deleteDebugReportsBeforeTime(FIXED_NOW); in testDeleteDebugReportsBeforeTime()
143 mAdSelectionDebugReportDao.getDebugReportsBeforeTime(FIXED_NOW, largeLimit); in testGetDebugReportsBeforeTimeHonorsLimit()
145 mAdSelectionDebugReportDao.getDebugReportsBeforeTime(FIXED_NOW, lowLimit); in testGetDebugReportsBeforeTimeHonorsLimit()
147 mAdSelectionDebugReportDao.getDebugReportsBeforeTime(FIXED_NOW, zeroLimit); in testGetDebugReportsBeforeTimeHonorsLimit()
DConsentedDebugConfigurationDaoTest.java19 import static android.adservices.common.CommonFixture.FIXED_NOW;
46 private static final Instant CREATION_TIMESTAMP = FIXED_NOW;
78 FIXED_NOW, 1); in testGetAllActiveConsentedDebugConfigurations()
116 FIXED_NOW, 1); in testGetAllActiveConsentedDebugConfigurations_fetchesRecentlyCreated()
148 FIXED_NOW, 1); in testGetAllActiveConsentedDebugConfigurations_doesNotFetchExpiredEntries()
161 FIXED_NOW, 1); in testDeleteAllConsentedDebugConfigurations()
165 FIXED_NOW, 1); in testDeleteAllConsentedDebugConfigurations()
196 FIXED_NOW, largeLimit); in testDeleteExistingConsentedDebugConfigurationsAndPersist()
201 FIXED_NOW, largeLimit); in testDeleteExistingConsentedDebugConfigurationsAndPersist()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAdCounterHistogramUpdaterImplTest.java335 CommonFixture.FIXED_NOW)); in testUpdateNonWinHistogram_nullCallerPackageNameThrows()
347 CommonFixture.FIXED_NOW)); in testUpdateNonWinHistogram_invalidAdEventTypeThrows()
359 CommonFixture.FIXED_NOW)); in testUpdateNonWinHistogram_winAdEventTypeThrows()
384 CommonFixture.FIXED_NOW); in testUpdateNonWinHistogram_missingAdSelectionStops()
399 CommonFixture.FIXED_NOW); in testUpdateNonWinHistogram_nullAdCounterKeysStops()
416 CommonFixture.FIXED_NOW); in testUpdateNonWinHistogram_withAdCounterKeysPersists()
422 .setTimestamp(CommonFixture.FIXED_NOW) in testUpdateNonWinHistogram_withAdCounterKeysPersists()
459 CommonFixture.FIXED_NOW); in testUpdateNonWinHistogram_withAdCounterKeysPersists_auctionServerOff()
465 .setTimestamp(CommonFixture.FIXED_NOW) in testUpdateNonWinHistogram_withAdCounterKeysPersists_auctionServerOff()
506 CommonFixture.FIXED_NOW); in testUpdateNonWinHistogram_withAdCounterKeysPersists_auctionServerOn()
[all …]
DAdCounterHistogramUpdaterNoOpImplTest.java59 CommonFixture.FIXED_NOW)); in testUpdateNonWinHistogram_nullCallerPackageNameThrows()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/
DBackgroundKeyFetchWorkerTest.java157 DBEncryptionKeyFixture.getKeysExpiringInTtl(CommonFixture.FIXED_NOW, 1L)); in setup()
159 getEncryptionConfigs(CommonFixture.FIXED_NOW, 0L)); in setup()
285 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW);
288 verify(mKeyManagerSpy).getExpiredAdSelectionEncryptionKeyTypes(CommonFixture.FIXED_NOW);
337 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW.plusSeconds(100));
384 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW.plusSeconds(100));
434 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW.plusSeconds(100));
508 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW.plusSeconds(100));
562 when(mClockMock.instant()).thenReturn(CommonFixture.FIXED_NOW);
596 DBEncryptionKeyFixture.getKeysExpiringInTtl(CommonFixture.FIXED_NOW, 6L));
[all …]
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/common/
DCommonFixture.java52 public static final Instant FIXED_NOW = Instant.now(); field in CommonFixture
54 FIXED_NOW.truncatedTo(ChronoUnit.MILLIS);
55 public static final Instant FIXED_EARLIER_ONE_DAY = FIXED_NOW.minus(1, ChronoUnit.DAYS);
56 public static final Instant FIXED_NEXT_ONE_DAY = FIXED_NOW.plus(1, ChronoUnit.DAYS);
58 Clock.fixed(FIXED_NOW.truncatedTo(ChronoUnit.MILLIS), ZoneOffset.UTC);
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/debug/
DConsentedDebugConfigurationGeneratorFactoryTest.java19 import static android.adservices.common.CommonFixture.FIXED_NOW;
41 private static final Instant CREATION_TIMESTAMP = FIXED_NOW;
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/customaudience/
DCustomAudienceUpdatableDataFixture.java355 .setAttemptedUpdateTime(CommonFixture.FIXED_NOW) in getValidBuilderFullSuccessfulResponse()
365 .setAttemptedUpdateTime(CommonFixture.FIXED_NOW) in getValidBuilderEmptySuccessfulResponse()
375 .setAttemptedUpdateTime(CommonFixture.FIXED_NOW) in getValidBuilderEmptyFailedResponse()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/adselection/
DConsentedDebugShellCommandTest.java295 Instant creationTimestamp = CommonFixture.FIXED_NOW; in test_view_success()
297 Instant expiryTimestamp = CommonFixture.FIXED_NOW.plus(expiryDuration); in test_view_success()

12