• Home
  • Raw
  • Download

Lines Matching refs:c_str

76         DIR* dir = opendir(root_path.c_str());  in resolve_ce_path_by_inode_or_fallback()
85 auto resolved = StringPrintf("%s/%s", root_path.c_str(), ent->d_name); in resolve_ce_path_by_inode_or_fallback()
111 create_data_app_path(volume_uuid).c_str(), package_name); in create_data_app_package_path()
123 create_data_user_ce_path(volume_uuid, user).c_str(), package_name); in create_data_user_ce_package_path()
137 return StringPrintf("%s/user/%u/%s", data.c_str(), userid, package_name); in create_data_user_ce_package_path_as_user_link()
153 create_data_user_de_path(volume_uuid, user).c_str(), package_name); in create_data_user_de_package_path()
172 return StringPrintf("%s/app", create_data_path(volume_uuid).c_str()); in create_data_app_path()
182 std::string legacy = StringPrintf("%s/data", data.c_str()); in create_data_user_ce_path()
184 if (lstat(legacy.c_str(), &sb) == 0 && S_ISDIR(sb.st_mode)) { in create_data_user_ce_path()
189 return StringPrintf("%s/user/%u", data.c_str(), userid); in create_data_user_ce_path()
197 return StringPrintf("%s/user_de/%u", data.c_str(), userid); in create_data_user_de_path()
201 return StringPrintf("%s/misc_ce/%u/rollback", create_data_path(volume_uuid).c_str(), user); in create_data_misc_ce_rollback_base_path()
205 return StringPrintf("%s/misc_de/%u/rollback", create_data_path(volume_uuid).c_str(), user); in create_data_misc_de_rollback_base_path()
210 return StringPrintf("%s/%d", create_data_misc_ce_rollback_base_path(volume_uuid, user).c_str(), in create_data_misc_ce_rollback_path()
216 return StringPrintf("%s/%d", create_data_misc_de_rollback_base_path(volume_uuid, user).c_str(), in create_data_misc_de_rollback_path()
223 create_data_misc_ce_rollback_path(volume_uuid, user, snapshot_id).c_str(), package_name); in create_data_misc_ce_rollback_package_path()
237 create_data_misc_de_rollback_path(volume_uuid, user, snapshot_id).c_str(), package_name); in create_data_misc_de_rollback_package_path()
244 return StringPrintf("%s/media/%u", create_data_path(volume_uuid).c_str(), userid); in create_data_media_path()
249 return StringPrintf("%s/Android/%s/%s", create_data_media_path(volume_uuid, userid).c_str(), in create_data_media_package_path()
254 return StringPrintf("%s/misc/user/%u", create_data_path(nullptr).c_str(), userid); in create_data_misc_legacy_path()
258 return StringPrintf("%s/cur/%u", android_profiles_dir.c_str(), userid); in create_primary_cur_profile_dir_path()
263 check_package_name(package_name.c_str()); in create_primary_current_profile_package_dir_path()
265 create_primary_cur_profile_dir_path(user).c_str(), package_name.c_str()); in create_primary_current_profile_package_dir_path()
269 return StringPrintf("%s/ref", android_profiles_dir.c_str()); in create_primary_ref_profile_dir_path()
273 check_package_name(package_name.c_str()); in create_primary_reference_profile_package_dir_path()
274 return StringPrintf("%s/ref/%s", android_profiles_dir.c_str(), package_name.c_str()); in create_primary_reference_profile_package_dir_path()
313 dex_dir.c_str(), dex_name.c_str(), CURRENT_PROFILE_EXT.c_str(), in create_current_profile_path()
314 PROFILE_EXT.c_str()); in create_current_profile_path()
319 return StringPrintf("%s/%s", profile_dir.c_str(), location.c_str()); in create_current_profile_path()
332 dex_dir.c_str(), dex_name.c_str(), PROFILE_EXT.c_str()); in create_reference_profile_path()
336 return StringPrintf("%s/%s", profile_dir.c_str(), location.c_str()); in create_reference_profile_path()
354 DIR* dir = opendir(path.c_str()); in get_known_users()
384 char *argv[] = { (char*) path.c_str(), nullptr }; in calculate_tree_size()
543 if ((rc = stat(pathname.c_str(), &st)) != 0) { in create_dir_if_needed()
545 return mkdir(pathname.c_str(), perms); in create_dir_if_needed()
564 return delete_dir_contents(pathname.c_str(), 0, nullptr, ignore_if_missing); in delete_dir_contents()
568 return delete_dir_contents(pathname.c_str(), 1, nullptr, ignore_if_missing); in delete_dir_contents_and_dir()
719 if (statvfs(data_path.c_str(), &sfs) == 0) { in data_disk_free()
730 if (stat(path.c_str(), &buf) != 0) { in get_path_inode()
747 auto path = StringPrintf("%s/%s", parent.c_str(), name); in write_path_inode()
755 if (getxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw)) == sizeof(inode_raw)) { in write_path_inode()
766 …if (setxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw), 0) != 0 && errno != EOPNO… in write_path_inode()
782 auto fallback = StringPrintf("%s/%s", parent.c_str(), name); in read_path_inode()
785 if (getxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw)) == sizeof(inode_raw)) { in read_path_inode()
792 DIR* dir = opendir(parent.c_str()); in read_path_inode()
801 auto resolved = StringPrintf("%s/%s", parent.c_str(), ent->d_name); in read_path_inode()
821 if (removexattr(path.c_str(), inode_xattr) && errno != ENODATA) { in remove_path_xattr()
899 volume_uuid, multiuser_get_user_id(uid), pkgname.c_str()) in validate_secondary_dex_path()
901 volume_uuid, multiuser_get_user_id(uid), pkgname.c_str()); in validate_secondary_dex_path()
903 if (strncmp(dex_path.c_str(), app_private_dir.c_str(), app_private_dir.size()) != 0) { in validate_secondary_dex_path()
907 volume_uuid, multiuser_get_user_id(uid), pkgname.c_str()); in validate_secondary_dex_path()
908 if (strncmp(dex_path.c_str(), app_private_dir_symlink.c_str(), in validate_secondary_dex_path()
962 return fs_prepare_dir(path.c_str(), 0750, uid, gid); in ensure_config_user_dirs()
998 auto path = StringPrintf("%s/%s", parent.c_str(), name); in prepare_app_cache_dir()
1000 if (stat(path.c_str(), &st) != 0) { in prepare_app_cache_dir()
1003 if (fs_prepare_dir_strict(path.c_str(), target_mode, uid, gid) != 0) { in prepare_app_cache_dir()
1034 char *argv[] = { (char*) path.c_str(), nullptr }; in prepare_app_cache_dir()
1085 if (stat(local_path.c_str(), &st) != 0) { in collect_profiles()
1099 unique_fd subdir_fd(openat(dir_fd, name.c_str(), in collect_profiles()
1125 DIR* d = opendir(android_profiles_dir.c_str()); in collect_profiles()