/bootable/recovery/edify/include/edify/ |
D | updater_runtime_interface.h | 36 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 …]
|
D | updater_interface.h | 34 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/ |
D | updater_runtime.h | 38 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 …]
|
D | simulator_runtime.h | 37 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 …]
|
D | build_info.h | 46 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()
|
D | target_files.h | 54 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;
|
D | updater.h | 42 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/ |
D | simulator_runtime.cpp | 38 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 …]
|
D | updater_runtime.cpp | 38 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 …]
|
D | target_files.cpp | 55 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()
|
D | build_info.cpp | 30 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()
|
D | updater.cpp | 35 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()
|
D | update_simulator_main.cpp | 40 void Usage(std::string_view name) { in Usage()
|
/bootable/recovery/otautil/include/otautil/ |
D | boot_state.h | 24 BootState(std::string_view reason, std::string_view stage) : reason_(reason), stage_(stage) {} in BootState()
|
D | sysutil.h | 106 [[noreturn]] void Reboot(std::string_view target); 109 bool Shutdown(std::string_view target);
|
/bootable/recovery/install/include/install/ |
D | fuse_install.h | 28 InstallResult InstallWithFuseFromPath(std::string_view path, RecoveryUI* ui);
|
D | install.h | 51 InstallResult InstallPackage(Package* package, const std::string_view package_id,
|
/bootable/recovery/tests/unit/ |
D | updater_test.cpp | 109 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()
|
D | package_test.cpp | 108 std::string_view entry_name = "dir1/file3.txt"; in TEST_F()
|
D | bootloader_message_test.cpp | 28 extern void SetMiscBlockDeviceForTest(std::string_view misc_device);
|
/bootable/recovery/install/ |
D | fuse_install.cpp | 124 static bool StartInstallPackageFuse(std::string_view path) { in StartInstallPackageFuse() 149 InstallResult InstallWithFuseFromPath(std::string_view path, RecoveryUI* ui) { in InstallWithFuseFromPath()
|
/bootable/recovery/otautil/ |
D | sysutil.cpp | 222 void Reboot(std::string_view target) { in Reboot() 236 bool Shutdown(std::string_view target) { in Shutdown()
|
/bootable/recovery/minadbd/ |
D | minadbd_services.cpp | 269 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/ |
D | update_simulator_test.cpp | 79 static void RunSimulation(std::string_view src_tf, std::string_view ota_package, bool expected) { in RunSimulation()
|
/bootable/recovery/bootloader_message/ |
D | bootloader_message.cpp | 44 void SetMiscBlockDeviceForTest(std::string_view misc_device) { in SetMiscBlockDeviceForTest()
|