Home
last modified time | relevance | path

Searched refs:toSdkSandboxUid (Results 1 – 12 of 12) sorted by relevance

/packages/modules/NetworkStack/apishim/33/com/android/networkstack/apishim/api33/
DProcessShimImpl.java44 public int toSdkSandboxUid(int applicationUid) { in toSdkSandboxUid() method in ProcessShimImpl
45 return Process.toSdkSandboxUid(applicationUid); in toSdkSandboxUid()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DSdkSandboxPermissionTest.java50 Process.toSdkSandboxUid(19999)); in testSdkSandboxHasInternetPermission()
61 Process.toSdkSandboxUid(19999)); in testSdkSandboxDoesNotHaveFineLocationPermission()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxMetricsHostTest/app/src/com/android/tests/sdksandbox/
DSdkSandboxMetricsTestApp.java110 .isEqualTo(Process.toSdkSandboxUid(Process.myUid())); in testSdkCanAccessSdkSandboxExitReasons()
129 assertThat(info.getRealUid()).isEqualTo(Process.toSdkSandboxUid(Process.myUid())); in testAppWithDumpPermissionCanAccessSdkSandboxExitReasons()
150 assertThat(exitInfo.getRealUid()).isEqualTo(Process.toSdkSandboxUid(Process.myUid())); in testSdkCannotAccessExitReasonsFromOtherSdkSandboxUids()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java340 int sdkSandboxUid = sProcessShim.toSdkSandboxUid(uid); in makeUidsNetworkPerm()
361 appIdsPerm.put(sProcessShim.toSdkSandboxUid(appId), permission); in makeAppIdsTrafficPerm()
401 appIdsPerm.put(sProcessShim.toSdkSandboxUid(appId), permission); in getSystemTrafficPerm()
409 appIdsPerm.put(sProcessShim.toSdkSandboxUid(appId), permission); in getSystemTrafficPerm()
816 int sdkSandboxUid = sProcessShim.toSdkSandboxUid(uid); in onPackageAdded()
895 sdkSandboxUid = sProcessShim.toSdkSandboxUid(uid); in onPackageRemoved()
1142 int sdkSandboxAppId = sProcessShim.toSdkSandboxUid(appId); in sendPackagePermissionsForAppId()
1234 int sdkSandboxUid = sProcessShim.toSdkSandboxUid(uid); in onSettingChanged()
1242 int sdkSandboxUid = sProcessShim.toSdkSandboxUid(uid); in onSettingChanged()
/packages/modules/NetworkStack/apishim/common/com/android/networkstack/apishim/common/
DProcessShim.java25 default int toSdkSandboxUid(int applicationUid) { in toSdkSandboxUid() method
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppDataUsagePreferenceController.java109 builder.addUid(Process.toSdkSandboxUid(uid)); in onCreateLoader()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxManagerServiceUnitTest.java961 Process.toSdkSandboxUid(mClientAppUid), in testEnforceAllowedToHostSandboxedActivityFailIfCalledFromSandboxUid()
1245 .killUid(Mockito.eq(Process.toSdkSandboxUid(mClientAppUid)), Mockito.anyString()); in testNotifyInstrumentationStarted_killsSandboxProcess()
1329 Process.toSdkSandboxUid(mClientAppUid))) in testGetEffectiveTargetSdkVersion()
1392 Mockito.eq(Process.toSdkSandboxUid(mClientAppUid)), in testUnloadSdkThatIsLoaded()
1854 assertThat(activityInfo.applicationInfo.uid).isEqualTo(Process.toSdkSandboxUid(callingUid)); in testRegisterActivityInterceptorCallbackOnServiceStart()
1881 assertThat(activityInfo.applicationInfo.uid).isEqualTo(Process.toSdkSandboxUid(callingUid)); in testRegisterActivityInterceptionWithRightComponentSuccess()
DSdkSandboxStatsdMetricsUnitTest.java880 new Intent(), Process.toSdkSandboxUid(Process.myUid()), TEST_PACKAGE); in testEnforceAllowedToHostSandboxedActivity_FailsForSandboxUid_CallsStatsd()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DPermissionMonitorTest.java579 final int sdkSandboxUid = mProcessShim.toSdkSandboxUid(uid); in assertBackgroundPermission()
631 int sdkSandboxAppId = mProcessShim.toSdkSandboxUid(appId); in expectTrafficPerm()
691 int sdkSandboxUid = mProcessShim.toSdkSandboxUid(uid); in expectNetworkPerm()
713 int sdkSandboxUid = mProcessShim.toSdkSandboxUid(uid); in expectNoNetworkPerm()
1132 netdPermissionsAppIds.put(mProcessShim.toSdkSandboxUid(MOCK_APPID1), in testPackagePermissionUpdate()
1137 netdPermissionsAppIds.put(mProcessShim.toSdkSandboxUid(MOCK_APPID2), in testPackagePermissionUpdate()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DAppDataUsageRepository.kt227 set += Process.toSdkSandboxUid(uid) in <lambda>()
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DSdkSandboxManagerService.java934 Process.toSdkSandboxUid(callingInfo.getUid())));
1569 final int sdkSandboxUid = Process.toSdkSandboxUid(currentCallingInfo.getUid());
1733 sdkSandboxInfoForInstrumentation.uid = Process.toSdkSandboxUid(uid);
1844 int sdkSandboxUid = Process.toSdkSandboxUid(callingInfo.getUid());
1994 activityInfo.applicationInfo.uid = Process.toSdkSandboxUid(callingUid);
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java950 private static int toSdkSandboxUid(int appUid) { in toSdkSandboxUid() method in ConnectivityServiceTest
9539 excludedUids.add(toSdkSandboxUid(VPN_UID));
10054 excludedUids.add(toSdkSandboxUid(VPN_UID));
10099 excludedUids.add(toSdkSandboxUid(uid));