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.cpp100 int64_t GetOccupiedSpaceForGid(const std::string& uuid, gid_t gid) { in GetOccupiedSpaceForGid() argument
106 if (quotactl(QCMD(Q_GETQUOTA, GRPQUOTA), device.c_str(), gid, in GetOccupiedSpaceForGid()
109 PLOG(ERROR) << "Failed to quotactl " << device << " for GID " << gid; in GetOccupiedSpaceForGid()
114 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.cpp399 int32_t gid = p->fts_statp->st_gid; in calculate_tree_size() local
401 int32_t user_gid = multiuser_get_app_id(gid); in calculate_tree_size()
409 if (include_gid != -1 && gid != include_gid) { in calculate_tree_size()
412 if (exclude_gid != -1 && gid == exclude_gid) { in calculate_tree_size()
958 const int gid = multiuser_get_uid(userid, AID_EVERYBODY); in ensure_config_user_dirs() local
962 return fs_prepare_dir(path.c_str(), 0750, uid, gid); in ensure_config_user_dirs()
997 uid_t uid, gid_t gid) { in prepare_app_cache_dir() argument
1003 if (fs_prepare_dir_strict(path.c_str(), target_mode, uid, gid) != 0) { in prepare_app_cache_dir()
1021 } else if (st.st_gid == gid && actual_mode == target_mode) { in prepare_app_cache_dir()
1027 << "/" << 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.cpp411 void CheckFileAccess(const std::string& file, uid_t uid, gid_t gid, mode_t mode) { in CheckFileAccess() argument
415 ASSERT_EQ(gid, st.st_gid); in CheckFileAccess()
827 void SetupProfile(const std::string& path, uid_t uid, gid_t gid, mode_t mode, in SetupProfile() argument
833 ::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.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/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.cpp973 static void SpecializeCommon(JNIEnv* env, uid_t uid, gid_t gid, jintArray gids, in SpecializeCommon() argument
1036 if (setresgid(gid, gid, gid) == -1) { in SpecializeCommon()
1037 fail_fn(CREATE_ERROR("setresgid(%d) failed: %s", gid, strerror(errno))); in SpecializeCommon()
1164 static jlong CalculateCapabilities(JNIEnv* env, jint uid, jint gid, jintArray gids, in CalculateCapabilities() argument
1197 if (gid == AID_WAKELOCK) { in CalculateCapabilities()
1354 JNIEnv* env, jclass, jint uid, jint gid, jintArray gids, in com_android_internal_os_Zygote_nativeForkAndSpecialize() argument
1359 jlong capabilities = CalculateCapabilities(env, uid, gid, gids, is_child_zygote); in com_android_internal_os_Zygote_nativeForkAndSpecialize()
1386 SpecializeCommon(env, uid, gid, gids, runtime_flags, rlimits, in com_android_internal_os_Zygote_nativeForkAndSpecialize()
1395 JNIEnv* env, jclass, uid_t uid, gid_t gid, jintArray gids, in com_android_internal_os_Zygote_nativeForkSystemServer() argument
1412 SpecializeCommon(env, uid, gid, gids, runtime_flags, rlimits, in com_android_internal_os_Zygote_nativeForkSystemServer()
[all …]
/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()
543 final int uid, final int gid, in startViaZygote() argument
563 argsForZygote.add("--setgid=" + gid); in startViaZygote()
1124 int uid, int gid, int[] gids, in startChildZygote() argument
1143 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.java288 public static @AppIdInt int getAppIdFromSharedAppGid(int gid) { in getAppIdFromSharedAppGid() argument
289 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.java942 String gid; in hasEmsSupport() local
946 gid = TelephonyManager.getDefault().getGroupIdLevel1(); in hasEmsSupport()
956 currentConfig.mGid1.equalsIgnoreCase(gid)))) { in hasEmsSupport()
974 String gid; in shouldAppendPageNumberAsPrefix() local
978 gid = TelephonyManager.getDefault().getGroupIdLevel1(); in shouldAppendPageNumberAsPrefix()
987 && 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.java514 int gid = android.os.Process.getGidForName(gidStr); in readPermissionsFromXml() local
515 mGlobalGids = appendInt(mGlobalGids, gid); in readPermissionsFromXml()
1023 int gid = Process.getGidForName(gidStr); in readPermission() local
1024 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