Home
last modified time | relevance | path

Searched refs:updatableData (Results 1 – 9 of 9) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DBackgroundFetchRunnerTest.java270 CustomAudienceUpdatableData updatableData = in testUpdateCustomAudienceWithEmptyUpdate() local
272 doReturn(FluentFuture.from(immediateFuture(updatableData))) in testUpdateCustomAudienceWithEmptyUpdate()
300 eq(expectedFetchData), eq(updatableData)); in testUpdateCustomAudienceWithEmptyUpdate()
307 CustomAudienceUpdatableData updatableData = in testUpdateCustomAudienceWithFailedUpdate() local
310 doReturn(FluentFuture.from(immediateFuture(updatableData))) in testUpdateCustomAudienceWithFailedUpdate()
351 CustomAudienceUpdatableData updatableData = in testFetchAndValidateSuccessfulEmptyCustomAudienceUpdatableData() local
360 assertEquals(expectedUpdatableData, updatableData); in testFetchAndValidateSuccessfulEmptyCustomAudienceUpdatableData()
379 CustomAudienceUpdatableData updatableData = in testFetchAndValidateSuccessfulFullCustomAudienceUpdatableData() local
388 assertEquals(expectedUpdatableData, updatableData); in testFetchAndValidateSuccessfulFullCustomAudienceUpdatableData()
442 CustomAudienceUpdatableData updatableData = in testFetchAndValidateSuccessfulFullCustomAudienceUpdatableDataWithAuctionServerRequestFlagsEnabled() local
[all …]
DCustomAudienceUpdatableDataTest.java452 CustomAudienceUpdatableData updatableData = in testUnsuccessfulInitialUpdateResultCausesUnsuccessfulUpdate() local
463 updatableData.getContainsSuccessfulUpdate()); in testUnsuccessfulInitialUpdateResultCausesUnsuccessfulUpdate()
469 CustomAudienceUpdatableData updatableData = in testCreateFromNonJsonResponseStringCausesUnsuccessfulUpdate() local
477 assertNull(updatableData.getUserBiddingSignals()); in testCreateFromNonJsonResponseStringCausesUnsuccessfulUpdate()
478 assertNull(updatableData.getTrustedBiddingData()); in testCreateFromNonJsonResponseStringCausesUnsuccessfulUpdate()
479 assertNull(updatableData.getAds()); in testCreateFromNonJsonResponseStringCausesUnsuccessfulUpdate()
480 assertEquals(CommonFixture.FIXED_NOW, updatableData.getAttemptedUpdateTime()); in testCreateFromNonJsonResponseStringCausesUnsuccessfulUpdate()
483 updatableData.getInitialUpdateResult()); in testCreateFromNonJsonResponseStringCausesUnsuccessfulUpdate()
484 assertFalse(updatableData.getContainsSuccessfulUpdate()); in testCreateFromNonJsonResponseStringCausesUnsuccessfulUpdate()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/
DDBCustomAudienceBackgroundFetchDataTest.java215 CustomAudienceUpdatableData updatableData = in testCopyWithFullSuccessfulUpdatableDataResetsFailureCounts() local
221 originalFetchData.copyWithUpdatableData(updatableData); in testCopyWithFullSuccessfulUpdatableDataResetsFailureCounts()
244 CustomAudienceUpdatableData updatableData = in testCopyWithFailedUpdatableDataUpdatesValidationFailureCount() local
251 originalFetchData.copyWithUpdatableData(updatableData); in testCopyWithFailedUpdatableDataUpdatesValidationFailureCount()
275 CustomAudienceUpdatableData updatableData = in testCopyWithResponseValidationFailureUpdatesValidationFailureCount() local
283 originalFetchData.copyWithUpdatableData(updatableData); in testCopyWithResponseValidationFailureUpdatesValidationFailureCount()
307 CustomAudienceUpdatableData updatableData = in testCopyWithNetworkConnectTimeoutFailureUpdatesTimeoutFailureCount() local
315 originalFetchData.copyWithUpdatableData(updatableData); in testCopyWithNetworkConnectTimeoutFailureUpdatesTimeoutFailureCount()
338 CustomAudienceUpdatableData updatableData = in testCopyWithNetworkReadTimeoutFailureUpdatesTimeoutFailureCount() local
346 originalFetchData.copyWithUpdatableData(updatableData); in testCopyWithNetworkReadTimeoutFailureUpdatesTimeoutFailureCount()
[all …]
DDBCustomAudienceTest.java381 CustomAudienceUpdatableData updatableData = in testCopyWithUnsuccessfulUpdatableDataDoesNotChange() local
387 originalCustomAudience.copyWithUpdatableData(updatableData); in testCopyWithUnsuccessfulUpdatableDataDoesNotChange()
410 CustomAudienceUpdatableData updatableData = in testCopyWithDebuggableWorksSuccessfully() local
416 originalCustomAudience.copyWithUpdatableData(updatableData); in testCopyWithDebuggableWorksSuccessfully()
438 CustomAudienceUpdatableData updatableData = in testCopyWithSuccessfulEmptyUpdatableDataOnlyUpdatesTime() local
449 originalCustomAudience.copyWithUpdatableData(updatableData); in testCopyWithSuccessfulEmptyUpdatableDataOnlyUpdatesTime()
477 CustomAudienceUpdatableData updatableData = in testCopyWithSuccessfulFullUpdatableDataUpdatesAll() local
494 originalCustomAudience.copyWithUpdatableData(updatableData); in testCopyWithSuccessfulFullUpdatableDataUpdatesAll()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DBackgroundFetchRunner.java161 updatableData -> { in updateCustomAudience()
167 fetchData.copyWithUpdatableData(updatableData); in updateCustomAudience()
169 if (updatableData.getContainsSuccessfulUpdate()) { in updateCustomAudience()
171 updatedData, updatableData); in updateCustomAudience()
172 if (Objects.nonNull(updatableData.getAds())) { in updateCustomAudience()
173 numOfAds = updatableData.getAds().size(); in updateCustomAudience()
175 updatableData in updateCustomAudience()
200 return updatableData.getInitialUpdateResult(); in updateCustomAudience()
DCustomAudienceUpdatableData.java420 CustomAudienceUpdatableData updatableData = autoValueBuild(); in build() local
423 updatableData.getContainsSuccessfulUpdate() in build()
424 || (updatableData.getUserBiddingSignals() == null in build()
425 && updatableData.getTrustedBiddingData() == null in build()
426 && updatableData.getAds() == null), in build()
430 return updatableData; in build()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/customaudience/
DDBCustomAudience.java239 @NonNull CustomAudienceUpdatableData updatableData) { in copyWithUpdatableData()
240 Objects.requireNonNull(updatableData); in copyWithUpdatableData()
242 if (!updatableData.getContainsSuccessfulUpdate()) { in copyWithUpdatableData()
249 updatableData.getAttemptedUpdateTime()); in copyWithUpdatableData()
251 if (updatableData.getUserBiddingSignals() != null) { in copyWithUpdatableData()
252 customAudienceBuilder.setUserBiddingSignals(updatableData.getUserBiddingSignals()); in copyWithUpdatableData()
255 if (updatableData.getTrustedBiddingData() != null) { in copyWithUpdatableData()
256 customAudienceBuilder.setTrustedBiddingData(updatableData.getTrustedBiddingData()); in copyWithUpdatableData()
259 if (updatableData.getAds() != null) { in copyWithUpdatableData()
260 customAudienceBuilder.setAds(updatableData.getAds()); in copyWithUpdatableData()
DDBCustomAudienceBackgroundFetchData.java167 @NonNull CustomAudienceUpdatableData updatableData) { in copyWithUpdatableData()
180 if (updatableData.getContainsSuccessfulUpdate()) { in copyWithUpdatableData()
183 updatableData.getAttemptedUpdateTime())); in copyWithUpdatableData()
188 switch (updatableData.getInitialUpdateResult()) { in copyWithUpdatableData()
DCustomAudienceDao.java162 @NonNull CustomAudienceUpdatableData updatableData) { in updateCustomAudienceAndBackgroundFetchData() argument
164 Objects.requireNonNull(updatableData); in updateCustomAudienceAndBackgroundFetchData()
175 customAudience = customAudience.copyWithUpdatableData(updatableData); in updateCustomAudienceAndBackgroundFetchData()