Lines Matching refs:userid
137 const char* volume_uuid, userid_t userid, const char* package_name) { in create_data_user_ce_package_path_as_user_link() argument
140 return StringPrintf("%s/user/%u/%s", data.c_str(), userid, package_name); in create_data_user_ce_package_path_as_user_link()
182 std::string create_data_user_ce_path(const char* volume_uuid, userid_t userid) { in create_data_user_ce_path() argument
184 if (volume_uuid == nullptr && userid == 0) { in create_data_user_ce_path()
192 return StringPrintf("%s/user/%u", data.c_str(), userid); in create_data_user_ce_path()
198 std::string create_data_user_de_path(const char* volume_uuid, userid_t userid) { in create_data_user_de_path() argument
200 return StringPrintf("%s/user_de/%u", data.c_str(), userid); in create_data_user_de_path()
246 std::string create_data_media_path(const char* volume_uuid, userid_t userid) { in create_data_media_path() argument
247 return StringPrintf("%s/media/%u", create_data_path(volume_uuid).c_str(), userid); in create_data_media_path()
250 std::string create_data_media_package_path(const char* volume_uuid, userid_t userid, in create_data_media_package_path() argument
252 return StringPrintf("%s/Android/%s/%s", create_data_media_path(volume_uuid, userid).c_str(), in create_data_media_package_path()
256 std::string create_data_misc_legacy_path(userid_t userid) { in create_data_misc_legacy_path() argument
257 return StringPrintf("%s/misc/user/%u", create_data_path(nullptr).c_str(), userid); in create_data_misc_legacy_path()
260 std::string create_primary_cur_profile_dir_path(userid_t userid) { in create_primary_cur_profile_dir_path() argument
261 return StringPrintf("%s/cur/%u", android_profiles_dir.c_str(), userid); in create_primary_cur_profile_dir_path()
958 int ensure_config_user_dirs(userid_t userid) { in ensure_config_user_dirs() argument
960 const int uid = multiuser_get_uid(userid, AID_SYSTEM); in ensure_config_user_dirs()
961 const int gid = multiuser_get_uid(userid, AID_EVERYBODY); in ensure_config_user_dirs()
964 auto path = create_data_misc_legacy_path(userid); in ensure_config_user_dirs()