Home
last modified time | relevance | path

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

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAllowListsTest.java19 import static com.android.adservices.service.common.AllowLists.ALLOW_ALL;
20 import static com.android.adservices.service.common.AllowLists.toHexString;
80 ExtendedMockito.mockitoSession().spyStatic(AllowLists.class).startMocking(); in setup()
90 assertThat(AllowLists.doesAllowListAllowAll(ALLOW_ALL)).isTrue(); in testAppCanUsePpapi_allowAll()
91 assertThat(AllowLists.isPackageAllowListed(ALLOW_ALL, SOME_PACKAGE_NAME)).isTrue(); in testAppCanUsePpapi_allowAll()
96 assertThat(AllowLists.doesAllowListAllowAll(EMPTY_LIST)).isFalse(); in testAppCanUsePpapi_emptyAllowList()
97 assertThat(AllowLists.isPackageAllowListed(EMPTY_LIST, SOME_PACKAGE_NAME)).isFalse(); in testAppCanUsePpapi_emptyAllowList()
98 assertThat(AllowLists.splitAllowList(EMPTY_LIST)).isEmpty(); in testAppCanUsePpapi_emptyAllowList()
104 assertThat(AllowLists.doesAllowListAllowAll(allowList)).isFalse(); in testAppCanUsePpapi_notEmptyAllowList()
105 assertThat(AllowLists.isPackageAllowListed(allowList, "notAllowedPackageName")).isFalse(); in testAppCanUsePpapi_notEmptyAllowList()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/access/
DAppPackageAccessResolver.java23 import com.android.adservices.service.common.AllowLists;
34 mAllowList = allowList == null ? AllowLists.ALLOW_NONE : allowList; in AppPackageAccessResolver()
35 mBlockList = blockList == null ? AllowLists.ALLOW_NONE : blockList; in AppPackageAccessResolver()
41 boolean isInAllowList = AllowLists.isPackageAllowListed(mAllowList, mPackageName); in getAccessInfo()
61 return AllowLists.isPackageAllowListed(mBlockList, mPackageName); in isBlocked()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DFledgeAllowListsFilter.java100 return AllowLists.isPackageAllowListed(mFlags.getPpapiAppAllowList(), appPackageName); in isInAllowList()
102 return AllowLists.isPackageAllowListed(mFlags.getPasAppAllowList(), appPackageName); in isInAllowList()
104 return AllowLists.isPackageAllowListed(mFlags.getPpapiAppAllowList(), appPackageName) in isInAllowList()
105 || AllowLists.isPackageAllowListed(mFlags.getPasAppAllowList(), appPackageName); in isInAllowList()
DCoordinatorOriginUriValidator.java69 List<String> allowedUrls = AllowLists.splitAllowList(allowlist);
DAllowLists.java40 public class AllowLists { class
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/common/
DCleanupUtils.java23 import com.android.adservices.service.common.AllowLists;
55 allowAll = allowAll || AllowLists.doesAllowListAllowAll(appAllowList); in removeAllowedPackages()
56 allowedApps.addAll(AllowLists.splitAllowList(appAllowList)); in removeAllowedPackages()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/
DDebugKeyAccessor.java28 import com.android.adservices.service.common.AllowLists;
97 AllowLists.splitAllowList( in getDebugKeys()
102 new HashSet<>(AllowLists.splitAllowList(blockedEnrollmentsAdIdMatchingString)); in getDebugKeys()
229 AllowLists.splitAllowList( in getDebugKeysForVerboseTriggerDebugReport()
234 new HashSet<>(AllowLists.splitAllowList(blockedEnrollmentsAdIdMatchingString)); in getDebugKeysForVerboseTriggerDebugReport()
449 return !AllowLists.doesAllowListAllowAll(blockedEnrollmentsString) in canMatchAdIdEnrollments()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKeyManager.java24 import com.android.adservices.service.common.AllowLists;
134 if (AllowLists.doesAllowListAllowAll(allowlist)) { in isAllowlisted()
137 Set<String> elements = new HashSet<>(AllowLists.splitAllowList(allowlist)); in isAllowlisted()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DAsyncTriggerFetcher.java34 import com.android.adservices.service.common.AllowLists;
292 new HashSet<>(AllowLists.splitAllowList(enrollmentBlockList)); in parseTrigger()
293 if (!AllowLists.doesAllowListAllowAll(enrollmentBlockList) in parseTrigger()
301 AllowLists.splitAllowList( in parseTrigger()
431 if (AllowLists.doesAllowListAllowAll(allowlist)) { in isAllowlisted()
434 Set<String> elements = new HashSet<>(AllowLists.splitAllowList(allowlist)); in isAllowlisted()
449 || AllowLists.isPackageAllowListed( in isXnaAllowedForTriggerRegistrant()
DAsyncSourceFetcher.java35 import com.android.adservices.service.common.AllowLists;
284 new HashSet<>(AllowLists.splitAllowList(enrollmentBlockList)); in parseCommonSourceParams()
285 if (!AllowLists.doesAllowListAllowAll(enrollmentBlockList) in parseCommonSourceParams()
293 AllowLists.splitAllowList( in parseCommonSourceParams()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/encryption/
DProtectedServersEncryptionConfigManagerBase.java35 import com.android.adservices.service.common.AllowLists;
225 List<String> allowedUrls = AllowLists.splitAllowList(allowlist); in getUriFromAllowlist()
DBackgroundKeyFetchWorker.java35 import com.android.adservices.service.common.AllowLists;
206 List<String> allowedUrls = AllowLists.splitAllowList(allowlist); in fetchNewKeys()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsetid/
DAppSetIdServiceImpl.java49 import com.android.adservices.service.common.AllowLists;
216 AllowLists.isPackageAllowListed( in canCallerInvokeAppSetIdService()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adid/
DAdIdServiceImpl.java50 import com.android.adservices.service.common.AllowLists;
238 AllowLists.isPackageAllowListed( in canCallerInvokeAdIdService()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DMeasurementServiceImplTest.java84 import com.android.adservices.service.common.AllowLists;
2389 String allowList = denied ? AllowLists.ALLOW_NONE : AllowLists.ALLOW_ALL; in updateAppPackageAccessResolverDenied()
2390 String blockList = AllowLists.ALLOW_NONE; in updateAppPackageAccessResolverDenied()
2396 String allowList = denied ? AllowLists.ALLOW_NONE : AllowLists.ALLOW_ALL; in updateAppPackageAccessResolverDeniedEnableApiStatusAllowListCheck()
2401 String allowList = denied ? AllowLists.ALLOW_NONE : AllowLists.ALLOW_ALL; in updateAppPackageResolverWebAppDenied()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchDao.java43 import com.android.adservices.service.common.AllowLists;
104 return AllowLists.splitAllowList(overrideAllowList); in getAllowedPackages()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DTopicsServiceImpl.java66 import com.android.adservices.service.common.AllowLists;
326 if (!AllowLists.isSignatureAllowListed( in canCallerInvokeTopicsService()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DReportAndRegisterEventE2ETest.java94 import com.android.adservices.service.common.AllowLists;
590 return AllowLists.ALLOW_NONE; in testService_ReportingAndRegisteringEnabled_appIsNotInMeasurementAllowlisted()
867 return AllowLists.ALLOW_NONE; in testService_ReportingAndRegisteringFallbackEnabled_appIsNotInMeasurementAllowlisted()
1250 return AllowLists.ALLOW_ALL; in getMsmtApiAppAllowList()
DReportAndRegisterEventImplTest.java77 import com.android.adservices.service.common.AllowLists;
895 return AllowLists.ALLOW_NONE; in testImpl_onlyReportsEvent_appIsNotInMeasurementAllowlisted()
1267 return AllowLists.ALLOW_ALL; in getMsmtApiAppAllowList()
DReportAndRegisterEventFallbackImplTest.java77 import com.android.adservices.service.common.AllowLists;
1238 return AllowLists.ALLOW_NONE; in testImpl_onlyReportsEvent_appIsNotInMeasurementAllowlisted()
1616 return AllowLists.ALLOW_ALL; in getMsmtApiAppAllowList()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DTopicsServiceImplTest.java90 import com.android.adservices.service.common.AllowLists;
134 @SpyStatic(AllowLists.class)
258 when(mMockFlags.getPpapiAppSignatureAllowList()).thenReturn(AllowLists.ALLOW_ALL); in setup()
353 .when(() -> AllowLists.getAppSignatureHash(mSpyContext, TEST_APP_PACKAGE_NAME)); in checkSignatureAllowList_successAllowList()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/signals/
DProtectedSignalsDaoTest.java42 import com.android.adservices.service.common.AllowLists;
364 return AllowLists.ALLOW_ALL; in testDeleteAllDisallowedPackageSignalsAllAllowed()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/common/
DCleanupUtilsTest.java19 import static com.android.adservices.service.common.AllowLists.ALLOW_ALL;
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DMeasurementServiceImpl.java59 import com.android.adservices.service.common.AllowLists;
478 if (!AllowLists.isPackageAllowListed( in getMeasurementApiStatus()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/
DStatsdAdServicesLogger.java77 import com.android.adservices.service.common.AllowLists;
130 || !AllowLists.isPackageAllowListed( in getAllowlistedAppPackageName()

12