/frameworks/base/core/java/com/android/internal/os/ |
D | Zygote.java | 243 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/ |
D | com_android_internal_os_Zygote.cpp | 515 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/ |
D | PermissionsState.java | 518 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()
|
D | BasePermission.java | 100 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()
|
D | PermissionManagerService.java | 258 if (perm.gids != null) { in PermissionManagerService() 259 bp.setGids(perm.gids, perm.perUser); in PermissionManagerService()
|
/frameworks/base/core/java/android/os/ |
D | Process.java | 581 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()
|
D | ZygoteProcess.java | 338 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/ |
D | PackageInfo.java | 150 public int[] gids; field in PackageInfo 458 dest.writeIntArray(gids); in writeToParcel() 522 gids = source.createIntArray(); in PackageInfo()
|
D | PackageParser.java | 657 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/ |
D | ProcessList.java | 1550 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 …]
|
D | ProcessRecord.java | 135 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/ |
D | SystemConfig.java | 119 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/ |
D | Settings.java | 2686 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 …]
|
D | PackageManagerService.java | 4014 final int[] gids = (flags & PackageManager.GET_GIDS) == 0 4020 PackageInfo packageInfo = PackageParser.generatePackageInfo(p, gids, flags,
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 276 int[] gids = mPM.getPackageGids(packageName, in getPackageGids() local 278 if (gids != null) { in getPackageGids() 279 return gids; in getPackageGids()
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 8554 field public int[] gids;
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 11381 field public int[] gids;
|
/frameworks/base/api/ |
D | current.txt | 11381 field public int[] gids;
|