Home
last modified time | relevance | path

Searched refs:ProcessCompatUtils (Results 1 – 10 of 10) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DSdkRuntimeUtilTest.java25 import com.android.adservices.service.common.compat.ProcessCompatUtils;
42 .mockStatic(ProcessCompatUtils.class) in setUp()
55 ExtendedMockito.doReturn(false).when(() -> ProcessCompatUtils.isSdkSandboxUid(uid)); in testCallingUidIsNotSdkSandbox_returnParameterUid()
65 ExtendedMockito.doReturn(true).when(() -> ProcessCompatUtils.isSdkSandboxUid(sdkUid)); in testCallingUidIsSdkSandbox_returnAppUid()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/compat/
DProcessCompatUtilsTest.java55 assertThat(ProcessCompatUtils.isSdkSandboxUid(UID)).isFalse(); in testIsSdkSandboxUid_onSMinus_notSdkSandboxUid()
62 assertThat(ProcessCompatUtils.isSdkSandboxUid(UID)).isTrue(); in testIsSdkSandboxUid_onTPlus_sdkSandboxUId()
69 assertThat(ProcessCompatUtils.isSdkSandboxUid(UID)).isFalse(); in testIsSdkSandboxUid_onTPlus_notSdkSandboxUId()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/access/
DForegroundEnforcementAccessResolverTest.java37 import com.android.adservices.service.common.compat.ProcessCompatUtils;
57 .spyStatic(ProcessCompatUtils.class)
93 .when(() -> ProcessCompatUtils.isSdkSandboxUid(anyInt())); in testIsAllowed_callerNotSandbox_assertCallerForeground()
108 ExtendedMockito.doReturn(true).when(() -> ProcessCompatUtils.isSdkSandboxUid(anyInt())); in testIsAllowed_callerIsSandbox_dontAssertCallerForeground()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/compat/
DProcessCompatUtils.java27 public final class ProcessCompatUtils { class
29 private ProcessCompatUtils() { in ProcessCompatUtils() method in ProcessCompatUtils
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DSdkRuntimeUtil.java21 import com.android.adservices.service.common.compat.ProcessCompatUtils;
36 if (ProcessCompatUtils.isSdkSandboxUid(callerProcessUid)) { in getCallingAppUid()
DPermissionHelper.java27 import com.android.adservices.service.common.compat.ProcessCompatUtils;
56 if (ProcessCompatUtils.isSdkSandboxUid(callingUid)) { in hasTopicsPermission()
75 if (ProcessCompatUtils.isSdkSandboxUid(callingUid)) { in hasAdIdPermission()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/access/
DForegroundEnforcementAccessResolver.java29 import com.android.adservices.service.common.compat.ProcessCompatUtils;
59 if (ProcessCompatUtils.isSdkSandboxUid(mCallingUid)) { in getAccessInfo()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DTopicsServiceImpl.java73 import com.android.adservices.service.common.compat.ProcessCompatUtils;
273 if (ProcessCompatUtils.isSdkSandboxUid(callingUid) in enforceForeground()
377 ProcessCompatUtils.isSdkSandboxUid(callingUid), in canCallerInvokeTopicsService()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsetid/
DAppSetIdServiceImpl.java54 import com.android.adservices.service.common.compat.ProcessCompatUtils;
178 if (ProcessCompatUtils.isSdkSandboxUid(callingUid) in enforceForeground()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adid/
DAdIdServiceImpl.java56 import com.android.adservices.service.common.compat.ProcessCompatUtils;
188 if (ProcessCompatUtils.isSdkSandboxUid(callingUid) in enforceForeground()