/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/common/ |
D | DBAdDataTest.java | 59 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/ |
D | CustomAudienceConvertersTest.java | 215 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/ |
D | FrequencyCapAdDataValidatorNoOpImplTest.java | 81 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations() 86 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations() 91 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations() 96 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations()
|
D | FrequencyCapAdDataValidatorImplTest.java | 90 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations() 95 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations() 100 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations() 105 .getAdFilters() in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations()
|
D | FledgeE2ETest.java | 2361 .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/ |
D | AdDataConversionStrategyFactory.java | 101 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/ |
D | AdDataTest.java | 59 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/ |
D | FrequencyCapAdDataValidatorImpl.java | 56 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/ |
D | AppInstallAdFiltererImpl.java | 135 if (ad.getAdFilters() == null || ad.getAdFilters().getAppInstallFilters() == null) { in doesAdPassAppInstallFilters() 138 for (String packageName : ad.getAdFilters().getAppInstallFilters().getPackageNames()) { in doesAdPassAppInstallFilters()
|
D | FrequencyCapAdFiltererImpl.java | 143 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/ |
D | DBAdData.java | 91 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/ |
D | DBAdDataFixture.java | 38 .setAdFilters(mirrorAdData.getAdFilters()); in getValidDbAdDataBuilder() 94 adData.getAdFilters(), in convertAdDataToDBAdData()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/signature/ |
D | SignedContextualAdsHashUtil.java | 121 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/ |
D | CustomAudienceHelperTest.java | 253 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/ |
D | CustomAudienceUpdatableDataFixture.java | 305 if (ad.getAdFilters() != null) { in addToJsonObject() 306 adJson.put(AD_FILTERS_KEY, ad.getAdFilters().toJson()); in addToJsonObject()
|
D | CustomAudienceBlobFixture.java | 313 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/ |
D | CustomAudienceHelper.java | 153 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/ |
D | CustomAudienceBlob.java | 748 if (ad.getAdFilters() != null) { 749 adJson.put(AD_FILTERS_KEY, ad.getAdFilters().toJson()); 845 .setAdFilters(dbAdData.getAdFilters())
|
D | ScheduledUpdatesHandler.java | 458 .setAdFilters(ad.getAdFilters()) in persistCustomAudience()
|
D | FetchCustomAudienceImpl.java | 487 .setAdFilters(ad.getAdFilters())
|
/packages/modules/AdServices/adservices/framework/java/android/adservices/common/ |
D | AdData.java | 152 public AdFilters getAdFilters() { in getAdFilters() method in AdData
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | CustomAudienceServiceEndToEndTest.java | 3032 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()
|
D | CustomAudienceUpdatableDataReaderTest.java | 603 adData.getAdFilters(), in testGetAdsFromFullJsonObjectAdRenderIdOff_Success_dropAdRenderId()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AppInstallAdFiltererImplTest.java | 338 AdFilters filters = ad.getAdFilters(); in validateAppInstallDBCalls()
|
/packages/modules/AdServices/adservices/framework/api/ |
D | current.txt | 324 method @Nullable public android.adservices.common.AdFilters getAdFilters();
|