Home
last modified time | relevance | path

Searched refs:gids (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DZygote.java243 private static boolean containsInetGid(int[] gids) { in containsInetGid() argument
244 for (int i = 0; i < gids.length; i++) { in containsInetGid()
245 if (gids[i] == android.os.Process.INET_GID) return true; in containsInetGid()
285 public static int forkAndSpecialize(int uid, int gid, int[] gids, int runtimeFlags, in forkAndSpecialize() argument
292 uid, gid, gids, runtimeFlags, rlimits, mountExternal, seInfo, niceName, fdsToClose, in forkAndSpecialize()
299 if (gids != null && gids.length > 0) { in forkAndSpecialize()
300 NetworkUtils.setAllowNetworkingForProcess(containsInetGid(gids)); in forkAndSpecialize()
311 private static native int nativeForkAndSpecialize(int uid, int gid, int[] gids, in nativeForkAndSpecialize() argument
338 public static void specializeAppProcess(int uid, int gid, int[] gids, int runtimeFlags, in specializeAppProcess() argument
341 nativeSpecializeAppProcess(uid, gid, gids, runtimeFlags, rlimits, mountExternal, seInfo, in specializeAppProcess()
[all …]
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp515 ScopedIntArrayRO gids(env, managed_gids); in SetGids() local
516 if (gids.get() == nullptr) { in SetGids()
520 if (setgroups(gids.size(), reinterpret_cast<const gid_t*>(&gids[0])) == -1) { in SetGids()
521 fail_fn(CREATE_ERROR("setgroups failed: %s, gids.size=%zu", strerror(errno), gids.size())); in SetGids()
1119 static void SpecializeCommon(JNIEnv* env, uid_t uid, gid_t gid, jintArray gids, in SpecializeCommon() argument
1166 SetGids(env, gids, fail_fn); in SpecializeCommon()
1330 static jlong CalculateCapabilities(JNIEnv* env, jint uid, jint gid, jintArray gids, in CalculateCapabilities() argument
1365 } else if (gids != nullptr) { in CalculateCapabilities()
1366 jsize gids_num = env->GetArrayLength(gids); in CalculateCapabilities()
1367 ScopedIntArrayRO native_gid_proxy(env, gids); in CalculateCapabilities()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionsState.java518 int[] gids = mGlobalGids; in computeGids() local
531 gids = appendInts(gids, permGids); in computeGids()
537 return gids; in computeGids()
547 int[] gids = mGlobalGids; in computeGids() local
551 gids = appendInts(gids, userGids); in computeGids()
554 return gids; in computeGids()
DBasePermission.java100 private int[] gids; field in BasePermission
143 public void setGids(int[] gids, boolean perUser) { in setGids() argument
144 this.gids = gids; in setGids()
156 final int[] userGids = new int[gids.length]; in computeGids()
157 for (int i = 0; i < gids.length; i++) { in computeGids()
158 userGids[i] = UserHandle.getUid(userId, gids[i]); in computeGids()
162 return gids; in computeGids()
DPermissionManagerService.java258 if (perm.gids != null) { in PermissionManagerService()
259 bp.setGids(perm.gids, perm.perUser); in PermissionManagerService()
/frameworks/base/core/java/android/os/
DProcess.java581 int uid, int gid, @Nullable int[] gids, in start() argument
595 return ZYGOTE_PROCESS.start(processClass, niceName, uid, gid, gids, in start()
604 int uid, int gid, @Nullable int[] gids, in startWebView() argument
616 return WebViewZygote.getProcess().start(processClass, niceName, uid, gid, gids, in startWebView()
DZygoteProcess.java338 int uid, int gid, @Nullable int[] gids, in start() argument
357 return startViaZygote(processClass, niceName, uid, gid, gids, in start()
608 @Nullable final int[] gids, in startViaZygote() argument
648 if (gids != null && gids.length > 0) { in startViaZygote()
652 int sz = gids.length; in startViaZygote()
657 sb.append(gids[i]); in startViaZygote()
1239 int uid, int gid, int[] gids, in startChildZygote() argument
1259 gids, runtimeFlags, 0 /* mountExternal */, 0 /* targetSdkVersion */, seInfo, in startChildZygote()
/frameworks/base/core/java/android/content/pm/
DPackageInfo.java150 public int[] gids; field in PackageInfo
458 dest.writeIntArray(gids); in writeToParcel()
522 gids = source.createIntArray(); in PackageInfo()
DPackageParser.java657 int[] gids, int flags, long firstInstallTime, long lastUpdateTime, in generatePackageInfo() argument
660 return generatePackageInfo(p, gids, flags, firstInstallTime, lastUpdateTime, in generatePackageInfo()
666 int[] gids, int flags, long firstInstallTime, long lastUpdateTime, in generatePackageInfo() argument
669 return generatePackageInfo(p, null, gids, flags, firstInstallTime, lastUpdateTime, in generatePackageInfo()
688 int gids[], int flags, long firstInstallTime, long lastUpdateTime, in generatePackageInfo() argument
723 pi.gids = gids; in generatePackageInfo()
/frameworks/base/services/core/java/com/android/server/am/
DProcessList.java1550 int[] gids = null;
1576 gids = new int[3];
1578 gids = new int[permGids.length + 3];
1579 System.arraycopy(permGids, 0, gids, 3, permGids.length);
1581 gids[0] = UserHandle.getSharedAppGid(UserHandle.getAppId(uid));
1582 gids[1] = UserHandle.getCacheAppGid(UserHandle.getAppId(uid));
1583 gids[2] = UserHandle.getUserGid(UserHandle.getUserId(uid));
1586 if (gids[0] == UserHandle.ERR_GID) gids[0] = gids[2];
1587 if (gids[1] == UserHandle.ERR_GID) gids[1] = gids[2];
1715 app.gids = gids;
[all …]
DProcessRecord.java135 int[] gids; // The gids this process was launched with field in ProcessRecord
330 if (gids != null) { in dump()
331 for (int gi=0; gi<gids.length; gi++) { in dump()
333 pw.print(gids[gi]); in dump()
/frameworks/base/core/java/com/android/server/
DSystemConfig.java119 public int[] gids; field in SystemConfig.PermissionEntry
1070 perm.gids = appendInt(perm.gids, gid); in readPermission()
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java2686 final int[] gids = pkg.getPermissionsState().computeGids(userIds); in writePackageListLPrInternal() local
2718 if (gids != null && gids.length > 0) { in writePackageListLPrInternal()
2719 sb.append(gids[0]); in writePackageListLPrInternal()
2720 for (int i = 1; i < gids.length; i++) { in writePackageListLPrInternal()
2722 sb.append(gids[i]); in writePackageListLPrInternal()
4958 final int[] gids = permissionsState.computeGids(userId); in dumpSharedUsersLPr() local
4961 if (!ArrayUtils.isEmpty(gids) || !permissions.isEmpty()) { in dumpSharedUsersLPr()
4963 dumpGidsLPr(pw, prefix + " ", gids); in dumpSharedUsersLPr()
5009 void dumpGidsLPr(PrintWriter pw, String prefix, int[] gids) { in dumpGidsLPr() argument
5010 if (!ArrayUtils.isEmpty(gids)) { in dumpGidsLPr()
[all …]
DPackageManagerService.java4014 final int[] gids = (flags & PackageManager.GET_GIDS) == 0
4020 PackageInfo packageInfo = PackageParser.generatePackageInfo(p, gids, flags,
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java276 int[] gids = mPM.getPackageGids(packageName, in getPackageGids() local
278 if (gids != null) { in getPackageGids()
279 return gids; in getPackageGids()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt8554 field public int[] gids;
/frameworks/base/non-updatable-api/
Dcurrent.txt11381 field public int[] gids;
/frameworks/base/api/
Dcurrent.txt11381 field public int[] gids;