Home
last modified time | relevance | path

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

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DCustomAudienceServiceImplTest.java208 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_runNormally()
213 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_runNormally()
219 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_runNormally()
225 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_runNormally()
234 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_runNormally()
241 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_runNormally()
247 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_runNormally()
259 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudienceWithRevokedUserConsentSuccess()
264 eq(CustomAudienceFixture.VALID_OWNER), in testJoinCustomAudienceWithRevokedUserConsentSuccess()
270 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudienceWithRevokedUserConsentSuccess()
[all …]
DCustomAudienceQuantityCheckerTest.java60 () -> mChecker.check(null, CustomAudienceFixture.VALID_OWNER)); in testNullCustomAudience_throwNPE()
79 when(mCustomAudienceDao.getCustomAudienceStats(CustomAudienceFixture.VALID_OWNER)) in testExistOwnerAndOwnerReachMax_success()
82 .setOwner(CustomAudienceFixture.VALID_OWNER) in testExistOwnerAndOwnerReachMax_success()
90 CustomAudienceFixture.VALID_OWNER); in testExistOwnerAndOwnerReachMax_success()
91 verify(mCustomAudienceDao).getCustomAudienceStats(CustomAudienceFixture.VALID_OWNER); in testExistOwnerAndOwnerReachMax_success()
97 when(mCustomAudienceDao.getCustomAudienceStats(CustomAudienceFixture.VALID_OWNER)) in testOwnerExceedMax()
100 .setOwner(CustomAudienceFixture.VALID_OWNER) in testOwnerExceedMax()
114 CustomAudienceFixture.VALID_OWNER)), in testOwnerExceedMax()
118 verify(mCustomAudienceDao).getCustomAudienceStats(CustomAudienceFixture.VALID_OWNER); in testOwnerExceedMax()
124 when(mCustomAudienceDao.getCustomAudienceStats(CustomAudienceFixture.VALID_OWNER)) in testTotalCountExceedMax()
[all …]
DCustomAudienceServiceEndToEndTest.java25 import static android.adservices.customaudience.CustomAudienceFixture.VALID_OWNER;
416 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_notInBinderThread_fail()
420 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_notInBinderThread_fail()
450 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_callerPackageNameMismatch_fail()
470 CUSTOM_AUDIENCE_PK1_1, CustomAudienceFixture.VALID_OWNER, callback); in testJoinCustomAudience_joinTwice_secondJoinOverrideValues()
475 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_joinTwice_secondJoinOverrideValues()
481 CUSTOM_AUDIENCE_PK1_2, CustomAudienceFixture.VALID_OWNER, callback); in testJoinCustomAudience_joinTwice_secondJoinOverrideValues()
486 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_joinTwice_secondJoinOverrideValues()
515 CUSTOM_AUDIENCE_PK1_1, CustomAudienceFixture.VALID_OWNER, callback); in testJoinCustomAudienceAppInstallDisabled()
520 CustomAudienceFixture.VALID_OWNER, CommonFixture.VALID_BUYER_1, VALID_NAME); in testJoinCustomAudienceAppInstallDisabled()
[all …]
DCustomAudienceImplTest.java122 VALID_CUSTOM_AUDIENCE, CustomAudienceFixture.VALID_OWNER, DEV_OPTIONS_DISABLED); in testJoinCustomAudience_runNormally()
132 .check(VALID_CUSTOM_AUDIENCE, CustomAudienceFixture.VALID_OWNER); in testJoinCustomAudience_runNormally()
143 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudience_withDevOptionsEnabled()
154 .check(VALID_CUSTOM_AUDIENCE, CustomAudienceFixture.VALID_OWNER); in testJoinCustomAudience_withDevOptionsEnabled()
181 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudienceWithServerAuctionFlags_runNormallyFlagEnabled()
194 CustomAudienceFixture.VALID_OWNER); in testJoinCustomAudienceWithServerAuctionFlags_runNormallyFlagEnabled()
221 CustomAudienceFixture.VALID_OWNER, in testJoinCustomAudienceWithServerAuctionFlags_runNormallyFlagDisabled()
234 CustomAudienceFixture.VALID_OWNER); in testJoinCustomAudienceWithServerAuctionFlags_runNormallyFlagDisabled()
246 .setOwner(CustomAudienceFixture.VALID_OWNER) in testJoinCustomAudienceWithSubdomains_runNormally()
253 .getCustomAudienceStats(eq(CustomAudienceFixture.VALID_OWNER)); in testJoinCustomAudienceWithSubdomains_runNormally()
[all …]
DCustomAudienceBlobTest.java26 import static android.adservices.customaudience.CustomAudienceFixture.VALID_OWNER;
75 VALID_OWNER)
82 VALID_OWNER,
94 VALID_OWNER,
123 assertEquals(mCustomAudienceBlob.getOwner(), VALID_OWNER); in testOverrideFromFetchAndJoinCustomAudienceInput_validValues() local
145 VALID_OWNER, in testOverrideFromPartialCustomAudience_validValues()
149 assertEquals(mCustomAudienceBlob.getOwner(), VALID_OWNER); in testOverrideFromPartialCustomAudience_validValues() local
167 assertEquals(mCustomAudienceBlob.getOwner(), VALID_OWNER); in testOverrideFromJSONObject_validValues() local
203 VALID_OWNER, in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled()
221 assertEquals(blob.getOwner(), VALID_OWNER); in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled() local
[all …]
DFetchCustomAudienceImplTest.java44 import static android.adservices.customaudience.CustomAudienceFixture.VALID_OWNER;
217 new FetchAndJoinCustomAudienceInput.Builder(mFetchUri, VALID_OWNER) in setup()
234 VALID_OWNER, in setup()
246 VALID_OWNER, in setup()
258 .setOwner(VALID_OWNER) in setup()
265 .getCustomAudienceStats(eq(VALID_OWNER)); in setup()
269 .doesCustomAudienceQuarantineExist(VALID_OWNER, BUYER); in setup()
310 String otherPackageName = VALID_OWNER + "incorrectPackage"; in testImpl_invalidPackageName_throws()
348 VALID_OWNER, in testImpl_throttled_throws()
380 VALID_OWNER, in testImpl_failedForegroundCheck_throws()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/customaudience/
DScheduleCustomAudienceUpdateInputTest.java47 CustomAudienceFixture.VALID_OWNER, in testBuildValidRequest_All_Success()
56 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_All_Success()
71 CustomAudienceFixture.VALID_OWNER, in testBuildValidRequest_AllSetters_Success()
83 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_AllSetters_Success()
94 CustomAudienceFixture.VALID_OWNER, in testBuildValidRequestParcel_Success()
115 CustomAudienceFixture.VALID_OWNER, in testBuild_NullUpdateUri_Throws()
141 CustomAudienceFixture.VALID_OWNER, in testBuild_NullDelay_Throws()
154 CustomAudienceFixture.VALID_OWNER, in testBuild_NullPartialCa_Throws()
166 CustomAudienceFixture.VALID_OWNER, in testEquals_Same()
174 CustomAudienceFixture.VALID_OWNER, in testEquals_Same()
[all …]
DFetchAndJoinCustomAudienceInputTest.java41 VALID_FETCH_URI_1, CustomAudienceFixture.VALID_OWNER) in testBuildValidRequest_all_success()
63 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_all_success()
70 VALID_FETCH_URI_1, CustomAudienceFixture.VALID_OWNER) in testBuildValidRequest_onlyFetchUriAndCallerPackageName_success()
76 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_onlyFetchUriAndCallerPackageName_success()
83 VALID_FETCH_URI_1, CustomAudienceFixture.VALID_OWNER) in testBuildValidRequest_withName_success()
93 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_withName_success()
100 VALID_FETCH_URI_1, CustomAudienceFixture.VALID_OWNER) in testBuildValidRequest_withActivationTime_success()
110 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_withActivationTime_success()
117 VALID_FETCH_URI_1, CustomAudienceFixture.VALID_OWNER) in testBuildValidRequest_withExpirationTime_success()
127 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildValidRequest_withExpirationTime_success()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/
DCustomAudienceOverrideTest.java45 .setOwner(CustomAudienceFixture.VALID_OWNER) in testBuildDBAdSelectionOverride()
54 assertEquals(dbCustomAudienceOverride.getOwner(), CustomAudienceFixture.VALID_OWNER); in testBuildDBAdSelectionOverride()
85 .setOwner(CustomAudienceFixture.VALID_OWNER) in testThrowsExceptionWithNoBuyer()
101 .setOwner(CustomAudienceFixture.VALID_OWNER) in testThrowsExceptionWithNoName()
117 .setOwner(CustomAudienceFixture.VALID_OWNER) in testThrowsExceptionWithNoAppPackageName()
133 .setOwner(CustomAudienceFixture.VALID_OWNER) in testThrowsExceptionWithNoBiddingLogicJS()
149 .setOwner(CustomAudienceFixture.VALID_OWNER) in testThrowsExceptionWithNoTrustedBiddingData()
163 .setOwner(CustomAudienceFixture.VALID_OWNER) in testNoBiddingLogicJsVersion()
171 assertEquals(dbCustomAudienceOverride.getOwner(), CustomAudienceFixture.VALID_OWNER); in testNoBiddingLogicJsVersion()
DDBCustomAudienceTest.java69 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_success()
85 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_successNoFilters()
116 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_successNoRenderId()
148 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_successWIthRenderId()
167 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_successWithServerAuctionFlagsEnabled()
185 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_withServerAuctionFlags_serverAuctionFlagsDisabled_success()
200 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_nullCustomAudience()
234 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_nullCurrentTime()
251 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_nullDefaultExpireIn()
268 CustomAudienceFixture.VALID_OWNER, in testFromServiceObject_nullConversionStrategy()
[all …]
DDBCustomAudienceQuarantineTest.java42 .setOwner(CustomAudienceFixture.VALID_OWNER) in testBuildDBFetchCustomAudienceQuarantineSucceeds()
47 assertEquals(CustomAudienceFixture.VALID_OWNER, dbCustomAudienceQuarantine.getOwner()); in testBuildDBFetchCustomAudienceQuarantineSucceeds()
57 CustomAudienceFixture.VALID_OWNER, in testCreateDBFetchCustomAudienceQuarantineSucceeds()
61 assertEquals(CustomAudienceFixture.VALID_OWNER, dbCustomAudienceQuarantine.getOwner()); in testCreateDBFetchCustomAudienceQuarantineSucceeds()
84 .setOwner(CustomAudienceFixture.VALID_OWNER) in testBuildDBFetchCustomAudienceQuarantineThrowsExceptionWithNullBuyer()
96 .setOwner(CustomAudienceFixture.VALID_OWNER) in testBuildDBFetchCustomAudienceQuarantineThrowsExceptionWithNullQuarantineExpiration()
DDBCustomAudienceBackgroundFetchDataTest.java58 assertEquals(CustomAudienceFixture.VALID_OWNER, fetchData.getOwner()); in testBuildFetchDataSuccess()
73 .setOwner(CustomAudienceFixture.VALID_OWNER) in testBuildFetchDataDefaultFailuresSuccess()
82 assertEquals(CustomAudienceFixture.VALID_OWNER, fetchData.getOwner()); in testBuildFetchDataDefaultFailuresSuccess()
115 CustomAudienceFixture.VALID_OWNER, in testCreateFetchDataSuccess()
125 assertEquals(CustomAudienceFixture.VALID_OWNER, fetchData.getOwner()); in testCreateFetchDataSuccess()
141 CustomAudienceFixture.VALID_OWNER, in testCreateDebuggableFetchDataSuccess()
151 assertEquals(CustomAudienceFixture.VALID_OWNER, fetchData.getOwner()); in testCreateDebuggableFetchDataSuccess()
DCustomAudienceStatsTest.java59 .setOwner(CustomAudienceFixture.VALID_OWNER) in testBuildWithValues()
69 assertThat(stats.getOwner()).isEqualTo(CustomAudienceFixture.VALID_OWNER); in testBuildWithValues()
DCustomAudienceDatabaseMigrationTest.java65 contentValuesV2.put("owner", CustomAudienceFixture.VALID_OWNER); in testMigration2To3()
82 contentValuesV3.put("owner", CustomAudienceFixture.VALID_OWNER); in testMigration2To3()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/customaudience/
DFetchCustomAudienceFixture.java40 CustomAudienceFixture.VALID_OWNER, in getFullSuccessfulJsonResponseString()
58 CustomAudienceFixture.VALID_OWNER, in getFullSuccessfulJsonResponseStringWithAdRenderId()
77 CustomAudienceFixture.VALID_OWNER, in getFullJsonResponseStringWithInvalidAdRenderId()
94 CustomAudienceFixture.VALID_OWNER, in getFullSuccessfulJsonResponse()
117 .setOwner(CustomAudienceFixture.VALID_OWNER) in getFullSuccessfulDBCustomAudience()
142 .setOwner(CustomAudienceFixture.VALID_OWNER) in getFullSuccessfulDBCustomAudienceWithAdRenderId()
168 .setOwner(CustomAudienceFixture.VALID_OWNER) in getFullSuccessfulDBCustomAudienceWithAuctionServerRequestFlags()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAuctionServerCustomAudienceFiltererTest.java20 import static android.adservices.customaudience.CustomAudienceFixture.VALID_OWNER;
56 .setOwner(VALID_OWNER) in test_isValidCustomAudience_nullBiddingData_returnsFalse()
77 .setOwner(VALID_OWNER) in test_isValidCustomAudience_emptyBiddingKeyList_returnsFalse()
99 .setOwner(VALID_OWNER) in test_isValidCustomAudience_nullBiddingKeys_returnsFalse()
124 .setOwner(VALID_OWNER) in test_isValidCustomAudience_emptyBiddingKeys_returnsFalse()
149 .setOwner(VALID_OWNER) in test_isValidCustomAudience_noAds_returnsFalse()
175 .setOwner(VALID_OWNER) in test_isValidCustomAudience_emptyAdRenderId_returnsFalse()
210 .setOwner(VALID_OWNER) in test_isValidCustomAudience_nullAdRenderId_returnsFalse()
271 .setOwner(VALID_OWNER) in test_isValidCustomAudience_atLeastOneNonNullNonEmptyKeyAndAdRenderId_returnsTrue()
DCustomAudienceBiddingInfoTest.java46 .setOwner(CustomAudienceFixture.VALID_OWNER)
55 .setOwner(CustomAudienceFixture.VALID_OWNER)
DJsFetcherTest.java94 private static final String OWNER = CustomAudienceFixture.VALID_OWNER;
256 CustomAudienceFixture.VALID_OWNER, in testSuccessfulGetBuyerLogicWithOverrideWithLogger()
276 CustomAudienceFixture.VALID_OWNER, in testSuccessfulGetBuyerLogicWithoutOverride()
311 CustomAudienceFixture.VALID_OWNER, in testSuccessfulGetBuyerLogicWithoutOverrideAndLogger()
DAdSelectionScriptEngineTest.java156 CustomAudienceFixture.VALID_OWNER,
164 CustomAudienceFixture.VALID_OWNER,
642 CustomAudienceFixture.VALID_OWNER, in testGenerateBidV3SuccessfulCase()
703 CustomAudienceFixture.VALID_OWNER, in testGenerateBidV3WithCopierSuccessfulCase()
748 CustomAudienceFixture.VALID_OWNER, in testGenerateBidV3WithCopierWithAdCounterKeysSuccessfulCase()
1082 CustomAudienceFixture.VALID_OWNER, in testGenerateBidV3ReturnDebugReportingNoUrl()
1147 CustomAudienceFixture.VALID_OWNER, in testGenerateBidV3ReturnDebugReportingNoUrl_WhenDisabled()
1210 CustomAudienceFixture.VALID_OWNER, in testGenerateBidV3ReturnDebugReportingNoBadUrl()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/customaudience/
DDBCustomAudienceFixture.java38 .setOwner(CustomAudienceFixture.VALID_OWNER) in getValidBuilderByBuyer()
55 .setOwner(CustomAudienceFixture.VALID_OWNER) in getValidBuilderByBuyer()
71 return getValidBuilderByBuyerWithAdRenderId(buyer, name, CustomAudienceFixture.VALID_OWNER); in getValidBuilderByBuyerWithAdRenderId()
93 .setOwner(CustomAudienceFixture.VALID_OWNER) in getValidBuilderByBuyerNoFilters()
124 return getValidBuilderByBuyerWithAdRenderId(buyer, name, CustomAudienceFixture.VALID_OWNER) in getValidBuilderByBuyerWithOmitAdsEnabled()
DDBCustomAudienceBackgroundFetchDataFixture.java33 .setOwner(CustomAudienceFixture.VALID_OWNER) in getValidBuilderByBuyer()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DFledgeAuthorizationFilterTest.java193 eq(CustomAudienceFixture.VALID_OWNER), eq(PackageManager.GET_PERMISSIONS)); in testAssertAppHasCaPermission_appHasPermission()
203 CustomAudienceFixture.VALID_OWNER, in testAssertAppHasCaPermission_appHasPermission()
218 eq(CustomAudienceFixture.VALID_OWNER), eq(PackageManager.GET_PERMISSIONS)); in testAssertAppHasPasPermission_appHasPermission()
228 CustomAudienceFixture.VALID_OWNER, in testAssertAppHasPasPermission_appHasPermission()
242 eq(CustomAudienceFixture.VALID_OWNER), eq(PackageManager.GET_PERMISSIONS)); in testAssertAppHasAnyPermission_appHasAllPermissions()
258 CustomAudienceFixture.VALID_OWNER, in testAssertAppHasAnyPermission_appHasAllPermissions()
276 eq(CustomAudienceFixture.VALID_OWNER), eq(PackageManager.GET_PERMISSIONS)); in testAssertAppHasAnyPermission_appHasOnePermission()
292 CustomAudienceFixture.VALID_OWNER, in testAssertAppHasAnyPermission_appHasOnePermission()
310 eq(CustomAudienceFixture.VALID_OWNER), eq(PackageManager.GET_PERMISSIONS)); in testAssertAppHasAnyPermission_appHasTwoPermissions()
326 CustomAudienceFixture.VALID_OWNER, in testAssertAppHasAnyPermission_appHasTwoPermissions()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/customaudience/
DCustomAudienceHelperTest.java56 .put(CustomAudienceHelper.OWNER, CustomAudienceFixture.VALID_OWNER) in testCustomAudienceFromJson_happyPath()
86 assertThat(customAudience.getOwner()).isEqualTo(CustomAudienceFixture.VALID_OWNER); in testCustomAudienceFromJson_happyPath()
110 .put(CustomAudienceHelper.OWNER, CustomAudienceFixture.VALID_OWNER) in testCustomAudienceBackgroundFetchDataFromJson_happyPath()
140 .isEqualTo(CustomAudienceFixture.VALID_OWNER); in testCustomAudienceBackgroundFetchDataFromJson_happyPath()
163 .put(CustomAudienceHelper.OWNER, CustomAudienceFixture.VALID_OWNER) in testGetBackgroundFetchDataFromJson_withoutDailyUpdate_throwsIllegalStateException()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/
DCustomAudienceSignalsTest.java42 assertEquals(CustomAudienceFixture.VALID_OWNER, customAudienceSignals.getOwner()); in testBuildCustomAudienceSignals()
63 assertEquals(CustomAudienceFixture.VALID_OWNER, customAudienceSignals.getOwner()); in testBuildFromCustomAudience()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/
DCustomAudienceSignalsFixture.java33 .setOwner(CustomAudienceFixture.VALID_OWNER) in aCustomAudienceSignalsBuilder()

12