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()
69 static bool setMountFlag(const std::string& flag, unsigned* mount_flags) { in setMountFlag()
79 static bool parseMountFlags(const std::string& flags, unsigned* mount_flags, in parseMountFlags()
80 std::string* fs_options) { in parseMountFlags()
82 std::vector<std::string> flag_list; in parseMountFlags()
97 std::string mount_point_string(mount_point); in Mount()
98 std::string mount_options_string(mount_options); in Mount()
101 std::string fs_options; in Mount()
120 return mount(std::string(location).c_str(), mount_point_string.c_str(), in Mount()
121 std::string(fs_type).c_str(), mount_flags, fs_options.c_str()); in Mount()
126 MountedVolume* vol = find_mounted_volume_by_mount_point(std::string(mount_point).c_str()); in IsMounted()
132 MountedVolume* vol = find_mounted_volume_by_mount_point(std::string(mount_point).c_str()); in Unmount()
141 bool UpdaterRuntime::ReadFileToString(const std::string_view filename, std::string* content) const { in ReadFileToString()
142 return android::base::ReadFileToString(std::string(filename), content); in ReadFileToString()
147 return android::base::WriteStringToFile(std::string(content), std::string(filename)); in WriteStringToFile()
151 android::base::unique_fd fd(open(std::string(filename).c_str(), O_WRONLY)); in WipeBlockDevice()
160 int UpdaterRuntime::RunProgram(const std::vector<std::string>& args, bool is_vfork) const { in RunProgram()
185 int UpdaterRuntime::Tune2Fs(const std::vector<std::string>& args) const { in Tune2Fs()
191 std::string UpdaterRuntime::AddSlotSuffix(const std::string_view arg) const { in AddSlotSuffix()
192 return std::string(arg) + fs_mgr_get_slot_suffix(); in AddSlotSuffix()