/bootable/recovery/bootloader_message/ |
D | bootloader_message.cpp | 43 static std::string get_misc_blk_device(std::string* err) { in get_misc_blk_device() argument 49 *err = "failed to read default fstab"; in get_misc_blk_device() 58 *err = "failed to find /misc partition"; in get_misc_blk_device() 64 static bool wait_for_device(const std::string& blk_device, std::string* err) { in wait_for_device() argument 67 err->clear(); in wait_for_device() 73 *err += android::base::StringPrintf("failed to stat %s try %d: %s\n", in wait_for_device() 80 *err += android::base::StringPrintf("failed to stat %s\n", blk_device.c_str()); in wait_for_device() 86 size_t offset, std::string* err) { in read_misc_partition() argument 87 if (!wait_for_device(misc_blk_device, err)) { in read_misc_partition() 92 *err = android::base::StringPrintf("failed to open %s: %s", misc_blk_device.c_str(), in read_misc_partition() [all …]
|
/bootable/recovery/minui/ |
D | graphics_adf.cpp | 45 __u32 format, int* err) { in Create() argument 52 *err = fd; in Create() 63 *err = -errno; in Create() 74 if (int err = adf_get_interface_data(intf_fd, &intf_data); err < 0) return err; in InterfaceInit() local 98 int err = adf_find_simple_post_configuration(dev, &format, 1, &intf_id, &eng_id); in DeviceInit() local 99 if (err < 0) return err; in DeviceInit() 101 err = adf_device_attach(dev, eng_id, intf_id); in DeviceInit() 102 if (err < 0 && err != -EALREADY) return err; in DeviceInit() 107 err = InterfaceInit(); in DeviceInit() 108 if (err < 0) { in DeviceInit() [all …]
|
D | graphics_adf.h | 35 __u32 format, int* err);
|
/bootable/recovery/bootloader_message/include/bootloader_message/ |
D | bootloader_message.h | 191 std::string get_bootloader_message_blk_device(std::string* err); 194 bool read_bootloader_message(bootloader_message* boot, std::string* err); 198 std::string* err); 201 bool write_bootloader_message(const bootloader_message& boot, std::string* err); 205 const std::string& misc_blk_device, std::string* err); 209 bool write_bootloader_message(const std::vector<std::string>& options, std::string* err); 213 bool update_bootloader_message(const std::vector<std::string>& options, std::string* err); 221 bool clear_bootloader_message(std::string* err); 224 bool write_reboot_bootloader(std::string* err); 227 bool read_wipe_package(std::string* package_data, size_t size, std::string* err); [all …]
|
/bootable/recovery/tests/component/ |
D | uncrypt_test.cpp | 68 std::string err; in SetUp() local 69 has_misc = !get_bootloader_message_blk_device(&err).empty(); in SetUp() 75 std::string err; in TearDown() local 76 ASSERT_TRUE(clear_bootloader_message(&err)) << "Failed to clear BCB: " << err; in TearDown() 132 std::string err; in SetupOrClearBcb() local 133 ASSERT_TRUE(read_bootloader_message(&boot, &err)) << "Failed to read BCB: " << err; in SetupOrClearBcb() 145 ASSERT_TRUE(clear_bootloader_message(&err)) << "Failed to clear BCB: " << err; in SetupOrClearBcb() 154 std::string err; in VerifyBootloaderMessage() local 156 ASSERT_TRUE(read_bootloader_message(&boot, &err)) << "Failed to read BCB: " << err; in VerifyBootloaderMessage() 178 std::string err; in TEST_F() local [all …]
|
D | bootloader_message_test.cpp | 39 std::string err; in TEST() local 40 ASSERT_TRUE(write_bootloader_message_to(boot, temp_misc.path, &err)) in TEST() 41 << "Failed to write BCB: " << err; in TEST() 45 ASSERT_TRUE(read_bootloader_message_from(&boot_verify, temp_misc.path, &err)) in TEST() 46 << "Failed to read BCB: " << err; in TEST() 128 std::string err; in TEST() local 129 ASSERT_TRUE(WriteMiscPartitionVendorSpace(kTestMessage.data(), kTestMessage.size(), 0, &err)); in TEST() 133 ASSERT_TRUE(ReadMiscPartitionVendorSpace(message.data(), message.size(), 0, &err)); in TEST() 137 ASSERT_TRUE(WriteMiscPartitionVendorSpace("\x00\x00", 2, 5, &err)); in TEST() 138 ASSERT_TRUE(ReadMiscPartitionVendorSpace(message.data(), message.size(), 0, &err)); in TEST() [all …]
|
D | install_test.cpp | 155 std::string err; in TEST() local 157 android::vintf::VintfObjectRecovery::CheckCompatibility(compatibility_info, &err) == 0; in TEST() 186 std::string err; in TEST() local 188 android::vintf::VintfObjectRecovery::CheckCompatibility(compatibility_info, &err) == 0; in TEST()
|
/bootable/recovery/tests/unit/ |
D | commands_test.cpp | 53 std::string err; in TEST() local 56 "1d74d1a60332fd38cf9405f1bae67917888da6cb", &source, &err)); in TEST() 75 std::string err; in TEST() local 78 "1c25ba04d3278d6b65a1b9f17abac78425ec8b8d", &source, &err)); in TEST() 101 std::string err; in TEST() local 104 "a6cbdf3f416960f02189d3a814ec7e9e95c44a0d", &source, &err)); in TEST() 129 std::string err; in TEST() local 137 "1d74d1a60332fd38cf9405f1bae67917888da6cb", &source, &err)); in TEST() 146 "1d74d1a60332fd38cf9405f1bae67917888da6cb", &source, &err)); in TEST() 153 std::string err; in TEST() local [all …]
|
/bootable/recovery/updater/ |
D | commands.cpp | 80 std::string* err) { in ParseTargetInfoAndSourceInfo() argument 94 *err = "invalid number of args"; in ParseTargetInfoAndSourceInfo() 101 *err = "invalid target ranges"; in ParseTargetInfoAndSourceInfo() 110 *err = "invalid src_block_count \""s + token + "\""; in ParseTargetInfoAndSourceInfo() 123 *err = "invalid source ranges"; in ParseTargetInfoAndSourceInfo() 133 *err = in ParseTargetInfoAndSourceInfo() 145 *err = "invalid source ranges location"; in ParseTargetInfoAndSourceInfo() 157 *err = "invalid stash info"; in ParseTargetInfoAndSourceInfo() 162 *err = "invalid stash location"; in ParseTargetInfoAndSourceInfo() 170 *err = android::base::StringPrintf("mismatching block count: %zu (%s) vs %zu", result.blocks(), in ParseTargetInfoAndSourceInfo() [all …]
|
D | install.cpp | 219 std::string err; in PatchPartitionCheckFn() local 220 auto target = Partition::Parse(args[0], &err); in PatchPartitionCheckFn() 223 args[0].c_str(), err.c_str()); in PatchPartitionCheckFn() 226 auto source = Partition::Parse(args[1], &err); in PatchPartitionCheckFn() 229 args[1].c_str(), err.c_str()); in PatchPartitionCheckFn() 255 std::string err; in PatchPartitionFn() local 256 auto target = Partition::Parse(args[0], &err); in PatchPartitionFn() 259 args[0].c_str(), err.c_str()); in PatchPartitionFn() 262 auto source = Partition::Parse(args[1], &err); in PatchPartitionFn() 265 args[1].c_str(), err.c_str()); in PatchPartitionFn() [all …]
|
D | dynamic_partitions.cpp | 362 std::string err; in UpdateDynamicPartitionsFn() local 363 if (!android::base::RemoveFileIfExists(updated_marker, &err)) { in UpdateDynamicPartitionsFn() 365 << ": " << err; in UpdateDynamicPartitionsFn()
|
/bootable/recovery/applypatch/ |
D | applypatch_modes.cpp | 39 std::string err; in CheckMode() local 40 auto target = Partition::Parse(target_emmc, &err); in CheckMode() 42 LOG(ERROR) << "Failed to parse target \"" << target_emmc << "\": " << err; in CheckMode() 49 std::string err; in FlashMode() local 50 auto target = Partition::Parse(target_emmc, &err); in FlashMode() 52 LOG(ERROR) << "Failed to parse target \"" << target_emmc << "\": " << err; in FlashMode() 60 std::string err; in PatchMode() local 61 auto target = Partition::Parse(target_emmc, &err); in PatchMode() 63 LOG(ERROR) << "Failed to parse target \"" << target_emmc << "\": " << err; in PatchMode() 67 auto source = Partition::Parse(source_emmc, &err); in PatchMode() [all …]
|
D | applypatch.cpp | 429 Partition Partition::Parse(const std::string& input_str, std::string* err) { in Parse() argument 432 *err = "Invalid number of tokens or non-eMMC target"; in Parse() 438 *err = "Failed to parse \"" + pieces[2] + "\" as byte count"; in Parse()
|
/bootable/recovery/fastboot/ |
D | fastboot.cpp | 60 std::string err; in StartFastboot() local 61 if (!clear_bootloader_message(&err)) { in StartFastboot() 62 LOG(ERROR) << "Failed to clear BCB message: " << err; in StartFastboot()
|
/bootable/recovery/misc_writer/ |
D | misc_writer.cpp | 101 if (std::string err; !WriteMiscPartitionVendorSpace(data.data(), data.size(), offset, &err)) { in main() local 102 LOG(ERROR) << "Failed to write to misc partition: " << err; in main()
|
/bootable/recovery/install/ |
D | package.cpp | 189 if (auto err = OpenArchiveFromMemory(const_cast<uint8_t*>(addr_), package_size_, path_.c_str(), in GetZipArchiveHandle() local 191 err != 0) { in GetZipArchiveHandle() 192 LOG(ERROR) << "Can't open package" << path_ << " : " << ErrorCodeString(err); in GetZipArchiveHandle() 256 if (auto err = OpenArchiveFd(fd_.get(), path_.c_str(), &zip_handle_); err != 0) { in GetZipArchiveHandle() local 257 LOG(ERROR) << "Can't open package" << path_ << " : " << ErrorCodeString(err); in GetZipArchiveHandle()
|
D | install.cpp | 85 int32_t err = in ReadMetadataFromPackage() local 87 if (err != 0) { in ReadMetadataFromPackage() 88 LOG(ERROR) << "Failed to extract " << METADATA_PATH << ": " << ErrorCodeString(err); in ReadMetadataFromPackage() 247 int32_t err = in SetUpAbUpdateCommands() local 249 if (err != 0) { in SetUpAbUpdateCommands() 250 LOG(ERROR) << "Failed to extract " << AB_OTA_PAYLOAD_PROPERTIES << ": " << ErrorCodeString(err); in SetUpAbUpdateCommands() 564 std::string err; in verify_package_compatibility() local 565 int result = android::vintf::VintfObjectRecovery::CheckCompatibility(compatibility_info, &err); in verify_package_compatibility() 570 LOG(ERROR) << "Failed to verify package compatibility (result " << result << "): " << err; in verify_package_compatibility() 729 int err = verify_file(package, loaded_keys); in verify_package() local [all …]
|
D | fuse_sdcard_install.cpp | 50 std::string err; in SetSdcardUpdateBootloaderMessage() local 51 if (!update_bootloader_message(options, &err)) { in SetSdcardUpdateBootloaderMessage() 52 LOG(ERROR) << "Failed to set BCB message: " << err; in SetSdcardUpdateBootloaderMessage()
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 245 std::string err; in ProductBlockMap() local 246 if (!android::base::RemoveFileIfExists(map_file, &err)) { in ProductBlockMap() 247 LOG(ERROR) << "failed to remove the existing map file " << map_file << ": " << err; in ProductBlockMap() 557 std::string err; in clear_bcb() local 558 if (!clear_bootloader_message(&err)) { in clear_bcb() 559 LOG(ERROR) << "failed to clear bootloader message: " << err; in clear_bcb() 598 std::string err; in setup_bcb() local 599 if (!write_bootloader_message(options, &err)) { in setup_bcb() 600 LOG(ERROR) << "failed to set bootloader message: " << err; in setup_bcb() 604 if (!wipe_package.empty() && !write_wipe_package(wipe_package, &err)) { in setup_bcb() [all …]
|
/bootable/recovery/otautil/ |
D | dirutil.cpp | 99 int err = mkdir(dir_path.c_str(), mode); in mkdir_recursively() local 104 if (err != 0) { in mkdir_recursively()
|
/bootable/recovery/ |
D | recovery_main.cpp | 92 std::string err; in get_args() local 93 if (!read_bootloader_message(&boot, &err)) { in get_args() 94 LOG(ERROR) << err; in get_args() 153 if (!update_bootloader_message(options, &err)) { in get_args() 154 LOG(ERROR) << "Failed to set BCB message: " << err; in get_args() 499 std::string err; in main() local 500 if (!write_bootloader_message(boot, &err)) { in main() 501 LOG(ERROR) << "Failed to write bootloader message: " << err; in main()
|
D | recovery.cpp | 150 std::string err; in finish_recovery() local 151 if (!clear_bootloader_message(&err)) { in finish_recovery() 152 LOG(ERROR) << "Failed to clear BCB message: " << err; in finish_recovery() 322 if (auto err = ExtractToMemory( in GetWipePartitionList() local 324 err != 0) { in GetWipePartitionList() 326 << ErrorCodeString(err); in GetWipePartitionList() 688 std::string err; in set_retry_bootloader_message() local 689 if (!update_bootloader_message(options, &err)) { in set_retry_bootloader_message() 690 LOG(ERROR) << err; in set_retry_bootloader_message()
|
/bootable/recovery/boot_control/ |
D | boot_control.cpp | 154 int err = stat(partition_path.c_str(), &part_stat); in InitDefaultBootloaderControl() local 155 if (!err) { in InitDefaultBootloaderControl() 158 } else if (err < 0 && errno == ENOENT && first_missing_slot == -1) { in InitDefaultBootloaderControl() 219 std::string err; in BootControl_lazyInitialization() local 220 std::string device = get_bootloader_message_blk_device(&err); in BootControl_lazyInitialization()
|
/bootable/recovery/updater/include/private/ |
D | commands.h | 320 static Command Parse(const std::string& line, size_t index, std::string* err); 382 std::string* err); 437 static TransferList Parse(const std::string& transfer_list_str, std::string* err);
|
/bootable/recovery/applypatch/include/applypatch/ |
D | applypatch.h | 56 static Partition Parse(const std::string& partition, std::string* err);
|