Lines Matching refs:string
41 static std::optional<std::string> g_misc_device_for_test;
48 std::string get_misc_blk_device(std::string* err) { in get_misc_blk_device()
69 static bool wait_for_device(const std::string& blk_device, std::string* err) { in wait_for_device()
90 static bool read_misc_partition(void* p, size_t size, const std::string& misc_blk_device, in read_misc_partition()
91 size_t offset, std::string* err) { in read_misc_partition()
114 bool write_misc_partition(const void* p, size_t size, const std::string& misc_blk_device, in write_misc_partition()
115 size_t offset, std::string* err) { in write_misc_partition()
140 std::string get_bootloader_message_blk_device(std::string* err) { in get_bootloader_message_blk_device()
141 std::string misc_blk_device = get_misc_blk_device(err); in get_bootloader_message_blk_device()
147 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device, in read_bootloader_message_from()
148 std::string* err) { in read_bootloader_message_from()
153 bool read_bootloader_message(bootloader_message* boot, std::string* err) { in read_bootloader_message()
154 std::string misc_blk_device = get_misc_blk_device(err); in read_bootloader_message()
161 bool write_bootloader_message_to(const bootloader_message& boot, const std::string& misc_blk_device, in write_bootloader_message_to()
162 std::string* err) { in write_bootloader_message_to()
167 bool write_bootloader_message(const bootloader_message& boot, std::string* err) { in write_bootloader_message()
168 std::string misc_blk_device = get_misc_blk_device(err); in write_bootloader_message()
175 bool clear_bootloader_message(std::string* err) { in clear_bootloader_message()
180 bool write_bootloader_message(const std::vector<std::string>& options, std::string* err) { in write_bootloader_message()
187 bool write_bootloader_message_to(const std::vector<std::string>& options, in write_bootloader_message_to()
188 const std::string& misc_blk_device, std::string* err) { in write_bootloader_message_to()
195 bool update_bootloader_message(const std::vector<std::string>& options, std::string* err) { in update_bootloader_message()
206 const std::vector<std::string>& options) { in update_bootloader_message_in_struct()
214 std::string recovery = "recovery\n"; in update_bootloader_message_in_struct()
225 bool write_reboot_bootloader(std::string* err) { in write_reboot_bootloader()
238 bool read_wipe_package(std::string* package_data, size_t size, std::string* err) { in read_wipe_package()
239 std::string misc_blk_device = get_misc_blk_device(err); in read_wipe_package()
248 bool write_wipe_package(const std::string& package_data, std::string* err) { in write_wipe_package()
249 std::string misc_blk_device = get_misc_blk_device(err); in write_wipe_package()
264 static bool ValidateSystemSpaceRegion(size_t offset, size_t size, std::string* err) { in ValidateSystemSpaceRegion()
272 static bool ReadMiscPartitionSystemSpace(void* data, size_t size, size_t offset, std::string* err) { in ReadMiscPartitionSystemSpace()
285 std::string* err) { in WriteMiscPartitionSystemSpace()
297 bool ReadMiscVirtualAbMessage(misc_virtual_ab_message* message, std::string* err) { in ReadMiscVirtualAbMessage()
302 bool WriteMiscVirtualAbMessage(const misc_virtual_ab_message& message, std::string* err) { in WriteMiscVirtualAbMessage()
308 std::string err; in write_reboot_bootloader()
313 std::string err; in write_bootloader_message()