/frameworks/base/core/java/android/net/ |
H A D | Credentials.java | 28 /** gid of process. root peers may lie. */ 29 private final int gid; field in class:Credentials 31 public Credentials (int pid, int uid, int gid) { argument 34 this.gid = gid; 46 return gid;
|
/frameworks/base/core/java/android/os/ |
H A D | FileUtils.java | 73 * @param gid to apply through {@code chown}, or -1 to leave unchanged 76 public static int setPermissions(File path, int mode, int uid, int gid) { argument 77 return setPermissions(path.getAbsolutePath(), mode, uid, gid); 85 * @param gid to apply through {@code chown}, or -1 to leave unchanged 88 public static int setPermissions(String path, int mode, int uid, int gid) { argument 96 if (uid >= 0 || gid >= 0) { 98 Libcore.os.chown(path, uid, gid); 113 * @param gid to apply through {@code chown}, or -1 to leave unchanged 116 public static int setPermissions(FileDescriptor fd, int mode, int uid, int gid) { argument 124 if (uid >= 0 || gid > [all...] |
H A D | Process.java | 158 * First gid for applications to share resources. Used when forward-locking 165 * Last gid for applications to share resources. Used when forward-locking 376 * @param gid The group-id under which the process will run. 390 int uid, int gid, int[] gids, 396 return startViaZygote(processClass, niceName, uid, gid, gids, 555 * @param gid a POSIX gid that the new process shuold setgid() to 567 final int uid, final int gid, 581 argsForZygote.add("--setgid=" + gid); 712 * directly to a gid 388 start(final String processClass, final String niceName, int uid, int gid, int[] gids, int debugFlags, int mountExternal, int targetSdkVersion, String seInfo, String[] zygoteArgs) argument 565 startViaZygote(final String processClass, final String niceName, final int uid, final int gid, final int[] gids, int debugFlags, int mountExternal, int targetSdkVersion, String seInfo, String[] extraArgs) argument [all...] |
/frameworks/native/cmds/installd/ |
H A D | installd.h | 187 int ensure_dir(const char* path, mode_t mode, uid_t uid, gid_t gid); 192 int install(const char *pkgname, uid_t uid, gid_t gid, const char *seinfo); 195 int fix_uid(const char *pkgname, uid_t uid, gid_t gid); 202 int protect(char *pkgname, gid_t gid);
|
H A D | commands.c | 31 int install(const char *pkgname, uid_t uid, gid_t gid, const char *seinfo) argument 38 if ((uid < AID_SYSTEM) || (gid < AID_SYSTEM)) { 39 ALOGE("invalid uid/gid: %d %d\n", uid, gid); 101 if (chown(pkgdir, uid, gid) < 0) { 139 int fix_uid(const char *pkgname, uid_t uid, gid_t gid) argument 145 if ((uid < AID_SYSTEM) || (gid < AID_SYSTEM)) { 146 ALOGE("invalid uid/gid: %d %d\n", uid, gid); 167 if (chown(pkgdir, uid, gid) < 776 mkinnerdirs(char* path, int basepos, mode_t mode, int uid, int gid, struct stat* statbuf) argument [all...] |
/frameworks/base/services/java/com/android/server/pm/ |
H A D | Installer.java | 191 public int install(String name, int uid, int gid, String seinfo) { argument 198 builder.append(gid); 248 public int fixUid(String name, int uid, int gid) { argument 255 builder.append(gid);
|
H A D | PackageManagerService.java | 1608 String gidStr = parser.getAttributeValue(null, "gid"); 1610 int gid = Process.getGidForName(gidStr); 1611 mGlobalGids = appendInt(mGlobalGids, gid); 1613 Slog.w(TAG, "<group> without gid at " 1728 String gidStr = parser.getAttributeValue(null, "gid"); 1730 int gid = Process.getGidForName(gidStr); 1731 bp.gids = appendInt(bp.gids, gid); 1733 Slog.w(TAG, "<group> without gid at "
|
/frameworks/base/core/java/com/android/internal/content/ |
H A D | PackageHelper.java | 285 public static boolean fixSdPermissions(String cid, int gid, String filename) { argument 287 int rc = getMountService().fixPermissionsSecureContainer(cid, gid, filename);
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | ZygoteConnection.java | 223 pid = Zygote.forkAndSpecialize(parsedArgs.uid, parsedArgs.gid, parsedArgs.gids, 277 * <li> --setgid=<i>gid of child process, defaults to 0</i> 278 * <li> --setgroups=<i>comma-separated list of supplimentary gid's</i> 310 int gid = 0; field in class:ZygoteConnection.Arguments 400 gid = Integer.parseInt( 583 * <li> uid 0 (root) may specify any uid, gid, and setgroups() list 585 * operation. It may also specify any gid and setgroups() list it chooses. 587 * <li> Any other uid may not specify any uid, gid, or setgroups list. The 588 * uid and gid will be inherited from the requesting process. 625 "App UIDs may not specify uid's or gid' [all...] |
H A D | ZygoteInit.java | 229 private static void setEffectiveGroup(int gid) { argument 230 int errno = setregid(ROOT_GID, gid); 530 parsedArgs.uid, parsedArgs.gid, 681 * @param rgid real gid 682 * @param egid effective gid
|
/frameworks/compile/mclinker/include/mcld/LD/ |
H A D | Archive.h | 52 char gid[6]; ///< group id in ASCII decimal member in struct:mcld::Archive::MemberHeader
|
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 949 nScriptGroupSetInput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc) argument 952 (void *)gid, (void *)kid, (void *)alloc); 953 rsScriptGroupSetInput(con, (RsScriptGroup)gid, (RsScriptKernelID)kid, (RsAllocation)alloc); 957 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc) argument 960 (void *)gid, (void *)kid, (void *)alloc); 961 rsScriptGroupSetOutput(con, (RsScriptGroup)gid, (RsScriptKernelID)kid, (RsAllocation)alloc); 965 nScriptGroupExecute(JNIEnv *_env, jobject _this, RsContext con, jint gid) argument 967 LOG_API("nScriptGroupSetOutput, con(%p) group(%p)", con, (void *)gid); 968 rsScriptGroupExecute(con, (RsScriptGroup)gid);
|
/frameworks/base/core/java/android/os/storage/ |
H A D | IMountService.java | 720 public int fixPermissionsSecureContainer(String id, int gid, String filename) argument 728 _data.writeInt(gid); 1166 int gid; 1167 gid = data.readInt(); 1170 int resultCode = fixPermissionsSecureContainer(id, gid, filename); 1404 public int fixPermissionsSecureContainer(String id, int gid, String filename) argument
|
/frameworks/base/graphics/jni/ |
H A D | android_renderscript_RenderScript.cpp | 1287 nScriptGroupSetInput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc) argument 1290 (void *)gid, (void *)kid, (void *)alloc); 1291 rsScriptGroupSetInput(con, (RsScriptGroup)gid, (RsScriptKernelID)kid, (RsAllocation)alloc); 1295 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc) argument 1298 (void *)gid, (void *)kid, (void *)alloc); 1299 rsScriptGroupSetOutput(con, (RsScriptGroup)gid, (RsScriptKernelID)kid, (RsAllocation)alloc); 1303 nScriptGroupExecute(JNIEnv *_env, jobject _this, RsContext con, jint gid) argument 1305 LOG_API("nScriptGroupSetOutput, con(%p) group(%p)", con, (void *)gid); 1306 rsScriptGroupExecute(con, (RsScriptGroup)gid);
|
/frameworks/base/core/jni/ |
H A D | android_net_LocalSocketImpl.cpp | 805 creds.pid, creds.uid, creds.gid);
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | PackageManagerTests.java | 500 private void assertDirOwnerGroupPerms(String reason, int uid, int gid, int perms, String path) { argument 525 if (stat.st_gid != gid) { 527 sb.append(gid);
|
/frameworks/base/services/java/com/android/server/ |
H A D | MountService.java | 1708 public int fixPermissionsSecureContainer(String id, int gid, String filename) { argument 1714 mConnector.execute("asec", "fixperms", id, gid, filename);
|