Home
last modified time | relevance | path

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

1234

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/
DDBCustomAudienceTest.java65 DBCustomAudience.fromServiceObject( in testFromServiceObject_success()
82 DBCustomAudience.fromServiceObject( in testFromServiceObject_successNoFilters()
105 DBCustomAudience.fromServiceObject( in testFromServiceObject_successNoRenderId()
137 DBCustomAudience.fromServiceObject( in testFromServiceObject_successWIthRenderId()
162 DBCustomAudience.fromServiceObject( in testFromServiceObject_successWithServerAuctionFlagsEnabled()
180 DBCustomAudience.fromServiceObject( in testFromServiceObject_withServerAuctionFlags_serverAuctionFlagsDisabled_success()
198 DBCustomAudience.fromServiceObject( in testFromServiceObject_nullCustomAudience()
213 DBCustomAudience.fromServiceObject( in testFromServiceObject_nullCallerPackageName()
230 DBCustomAudience.fromServiceObject( in testFromServiceObject_nullCurrentTime()
247 DBCustomAudience.fromServiceObject( in testFromServiceObject_nullDefaultExpireIn()
[all …]
DCustomAudienceConvertersTest.java44 DBCustomAudience.Converters mConverters = new DBCustomAudience.Converters(true, true, true);
80 DBCustomAudience.Converters noFilterConverter = in testSerializeAndDeserialize_filtersDisabled()
81 new DBCustomAudience.Converters(false, false, true); in testSerializeAndDeserialize_filtersDisabled()
97 DBCustomAudience.Converters noFilterConverter = in testSerializeAndDeserialize_toJsonFiltersDisabled()
98 new DBCustomAudience.Converters(false, false, true); in testSerializeAndDeserialize_toJsonFiltersDisabled()
114 DBCustomAudience.Converters noFilterConverter = in testSerializeAndDeserialize_fromJsonFiltersDisabled()
115 new DBCustomAudience.Converters(false, false, true); in testSerializeAndDeserialize_fromJsonFiltersDisabled()
131 DBCustomAudience.Converters noRenderIdConverter = in testSerializeAndDeserialize_toJsonRenderIdDisabled()
132 new DBCustomAudience.Converters(true, true, false); in testSerializeAndDeserialize_toJsonRenderIdDisabled()
152 DBCustomAudience.Converters noRenderIdConverter = in testSerializeAndDeserialize_fromJsonRenderIdDisabled()
[all …]
DCustomAudienceDaoTest.java172 private static final DBCustomAudience CUSTOM_AUDIENCE_1 =
173 new DBCustomAudience.Builder()
201 private static final DBCustomAudience CUSTOM_AUDIENCE_1_1 =
202 new DBCustomAudience.Builder()
253 private static final DBCustomAudience CUSTOM_AUDIENCE_1_UPDATED_FROM_UPDATABLE_DATA =
254 new DBCustomAudience.Builder()
268 private static final DBCustomAudience CUSTOM_AUDIENCE_2 =
269 new DBCustomAudience.Builder()
296 private static final DBCustomAudience CUSTOM_AUDIENCE_INACTIVE =
297 new DBCustomAudience.Builder()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/customaudience/
DDBCustomAudienceFixture.java26 import com.android.adservices.data.customaudience.DBCustomAudience;
33 public static final DBCustomAudience VALID_DB_CUSTOM_AUDIENCE_NO_FILTERS =
36 public static DBCustomAudience.Builder getValidBuilderByBuyer(AdTechIdentifier buyer) { in getValidBuilderByBuyer()
37 return new DBCustomAudience.Builder() in getValidBuilderByBuyer()
52 public static DBCustomAudience.Builder getValidBuilderByBuyer( in getValidBuilderByBuyer()
54 return new DBCustomAudience.Builder() in getValidBuilderByBuyer()
69 public static DBCustomAudience.Builder getValidBuilderByBuyerWithAdRenderId( in getValidBuilderByBuyerWithAdRenderId()
74 public static DBCustomAudience.Builder getValidBuilderByBuyerWithAdRenderId( in getValidBuilderByBuyerWithAdRenderId()
76 return new DBCustomAudience.Builder() in getValidBuilderByBuyerWithAdRenderId()
91 public static DBCustomAudience.Builder getValidBuilderByBuyerNoFilters(AdTechIdentifier buyer) { in getValidBuilderByBuyerNoFilters()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAuctionServerCustomAudienceFiltererTest.java33 import com.android.adservices.data.customaudience.DBCustomAudience;
54 DBCustomAudience customAudience = in test_isValidCustomAudience_nullBiddingData_returnsFalse()
55 new DBCustomAudience.Builder() in test_isValidCustomAudience_nullBiddingData_returnsFalse()
75 DBCustomAudience customAudience = in test_isValidCustomAudience_emptyBiddingKeyList_returnsFalse()
76 new DBCustomAudience.Builder() in test_isValidCustomAudience_emptyBiddingKeyList_returnsFalse()
97 DBCustomAudience customAudience = in test_isValidCustomAudience_nullBiddingKeys_returnsFalse()
98 new DBCustomAudience.Builder() in test_isValidCustomAudience_nullBiddingKeys_returnsFalse()
122 DBCustomAudience customAudience = in test_isValidCustomAudience_emptyBiddingKeys_returnsFalse()
123 new DBCustomAudience.Builder() in test_isValidCustomAudience_emptyBiddingKeys_returnsFalse()
147 DBCustomAudience customAudience = in test_isValidCustomAudience_noAds_returnsFalse()
[all …]
DCompressedBuyerInputCreatorNoOptimizationsTest.java29 import com.android.adservices.data.customaudience.DBCustomAudience;
83 Pair<List<DBCustomAudience>, Map<String, DBCustomAudience>> resultPair = in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs()
86 List<DBCustomAudience> dbCustomAudienceList = resultPair.first; in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs()
87 Map<String, DBCustomAudience> namesToCustomAudience = resultPair.second; in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs()
107 DBCustomAudience deviceCA = namesToCustomAudience.get(buyerInputsCAName); in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs()
163 Pair<List<DBCustomAudience>, Map<String, DBCustomAudience>> resultPair = in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs_OnlyPA()
166 List<DBCustomAudience> dbCustomAudienceList = resultPair.first; in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs_OnlyPA()
167 Map<String, DBCustomAudience> namesToCustomAudience = resultPair.second; in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs_OnlyPA()
184 DBCustomAudience deviceCA = namesToCustomAudience.get(buyerInputsCAName); in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs_OnlyPA()
207 private Pair<List<DBCustomAudience>, Map<String, DBCustomAudience>> createDBCustomAudiences( in createDBCustomAudiences()
[all …]
DBuyerInputGeneratorTest.java50 import com.android.adservices.data.customaudience.DBCustomAudience;
133 .addTypeConverter(new DBCustomAudience.Converters(true, true, true)) in setUp()
186 Map<String, DBCustomAudience> namesAndCustomAudiences = in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_success()
208 DBCustomAudience deviceCA = namesAndCustomAudiences.get(buyerInputsCAName); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_success()
237 Map<String, DBCustomAudience> namesAndCustomAudiences = in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
276 DBCustomAudience deviceCA = namesAndCustomAudiences.get(buyerInputsCAName); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
293 DBCustomAudience db1 = namesAndCustomAudiences.get("Shoes CA of Buyer 1"); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
296 DBCustomAudience db2 = namesAndCustomAudiences.get("Shirts CA of Buyer 1"); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
392 Map<String, DBCustomAudience> namesAndCustomAudiences = in testBuyerInputGenerator_returnsBuyerInputsWithoutRenderIdForSpecifiedCA()
397 DBCustomAudience dbCustomAudienceOmitAdsEnabled = in testBuyerInputGenerator_returnsBuyerInputsWithoutRenderIdForSpecifiedCA()
[all …]
DPerBuyerBiddingRunnerTest.java32 import com.android.adservices.data.customaudience.DBCustomAudience;
72 List<DBCustomAudience> mDBCustomAudienceList;
172 List<DBCustomAudience> slowCustomAudiences = in runAndValidatePerBuyerBidding()
174 List<DBCustomAudience> fastCustomAudiences = in runAndValidatePerBuyerBidding()
177 List<DBCustomAudience> customAudienceList = new ArrayList<>(); in runAndValidatePerBuyerBidding()
216 private List<DBCustomAudience> createCustomAudienceList(int count, String suffix) { in createCustomAudienceList()
217 List<DBCustomAudience> customAudienceList = new ArrayList<>(); in createCustomAudienceList()
227 private DBCustomAudience createDBCustomAudience( in createDBCustomAudience()
256 return new DBCustomAudience.Builder() in createDBCustomAudience()
287 private static class ResponseMatcher implements ArgumentMatcher<DBCustomAudience> {
[all …]
DFrequencyCapAdFiltererImplTest.java45 import com.android.adservices.data.customaudience.DBCustomAudience;
249 List<DBCustomAudience> caList = in testFilterCustomAudiencesNothingFiltered()
257 DBCustomAudience caWithEmptyFrequencyCapFilters = in testFilterCustomAudiencesWithEmptyFrequencyCapFilters()
273 List<DBCustomAudience> inputList = in testFilterCustomAudiencesWithEmptyFrequencyCapFilters()
300 DBCustomAudience caWithEmptyFrequencyCapFilters = in testFilterCustomAudiencesWithNonMatchingFrequencyCapFilters()
308 List<DBCustomAudience> inputList = in testFilterCustomAudiencesWithNonMatchingFrequencyCapFilters()
380 DBCustomAudience caWithNonWinFrequencyCapFilters = in testFilterCustomAudiencesWithMatchingNonWinFrequencyCapFilters()
390 DBCustomAudience caWithEmptyFrequencyCapFilters = in testFilterCustomAudiencesWithMatchingNonWinFrequencyCapFilters()
395 List<DBCustomAudience> inputList = in testFilterCustomAudiencesWithMatchingNonWinFrequencyCapFilters()
439 DBCustomAudience caWithWinFrequencyCapFilters = in testFilterCustomAudiencesWithMatchingWinFrequencyCapFilters()
[all …]
DAppInstallAdFiltererImplTest.java42 import com.android.adservices.data.customaudience.DBCustomAudience;
265 List<DBCustomAudience> caList = in testFilterCustomAudiencesNothingFiltered()
275 List<DBCustomAudience> caListWithoutFilterAd = in testFilterCustomAudiencesOneAdFiltered()
278 List<DBCustomAudience> caListWithFilterAd = in testFilterCustomAudiencesOneAdFiltered()
293 List<DBCustomAudience> caListWithoutFilteredCa = in testFilterCustomAudiencesWholeCaFiltered()
296 List<DBCustomAudience> caListWithFilteredCa = in testFilterCustomAudiencesWholeCaFiltered()
299 DBCustomAudience caToFilter = in testFilterCustomAudiencesWholeCaFiltered()
316 DBCustomAudience caToFilterOnAppInstall = in testFilterCustomAudiencesAllCasFiltered()
331 private void validateAppInstallDBCalls(List<DBCustomAudience> caList) { in validateAppInstallDBCalls()
336 for (DBCustomAudience ca : caList) { in validateAppInstallDBCalls()
DAdSelectionE2ETest.java129 import com.android.adservices.data.customaudience.DBCustomAudience;
697 .addTypeConverter(new DBCustomAudience.Converters(true, true, true)) in setUp()
932 DBCustomAudience dBCustomAudienceForBuyer1 = in testRunAdSelectionSuccess_preV3BiddingLogic()
938 DBCustomAudience dBCustomAudienceForBuyer2 = in testRunAdSelectionSuccess_preV3BiddingLogic()
1052 DBCustomAudience dBCustomAudienceForBuyer1 = in testRunAdSelectionSuccess_preV3BiddingLogicWithAdCostCpcBillingEnabled()
1059 DBCustomAudience dBCustomAudienceForBuyer2 = in testRunAdSelectionSuccess_preV3BiddingLogicWithAdCostCpcBillingEnabled()
1184 DBCustomAudience dBCustomAudienceForBuyer1 = in testRunAdSelectionSuccess_preV3BiddingLogicWithDataVersionHeaderFlagEnabled()
1190 DBCustomAudience dBCustomAudienceForBuyer2 = in testRunAdSelectionSuccess_preV3BiddingLogicWithDataVersionHeaderFlagEnabled()
1335 DBCustomAudience dBCustomAudienceForBuyer1 = in testRunAdSelectionSuccess_preV3BiddingLogicWithDataVersionHeaderFlagDisabled()
1341 DBCustomAudience dBCustomAudienceForBuyer2 = in testRunAdSelectionSuccess_preV3BiddingLogicWithDataVersionHeaderFlagDisabled()
[all …]
DCompressedBuyerInputCreatorHelperTest.java33 import com.android.adservices.data.customaudience.DBCustomAudience;
70 DBCustomAudience dbCustomAudience = in testBuildCustomAudienceProto()
93 DBCustomAudience dbCustomAudience = in testBuildCustomAudienceProtoOmitAdsEnabled_CADoesNotOmitsAds()
116 DBCustomAudience dbCustomAudience = in testBuildCustomAudienceProtoOmitAdsEnabled_CAOmitsAds()
147 DBCustomAudience dbCustomAudience = in testAddToBuyerIntermediateStats()
217 DBCustomAudience dbCustomAudience = in testGetUserBiddingSignals_NullUserBiddingSignals()
235 DBCustomAudience dbCustomAudience = in testGetTrustedBiddingSignalsKeys_BiddingSignalsCANameOnly_ReturnsEmptyList()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DBuyerInputGenerator.java27 import com.android.adservices.data.customaudience.DBCustomAudience;
130 ListenableFuture<List<DBCustomAudience>> filteredCAs = in createCompressedBuyerInputs()
135 ListenableFuture<Pair<List<DBCustomAudience>, Map<AdTechIdentifier, DBEncodedPayload>>> in createCompressedBuyerInputs()
161 @NonNull final List<DBCustomAudience> dbCustomAudiences, in generateCompressedBuyerInputFromDBCAsAndEncodedSignals()
200 for (DBCustomAudience dBcustomAudience : dbCustomAudiences) { in generateCompressedBuyerInputFromDBCAsAndEncodedSignals()
249 private ListenableFuture<List<DBCustomAudience>> getBuyersCustomAudience() { in getBuyersCustomAudience()
253 List<DBCustomAudience> allActiveCAs = in getBuyersCustomAudience()
266 private List<DBCustomAudience> getFilteredCustomAudiences(
267 @NonNull final List<DBCustomAudience> dbCustomAudiences) {
269 List<DBCustomAudience> filteredCustomAudiences =
[all …]
DCompressedBuyerInputCreatorHelper.java24 import com.android.adservices.data.customaudience.DBCustomAudience;
61 DBCustomAudience customAudience) { in buildCustomAudienceProtoFrom()
92 protected String getUserBiddingSignals(DBCustomAudience customAudience) { in getUserBiddingSignals()
98 private List<String> getAdRenderIds(DBCustomAudience dbCustomAudience) { in getAdRenderIds()
105 private boolean shouldIncludeAds(DBCustomAudience customAudience) { in shouldIncludeAds()
112 protected List<String> getTrustedBiddingSignalKeys(@NonNull DBCustomAudience customAudience) { in getTrustedBiddingSignalKeys()
132 DBCustomAudience dbCustomAudience, in addToBuyerIntermediateStats()
DOnDeviceAdSelectionRunner.java36 import com.android.adservices.data.customaudience.DBCustomAudience;
258 ListenableFuture<List<DBCustomAudience>> buyerCustomAudience) { in orchestrateAdSelection()
260 ListenableFuture<List<DBCustomAudience>> filteredCas = in orchestrateAdSelection()
264 AsyncFunction<List<DBCustomAudience>, List<AdBiddingOutcome>> bidAds = in orchestrateAdSelection()
304 private List<DBCustomAudience> filterCustomAudiences( in filterCustomAudiences()
305 @NonNull final List<DBCustomAudience> customAudiences) { in filterCustomAudiences()
309 List<DBCustomAudience> toReturn = in filterCustomAudiences()
388 List<DBCustomAudience> beforeFiltering, List<DBCustomAudience> afterFiltering) { in logCustomAudienceAdFilteringDetails()
391 Function<List<DBCustomAudience>, Integer> getNumOfAds = in logCustomAudienceAdFilteringDetails()
411 @NonNull final List<DBCustomAudience> customAudiences, in runAdBidding()
[all …]
DAppInstallAdFiltererImpl.java27 import com.android.adservices.data.customaudience.DBCustomAudience;
62 public List<DBCustomAudience> filterCustomAudiences(List<DBCustomAudience> cas) { in filterCustomAudiences()
65 List<DBCustomAudience> toReturn = new ArrayList<>(); in filterCustomAudiences()
72 for (DBCustomAudience ca : cas) { in filterCustomAudiences()
83 toReturn.add(new DBCustomAudience.Builder(ca).setAds(filteredAds).build()); in filterCustomAudiences()
DFrequencyCapAdFilterer.java21 import com.android.adservices.data.customaudience.DBCustomAudience;
38 List<DBCustomAudience> filterCustomAudiences(List<DBCustomAudience> cas); in filterCustomAudiences()
DAppInstallAdFilterer.java21 import com.android.adservices.data.customaudience.DBCustomAudience;
38 List<DBCustomAudience> filterCustomAudiences(List<DBCustomAudience> cas); in filterCustomAudiences()
DAppInstallAdFiltererNoOpImpl.java22 import com.android.adservices.data.customaudience.DBCustomAudience;
38 public List<DBCustomAudience> filterCustomAudiences(List<DBCustomAudience> cas) { in filterCustomAudiences()
DFrequencyCapAdFiltererNoOpImpl.java22 import com.android.adservices.data.customaudience.DBCustomAudience;
38 public List<DBCustomAudience> filterCustomAudiences(List<DBCustomAudience> cas) { in filterCustomAudiences()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/customaudience/
DDBCustomAudience.java57 tableName = DBCustomAudience.TABLE_NAME,
59 @TypeConverters({DBCustomAudience.Converters.class})
60 public class DBCustomAudience { class
115 public DBCustomAudience( in DBCustomAudience() method in DBCustomAudience
168 public static DBCustomAudience fromServiceObject( in fromServiceObject()
201 return new DBCustomAudience.Builder() in fromServiceObject()
238 public DBCustomAudience copyWithUpdatableData( in copyWithUpdatableData()
246 DBCustomAudience.Builder customAudienceBuilder = in copyWithUpdatableData()
377 if (!(o instanceof DBCustomAudience)) return false; in equals()
378 DBCustomAudience that = (DBCustomAudience) o; in equals()
[all …]
DCustomAudienceDatabase.java39 DBCustomAudience.class,
65 tableName = DBCustomAudience.TABLE_NAME,
69 tableName = DBCustomAudience.TABLE_NAME,
92 DBCustomAudience.Converters converters = in getInstance()
93 new DBCustomAudience.Converters( in getInstance()
DCustomAudienceDao.java70 protected abstract void persistCustomAudience(@NonNull DBCustomAudience customAudience); in persistCustomAudience()
104 @NonNull DBCustomAudience customAudience, in insertOrOverwriteCustomAudienceAndBackgroundFetchData()
120 @NonNull DBCustomAudience customAudience, in insertOrOverwriteCustomAudience()
166 DBCustomAudience customAudience = in updateCustomAudienceAndBackgroundFetchData()
225 public abstract List<DBCustomAudience> listDebuggableCustomAudiencesByOwnerAndBuyer( in listDebuggableCustomAudiencesByOwnerAndBuyer()
232 public abstract DBCustomAudience getDebuggableCustomAudienceByPrimaryKey( in getDebuggableCustomAudienceByPrimaryKey()
313 public abstract DBCustomAudience getCustomAudienceByPrimaryKey( in getCustomAudienceByPrimaryKey()
323 public abstract List<DBCustomAudience> getCustomAudiencesForBuyerAndName( in getCustomAudiencesForBuyerAndName()
749 public abstract List<DBCustomAudience> getAllActiveCustomAudienceForServerSideAuction( in getAllActiveCustomAudienceForServerSideAuction()
766 public abstract List<DBCustomAudience> getActiveCustomAudienceByBuyers( in getActiveCustomAudienceByBuyers()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/customaudience/
DFetchCustomAudienceFixture.java28 import com.android.adservices.data.customaudience.DBCustomAudience;
114 public static DBCustomAudience getFullSuccessfulDBCustomAudience() throws JSONException { in getFullSuccessfulDBCustomAudience()
115 return new DBCustomAudience.Builder() in getFullSuccessfulDBCustomAudience()
138 public static DBCustomAudience getFullSuccessfulDBCustomAudienceWithAdRenderId() in getFullSuccessfulDBCustomAudienceWithAdRenderId()
140 return new DBCustomAudience.Builder() in getFullSuccessfulDBCustomAudienceWithAdRenderId()
163 public static DBCustomAudience getFullSuccessfulDBCustomAudienceWithAuctionServerRequestFlags( in getFullSuccessfulDBCustomAudienceWithAuctionServerRequestFlags()
166 return new DBCustomAudience.Builder() in getFullSuccessfulDBCustomAudienceWithAuctionServerRequestFlags()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/customaudience/
DCustomAudienceHelperTest.java32 import com.android.adservices.data.customaudience.DBCustomAudience;
46 private static final DBCustomAudience.Builder CUSTOM_AUDIENCE_BUILDER =
83 DBCustomAudience customAudience = in testCustomAudienceFromJson_happyPath()
176 DBCustomAudience customAudience = CUSTOM_AUDIENCE_BUILDER.build(); in testToAndFromJson_happyPath_success()
193 DBCustomAudience customAudience = in testToJson_withNullTrustedBiddingData_fieldNotPresent()
206 DBCustomAudience customAudience = in testToJson_withNullUserBiddingSignals_fieldNotPresent()
219 DBCustomAudience customAudience = CUSTOM_AUDIENCE_BUILDER.setAds(List.of()).build(); in testToJson_withNullAds_arrayIsEmpty()

1234