Home
last modified time | relevance | path

Searched refs:isSdkSandboxUid (Results 1 – 16 of 16) sorted by relevance

/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()
61 ExtendedMockito.doReturn(true).when(() -> Process.isSdkSandboxUid(UID)); in testIsSdkSandboxUid_onTPlus_sdkSandboxUId()
62 assertThat(ProcessCompatUtils.isSdkSandboxUid(UID)).isTrue(); in testIsSdkSandboxUid_onTPlus_sdkSandboxUId()
68 ExtendedMockito.doReturn(false).when(() -> Process.isSdkSandboxUid(UID)); in testIsSdkSandboxUid_onTPlus_notSdkSandboxUId()
69 assertThat(ProcessCompatUtils.isSdkSandboxUid(UID)).isFalse(); in testIsSdkSandboxUid_onTPlus_notSdkSandboxUId()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/compat/
DProcessCompatUtils.java37 public static boolean isSdkSandboxUid(int uid) { in isSdkSandboxUid() method in ProcessCompatUtils
38 return SdkLevel.isAtLeastT() && Process.isSdkSandboxUid(uid); in isSdkSandboxUid()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DSdkRuntimeUtilTest.java55 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/service-core/java/com/android/adservices/service/common/
DPermissionHelper.java56 if (ProcessCompatUtils.isSdkSandboxUid(callingUid)) { in hasTopicsPermission()
75 if (ProcessCompatUtils.isSdkSandboxUid(callingUid)) { in hasAdIdPermission()
DSdkRuntimeUtil.java36 if (ProcessCompatUtils.isSdkSandboxUid(callerProcessUid)) { in getCallingAppUid()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/access/
DForegroundEnforcementAccessResolverTest.java93 .when(() -> ProcessCompatUtils.isSdkSandboxUid(anyInt())); in testIsAllowed_callerNotSandbox_assertCallerForeground()
108 ExtendedMockito.doReturn(true).when(() -> ProcessCompatUtils.isSdkSandboxUid(anyInt())); in testIsAllowed_callerIsSandbox_dontAssertCallerForeground()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DAppDataUsageRepository.kt120 if (UserHandle.isApp(uid) || Process.isSdkSandboxUid(uid)) { in <lambda>()
210 if (Process.isSdkSandboxUid(uid)) { in <lambda>()
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DSdkSandboxManagerService.java408 if (Process.isSdkSandboxUid(callingUid)) { in getSandboxedSdks()
622 if (Process.isSdkSandboxUid(callingUid)) { in loadSdk()
1217 if (Process.isSdkSandboxUid(clientUid)) {
1669 if (!Process.isSdkSandboxUid(Binder.getCallingUid())
1766 if (Process.isSdkSandboxUid(uid)) {
1962 || !Process.isSdkSandboxUid(info.getCallingUid())
2355 if (!Process.isSdkSandboxUid(Binder.getCallingUid())
2375 && Process.isSdkSandboxUid(callingUid)
2397 if (!Process.isSdkSandboxUid(Binder.getCallingUid())) {
2423 if (Process.isSdkSandboxUid(clientAppUid)) {
[all …]
DCallingInfo.java60 mIsCallFromSdkSandbox = Process.isSdkSandboxUid(mUid); in CallingInfo()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/access/
DForegroundEnforcementAccessResolver.java59 if (ProcessCompatUtils.isSdkSandboxUid(mCallingUid)) { in getAccessInfo()
/packages/modules/AdServices/sdksandbox/tests/inprocess/src/com/android/sdksandbox/inprocess/
DSdkSandboxInstrumentationTest.java117 return Process.isSdkSandboxUid(mContext.getApplicationInfo().uid); in isSdkInSandbox()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DTopicsServiceImpl.java273 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.java178 if (ProcessCompatUtils.isSdkSandboxUid(callingUid) in enforceForeground()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxRestrictionsUnitTest.java157 ExtendedMockito.doReturn(true).when(() -> Process.isSdkSandboxUid(Mockito.anyInt())); in setup()
937 ExtendedMockito.doReturn(false).when(() -> Process.isSdkSandboxUid(Mockito.anyInt())); in testCanRegisterBroadcastReceiver_notSandboxProcess()
DSdkSandboxManagerServiceUnitTest.java1959 ExtendedMockito.when(Process.isSdkSandboxUid(Mockito.anyInt())).thenReturn(true); in testRegisterActivityInterceptorCallbackForInstrumentationActivities()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adid/
DAdIdServiceImpl.java188 if (ProcessCompatUtils.isSdkSandboxUid(callingUid) in enforceForeground()