Home
last modified time | relevance | path

Searched refs:sdkSandboxUid (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java340 int sdkSandboxUid = sProcessShim.toSdkSandboxUid(uid); in makeUidsNetworkPerm() local
341 uidsPerm.put(sdkSandboxUid, permission); in makeUidsNetworkPerm()
816 int sdkSandboxUid = sProcessShim.toSdkSandboxUid(uid); in onPackageAdded() local
817 mUidToNetworkPerm.put(sdkSandboxUid, permission); in onPackageAdded()
818 apps.put(sdkSandboxUid, permission); in onPackageAdded()
893 int sdkSandboxUid = -1; in onPackageRemoved() local
895 sdkSandboxUid = sProcessShim.toSdkSandboxUid(uid); in onPackageRemoved()
900 if (sdkSandboxUid != -1) { in onPackageRemoved()
901 mUidToNetworkPerm.delete(sdkSandboxUid); in onPackageRemoved()
902 apps.put(sdkSandboxUid, PERMISSION_NETWORK); in onPackageRemoved()
[all …]
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/testutils/
DFakeSdkSandboxManagerLocal.java100 public int getEffectiveTargetSdkVersion(int sdkSandboxUid) throws NameNotFoundException { in getEffectiveTargetSdkVersion() argument
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DSdkSandboxManagerService.java1569 final int sdkSandboxUid = Process.toSdkSandboxUid(currentCallingInfo.getUid());
1570 Log.i(TAG, "Killing sdk sandbox/s with uid " + sdkSandboxUid);
1571 mActivityManager.killUid(sdkSandboxUid, reason);
1844 int sdkSandboxUid = Process.toSdkSandboxUid(callingInfo.getUid());
1845 mActivityManager.killUid(sdkSandboxUid, "instrumentation started");
2272 private int getEffectiveTargetSdkVersion(int sdkSandboxUid)
2275 Process.getAppUidForSdkSandboxUid(sdkSandboxUid));
2540 public int getEffectiveTargetSdkVersion(int sdkSandboxUid)
2542 return SdkSandboxManagerService.this.getEffectiveTargetSdkVersion(sdkSandboxUid);
DSdkSandboxManagerLocal.java217 int getEffectiveTargetSdkVersion(int sdkSandboxUid) throws NameNotFoundException; in getEffectiveTargetSdkVersion() argument
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DPermissionMonitorTest.java579 final int sdkSandboxUid = mProcessShim.toSdkSandboxUid(uid); in assertBackgroundPermission() local
581 mPermissionMonitor.hasUseBackgroundNetworksPermission(sdkSandboxUid)); in assertBackgroundPermission()
691 int sdkSandboxUid = mProcessShim.toSdkSandboxUid(uid); in expectNetworkPerm() local
692 if (mUidsNetworkPermission.get(sdkSandboxUid, DOES_NOT_EXIST) in expectNetworkPerm()
696 if (mUidsNetworkPermission.get(sdkSandboxUid) != permission) { in expectNetworkPerm()
713 int sdkSandboxUid = mProcessShim.toSdkSandboxUid(uid); in expectNoNetworkPerm() local
714 if (mUidsNetworkPermission.get(sdkSandboxUid, DOES_NOT_EXIST) in expectNoNetworkPerm()
716 fail("SDK sandbox uid " + sdkSandboxUid in expectNoNetworkPerm()