Home
last modified time | relevance | path

Searched refs:string_view (Results 1 – 25 of 29) sorted by relevance

12

/bootable/recovery/edify/include/edify/
Dupdater_runtime_interface.h36 virtual std::string GetProperty(const std::string_view key,
37 const std::string_view default_value) const = 0;
41 virtual std::string FindBlockDeviceName(const std::string_view name) const = 0;
44 virtual int Mount(const std::string_view location, const std::string_view mount_point,
45 const std::string_view fs_type, const std::string_view mount_options) = 0;
48 virtual bool IsMounted(const std::string_view mount_point) const = 0;
52 virtual std::pair<bool, int> Unmount(const std::string_view mount_point) = 0;
55 virtual bool ReadFileToString(const std::string_view filename, std::string* content) const = 0;
58 virtual bool WriteStringToFile(const std::string_view content,
59 const std::string_view filename) const = 0;
[all …]
Dupdater_interface.h34 virtual void WriteToCommandPipe(const std::string_view message, bool flush = false) const = 0;
37 virtual void UiPrint(const std::string_view message) const = 0;
41 virtual std::string FindBlockDeviceName(const std::string_view name) const = 0;
/bootable/recovery/updater/include/updater/
Dupdater_runtime.h38 std::string GetProperty(const std::string_view key,
39 const std::string_view default_value) const override;
41 std::string FindBlockDeviceName(const std::string_view name) const override;
43 int Mount(const std::string_view location, const std::string_view mount_point,
44 const std::string_view fs_type, const std::string_view mount_options) override;
45 bool IsMounted(const std::string_view mount_point) const override;
46 std::pair<bool, int> Unmount(const std::string_view mount_point) override;
48 bool ReadFileToString(const std::string_view filename, std::string* content) const override;
49 bool WriteStringToFile(const std::string_view content,
50 const std::string_view filename) const override;
[all …]
Dsimulator_runtime.h37 std::string GetProperty(const std::string_view key,
38 const std::string_view default_value) const override;
40 int Mount(const std::string_view location, const std::string_view mount_point,
41 const std::string_view fs_type, const std::string_view mount_options) override;
42 bool IsMounted(const std::string_view mount_point) const override;
43 std::pair<bool, int> Unmount(const std::string_view mount_point) override;
45 bool ReadFileToString(const std::string_view filename, std::string* content) const override;
46 bool WriteStringToFile(const std::string_view content,
47 const std::string_view filename) const override;
49 int WipeBlockDevice(const std::string_view filename, size_t len) const override;
[all …]
Dbuild_info.h46 BuildInfo(const std::string_view work_dir, bool keep_images) in BuildInfo()
49 std::string GetProperty(const std::string_view key, const std::string_view default_value) const;
51 std::string FindBlockDeviceName(const std::string_view name) const;
53 bool ParseTargetFile(const std::string_view target_file_path, bool extracted_input);
58 void SetOemSettings(const std::string_view oem_settings) { in SetOemSettings()
Dtarget_files.h54 bool EntryExists(const std::string_view name) const;
56 bool ExtractImage(const std::string_view entry_name, const FstabInfo& fstab_info,
57 const std::string_view work_dir, TemporaryFile* image_file) const;
62 bool ReadEntryToString(const std::string_view name, std::string* content) const;
63 bool ExtractEntryToTempFile(const std::string_view name, TemporaryFile* temp_file) const;
Dupdater.h42 bool Init(int fd, const std::string_view package_filename, bool is_retry);
49 void WriteToCommandPipe(const std::string_view message, bool flush = false) const override;
52 void UiPrint(const std::string_view message) const override;
54 std::string FindBlockDeviceName(const std::string_view name) const override;
/bootable/recovery/updater/
Dsimulator_runtime.cpp38 std::string SimulatorRuntime::GetProperty(const std::string_view key, in GetProperty()
39 const std::string_view default_value) const { in GetProperty()
43 int SimulatorRuntime::Mount(const std::string_view location, const std::string_view mount_point, in Mount() argument
44 const std::string_view /* fs_type */, in Mount()
45 const std::string_view /* mount_options */) { in Mount()
56 bool SimulatorRuntime::IsMounted(const std::string_view mount_point) const { in IsMounted()
60 std::pair<bool, int> SimulatorRuntime::Unmount(const std::string_view mount_point) { in Unmount()
69 std::string SimulatorRuntime::FindBlockDeviceName(const std::string_view name) const { in FindBlockDeviceName()
84 int SimulatorRuntime::WipeBlockDevice(const std::string_view filename, size_t /* len */) const { in WipeBlockDevice()
89 bool SimulatorRuntime::ReadFileToString(const std::string_view filename, in ReadFileToString()
[all …]
Dupdater_runtime.cpp38 std::string UpdaterRuntime::GetProperty(const std::string_view key, in GetProperty()
39 const std::string_view default_value) const { in GetProperty()
43 std::string UpdaterRuntime::FindBlockDeviceName(const std::string_view name) const { in FindBlockDeviceName()
95 int UpdaterRuntime::Mount(const std::string_view location, const std::string_view mount_point, in Mount()
96 const std::string_view fs_type, const std::string_view mount_options) { in Mount()
124 bool UpdaterRuntime::IsMounted(const std::string_view mount_point) const { in IsMounted()
130 std::pair<bool, int> UpdaterRuntime::Unmount(const std::string_view mount_point) { in Unmount()
141 bool UpdaterRuntime::ReadFileToString(const std::string_view filename, std::string* content) const { in ReadFileToString()
145 bool UpdaterRuntime::WriteStringToFile(const std::string_view content, in WriteStringToFile()
146 const std::string_view filename) const { in WriteStringToFile()
[all …]
Dbuild_info.cpp30 bool BuildInfo::ParseTargetFile(const std::string_view target_file_path, bool extracted_input) { in ParseTargetFile()
84 std::string BuildInfo::GetProperty(const std::string_view key, in GetProperty()
85 const std::string_view default_value) const { in GetProperty()
98 std::string_view key_suffix(key); in GetProperty()
131 std::string BuildInfo::FindBlockDeviceName(const std::string_view name) const { in FindBlockDeviceName()
Dtarget_files.cpp55 static bool ParsePropertyFile(const std::string_view prop_content, in ParsePropertyFile()
72 static bool ParseFstab(const std::string_view fstab, std::vector<FstabInfo>* fstab_info_list) { in ParseFstab()
107 bool TargetFile::EntryExists(const std::string_view name) const { in EntryExists()
122 bool TargetFile::ReadEntryToString(const std::string_view name, std::string* content) const { in ReadEntryToString()
151 bool TargetFile::ExtractEntryToTempFile(const std::string_view name, in ExtractEntryToTempFile()
197 constexpr std::string_view kPropLocations[] = { in GetBuildProps()
232 bool TargetFile::ExtractImage(const std::string_view entry_name, const FstabInfo& fstab_info, in ExtractImage()
233 const std::string_view work_dir, TemporaryFile* image_file) const { in ExtractImage()
262 constexpr std::string_view kRecoveryFstabLocations[] = { in ParseFstabInfo()
Dupdater.cpp35 bool Updater::Init(int fd, const std::string_view package_filename, bool is_retry) { in Init()
98 void Updater::WriteToCommandPipe(const std::string_view message, bool flush) const { in WriteToCommandPipe()
105 void Updater::UiPrint(const std::string_view message) const { in UiPrint()
121 std::string Updater::FindBlockDeviceName(const std::string_view name) const { in FindBlockDeviceName()
Dupdate_simulator_main.cpp40 void Usage(std::string_view name) { in Usage()
Dupdater_runtime_dynamic_partitions.cpp301 bool UpdaterRuntime::UpdateDynamicPartitions(const std::string_view op_list_value) { in UpdateDynamicPartitions()
/bootable/recovery/otautil/include/otautil/
Dboot_state.h24 BootState(std::string_view reason, std::string_view stage) : reason_(reason), stage_(stage) {} in BootState()
Dsysutil.h106 [[noreturn]] void Reboot(std::string_view target);
109 bool Shutdown(std::string_view target);
/bootable/recovery/install/include/install/
Dfuse_install.h28 InstallResult InstallWithFuseFromPath(std::string_view path, RecoveryUI* ui);
Dinstall.h51 InstallResult InstallPackage(Package* package, const std::string_view package_id,
/bootable/recovery/install/
Dfuse_install.cpp124 static bool StartInstallPackageFuse(std::string_view path) { in StartInstallPackageFuse()
149 InstallResult InstallWithFuseFromPath(std::string_view path, RecoveryUI* ui) { in InstallWithFuseFromPath()
/bootable/recovery/tests/unit/
Dupdater_test.cpp109 static std::string GetSha1(std::string_view content) { in GetSha1()
188 for (std::string_view line : lines) { in RunBlockImageUpdate()
651 static void GetEntriesForBsdiff(std::string_view source, std::string_view target, in GetEntriesForBsdiff()
695 GetEntriesForBsdiff(std::string_view(source).substr(0, 4096 * 2), in TEST_F()
696 std::string_view(target).substr(0, 4096 * 2), 2, &entries); in TEST_F()
715 GetEntriesForBsdiff(std::string_view(source).substr(0, 4096 * 2), in TEST_F()
716 std::string_view(target).substr(0, 4096 * 2), 1, &entries); in TEST_F()
732 GetEntriesForBsdiff(std::string_view(source).substr(0, 4096 * 2), in TEST_F()
733 std::string_view(target).substr(0, 4096 * 2), 3, &entries); in TEST_F()
Dpackage_test.cpp108 std::string_view entry_name = "dir1/file3.txt"; in TEST_F()
Dbootloader_message_test.cpp28 extern void SetMiscBlockDeviceForTest(std::string_view misc_device);
/bootable/recovery/otautil/
Dsysutil.cpp222 void Reboot(std::string_view target) { in Reboot()
236 bool Shutdown(std::string_view target) { in Shutdown()
/bootable/recovery/minadbd/
Dminadbd_services.cpp269 asocket* daemon_service_to_socket(std::string_view) { in daemon_service_to_socket() argument
273 unique_fd daemon_service_to_fd(std::string_view name, atransport* /* transport */) { in daemon_service_to_fd()
/bootable/recovery/tests/unit/host/
Dupdate_simulator_test.cpp79 static void RunSimulation(std::string_view src_tf, std::string_view ota_package, bool expected) { in RunSimulation()

12