Home
last modified time | relevance | path

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

12

/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DAdFiltersTest.java21 import android.adservices.common.AdFilters;
43 private static final AdFilters APP_INSTALL_ONLY_FILTER =
44 new AdFilters.Builder()
50 final AdFilters originalFilters = in testBuildValidAdFilters_success()
51 new AdFilters.Builder() in testBuildValidAdFilters_success()
62 final AdFilters originalFilters = in testParcelAdFilters_success()
63 new AdFilters.Builder() in testParcelAdFilters_success()
71 final AdFilters filtersFromParcel = AdFilters.CREATOR.createFromParcel(targetParcel); in testParcelAdFilters_success()
79 final AdFilters originalFilters = in testBuildNullAdFilters_success()
80 new AdFilters.Builder().setFrequencyCapFilters(null).build(); in testBuildNullAdFilters_success()
[all …]
/packages/modules/AdServices/adservices/framework/java/android/adservices/common/
DAdFilters.java40 public final class AdFilters implements Parcelable { class
51 public static final Creator<AdFilters> CREATOR =
52 new Creator<AdFilters>() {
54 public AdFilters createFromParcel(@NonNull Parcel in) {
56 return new AdFilters(in);
60 public AdFilters[] newArray(int size) {
61 return new AdFilters[size];
65 private AdFilters(@NonNull Builder builder) { in AdFilters() method in AdFilters
72 private AdFilters(@NonNull Parcel in) { in AdFilters() method in AdFilters
146 public static AdFilters fromJson(JSONObject json) throws JSONException { in fromJson()
[all …]
DAdData.java43 @Nullable private final AdFilters mAdFilters;
82 in, AdFilters.CREATOR::createFromParcel); in AdData()
152 public AdFilters getAdFilters() { in getAdFilters()
213 @Nullable private AdFilters mAdFilters;
277 public AdData.Builder setAdFilters(@Nullable AdFilters adFilters) { in setAdFilters()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DReadFiltersFromJsonStrategyFactory.java19 import static android.adservices.common.AdFilters.APP_INSTALL_FIELD_NAME;
20 import static android.adservices.common.AdFilters.FREQUENCY_CAP_FIELD_NAME;
25 import android.adservices.common.AdFilters;
77 AdFilters adFilters = null; in readFilters()
79 AdFilters.Builder builder = new AdFilters.Builder(); in readFilters()
119 public void readFrequencyCapFilters(JSONObject json, AdFilters.Builder builder) in readFrequencyCapFilters()
138 public void readFrequencyCapFilters(JSONObject json, AdFilters.Builder builder) in readFrequencyCapFilters()
148 public void readAppInstallFilters(JSONObject json, AdFilters.Builder builder) in readAppInstallFilters()
161 public void readAppInstallFilters(JSONObject json, AdFilters.Builder builder) in readAppInstallFilters()
DReadAppInstallFiltersFromJsonStrategy.java19 import android.adservices.common.AdFilters;
29 void readAppInstallFilters(JSONObject json, AdFilters.Builder builder) throws JSONException; in readAppInstallFilters()
DReadFrequencyCapFiltersFromJsonStrategy.java19 import android.adservices.common.AdFilters;
32 void readFrequencyCapFilters(JSONObject json, AdFilters.Builder builder) throws JSONException; in readFrequencyCapFilters()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/customaudience/
DAdDataConversionStrategyFactory.java19 import static android.adservices.common.AdFilters.APP_INSTALL_FIELD_NAME;
20 import static android.adservices.common.AdFilters.FREQUENCY_CAP_FIELD_NAME;
23 import android.adservices.common.AdFilters;
85 public void fromJsonFilters(JSONObject json, AdFilters.Builder builder) in fromJsonFilters()
100 public void fromServiceObjectFilters(AdData parcelable, AdFilters.Builder builder) { in fromServiceObjectFilters()
125 public void fromJsonFilters(JSONObject json, AdFilters.Builder builder) in fromJsonFilters()
137 public void fromServiceObjectFilters(AdData parcelable, AdFilters.Builder builder) { in fromServiceObjectFilters()
153 public void fromJson(JSONObject json, AdFilters.Builder builder) throws JSONException { in fromJson()
161 public void fromServiceObject(AdData parcelable, AdFilters.Builder builder) { in fromServiceObject()
174 public void fromJson(JSONObject json, AdFilters.Builder builder) throws JSONException { in fromJson()
[all …]
DAppInstallFiltersConversionStrategy.java20 import android.adservices.common.AdFilters;
38 void fromJson(JSONObject json, AdFilters.Builder builder) throws JSONException; in fromJson()
44 void fromServiceObject(AdData parcelable, AdFilters.Builder builder); in fromServiceObject()
DFrequencyCapFiltersConversionStrategy.java20 import android.adservices.common.AdFilters;
48 void fromJsonFilters(JSONObject json, AdFilters.Builder builder) throws JSONException; in fromJsonFilters()
60 void fromServiceObjectFilters(AdData parcelable, AdFilters.Builder builder); in fromServiceObjectFilters()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/common/
DAdFiltersFixture.java21 public static AdFilters getValidUnhiddenFilters() { in getValidUnhiddenFilters()
22 AdFilters.Builder builder = new AdFilters.Builder(); in getValidUnhiddenFilters()
28 public static AdFilters.Builder getValidAdFiltersBuilder() { in getValidAdFiltersBuilder()
29 return new AdFilters.Builder() in getValidAdFiltersBuilder()
34 public static AdFilters getValidAdFilters() { in getValidAdFilters()
DAdDataFixture.java204 new AdFilters.Builder() in getAdDataWithExceededFrequencyCapLimits()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/common/
DDBAdData.java20 import android.adservices.common.AdFilters;
36 @Nullable private final AdFilters mAdFilters;
43 @Nullable AdFilters adFilters, in DBAdData()
91 public AdFilters getAdFilters() { in getAdFilters()
141 @Nullable private AdFilters mAdFilters;
173 public Builder setAdFilters(@Nullable AdFilters adFilters) { in setAdFilters()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DFrequencyCapAdFiltererImplTest.java35 import android.adservices.common.AdFilters;
109 new AdFilters.Builder() in testFilterContextualAdsDoesNotFilterNullComponentFilters()
132 new AdFilters.Builder() in testFilterContextualAdsWithEmptyFrequencyCapFilters()
160 new AdFilters.Builder() in testFilterContextualAdsForNonMatchingFrequencyCap()
203 new AdFilters.Builder() in testFilterContextualAdsForMatchingFrequencyCap()
227 new AdFilters.Builder() in testFilterContextualAdsDoNotFilterWinFrequencyCaps()
263 new AdFilters.Builder() in testFilterCustomAudiencesWithEmptyFrequencyCapFilters()
293 new AdFilters.Builder() in testFilterCustomAudiencesWithNonMatchingFrequencyCapFilters()
353 new AdFilters.Builder() in testFilterCustomAudiencesWithMatchingNonWinFrequencyCapFilters()
363 new AdFilters.Builder() in testFilterCustomAudiencesWithMatchingNonWinFrequencyCapFilters()
[all …]
DFrequencyCapAdFiltererNoOpImplTest.java26 import android.adservices.common.AdFilters;
85 new AdFilters.Builder() in testFilterNullComponentFilters()
106 new AdFilters.Builder().setAppInstallFilters(appFilters).build()) in testAppInstallFilter()
128 new AdFilters.Builder().setAppInstallFilters(appFilters).build()) in testMultipleApps()
152 new AdFilters.Builder().setAppInstallFilters(appFilters1).build()) in testMultipleAds()
157 new AdFilters.Builder().setAppInstallFilters(appFilters2).build()) in testMultipleAds()
DAppInstallAdFiltererNoOpImplTest.java26 import android.adservices.common.AdFilters;
85 new AdFilters.Builder() in testFilterNullComponentFilters()
106 new AdFilters.Builder().setAppInstallFilters(appFilters).build()) in testAppInstallFilter()
128 new AdFilters.Builder().setAppInstallFilters(appFilters).build()) in testMultipleApps()
152 new AdFilters.Builder().setAppInstallFilters(appFilters1).build()) in testMultipleAds()
157 new AdFilters.Builder().setAppInstallFilters(appFilters2).build()) in testMultipleAds()
DAppInstallAdFiltererImplTest.java32 import android.adservices.common.AdFilters;
72 new AdFilters.Builder()
124 new AdFilters.Builder() in testFilterContextualAdsDoesNotFilterNullComponentFilters()
148 new AdFilters.Builder().setAppInstallFilters(appFilters).build()) in testFilterContextualAdsDoesNotFilterForAppNotInstalled()
172 new AdFilters.Builder().setAppInstallFilters(appFilters).build()) in testFilterContextualAdsFiltersForAppInstalled()
204 new AdFilters.Builder().setAppInstallFilters(appFilters).build()) in testFilterContextualAdsFiltersForMixedApps()
238 new AdFilters.Builder().setAppInstallFilters(appFilters1).build()) in testFilterContextualAdsFiltersForMixedAds()
243 new AdFilters.Builder().setAppInstallFilters(appFilters2).build()) in testFilterContextualAdsFiltersForMixedAds()
338 AdFilters filters = ad.getAdFilters(); in validateAppInstallDBCalls()
DFrequencyCapFilteringE2ETest.java37 import android.adservices.common.AdFilters;
177 new AdFilters.Builder()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DFrequencyCapAdDataValidatorImplTest.java26 import android.adservices.common.AdFilters;
130 new AdFilters.Builder() in testAddValidation_nullKeyedFrequencyCapReturnsViolations()
162 new AdFilters.Builder() in testAddValidation_KeyedFrequencyCapsWithNegativeFieldsReturnsViolations()
199 new AdFilters.Builder() in testAddValidation_KeyedFrequencyCapsWithZeroFieldsReturnsViolations()
236 new AdFilters.Builder() in testAddValidation_KeyedFrequencyCapsWithExcessiveIntervalReturnsViolations()
DFledgeE2ETest.java77 import android.adservices.common.AdFilters;
2328 List<AdFilters> adFiltersForCa2 = in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2330 new AdFilters.Builder() in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2333 new AdFilters.Builder().setAppInstallFilters(CURRENT_APP_FILTER).build(), in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2334 new AdFilters.Builder() in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2490 List<AdFilters> adFiltersForCa2 = in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudience_appInstallFilters()
2492 new AdFilters.Builder() in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudience_appInstallFilters()
2495 new AdFilters.Builder().setAppInstallFilters(CURRENT_APP_FILTER).build(), in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudience_appInstallFilters()
2496 new AdFilters.Builder() in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudience_appInstallFilters()
2654 List<AdFilters> adFiltersForCa2 = in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_bothFilters()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/signature/
DBinarySerializerSignedContextualAdsTest.java24 import android.adservices.common.AdFilters;
112 AdFilters adFilters = in testContextualAdSerialization_fullObject_success()
113 new AdFilters.Builder() in testContextualAdSerialization_fullObject_success()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/
DCustomAudienceShellCommandHelper.java21 import android.adservices.common.AdFilters;
124 AdFilters.fromJson(new JSONObject(jsonObject.getString(ADS_AD_FILTERS)))); in getAdFromJson()
DFledgeCtsDebuggableTest.java80 import android.adservices.common.AdFilters;
3036 new AdFilters.Builder() in testFledgeAuctionAppFilteringFlow_overall_Success()
3171 new AdFilters.Builder() in testFledgeAuctionAppFilteringFlow_overall_AppInstallFailure()
3295 new AdFilters.Builder() in testFrequencyCapFiltering_NonWinEvent_FiltersAds()
3467 new AdFilters.Builder() in testFrequencyCapFiltering_DifferentNonWinEvent_IsNotFiltered()
3640 new AdFilters.Builder() in testFrequencyCapFiltering_NonWinEventDifferentKey_IsNotFiltered()
3664 new AdFilters.Builder() in testFrequencyCapFiltering_NonWinEventDifferentKey_IsNotFiltered()
3808 new AdFilters.Builder() in testFrequencyCapFiltering_NonWinEventDifferentBuyer_IsNotFiltered()
3820 new AdFilters.Builder() in testFrequencyCapFiltering_NonWinEventDifferentBuyer_IsNotFiltered()
3990 new AdFilters.Builder() in testFrequencyCapFiltering_NonWinEventWrongAdSelection_DoesNotFilterAds()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/signature/
DSignedContextualAdsHashUtil.java22 import android.adservices.common.AdFilters;
138 private void writeAdFilters(AdFilters adFilters) { in writeAdFilters()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/shell/customaudience/
DCustomAudienceHelper.java21 import android.adservices.common.AdFilters;
232 AdFilters.fromJson(new JSONObject(jsonObject.getString(ADS_AD_FILTERS)))); in getAdFromJson()
/packages/modules/AdServices/adservices/framework/api/
Dcurrent.txt324 method @Nullable public android.adservices.common.AdFilters getAdFilters();
336 …droid.adservices.common.AdData.Builder setAdFilters(@Nullable android.adservices.common.AdFilters);
342 public final class AdFilters implements android.os.Parcelable {
347 …ull public static final android.os.Parcelable.Creator<android.adservices.common.AdFilters> CREATOR;
350 public static final class AdFilters.Builder {
351 ctor public AdFilters.Builder();
352 method @NonNull public android.adservices.common.AdFilters build();
353 …selection_filtering_enabled") @NonNull public android.adservices.common.AdFilters.Builder setAppIn…
354 …method @NonNull public android.adservices.common.AdFilters.Builder setFrequencyCapFilters(@Nullabl…

12