Searched refs:isSdkSandboxUid (Results 1 – 16 of 16) sorted by relevance
55 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()
37 public static boolean isSdkSandboxUid(int uid) { in isSdkSandboxUid() method in ProcessCompatUtils38 return SdkLevel.isAtLeastT() && Process.isSdkSandboxUid(uid); in isSdkSandboxUid()
55 ExtendedMockito.doReturn(false).when(() -> ProcessCompatUtils.isSdkSandboxUid(uid)); in testCallingUidIsNotSdkSandbox_returnParameterUid()65 ExtendedMockito.doReturn(true).when(() -> ProcessCompatUtils.isSdkSandboxUid(sdkUid)); in testCallingUidIsSdkSandbox_returnAppUid()
56 if (ProcessCompatUtils.isSdkSandboxUid(callingUid)) { in hasTopicsPermission()75 if (ProcessCompatUtils.isSdkSandboxUid(callingUid)) { in hasAdIdPermission()
36 if (ProcessCompatUtils.isSdkSandboxUid(callerProcessUid)) { in getCallingAppUid()
93 .when(() -> ProcessCompatUtils.isSdkSandboxUid(anyInt())); in testIsAllowed_callerNotSandbox_assertCallerForeground()108 ExtendedMockito.doReturn(true).when(() -> ProcessCompatUtils.isSdkSandboxUid(anyInt())); in testIsAllowed_callerIsSandbox_dontAssertCallerForeground()
120 if (UserHandle.isApp(uid) || Process.isSdkSandboxUid(uid)) { in <lambda>()210 if (Process.isSdkSandboxUid(uid)) { in <lambda>()
408 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 …]
60 mIsCallFromSdkSandbox = Process.isSdkSandboxUid(mUid); in CallingInfo()
59 if (ProcessCompatUtils.isSdkSandboxUid(mCallingUid)) { in getAccessInfo()
117 return Process.isSdkSandboxUid(mContext.getApplicationInfo().uid); in isSdkInSandbox()
273 if (ProcessCompatUtils.isSdkSandboxUid(callingUid) in enforceForeground()377 ProcessCompatUtils.isSdkSandboxUid(callingUid), in canCallerInvokeTopicsService()
178 if (ProcessCompatUtils.isSdkSandboxUid(callingUid) in enforceForeground()
157 ExtendedMockito.doReturn(true).when(() -> Process.isSdkSandboxUid(Mockito.anyInt())); in setup()937 ExtendedMockito.doReturn(false).when(() -> Process.isSdkSandboxUid(Mockito.anyInt())); in testCanRegisterBroadcastReceiver_notSandboxProcess()
1959 ExtendedMockito.when(Process.isSdkSandboxUid(Mockito.anyInt())).thenReturn(true); in testRegisterActivityInterceptorCallbackForInstrumentationActivities()
188 if (ProcessCompatUtils.isSdkSandboxUid(callingUid) in enforceForeground()