Searched refs:ProcessCompatUtils (Results 1 – 10 of 10) sorted by relevance
25 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()
55 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()
37 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()
27 public final class ProcessCompatUtils { class29 private ProcessCompatUtils() { in ProcessCompatUtils() method in ProcessCompatUtils
21 import com.android.adservices.service.common.compat.ProcessCompatUtils;36 if (ProcessCompatUtils.isSdkSandboxUid(callerProcessUid)) { in getCallingAppUid()
27 import com.android.adservices.service.common.compat.ProcessCompatUtils;56 if (ProcessCompatUtils.isSdkSandboxUid(callingUid)) { in hasTopicsPermission()75 if (ProcessCompatUtils.isSdkSandboxUid(callingUid)) { in hasAdIdPermission()
29 import com.android.adservices.service.common.compat.ProcessCompatUtils;59 if (ProcessCompatUtils.isSdkSandboxUid(mCallingUid)) { in getAccessInfo()
73 import com.android.adservices.service.common.compat.ProcessCompatUtils;273 if (ProcessCompatUtils.isSdkSandboxUid(callingUid) in enforceForeground()377 ProcessCompatUtils.isSdkSandboxUid(callingUid), in canCallerInvokeTopicsService()
54 import com.android.adservices.service.common.compat.ProcessCompatUtils;178 if (ProcessCompatUtils.isSdkSandboxUid(callingUid) in enforceForeground()
56 import com.android.adservices.service.common.compat.ProcessCompatUtils;188 if (ProcessCompatUtils.isSdkSandboxUid(callingUid) in enforceForeground()