/frameworks/native/cmds/installd/ |
D | matchgen.py | 30 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)
|
D | QuotaUtils.cpp | 100 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()
|
D | installd.cpp | 134 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()
|
D | utils.cpp | 399 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 …]
|
D | QuotaUtils.h | 36 int64_t GetOccupiedSpaceForGid(const std::string& uuid, gid_t gid);
|
D | utils.h | 151 uid_t uid, gid_t gid);
|
/frameworks/base/core/java/android/net/ |
D | Credentials.java | 29 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/ |
D | test_utils.h | 96 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()
|
D | installd_dexopt_test.cpp | 411 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/ |
D | EuiccRulesAuthTable.java | 163 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/ |
D | com_android_server_fingerprint_FingerprintService.cpp | 102 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/ |
D | Zygote.java | 234 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/ |
D | idmap.cpp | 122 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/ |
D | com_android_internal_os_Zygote.cpp | 973 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/ |
D | Process.java | 523 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()
|
D | ZygoteProcess.java | 316 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()
|
D | FileUtils.java | 141 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()
|
D | UserHandle.java | 288 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/ |
D | PosixUtils.cpp | 67 auto gid = getgid(); in ExecuteBinary() local 81 if (setgid(gid) != 0) { in ExecuteBinary()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SmsMessage.java | 942 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/ |
D | audioserver.rc | 4 # media gid needed for /dev/fm (radio) and for /data/misc/media (tee)
|
/frameworks/native/services/vr/performanced/ |
D | performance_service.cpp | 64 const gid_t gid = sender.GetEffectiveGroupId(); in Check() local 66 EXPAND_PACK(allow |= (gid == GIDs)); in Check()
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | Archive.h | 45 char gid[6]; ///< group id in ASCII decimal member
|
/frameworks/base/core/java/com/android/server/ |
D | SystemConfig.java | 514 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/ |
D | android_renderscript_RenderScript.cpp | 2053 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()
|