Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/common/
DDBAdDataTest.java59 SAMPLE_AD_DATA.getAdFilters(), in testConstructor()
76 assertNull(dbAdData.getAdFilters()); in testConstructorNullsSucceed()
140 assertThat(dbAdData.getAdFilters().getFrequencyCapFilters()) in testFromServiceObjectAppInstallFilteringDisabledFrequencyCapEnabled()
141 .isEqualTo(original.getAdFilters().getFrequencyCapFilters()); in testFromServiceObjectAppInstallFilteringDisabledFrequencyCapEnabled()
142 assertThat(dbAdData.getAdFilters().getAppInstallFilters()).isNull(); in testFromServiceObjectAppInstallFilteringDisabledFrequencyCapEnabled()
152 assertThat(dbAdData.getAdFilters().getFrequencyCapFilters()).isNull(); in testFromServiceObjectFrequencyCapFilteringDisabledAppInstallEnabled()
153 assertThat(dbAdData.getAdFilters().getAppInstallFilters()) in testFromServiceObjectFrequencyCapFilteringDisabledAppInstallEnabled()
154 .isEqualTo(original.getAdFilters().getAppInstallFilters()); in testFromServiceObjectFrequencyCapFilteringDisabledAppInstallEnabled()
164 assertThat(dbAdData.getAdFilters().getFrequencyCapFilters()) in testFromServiceObjectBothFiltersEnabled()
165 .isEqualTo(original.getAdFilters().getFrequencyCapFilters()); in testFromServiceObjectBothFiltersEnabled()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/
DCustomAudienceConvertersTest.java215 assertThat(outputObject.getAdFilters().getFrequencyCapFilters()) in testSerializeAndDeserialize_fromJsonOnlyFCapEnabled()
216 .isEqualTo(expected.getAdFilters().getFrequencyCapFilters()); in testSerializeAndDeserialize_fromJsonOnlyFCapEnabled()
217 assertThat(outputObject.getAdFilters().getAppInstallFilters()).isNull(); in testSerializeAndDeserialize_fromJsonOnlyFCapEnabled()
232 assertThat(outputObject.getAdFilters().getFrequencyCapFilters()) in testSerializeAndDeserialize_toJsonOnlyFCapEnabled()
233 .isEqualTo(expected.getAdFilters().getFrequencyCapFilters()); in testSerializeAndDeserialize_toJsonOnlyFCapEnabled()
234 assertThat(outputObject.getAdFilters().getAppInstallFilters()).isNull(); in testSerializeAndDeserialize_toJsonOnlyFCapEnabled()
249 assertThat(outputObject.getAdFilters().getAppInstallFilters()) in testSerializeAndDeserialize_fromJsonOnlyAppInstallEnabled()
250 .isEqualTo(expected.getAdFilters().getAppInstallFilters()); in testSerializeAndDeserialize_fromJsonOnlyAppInstallEnabled()
251 assertThat(outputObject.getAdFilters().getFrequencyCapFilters()).isNull(); in testSerializeAndDeserialize_fromJsonOnlyAppInstallEnabled()
266 assertThat(outputObject.getAdFilters().getAppInstallFilters()) in testSerializeAndDeserialize_toJsonOnlyAppInstallEnabled()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DFrequencyCapAdDataValidatorNoOpImplTest.java81 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations()
86 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations()
91 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations()
96 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations()
DFrequencyCapAdDataValidatorImplTest.java90 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations()
95 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations()
100 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations()
105 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations()
DFledgeE2ETest.java2361 .setAdFilters(ad.getAdFilters()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2384 .setAdFilters(ad.getAdFilters()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2523 .setAdFilters(ad.getAdFilters()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudience_appInstallFilters()
2546 .setAdFilters(ad.getAdFilters()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudience_appInstallFilters()
2687 .setAdFilters(ad.getAdFilters()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_bothFilters()
2710 .setAdFilters(ad.getAdFilters()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_bothFilters()
2871 .setAdFilters(ad.getAdFilters()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_FCapEnabled_AppInstallDisabled()
2894 .setAdFilters(ad.getAdFilters()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_FCapEnabled_AppInstallDisabled()
3056 .setAdFilters(ad.getAdFilters()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_AppInstallEnabled_FCapDisabled()
3079 .setAdFilters(ad.getAdFilters()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_AppInstallEnabled_FCapDisabled()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/customaudience/
DAdDataConversionStrategyFactory.java101 builder.setFrequencyCapFilters(parcelable.getAdFilters().getFrequencyCapFilters()); in fromServiceObjectFilters()
162 builder.setAppInstallFilters(parcelable.getAdFilters().getAppInstallFilters()); in fromServiceObject()
207 if (adData.getAdFilters() != null) { in toJson()
210 adData.getAdFilters().getFrequencyCapFilters(), adFilterWrapper); in toJson()
212 adData.getAdFilters().getAppInstallFilters(), adFilterWrapper); in toJson()
236 if (parcelable.getAdFilters() != null) { in fromServiceObject()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DAdDataTest.java59 assertThat(validAdData.getAdFilters()) in testBuildValidAdDataSuccess()
81 assertThat(fromParcel.getAdFilters()).isNull(); in testParcelValidAdDataWithUnsetKeysAndFiltersSuccess()
145 assertThat(validAdData.getAdFilters()) in testBuildUnsetAdCounterKeysSuccess()
162 assertThat(validAdData.getAdFilters()).isNull(); in testBuildValidAdDataWithUnsetFiltersSuccess()
215 assertThat(adDataFromParcel.getAdFilters()) in testParcelWithFilters_success()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DFrequencyCapAdDataValidatorImpl.java56 if (adData.getAdFilters() != null in addValidation()
57 && adData.getAdFilters().getFrequencyCapFilters() != null) { in addValidation()
59 FrequencyCapFilters filters = adData.getAdFilters().getFrequencyCapFilters(); in addValidation()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAppInstallAdFiltererImpl.java135 if (ad.getAdFilters() == null || ad.getAdFilters().getAppInstallFilters() == null) { in doesAdPassAppInstallFilters()
138 for (String packageName : ad.getAdFilters().getAppInstallFilters().getPackageNames()) { in doesAdPassAppInstallFilters()
DFrequencyCapAdFiltererImpl.java143 if (ad.getAdFilters() == null || ad.getAdFilters().getFrequencyCapFilters() == null) { in doesAdPassFrequencyCapFilters()
149 FrequencyCapFilters filters = ad.getAdFilters().getFrequencyCapFilters(); in doesAdPassFrequencyCapFilters()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/common/
DDBAdData.java91 public AdFilters getAdFilters() { in getAdFilters() method in DBAdData
109 && Objects.equals(mAdFilters, adData.getAdFilters()) in equals()
148 setAdFilters(copyFrom.getAdFilters()); in Builder()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/common/
DDBAdDataFixture.java38 .setAdFilters(mirrorAdData.getAdFilters()); in getValidDbAdDataBuilder()
94 adData.getAdFilters(), in convertAdDataToDBAdData()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/signature/
DSignedContextualAdsHashUtil.java121 if (!Objects.isNull(adData.getAdFilters())) { in writeAdData()
123 writeField(adData.getAdFilters(), this::writeAdFilters); in writeAdData()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/customaudience/
DCustomAudienceHelperTest.java253 if (adData.getAdFilters() != null) { in getFakeAdsJson()
256 adData.getAdFilters().toJson().toString()); in getFakeAdsJson()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/customaudience/
DCustomAudienceUpdatableDataFixture.java305 if (ad.getAdFilters() != null) { in addToJsonObject()
306 adJson.put(AD_FILTERS_KEY, ad.getAdFilters().toJson()); in addToJsonObject()
DCustomAudienceBlobFixture.java313 if (ad.getAdFilters() != null) { in addAds()
314 adJson.put(AD_FILTERS_KEY, ad.getAdFilters().toJson()); in addAds()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/shell/customaudience/
DCustomAudienceHelper.java153 if (adData.getAdFilters() != null) { in getJsonFromAd()
154 jsonObject.put(ADS_AD_FILTERS, adData.getAdFilters().toJson().toString()); in getJsonFromAd()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DCustomAudienceBlob.java748 if (ad.getAdFilters() != null) {
749 adJson.put(AD_FILTERS_KEY, ad.getAdFilters().toJson());
845 .setAdFilters(dbAdData.getAdFilters())
DScheduledUpdatesHandler.java458 .setAdFilters(ad.getAdFilters()) in persistCustomAudience()
DFetchCustomAudienceImpl.java487 .setAdFilters(ad.getAdFilters())
/packages/modules/AdServices/adservices/framework/java/android/adservices/common/
DAdData.java152 public AdFilters getAdFilters() { in getAdFilters() method in AdData
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DCustomAudienceServiceEndToEndTest.java3032 if (dbCustomAudience.getAds().get(i).getAdFilters() != null) { in verifyFCapFiltersNotNull()
3033 assertThat(dbCustomAudience.getAds().get(i).getAdFilters().getFrequencyCapFilters()) in verifyFCapFiltersNotNull()
3041 if (dbCustomAudience.getAds().get(i).getAdFilters() != null) { in verifyAppInstallFiltersNotNull()
3042 assertThat(dbCustomAudience.getAds().get(i).getAdFilters().getAppInstallFilters()) in verifyAppInstallFiltersNotNull()
3050 if (ad.getAdFilters() != null) { in assertNoFCapFilters()
3051 assertThat(ad.getAdFilters().getFrequencyCapFilters()).isNull(); in assertNoFCapFilters()
3058 if (ad.getAdFilters() != null) { in assertNoAppInstallFilters()
3059 assertThat(ad.getAdFilters().getAppInstallFilters()).isNull(); in assertNoAppInstallFilters()
DCustomAudienceUpdatableDataReaderTest.java603 adData.getAdFilters(), in testGetAdsFromFullJsonObjectAdRenderIdOff_Success_dropAdRenderId()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAppInstallAdFiltererImplTest.java338 AdFilters filters = ad.getAdFilters(); in validateAppInstallDBCalls()
/packages/modules/AdServices/adservices/framework/api/
Dcurrent.txt324 method @Nullable public android.adservices.common.AdFilters getAdFilters();