/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | AllowListsTest.java | 19 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/ |
D | AppPackageAccessResolver.java | 23 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/ |
D | FledgeAllowListsFilter.java | 100 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()
|
D | CoordinatorOriginUriValidator.java | 69 List<String> allowedUrls = AllowLists.splitAllowList(allowlist);
|
D | AllowLists.java | 40 public class AllowLists { class
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/common/ |
D | CleanupUtils.java | 23 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/ |
D | DebugKeyAccessor.java | 28 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/ |
D | AggregateEncryptionKeyManager.java | 24 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/ |
D | AsyncTriggerFetcher.java | 34 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()
|
D | AsyncSourceFetcher.java | 35 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/ |
D | ProtectedServersEncryptionConfigManagerBase.java | 35 import com.android.adservices.service.common.AllowLists; 225 List<String> allowedUrls = AllowLists.splitAllowList(allowlist); in getUriFromAllowlist()
|
D | BackgroundKeyFetchWorker.java | 35 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/ |
D | AppSetIdServiceImpl.java | 49 import com.android.adservices.service.common.AllowLists; 216 AllowLists.isPackageAllowListed( in canCallerInvokeAppSetIdService()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adid/ |
D | AdIdServiceImpl.java | 50 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/ |
D | MeasurementServiceImplTest.java | 84 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/ |
D | AppSearchDao.java | 43 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/ |
D | TopicsServiceImpl.java | 66 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/ |
D | ReportAndRegisterEventE2ETest.java | 94 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()
|
D | ReportAndRegisterEventImplTest.java | 77 import com.android.adservices.service.common.AllowLists; 895 return AllowLists.ALLOW_NONE; in testImpl_onlyReportsEvent_appIsNotInMeasurementAllowlisted() 1267 return AllowLists.ALLOW_ALL; in getMsmtApiAppAllowList()
|
D | ReportAndRegisterEventFallbackImplTest.java | 77 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/ |
D | TopicsServiceImplTest.java | 90 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/ |
D | ProtectedSignalsDaoTest.java | 42 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/ |
D | CleanupUtilsTest.java | 19 import static com.android.adservices.service.common.AllowLists.ALLOW_ALL;
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/ |
D | MeasurementServiceImpl.java | 59 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/ |
D | StatsdAdServicesLogger.java | 77 import com.android.adservices.service.common.AllowLists; 130 || !AllowLists.isPackageAllowListed( in getAllowlistedAppPackageName()
|