Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/native/cmds/installd/
Dmatchgen.py30 for gid, exts in TYPES.iteritems():
31 if gid is "AID_MEDIA_AUDIO": gid = "1055"
32 if gid is "AID_MEDIA_VIDEO": gid = "1056"
33 if gid is "AID_MEDIA_IMAGE": gid = "1057"
35 print " mkdir /config/sdcardfs/extensions/%s/%s" % (gid, ext)
DQuotaUtils.cpp120 int64_t GetOccupiedSpaceForGid(const std::string& uuid, gid_t gid) { in GetOccupiedSpaceForGid() argument
126 if (quotactl(QCMD(Q_GETQUOTA, GRPQUOTA), device.c_str(), gid, in GetOccupiedSpaceForGid()
129 PLOG(ERROR) << "Failed to quotactl " << device << " for GID " << gid; in GetOccupiedSpaceForGid()
134 LOG(DEBUG) << "quotactl() for GID " << gid << " " << dq.dqb_curspace; in GetOccupiedSpaceForGid()
Dinstalld.cpp134 gid_t gid = uid; in initialize_directories() local
136 if (copy_dir_files(keychain_added_dir, misc_added_dir, uid, gid) != 0) { in initialize_directories()
141 if (copy_dir_files(keychain_removed_dir, misc_removed_dir, uid, gid) != 0) { in initialize_directories()
Dutils.cpp402 int32_t gid = p->fts_statp->st_gid; in calculate_tree_size() local
404 int32_t user_gid = multiuser_get_app_id(gid); in calculate_tree_size()
412 if (include_gid != -1 && gid != include_gid) { in calculate_tree_size()
415 if (exclude_gid != -1 && gid == exclude_gid) { in calculate_tree_size()
961 const int gid = multiuser_get_uid(userid, AID_EVERYBODY); in ensure_config_user_dirs() local
965 return fs_prepare_dir(path.c_str(), 0750, uid, gid); in ensure_config_user_dirs()
1000 uid_t uid, gid_t gid) { in prepare_app_cache_dir() argument
1006 if (fs_prepare_dir_strict(path.c_str(), target_mode, uid, gid) != 0) { in prepare_app_cache_dir()
1024 } else if (st.st_gid == gid && actual_mode == target_mode) { in prepare_app_cache_dir()
1030 << "/" << actual_mode << " but expected " << gid << "/" << target_mode; in prepare_app_cache_dir()
[all …]
DQuotaUtils.h36 int64_t GetOccupiedSpaceForGid(const std::string& uuid, gid_t gid);
Dutils.h151 uid_t uid, gid_t gid);
/frameworks/base/core/java/android/net/
DCredentials.java29 private final int gid; field in Credentials
31 public Credentials (int pid, int uid, int gid) { in Credentials() argument
34 this.gid = gid; in Credentials()
46 return gid; in getGid()
/frameworks/native/cmds/installd/tests/
Dtest_utils.h96 uid_t uid, gid_t gid, int mode, std::string* error_msg) { in WriteBase64ToFile() argument
122 if (::chown(file.c_str(), uid, gid) != 0) { in WriteBase64ToFile()
134 bool DropCapabilities(uid_t uid, gid_t gid) { in DropCapabilities() argument
135 if (setgid(gid) != 0) { in DropCapabilities()
136 PLOG(ERROR) << "setgid failed: " << gid; in DropCapabilities()
Dinstalld_dexopt_test.cpp425 void CheckFileAccess(const std::string& file, uid_t uid, gid_t gid, mode_t mode) { in CheckFileAccess() argument
429 ASSERT_EQ(gid, st.st_gid); in CheckFileAccess()
894 void SetupProfile(const std::string& path, uid_t uid, gid_t gid, mode_t mode, in SetupProfile() argument
900 ::chown(path.c_str(), uid, gid); in SetupProfile()
/frameworks/base/telephony/java/android/telephony/euicc/
DEuiccRulesAuthTable.java163 String gid = ruleCarrierId.getGid1(); in findIndex() local
164 if (!TextUtils.isEmpty(gid) && !gid.equals(carrierId.getGid1())) { in findIndex()
167 gid = ruleCarrierId.getGid2(); in findIndex()
168 if (!TextUtils.isEmpty(gid) && !gid.equals(carrierId.getGid2())) { in findIndex()
/frameworks/base/services/core/jni/
Dcom_android_server_fingerprint_FingerprintService.cpp102 arg2 = msg.data.authenticated.finger.gid; in hal_notify_callback()
110 arg2 = msg.data.enroll.finger.gid; in hal_notify_callback()
115 arg2 = msg.data.removed.finger.gid; in hal_notify_callback()
175 finger.gid = groupId; in nativeRemove()
184 static jint nativeSetActiveGroup(JNIEnv *env, jobject clazz, jint gid, jbyteArray path) { in nativeSetActiveGroup() argument
193 ALOG(LOG_VERBOSE, LOG_TAG, "nativeSetActiveGroup() path: %s, gid: %d\n", path_name, gid); in nativeSetActiveGroup()
194 int result = gContext.device->set_active_group(gContext.device, gid, path_name); in nativeSetActiveGroup()
/frameworks/base/core/java/com/android/internal/os/
DZygote.java285 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()
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()
359 private static native void nativeSpecializeAppProcess(int uid, int gid, int[] gids, in nativeSpecializeAppProcess() argument
391 public static int forkSystemServer(int uid, int gid, int[] gids, int runtimeFlags, in forkSystemServer() argument
396 uid, gid, gids, runtimeFlags, rlimits, in forkSystemServer()
406 private static native int nativeForkSystemServer(int uid, int gid, int[] gids, int runtimeFlags, in nativeForkSystemServer() argument
/frameworks/base/cmds/idmap/
Didmap.cpp122 gid_t gid = getgid(); in verify_root_or_system() local
124 return (uid == 0 && gid == 0) || (uid == AID_SYSTEM && gid == AID_SYSTEM); in verify_root_or_system()
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp1119 static void SpecializeCommon(JNIEnv* env, uid_t uid, gid_t gid, jintArray gids, in SpecializeCommon() argument
1177 if (setresgid(gid, gid, gid) == -1) { in SpecializeCommon()
1178 fail_fn(CREATE_ERROR("setresgid(%d) failed: %s", gid, strerror(errno))); in SpecializeCommon()
1330 static jlong CalculateCapabilities(JNIEnv* env, jint uid, jint gid, jintArray gids, in CalculateCapabilities() argument
1363 if (gid == AID_WAKELOCK) { in CalculateCapabilities()
1521 JNIEnv* env, jclass, jint uid, jint gid, jintArray gids, in com_android_internal_os_Zygote_nativeForkAndSpecialize() argument
1526 jlong capabilities = CalculateCapabilities(env, uid, gid, gids, is_child_zygote); in com_android_internal_os_Zygote_nativeForkAndSpecialize()
1558 SpecializeCommon(env, uid, gid, gids, runtime_flags, rlimits, in com_android_internal_os_Zygote_nativeForkAndSpecialize()
1569 JNIEnv* env, jclass, uid_t uid, gid_t gid, jintArray gids, in com_android_internal_os_Zygote_nativeForkSystemServer() argument
1592 SpecializeCommon(env, uid, gid, gids, runtime_flags, rlimits, in com_android_internal_os_Zygote_nativeForkSystemServer()
[all …]
/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()
607 final int uid, final int gid, in startViaZygote() argument
629 argsForZygote.add("--setgid=" + gid); in startViaZygote()
1239 int uid, int gid, int[] gids, in startChildZygote() argument
1258 result = startViaZygote(processClass, niceName, uid, gid, in startChildZygote()
DFileUtils.java141 public static int setPermissions(File path, int mode, int uid, int gid) { in setPermissions() argument
142 return setPermissions(path.getAbsolutePath(), mode, uid, gid); in setPermissions()
155 public static int setPermissions(String path, int mode, int uid, int gid) { in setPermissions() argument
163 if (uid >= 0 || gid >= 0) { in setPermissions()
165 Os.chown(path, uid, gid); in setPermissions()
185 public static int setPermissions(FileDescriptor fd, int mode, int uid, int gid) { in setPermissions() argument
193 if (uid >= 0 || gid >= 0) { in setPermissions()
195 Os.fchown(fd, uid, gid); in setPermissions()
DUserHandle.java289 public static @AppIdInt int getAppIdFromSharedAppGid(int gid) { in getAppIdFromSharedAppGid() argument
290 final int appId = getAppId(gid) + Process.FIRST_APPLICATION_UID in getAppIdFromSharedAppGid()
/frameworks/base/libs/androidfw/
DPosixUtils.cpp67 auto gid = getgid(); in ExecuteBinary() local
81 if (setgid(gid) != 0) { in ExecuteBinary()
/frameworks/base/telephony/java/android/telephony/
DSmsMessage.java1080 String gid; in hasEmsSupport() local
1084 gid = TelephonyManager.getDefault().getGroupIdLevel1(); in hasEmsSupport()
1094 currentConfig.mGid1.equalsIgnoreCase(gid)))) { in hasEmsSupport()
1112 String gid; in shouldAppendPageNumberAsPrefix() local
1116 gid = TelephonyManager.getDefault().getGroupIdLevel1(); in shouldAppendPageNumberAsPrefix()
1125 && currentConfig.mGid1.equalsIgnoreCase(gid)))) { in shouldAppendPageNumberAsPrefix()
/frameworks/av/media/audioserver/
Daudioserver.rc4 # media gid needed for /dev/fm (radio) and for /data/misc/media (tee)
/frameworks/native/services/vr/performanced/
Dperformance_service.cpp64 const gid_t gid = sender.GetEffectiveGroupId(); in Check() local
66 EXPAND_PACK(allow |= (gid == GIDs)); in Check()
/frameworks/compile/mclinker/include/mcld/LD/
DArchive.h45 char gid[6]; ///< group id in ASCII decimal member
/frameworks/base/core/java/com/android/server/
DSystemConfig.java556 int gid = android.os.Process.getGidForName(gidStr); in readPermissionsFromXml() local
557 mGlobalGids = appendInt(mGlobalGids, gid); in readPermissionsFromXml()
1069 int gid = Process.getGidForName(gidStr); in readPermission() local
1070 perm.gids = appendInt(perm.gids, gid); in readPermission()
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp2053 nScriptGroupSetInput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc) in nScriptGroupSetInput() argument
2056 (void *)gid, (void *)kid, (void *)alloc); in nScriptGroupSetInput()
2057 dispatchTab.ScriptGroupSetInput((RsContext)con, (RsScriptGroup)gid, (RsScriptKernelID)kid, in nScriptGroupSetInput()
2062 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc) in nScriptGroupSetOutput() argument
2065 (void *)gid, (void *)kid, (void *)alloc); in nScriptGroupSetOutput()
2066 dispatchTab.ScriptGroupSetOutput((RsContext)con, (RsScriptGroup)gid, (RsScriptKernelID)kid, in nScriptGroupSetOutput()
2071 nScriptGroupExecute(JNIEnv *_env, jobject _this, jlong con, jlong gid) in nScriptGroupExecute() argument
2073 LOG_API("nScriptGroupSetOutput, con(%p) group(%p)", (RsContext)con, (void *)gid); in nScriptGroupExecute()
2074 dispatchTab.ScriptGroupExecute((RsContext)con, (RsScriptGroup)gid); in nScriptGroupExecute()

12