Lines Matching refs:string
38 std::string UpdaterRuntime::GetProperty(const std::string_view key, in GetProperty()
40 return android::base::GetProperty(std::string(key), std::string(default_value)); in GetProperty()
43 std::string UpdaterRuntime::FindBlockDeviceName(const std::string_view name) const { in FindBlockDeviceName()
44 return std::string(name); in FindBlockDeviceName()
47 static bool setMountFlag(const std::string& flag, unsigned* mount_flags) { in setMountFlag()
75 static bool parseMountFlags(const std::string& flags, unsigned* mount_flags, in parseMountFlags()
76 std::string* fs_options) { in parseMountFlags()
78 std::vector<std::string> flag_list; in parseMountFlags()
93 std::string mount_point_string(mount_point); in Mount()
94 std::string mount_options_string(mount_options); in Mount()
97 std::string fs_options; in Mount()
116 return mount(std::string(location).c_str(), mount_point_string.c_str(), in Mount()
117 std::string(fs_type).c_str(), mount_flags, fs_options.c_str()); in Mount()
122 MountedVolume* vol = find_mounted_volume_by_mount_point(std::string(mount_point).c_str()); in IsMounted()
128 MountedVolume* vol = find_mounted_volume_by_mount_point(std::string(mount_point).c_str()); in Unmount()
137 bool UpdaterRuntime::ReadFileToString(const std::string_view filename, std::string* content) const { in ReadFileToString()
138 return android::base::ReadFileToString(std::string(filename), content); in ReadFileToString()
143 return android::base::WriteStringToFile(std::string(content), std::string(filename)); in WriteStringToFile()
147 android::base::unique_fd fd(open(std::string(filename).c_str(), O_WRONLY)); in WipeBlockDevice()
156 int UpdaterRuntime::RunProgram(const std::vector<std::string>& args, bool is_vfork) const { in RunProgram()
181 int UpdaterRuntime::Tune2Fs(const std::vector<std::string>& args) const { in Tune2Fs()
187 std::string UpdaterRuntime::AddSlotSuffix(const std::string_view arg) const { in AddSlotSuffix()
188 return std::string(arg) + fs_mgr_get_slot_suffix(); in AddSlotSuffix()