/bootable/recovery/bootloader_message/ |
D | bootloader_message.cpp | 50 std::string get_misc_blk_device(std::string* err) { in get_misc_blk_device() argument 56 *err = "failed to read default fstab"; in get_misc_blk_device() 65 *err = "failed to find /misc partition"; in get_misc_blk_device() 71 static bool wait_for_device(const std::string& blk_device, std::string* err) { in wait_for_device() argument 74 err->clear(); in wait_for_device() 80 *err += android::base::StringPrintf("failed to stat %s try %d: %s\n", in wait_for_device() 87 *err += android::base::StringPrintf("failed to stat %s\n", blk_device.c_str()); in wait_for_device() 93 size_t offset, std::string* err) { in read_misc_partition() argument 94 if (!wait_for_device(misc_blk_device, err)) { in read_misc_partition() 99 *err = android::base::StringPrintf("failed to open %s: %s", misc_blk_device.c_str(), in read_misc_partition() [all …]
|
D | misctrl_main.cpp | 27 std::string err; in check_control_message() local 28 if (!ReadMiscControlMessage(&m, &err)) { in check_control_message() 29 LOG(ERROR) << "Could not read misctrl message: " << err.c_str(); in check_control_message() 56 if (!WriteMiscControlMessage(m, &err)) { in check_control_message() 57 LOG(ERROR) << "Could not write misctrl message: " << err.c_str(); in check_control_message() 66 std::string err; in check_reserved_space() local 67 bool success = CheckReservedSystemSpaceEmpty(&empty, &err); in check_reserved_space() 69 LOG(ERROR) << "Could not read reserved space: " << err.c_str(); in check_reserved_space() 74 if (!err.empty()) { in check_reserved_space() 75 LOG(ERROR) << "Reserved misc space being used: " << err; in check_reserved_space() [all …]
|
/bootable/recovery/bootloader_message/include/bootloader_message/ |
D | bootloader_message.h | 173 std::string get_misc_blk_device(std::string* err); 177 std::string get_bootloader_message_blk_device(std::string* err); 182 size_t offset, std::string* err); 185 bool read_bootloader_message(bootloader_message* boot, std::string* err); 189 std::string* err); 192 bool write_bootloader_message(const bootloader_message& boot, std::string* err); 196 const std::string& misc_blk_device, std::string* err); 200 bool write_bootloader_message(const std::vector<std::string>& options, std::string* err); 205 const std::string& misc_blk_device, std::string* err); 209 bool update_bootloader_message(const std::vector<std::string>& options, std::string* err); [all …]
|
/bootable/recovery/tests/unit/ |
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()
|
/bootable/deprecated-ota/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/deprecated-ota/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() 132 *err = in ParseTargetInfoAndSourceInfo() 144 *err = "invalid source ranges location"; in ParseTargetInfoAndSourceInfo() 156 *err = "invalid stash info"; in ParseTargetInfoAndSourceInfo() 161 *err = "invalid stash location"; in ParseTargetInfoAndSourceInfo() 169 *err = android::base::StringPrintf("mismatching block count: %zu (%s) vs %zu", result.blocks(), in ParseTargetInfoAndSourceInfo() [all …]
|
D | install.cpp | 215 std::string err; in PatchPartitionCheckFn() local 216 auto target = Partition::Parse(args[0], &err); in PatchPartitionCheckFn() 219 args[0].c_str(), err.c_str()); in PatchPartitionCheckFn() 222 auto source = Partition::Parse(args[1], &err); in PatchPartitionCheckFn() 225 args[1].c_str(), err.c_str()); in PatchPartitionCheckFn() 256 std::string err; in PatchPartitionFn() local 257 auto target = Partition::Parse(args[0], &err); in PatchPartitionFn() 260 args[0].c_str(), err.c_str()); in PatchPartitionFn() 263 auto source = Partition::Parse(args[1], &err); in PatchPartitionFn() 266 args[1].c_str(), err.c_str()); in PatchPartitionFn() [all …]
|
D | dynamic_partitions.cpp | 115 std::string err; in UpdateDynamicPartitionsFn() local 116 if (!android::base::RemoveFileIfExists(updated_marker, &err)) { in UpdateDynamicPartitionsFn() 118 << ": " << err; in UpdateDynamicPartitionsFn()
|
/bootable/deprecated-ota/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 | 431 Partition Partition::Parse(const std::string& input_str, std::string* err) { in Parse() argument 434 *err = "Invalid number of tokens or non-eMMC target"; in Parse() 440 *err = "Failed to parse \"" + pieces[2] + "\" as byte count"; in Parse()
|
/bootable/recovery/install/ |
D | spl_check.cpp | 66 int32_t err = ExtractToMemory(zip, &metadata_entry, ota_metadata.data(), metadata_entry_length); in ViolatesSPLDowngrade() local 67 if (err != 0) { in ViolatesSPLDowngrade() 68 LOG(ERROR) << "Failed to extract " << OTA_OTA_METADATA << ": " << ErrorCodeString(err); in ViolatesSPLDowngrade()
|
D | wipe_data.cpp | 109 std::string err; in WipeData() local 110 if (!WriteMiscMemtagMessage({}, &err)) { in WipeData() 111 ui->Print("Failed to reset memtag message: %s\n", err.c_str()); in WipeData()
|
D | wipe_device.cpp | 61 if (auto err = ExtractToMemory( in GetWipePartitionList() local 63 err != 0) { in GetWipePartitionList() 65 << ErrorCodeString(err); in GetWipePartitionList()
|
D | install.cpp | 94 int32_t err = in ReadMetadataFromPackage() local 96 if (err != 0) { in ReadMetadataFromPackage() 97 LOG(ERROR) << "Failed to extract " << METADATA_PATH << ": " << ErrorCodeString(err); in ReadMetadataFromPackage() 287 int32_t err = in ExtractPayloadProperties() local 290 if (err != 0) { in ExtractPayloadProperties() 291 LOG(ERROR) << "Failed to extract " << AB_OTA_PAYLOAD_PROPERTIES << ": " << ErrorCodeString(err); in ExtractPayloadProperties() 736 int err = verify_file(package, loaded_keys); in verify_package() local 738 ui->Print("Update package verification took %.1f s (result %d).\n", duration.count(), err); in verify_package() 739 if (err != VERIFY_SUCCESS) { in verify_package()
|
D | fuse_install.cpp | 51 std::string err; in SetSdcardUpdateBootloaderMessage() local 52 if (!update_bootloader_message(options, &err)) { in SetSdcardUpdateBootloaderMessage() 53 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 | package.cpp | 205 if (auto err = OpenArchiveFromMemory(const_cast<uint8_t*>(addr_), package_size_, path_.c_str(), in GetZipArchiveHandle() local 207 err != 0) { in GetZipArchiveHandle() 208 LOG(ERROR) << "Can't open package" << path_ << " : " << ErrorCodeString(err); in GetZipArchiveHandle() 272 if (auto err = OpenArchiveFd(fd_.get(), path_.c_str(), &zip_handle_, false); err != 0) { in GetZipArchiveHandle() local 273 LOG(ERROR) << "Can't open package" << path_ << " : " << ErrorCodeString(err); in GetZipArchiveHandle()
|
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.cpp | 141 std::string err; in FinishRecovery() local 142 if (!clear_bootloader_message(&err)) { in FinishRecovery() 143 LOG(ERROR) << "Failed to clear BCB message: " << err; in FinishRecovery() 180 std::string err; in prompt_and_wipe_data() local 181 if (!clear_bootloader_message(&err)) { in prompt_and_wipe_data() 182 LOG(ERROR) << "Failed to clear BCB message: " << err; in prompt_and_wipe_data() 314 std::string err; in WriteUpdateInProgress() local 315 if (!update_bootloader_message({ "--reason=update_in_progress" }, &err)) { in WriteUpdateInProgress() 316 LOG(ERROR) << "Failed to WriteUpdateInProgress: " << err; in WriteUpdateInProgress() 556 std::string err; in set_retry_bootloader_message() local [all …]
|
D | recovery_main.cpp | 96 std::string err; in get_args() local 97 if (!read_bootloader_message(&boot, &err)) { in get_args() 98 LOG(ERROR) << err; in get_args() 162 if (!update_bootloader_message(options, &err)) { in get_args() 163 LOG(ERROR) << "Failed to set BCB message: " << err; in get_args() 531 std::string err; in main() local 532 if (!write_bootloader_message(boot, &err)) { in main() 533 LOG(ERROR) << "Failed to write bootloader message: " << err; in main()
|
/bootable/recovery/fastboot/ |
D | fastboot.cpp | 86 std::string err; in StartFastboot() local 87 if (!clear_bootloader_message(&err)) { in StartFastboot() 88 LOG(ERROR) << "Failed to clear BCB message: " << err; in StartFastboot()
|
/bootable/libbootloader/gbl/efi/src/ |
D | avb.rs | 42 fn cstr_to_str<E>(s: &CStr, err: E) -> Result<&str, E> { in cstr_to_str() 43 Ok(s.to_str().map_err(|_| err)?) in cstr_to_str()
|
/bootable/deprecated-ota/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/deprecated-ota/applypatch/include/applypatch/ |
D | applypatch.h | 56 static Partition Parse(const std::string& partition, std::string* err);
|