Home
last modified time | relevance | path

Searched refs:AdServicesPermissions (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DPermissionHelper.java20 import android.adservices.common.AdServicesPermissions;
52 context, appPackageName, AdServicesPermissions.ACCESS_ADSERVICES_TOPICS); in hasTopicsPermission()
59 context, AdServicesPermissions.ACCESS_ADSERVICES_TOPICS, callingUid); in hasTopicsPermission()
71 context, appPackageName, AdServicesPermissions.ACCESS_ADSERVICES_AD_ID); in hasAdIdPermission()
78 context, AdServicesPermissions.ACCESS_ADSERVICES_AD_ID, callingUid); in hasAdIdPermission()
90 context, appPackageName, AdServicesPermissions.ACCESS_ADSERVICES_ATTRIBUTION); in hasAttributionPermission()
100 AdServicesPermissions.MODIFY_ADSERVICES_STATE) in hasModifyAdServicesStatePermission()
103 AdServicesPermissions.MODIFY_ADSERVICES_STATE_COMPAT); in hasModifyAdServicesStatePermission()
112 AdServicesPermissions.ACCESS_ADSERVICES_STATE) in hasAccessAdServicesStatePermission()
115 AdServicesPermissions.ACCESS_ADSERVICES_STATE_COMPAT); in hasAccessAdServicesStatePermission()
[all …]
DAdServicesCommonServiceImpl.java19 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_STATE;
20 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_STATE_COMPAT;
21 import static android.adservices.common.AdServicesPermissions.MODIFY_ADSERVICES_STATE;
22 import static android.adservices.common.AdServicesPermissions.MODIFY_ADSERVICES_STATE_COMPAT;
23 import static android.adservices.common.AdServicesPermissions.UPDATE_PRIVILEGED_AD_ID;
24 import static android.adservices.common.AdServicesPermissions.UPDATE_PRIVILEGED_AD_ID_COMPAT;
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/
DAdServicesManagerService.java18 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_MANAGER;
21 import android.adservices.common.AdServicesPermissions;
233 @RequiresPermission(AdServicesPermissions.ACCESS_ADSERVICES_MANAGER)
248 @RequiresPermission(AdServicesPermissions.ACCESS_ADSERVICES_MANAGER)
266 @RequiresPermission(AdServicesPermissions.ACCESS_ADSERVICES_MANAGER)
343 @RequiresPermission(AdServicesPermissions.ACCESS_ADSERVICES_MANAGER)
352 @RequiresPermission(AdServicesPermissions.ACCESS_ADSERVICES_MANAGER)
368 @RequiresPermission(AdServicesPermissions.ACCESS_ADSERVICES_MANAGER)
384 @RequiresPermission(AdServicesPermissions.ACCESS_ADSERVICES_MANAGER)
400 @RequiresPermission(AdServicesPermissions.ACCESS_ADSERVICES_MANAGER)
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DPermissionHelperTest.java19 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_AD_ID;
20 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_ATTRIBUTION;
21 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE;
22 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_PROTECTED_SIGNALS;
23 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_TOPICS;
32 import android.adservices.common.AdServicesPermissions;
104 AdServicesPermissions.ACCESS_ADSERVICES_STATE, mMockPackageManagerGrant);
108 AdServicesPermissions.ACCESS_ADSERVICES_STATE_COMPAT,
117 AdServicesPermissions.MODIFY_ADSERVICES_STATE, mMockPackageManagerGrant);
121 AdServicesPermissions.MODIFY_ADSERVICES_STATE_COMPAT,
[all …]
DFledgeAuthorizationFilterTest.java19 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE;
20 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_PROTECTED_SIGNALS;
44 import android.adservices.common.AdServicesPermissions;
198 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE)) in testAssertAppHasCaPermission_appHasPermission()
205 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testAssertAppHasCaPermission_appHasPermission()
223 AdServicesPermissions.ACCESS_ADSERVICES_PROTECTED_SIGNALS)) in testAssertAppHasPasPermission_appHasPermission()
230 AdServicesPermissions.ACCESS_ADSERVICES_PROTECTED_SIGNALS); in testAssertAppHasPasPermission_appHasPermission()
253 AdServicesPermissions.ACCESS_ADSERVICES_AD_SELECTION)) in testAssertAppHasAnyPermission_appHasAllPermissions()
262 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE, in testAssertAppHasAnyPermission_appHasAllPermissions()
263 AdServicesPermissions.ACCESS_ADSERVICES_AD_SELECTION, in testAssertAppHasAnyPermission_appHasAllPermissions()
[all …]
/packages/modules/AdServices/adservices/framework/api/
Dsystem-current.txt50 …f={android.adservices.common.AdServicesPermissions.MODIFY_ADSERVICES_STATE, android.adservices.com…
51 …f={android.adservices.common.AdServicesPermissions.MODIFY_ADSERVICES_STATE, android.adservices.com…
53 …f={android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_STATE, android.adservices.com…
54 …f={android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_STATE, android.adservices.com…
55 …f={android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_STATE, android.adservices.com…
56 …f={android.adservices.common.AdServicesPermissions.MODIFY_ADSERVICES_STATE, android.adservices.com…
57 …f={android.adservices.common.AdServicesPermissions.UPDATE_PRIVILEGED_AD_ID, android.adservices.com…
58 …f={android.adservices.common.AdServicesPermissions.UPDATE_PRIVILEGED_AD_ID, android.adservices.com…
76 public class AdServicesPermissions {
Dcurrent.txt21 …method @NonNull @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVI…
22 …_enabled") @NonNull @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADS…
77AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE, android.adservices.common.AdServicesPermi…
79AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE, android.adservices.common.AdServicesPermi…
80AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE, android.adservices.common.AdServicesPermi…
81AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE, android.adservices.common.AdServicesPermi…
82AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE, android.adservices.common.AdServicesPermi…
83AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE, android.adservices.common.AdServicesPermi…
84AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE, android.adservices.common.AdServicesPermi…
85AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE, android.adservices.common.AdServicesPermi…
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DCustomAudienceServiceImplTest.java55 import android.adservices.common.AdServicesPermissions;
215 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testJoinCustomAudience_runNormally()
266 eq(AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE)); in testJoinCustomAudienceWithRevokedUserConsentSuccess()
336 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testJoinCustomAudience_notInBinderThread()
362 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testJoinCustomAudience_ownerAssertFailed()
436 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testJoinCustomAudience_errorCreateCustomAudience()
491 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testJoinCustomAudience_errorReturnCallback()
545 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testJoinCustomAudience_devOptionsEnabled()
655 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testFetchAndJoinCustomAudience_notInBinderThread()
675 eq(AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE)); in testLeaveCustomAudience_runNormally()
[all …]
DCustomAudienceServiceEndToEndTest.java68 import android.adservices.common.AdServicesPermissions;
435 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testJoinCustomAudience_callerPackageNameMismatch_fail()
458 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testJoinCustomAudience_callerPackageNameMismatch_fail()
1157 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testLeaveCustomAudience_callerPackageNameMismatch_fail()
1172 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testLeaveCustomAudience_callerPackageNameMismatch_fail()
2491 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testOverrideCustomAudienceRemoteInfoDoesNotAddOverrideWithPackageNameNotMatchOwner()
2516 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testOverrideCustomAudienceRemoteInfoDoesNotAddOverrideWithPackageNameNotMatchOwner()
2629 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testRemoveCustomAudienceRemoteInfoOverrideDoesNotDeleteWithIncorrectPackageName()
2658 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testRemoveCustomAudienceRemoteInfoOverrideDoesNotDeleteWithIncorrectPackageName()
2813 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in testResetAllCustomAudienceRemoteOverridesDoesNotDeleteWithIncorrectPackageName()
[all …]
/packages/modules/AdServices/adservices/framework/java/android/adservices/common/
DAdServicesCommonManager.java19 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_STATE;
20 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_STATE_COMPAT;
21 import static android.adservices.common.AdServicesPermissions.MODIFY_ADSERVICES_STATE;
22 import static android.adservices.common.AdServicesPermissions.MODIFY_ADSERVICES_STATE_COMPAT;
23 import static android.adservices.common.AdServicesPermissions.UPDATE_PRIVILEGED_AD_ID;
24 import static android.adservices.common.AdServicesPermissions.UPDATE_PRIVILEGED_AD_ID_COMPAT;
DAdServicesPermissions.java25 public class AdServicesPermissions { class
26 private AdServicesPermissions() {} in AdServicesPermissions() method in AdServicesPermissions
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DCustomAudienceServiceImpl.java34 import android.adservices.common.AdServicesPermissions;
220 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in joinCustomAudience()
323 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in fetchAndJoinCustomAudience()
406 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in scheduleCustomAudienceUpdate()
459 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in leaveCustomAudience()
586 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in overrideCustomAudienceRemoteInfo()
653 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in removeCustomAudienceRemoteInfoOverride()
708 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE); in resetAllCustomAudienceOverrides()
/packages/modules/AdServices/adservices/framework/java/android/adservices/adselection/
DTestAdSelectionManager.java19 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_AD_SELECTION;
20 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE;
21 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_PROTECTED_SIGNALS;
DAdSelectionManager.java19 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE;
20 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_AD_SELECTION;
21 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_PROTECTED_SIGNALS;
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DMeasurementServiceImpl.java34 import android.adservices.common.AdServicesPermissions;
152 @RequiresPermission(AdServicesPermissions.ACCESS_ADSERVICES_ATTRIBUTION)
212 @RequiresPermission(AdServicesPermissions.ACCESS_ADSERVICES_ATTRIBUTION)
279 @RequiresPermission(AdServicesPermissions.ACCESS_ADSERVICES_ATTRIBUTION)
338 @RequiresPermission(AdServicesPermissions.ACCESS_ADSERVICES_ATTRIBUTION)
/packages/modules/AdServices/adservices/framework/java/android/adservices/adid/
DAdIdManager.java18 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_AD_ID;
DAdIdCompatibleManager.java18 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_AD_ID;
/packages/modules/AdServices/adservices/framework/java/android/adservices/signals/
DProtectedSignalsManager.java19 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_PROTECTED_SIGNALS;
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/signals/
DProtectedSignalsServiceImpl.java27 import android.adservices.common.AdServicesPermissions;
243 AdServicesPermissions.ACCESS_ADSERVICES_PROTECTED_SIGNALS); in updateSignals()
/packages/modules/AdServices/adservices/framework/java/android/adservices/customaudience/
DTestCustomAudienceManager.java19 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE;
DCustomAudienceManager.java19 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE;
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/
DProtectedSignalsServiceImplTest.java40 import android.adservices.common.AdServicesPermissions;
201 eq(AdServicesPermissions.ACCESS_ADSERVICES_PROTECTED_SIGNALS)); in testUpdateSignalsSuccess()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAdSelectionServiceImpl.java56 import android.adservices.common.AdServicesPermissions;
150 AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE,
151 AdServicesPermissions.ACCESS_ADSERVICES_PROTECTED_SIGNALS,
152 AdServicesPermissions.ACCESS_ADSERVICES_AD_SELECTION));
/packages/modules/AdServices/adservices/framework/java/android/adservices/topics/
DTopicsManager.java18 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_TOPICS;
/packages/modules/AdServices/adservices/framework/java/android/adservices/measurement/
DMeasurementManager.java18 import static android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_ATTRIBUTION;

12