Home
last modified time | relevance | path

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

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/
DDBHistogramIdentifierTest.java50 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildValidIdentifier_success()
60 .isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildValidIdentifier_success()
70 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetForeignKey_success()
79 .isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildUnsetForeignKey_success()
91 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetBuyer_throws()
102 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetCustomAudienceOwner_success()
111 .isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildUnsetCustomAudienceOwner_success()
141 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetSourceApp_success()
150 .isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildUnsetSourceApp_success()
161 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testSetNullForeignKey_success()
[all …]
DCustomAudienceSignalsTest.java44 assertEquals(CustomAudienceFixture.VALID_NAME, customAudienceSignals.getName()); in testBuildCustomAudienceSignals()
65 assertEquals(CustomAudienceFixture.VALID_NAME, customAudienceSignals.getName()); in testBuildFromCustomAudience()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DFetchAndJoinCustomAudienceRequestTest.java47 .setName(CustomAudienceFixture.VALID_NAME) in testBuildValidRequest_all_success()
54 assertThat(request.getName()).isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildValidRequest_all_success()
75 .setName(CustomAudienceFixture.VALID_NAME) in testBuildValidRequest_withName_success()
79 assertThat(request.getName()).isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildValidRequest_withName_success()
137 .setName(CustomAudienceFixture.VALID_NAME) in testBuildNullFetchUri_throws()
145 .setName(CustomAudienceFixture.VALID_NAME) in testEquals_identical()
153 .setName(CustomAudienceFixture.VALID_NAME) in testEquals_identical()
167 .setName(CustomAudienceFixture.VALID_NAME) in testEquals_different()
175 .setName(CustomAudienceFixture.VALID_NAME + "123") in testEquals_different()
189 .setName(CustomAudienceFixture.VALID_NAME) in testEquals_null()
[all …]
DCustomAudienceApiCtsTest.java26 import static android.adservices.customaudience.CustomAudienceFixture.VALID_NAME;
444 () -> fetchAndJoinCustomAudience(request, VALID_BUYER_1, VALID_NAME)); in testFetchAndJoinCustomAudience_validFetchUri_validRequest()
470 () -> fetchAndJoinCustomAudience(request, VALID_BUYER_1, VALID_NAME)); in testFetchAndJoinCustomAudience_unenrolledFetchUri_invalidRequest()
495 .setName(VALID_NAME) in testFetchAndJoinCustomAudience_validName_validRequest()
505 () -> fetchAndJoinCustomAudience(request, VALID_BUYER_1, VALID_NAME)); in testFetchAndJoinCustomAudience_validName_validRequest()
526 .setName(VALID_NAME) in testFetchAndJoinCustomAudience_tooLongName_invalidRequest()
536 () -> fetchAndJoinCustomAudience(request, VALID_BUYER_1, VALID_NAME)); in testFetchAndJoinCustomAudience_tooLongName_invalidRequest()
567 () -> fetchAndJoinCustomAudience(request, VALID_BUYER_1, VALID_NAME)); in testFetchAndJoinCustomAudience_validActivationTime_validRequest()
596 () -> fetchAndJoinCustomAudience(request, VALID_BUYER_1, VALID_NAME)); in testFetchAndJoinCustomAudience_activationExceedsDelay_invalidRequest()
626 () -> fetchAndJoinCustomAudience(request, VALID_BUYER_1, VALID_NAME)); in testFetchAndJoinCustomAudience_validExpirationTime_validRequest()
[all …]
DCustomAudienceTest.java82 assertEquals(CustomAudienceFixture.VALID_NAME, validCustomAudience.getName()); in testBuildValidCustomAudienceSuccess()
115 assertEquals(CustomAudienceFixture.VALID_NAME, validCustomAudience.getName()); in testBuildValidCustomAudienceSuccessWithPriority()
147 assertEquals(CustomAudienceFixture.VALID_NAME, validCustomAudience.getName()); in testBuildValidCustomAudienceSuccessWithoutPriority()
181 assertThat(validCustomAudience.getName()).isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildValidCustomAudienceSuccessWithAuctionServerRequestFlags()
217 .isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildValidDelayedActivationCustomAudienceSuccess()
311 .setName(CustomAudienceFixture.VALID_NAME) in testNonNullValueNotSetBuildFails()
350 assertThat(nullAdsCustomAudience.getName()).isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildNullAdsCustomAudienceSuccess()
383 assertThat(emptyAdsCustomAudience.getName()).isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildEmptyAdsCustomAudienceSuccess()
425 .setName(CustomAudienceFixture.VALID_NAME) in testGetCustomAudienceService_lowRamDevice_throwsIllegalStateException()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/customaudience/
DFetchAndJoinCustomAudienceInputTest.java42 .setName(CustomAudienceFixture.VALID_NAME) in testBuildValidRequest_all_success()
51 .isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildValidRequest_all_success()
84 .setName(CustomAudienceFixture.VALID_NAME) in testBuildValidRequest_withName_success()
90 .isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildValidRequest_withName_success()
154 .setName(CustomAudienceFixture.VALID_NAME) in testBuildNullFetchUri_throws()
164 .setName(CustomAudienceFixture.VALID_NAME) in testBuildNullCallerPackageName_throws()
175 .setName(CustomAudienceFixture.VALID_NAME) in testEquals_identical()
184 .setName(CustomAudienceFixture.VALID_NAME) in testEquals_identical()
200 .setName(CustomAudienceFixture.VALID_NAME) in testEquals_different()
209 .setName(CustomAudienceFixture.VALID_NAME + "123") in testEquals_different()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DHistogramEventTest.java47 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildValidHistogramEvent_success()
56 assertThat(event.getCustomAudienceName()).isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildValidHistogramEvent_success()
70 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetAdCounterKey_throws()
85 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetBuyer_throws()
100 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetCustomAudienceOwnerWithWinType_throws()
113 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetCustomAudienceOwnerWithNonWinType_success()
122 assertThat(event.getCustomAudienceName()).isEqualTo(CustomAudienceFixture.VALID_NAME); in testBuildUnsetCustomAudienceOwnerWithNonWinType_success()
173 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetAdEventType_throws()
188 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetTimestamp_throws()
203 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in testBuildUnsetSourceApp_throws()
[all …]
DAuctionServerCustomAudienceFiltererTest.java58 .setName(CustomAudienceFixture.VALID_NAME) in test_isValidCustomAudience_nullBiddingData_returnsFalse()
79 .setName(CustomAudienceFixture.VALID_NAME) in test_isValidCustomAudience_emptyBiddingKeyList_returnsFalse()
101 .setName(CustomAudienceFixture.VALID_NAME) in test_isValidCustomAudience_nullBiddingKeys_returnsFalse()
126 .setName(CustomAudienceFixture.VALID_NAME) in test_isValidCustomAudience_emptyBiddingKeys_returnsFalse()
151 .setName(CustomAudienceFixture.VALID_NAME) in test_isValidCustomAudience_noAds_returnsFalse()
177 .setName(CustomAudienceFixture.VALID_NAME) in test_isValidCustomAudience_emptyAdRenderId_returnsFalse()
212 .setName(CustomAudienceFixture.VALID_NAME) in test_isValidCustomAudience_nullAdRenderId_returnsFalse()
273 .setName(CustomAudienceFixture.VALID_NAME) in test_isValidCustomAudience_atLeastOneNonNullNonEmptyKeyAndAdRenderId_returnsTrue()
DJsFetcherTest.java96 private static final String NAME = CustomAudienceFixture.VALID_NAME;
258 CustomAudienceFixture.VALID_NAME, in testSuccessfulGetBuyerLogicWithOverrideWithLogger()
278 CustomAudienceFixture.VALID_NAME); in testSuccessfulGetBuyerLogicWithoutOverride()
313 CustomAudienceFixture.VALID_NAME, in testSuccessfulGetBuyerLogicWithoutOverrideAndLogger()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/customaudience/
DFetchCustomAudienceFixture.java42 CustomAudienceFixture.VALID_NAME, in getFullSuccessfulJsonResponseString()
60 CustomAudienceFixture.VALID_NAME, in getFullSuccessfulJsonResponseStringWithAdRenderId()
79 CustomAudienceFixture.VALID_NAME, in getFullJsonResponseStringWithInvalidAdRenderId()
96 CustomAudienceFixture.VALID_NAME, in getFullSuccessfulJsonResponse()
118 .setName(CustomAudienceFixture.VALID_NAME) in getFullSuccessfulDBCustomAudience()
143 .setName(CustomAudienceFixture.VALID_NAME) in getFullSuccessfulDBCustomAudienceWithAdRenderId()
169 .setName(CustomAudienceFixture.VALID_NAME) in getFullSuccessfulDBCustomAudienceWithAuctionServerRequestFlags()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DCustomAudienceBlobTest.java25 import static android.adservices.customaudience.CustomAudienceFixture.VALID_NAME;
76 .setName(VALID_NAME)
84 VALID_NAME,
96 VALID_NAME,
125 assertEquals(mCustomAudienceBlob.getName(), VALID_NAME); in testOverrideFromFetchAndJoinCustomAudienceInput_validValues() local
169 assertEquals(mCustomAudienceBlob.getName(), VALID_NAME); in testOverrideFromJSONObject_validValues() local
205 VALID_NAME, in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled()
223 assertEquals(blob.getName(), VALID_NAME); in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled() local
249 VALID_NAME, in testOverrideFromJSONObject_invalidValuesWithAuctionServerRequestFlagsEnabled()
269 assertEquals(blob.getName(), VALID_NAME); in testOverrideFromJSONObject_invalidValuesWithAuctionServerRequestFlagsEnabled() local
[all …]
DCustomAudienceServiceImplTest.java667 CustomAudienceFixture.VALID_NAME, in testLeaveCustomAudience_runNormally()
680 CustomAudienceFixture.VALID_NAME); in testLeaveCustomAudience_runNormally()
717 CustomAudienceFixture.VALID_NAME, in testLeaveCustomAudienceWithRevokedUserConsent()
788 CustomAudienceFixture.VALID_NAME, in testLeaveCustomAudience_notInBinderThread()
815 CustomAudienceFixture.VALID_NAME, in testLeaveCustomAudience_ownerAssertFailed()
841 CustomAudienceFixture.VALID_NAME, in testLeaveCustomAudience_nullOwner()
858 CustomAudienceFixture.VALID_NAME, in testLeaveCustomAudience_nullBuyer()
892 CustomAudienceFixture.VALID_NAME, in testLeaveCustomAudience_nullCallback()
908 CustomAudienceFixture.VALID_NAME); in testLeaveCustomAudience_errorCallCustomAudienceImpl()
913 CustomAudienceFixture.VALID_NAME, in testLeaveCustomAudience_errorCallCustomAudienceImpl()
[all …]
DCustomAudienceServiceEndToEndTest.java24 import static android.adservices.customaudience.CustomAudienceFixture.VALID_NAME;
422 VALID_NAME)); in testJoinCustomAudience_notInBinderThread_fail()
452 VALID_NAME)); in testJoinCustomAudience_callerPackageNameMismatch_fail()
477 VALID_NAME)); in testJoinCustomAudience_joinTwice_secondJoinOverrideValues()
488 VALID_NAME)); in testJoinCustomAudience_joinTwice_secondJoinOverrideValues()
520 CustomAudienceFixture.VALID_OWNER, CommonFixture.VALID_BUYER_1, VALID_NAME); in testJoinCustomAudienceAppInstallDisabled()
554 CustomAudienceFixture.VALID_OWNER, CommonFixture.VALID_BUYER_1, VALID_NAME); in testJoinCustomAudienceFrequencyCapDisabled()
583 VALID_NAME)); in testJoinCustomAudience_joinTwice_secondJoinOverrideValuesWithAuctionServerRequestFlags()
596 VALID_NAME)); in testJoinCustomAudience_joinTwice_secondJoinOverrideValuesWithAuctionServerRequestFlags()
635 VALID_NAME)); in testJoinCustomAudience_beyondMaxExpirationTime_fail()
[all …]
DCustomAudienceNameValidatorTest.java19 import static android.adservices.customaudience.CustomAudienceFixture.VALID_NAME;
59 assertThrows(NullPointerException.class, () -> mValidator.addValidation(VALID_NAME, null)); in testAddValidation_nullViolations_throws()
65 mValidator.validate(VALID_NAME); in testValidator_valid()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/
DDBCustomAudienceBackgroundFetchDataTest.java60 assertEquals(CustomAudienceFixture.VALID_NAME, fetchData.getName()); in testBuildFetchDataSuccess()
75 .setName(CustomAudienceFixture.VALID_NAME) in testBuildFetchDataDefaultFailuresSuccess()
84 assertEquals(CustomAudienceFixture.VALID_NAME, fetchData.getName()); in testBuildFetchDataDefaultFailuresSuccess()
117 CustomAudienceFixture.VALID_NAME, in testCreateFetchDataSuccess()
127 assertEquals(CustomAudienceFixture.VALID_NAME, fetchData.getName()); in testCreateFetchDataSuccess()
143 CustomAudienceFixture.VALID_NAME, in testCreateDebuggableFetchDataSuccess()
153 assertEquals(CustomAudienceFixture.VALID_NAME, fetchData.getName()); in testCreateDebuggableFetchDataSuccess()
DCustomAudienceDatabaseMigrationTest.java67 contentValuesV2.put("name", CustomAudienceFixture.VALID_NAME); in testMigration2To3()
84 contentValuesV3.put("name", CustomAudienceFixture.VALID_NAME); in testMigration2To3()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/adselection/
DHistogramEventFixture.java35 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME + "Different")
40 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME + "Different")
100 .setCustomAudienceName(CustomAudienceFixture.VALID_NAME) in getValidHistogramEventBuilder()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/customaudience/
DCustomAudienceHelperTest.java58 .put(CustomAudienceHelper.NAME, CustomAudienceFixture.VALID_NAME) in testCustomAudienceFromJson_happyPath()
88 assertThat(customAudience.getName()).isEqualTo(CustomAudienceFixture.VALID_NAME); in testCustomAudienceFromJson_happyPath()
112 .put(CustomAudienceHelper.NAME, CustomAudienceFixture.VALID_NAME) in testCustomAudienceBackgroundFetchDataFromJson_happyPath()
144 .isEqualTo(CustomAudienceFixture.VALID_NAME); in testCustomAudienceBackgroundFetchDataFromJson_happyPath()
165 .put(CustomAudienceHelper.NAME, CustomAudienceFixture.VALID_NAME); in testGetBackgroundFetchDataFromJson_withoutDailyUpdate_throwsIllegalStateException()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/customaudience/
DCustomAudienceFixture.java51 public static final String VALID_NAME = "testCustomAudienceName"; field in CustomAudienceFixture
102 .setName(CustomAudienceFixture.VALID_NAME) in getValidBuilderForBuyer()
147 .setName(CustomAudienceFixture.VALID_NAME) in getValidBuilderForBuyerFilters()
162 .setName(CustomAudienceFixture.VALID_NAME) in getValidBuilderForBuyerFiltersWithAdRenderId()
DLeaveCustomAudienceRequestFixture.java28 .setName(CustomAudienceFixture.VALID_NAME) in getLeaveCustomAudienceRequestWithBuyer()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/datahandlers/
DReportingDataTest.java45 public static final String VALID_NAME = "testCustomAudienceName"; field in ReportingDataTest
51 .setName(VALID_NAME)
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/customaudience/
DDBCustomAudienceFixture.java40 .setName(CustomAudienceFixture.VALID_NAME) in getValidBuilderByBuyer()
95 .setName(CustomAudienceFixture.VALID_NAME) in getValidBuilderByBuyerNoFilters()
DDBCustomAudienceBackgroundFetchDataFixture.java35 .setName(CustomAudienceFixture.VALID_NAME) in getValidBuilderByBuyer()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/
DCustomAudienceTestFixture.java103 buyer + CustomAudienceFixture.VALID_NAME, in createCustomAudience()
169 .setName(buyer + CustomAudienceFixture.VALID_NAME) in createCustomAudienceWithAdCost()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/
DCustomAudienceSignalsFixture.java35 .setName(CustomAudienceFixture.VALID_NAME) in aCustomAudienceSignalsBuilder()

12