Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/os/
DZygote.java234 public static int forkAndSpecialize(int uid, int gid, int[] gids, int runtimeFlags, in forkAndSpecialize() argument
242 uid, gid, gids, runtimeFlags, rlimits, mountExternal, seInfo, niceName, fdsToClose, in forkAndSpecialize()
256 private static native int nativeForkAndSpecialize(int uid, int gid, int[] gids, in nativeForkAndSpecialize() argument
282 public static void specializeAppProcess(int uid, int gid, int[] gids, int runtimeFlags, in specializeAppProcess() argument
285 nativeSpecializeAppProcess(uid, gid, gids, runtimeFlags, rlimits, mountExternal, seInfo, in specializeAppProcess()
303 private static native void nativeSpecializeAppProcess(int uid, int gid, int[] gids, in nativeSpecializeAppProcess() argument
335 public static int forkSystemServer(int uid, int gid, int[] gids, int runtimeFlags, in forkSystemServer() argument
341 uid, gid, gids, runtimeFlags, rlimits, in forkSystemServer()
351 private static native int nativeForkSystemServer(int uid, int gid, int[] gids, int runtimeFlags, in nativeForkSystemServer() argument
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp445 ScopedIntArrayRO gids(env, managed_gids); in SetGids() local
446 if (gids.get() == nullptr) { in SetGids()
450 if (setgroups(gids.size(), reinterpret_cast<const gid_t*>(&gids[0])) == -1) { in SetGids()
451 fail_fn(CREATE_ERROR("setgroups failed: %s, gids.size=%zu", strerror(errno), gids.size())); in SetGids()
973 static void SpecializeCommon(JNIEnv* env, uid_t uid, gid_t gid, jintArray gids, in SpecializeCommon() argument
1026 SetGids(env, gids, is_child_zygote, fail_fn); in SpecializeCommon()
1164 static jlong CalculateCapabilities(JNIEnv* env, jint uid, jint gid, jintArray gids, in CalculateCapabilities() argument
1199 } else if (gids != nullptr) { in CalculateCapabilities()
1200 jsize gids_num = env->GetArrayLength(gids); in CalculateCapabilities()
1201 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.java523 int uid, int gid, @Nullable int[] gids, in start() argument
534 return ZYGOTE_PROCESS.start(processClass, niceName, uid, gid, gids, in start()
543 int uid, int gid, @Nullable int[] gids, in startWebView() argument
554 return WebViewZygote.getProcess().start(processClass, niceName, uid, gid, gids, in startWebView()
DZygoteProcess.java316 int uid, int gid, @Nullable int[] gids, in start() argument
333 return startViaZygote(processClass, niceName, uid, gid, gids, in start()
544 @Nullable final int[] gids, in startViaZygote() argument
582 if (gids != null && gids.length > 0) { in startViaZygote()
586 int sz = gids.length; in startViaZygote()
591 sb.append(gids[i]); in startViaZygote()
1124 int uid, int gid, int[] gids, in startChildZygote() argument
1144 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.java628 int gids[], int flags, long firstInstallTime, long lastUpdateTime, in generatePackageInfo() argument
631 return generatePackageInfo(p, gids, flags, firstInstallTime, lastUpdateTime, in generatePackageInfo()
663 int gids[], int flags, long firstInstallTime, long lastUpdateTime, in generatePackageInfo() argument
698 pi.gids = gids; in generatePackageInfo()
/frameworks/base/services/core/java/com/android/server/am/
DProcessList.java1462 int[] gids = null;
1488 gids = new int[3];
1490 gids = new int[permGids.length + 3];
1491 System.arraycopy(permGids, 0, gids, 3, permGids.length);
1493 gids[0] = UserHandle.getSharedAppGid(UserHandle.getAppId(uid));
1494 gids[1] = UserHandle.getCacheAppGid(UserHandle.getAppId(uid));
1495 gids[2] = UserHandle.getUserGid(UserHandle.getUserId(uid));
1498 if (gids[0] == UserHandle.ERR_GID) gids[0] = gids[2];
1499 if (gids[1] == UserHandle.ERR_GID) gids[1] = gids[2];
1605 app.gids = gids;
[all …]
DProcessRecord.java134 int[] gids; // The gids this process was launched with field in ProcessRecord
327 if (gids != null) { in dump()
328 for (int gi=0; gi<gids.length; gi++) { in dump()
330 pw.print(gids[gi]); in dump()
/frameworks/base/core/java/com/android/server/
DSystemConfig.java113 public int[] gids; field in SystemConfig.PermissionEntry
1024 perm.gids = appendInt(perm.gids, gid); in readPermission()
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java2690 final int[] gids = pkg.getPermissionsState().computeGids(userIds); in writePackageListLPrInternal() local
2722 if (gids != null && gids.length > 0) { in writePackageListLPrInternal()
2723 sb.append(gids[0]); in writePackageListLPrInternal()
2724 for (int i = 1; i < gids.length; i++) { in writePackageListLPrInternal()
2726 sb.append(gids[i]); in writePackageListLPrInternal()
4957 final int[] gids = permissionsState.computeGids(userId); in dumpSharedUsersLPr() local
4960 if (!ArrayUtils.isEmpty(gids) || !permissions.isEmpty()) { in dumpSharedUsersLPr()
4962 dumpGidsLPr(pw, prefix + " ", gids); in dumpSharedUsersLPr()
5008 void dumpGidsLPr(PrintWriter pw, String prefix, int[] gids) { in dumpGidsLPr() argument
5009 if (!ArrayUtils.isEmpty(gids)) { in dumpGidsLPr()
[all …]
DPackageManagerService.java4081 final int[] gids = (flags & PackageManager.GET_GIDS) == 0 in generatePackageInfo() local
4087 PackageInfo packageInfo = PackageParser.generatePackageInfo(p, gids, flags, in generatePackageInfo()
/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/api/
Dcurrent.txt11371 field public int[] gids;