Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 27) sorted by relevance

12

/bootable/recovery/bootloader_message/
Dbootloader_message.cpp48 std::string get_misc_blk_device(std::string* err) { in get_misc_blk_device() argument
54 *err = "failed to read default fstab"; in get_misc_blk_device()
63 *err = "failed to find /misc partition"; in get_misc_blk_device()
69 static bool wait_for_device(const std::string& blk_device, std::string* err) { in wait_for_device() argument
72 err->clear(); in wait_for_device()
78 *err += android::base::StringPrintf("failed to stat %s try %d: %s\n", in wait_for_device()
85 *err += android::base::StringPrintf("failed to stat %s\n", blk_device.c_str()); in wait_for_device()
91 size_t offset, std::string* err) { in read_misc_partition() argument
92 if (!wait_for_device(misc_blk_device, err)) { in read_misc_partition()
97 *err = android::base::StringPrintf("failed to open %s: %s", misc_blk_device.c_str(), in read_misc_partition()
[all …]
/bootable/recovery/minui/
Dgraphics_adf.cpp45 __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 …]
Dgraphics_adf.h35 __u32 format, int* err);
/bootable/recovery/bootloader_message/include/bootloader_message/
Dbootloader_message.h116 std::string get_misc_blk_device(std::string* err);
120 std::string get_bootloader_message_blk_device(std::string* err);
125 size_t offset, std::string* err);
128 bool read_bootloader_message(bootloader_message* boot, std::string* err);
132 std::string* err);
135 bool write_bootloader_message(const bootloader_message& boot, std::string* err);
139 const std::string& misc_blk_device, std::string* err);
143 bool write_bootloader_message(const std::vector<std::string>& options, std::string* err);
148 const std::string& misc_blk_device, std::string* err);
152 bool update_bootloader_message(const std::vector<std::string>& options, std::string* err);
[all …]
/bootable/recovery/tests/unit/
Dcommands_test.cpp53 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 …]
Duncrypt_test.cpp68 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 …]
Dbootloader_message_test.cpp39 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()
Dupdater_test.cpp538 std::string err; in TEST_F() local
539 ASSERT_TRUE(write_bootloader_message_to(boot, temp_file, &err)); in TEST_F()
562 std::string err; in TEST_F() local
563 ASSERT_TRUE(write_bootloader_message_to(boot, temp_file, &err)); in TEST_F()
571 ASSERT_TRUE(read_bootloader_message_from(&boot_verify, temp_file, &err)); in TEST_F()
/bootable/recovery/updater/
Dcommands.cpp80 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 …]
Dinstall.cpp209 std::string err; in PatchPartitionCheckFn() local
210 auto target = Partition::Parse(args[0], &err); in PatchPartitionCheckFn()
213 args[0].c_str(), err.c_str()); in PatchPartitionCheckFn()
216 auto source = Partition::Parse(args[1], &err); in PatchPartitionCheckFn()
219 args[1].c_str(), err.c_str()); in PatchPartitionCheckFn()
250 std::string err; in PatchPartitionFn() local
251 auto target = Partition::Parse(args[0], &err); in PatchPartitionFn()
254 args[0].c_str(), err.c_str()); in PatchPartitionFn()
257 auto source = Partition::Parse(args[1], &err); in PatchPartitionFn()
260 args[1].c_str(), err.c_str()); in PatchPartitionFn()
[all …]
Ddynamic_partitions.cpp115 std::string err; in UpdateDynamicPartitionsFn() local
116 if (!android::base::RemoveFileIfExists(updated_marker, &err)) { in UpdateDynamicPartitionsFn()
118 << ": " << err; in UpdateDynamicPartitionsFn()
/bootable/recovery/applypatch/
Dapplypatch_modes.cpp39 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 …]
Dapplypatch.cpp431 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()
Dimgdiff.cpp658 int err = OpenArchiveFromMemory(const_cast<uint8_t*>(file_content_.data()), zipfile_size, in Initialize() local
660 if (err != 0) { in Initialize()
661 LOG(ERROR) << "Failed to open zip file " << filename << ": " << ErrorCodeString(err); in Initialize()
/bootable/recovery/uncrypt/
Duncrypt.cpp245 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/install/
Dpackage.cpp205 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()
Dinstall.cpp88 int32_t err = in ReadMetadataFromPackage() local
90 if (err != 0) { in ReadMetadataFromPackage()
91 LOG(ERROR) << "Failed to extract " << METADATA_PATH << ": " << ErrorCodeString(err); in ReadMetadataFromPackage()
251 int32_t err = in SetUpAbUpdateCommands() local
253 if (err != 0) { in SetUpAbUpdateCommands()
254 LOG(ERROR) << "Failed to extract " << AB_OTA_PAYLOAD_PROPERTIES << ": " << ErrorCodeString(err); in SetUpAbUpdateCommands()
651 int err = verify_file(package, loaded_keys); in verify_package() local
653 ui->Print("Update package verification took %.1f s (result %d).\n", duration.count(), err); in verify_package()
654 if (err != VERIFY_SUCCESS) { in verify_package()
Dwipe_device.cpp56 if (auto err = ExtractToMemory( in GetWipePartitionList() local
58 err != 0) { in GetWipePartitionList()
60 << ErrorCodeString(err); in GetWipePartitionList()
Dfuse_install.cpp51 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/fastboot/
Dfastboot.cpp61 std::string err; in StartFastboot() local
62 if (!clear_bootloader_message(&err)) { in StartFastboot()
63 LOG(ERROR) << "Failed to clear BCB message: " << err; in StartFastboot()
/bootable/recovery/
Drecovery_main.cpp96 std::string err; in get_args() local
97 if (!read_bootloader_message(&boot, &err)) { in get_args()
98 LOG(ERROR) << err; in get_args()
159 if (!update_bootloader_message(options, &err)) { in get_args()
160 LOG(ERROR) << "Failed to set BCB message: " << err; in get_args()
529 std::string err; in main() local
530 if (!write_bootloader_message(boot, &err)) { in main()
531 LOG(ERROR) << "Failed to write bootloader message: " << err; in main()
Drecovery.cpp145 std::string err; in FinishRecovery() local
146 if (!clear_bootloader_message(&err)) { in FinishRecovery()
147 LOG(ERROR) << "Failed to clear BCB message: " << err; in FinishRecovery()
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
557 if (!update_bootloader_message(options, &err)) { in set_retry_bootloader_message()
558 LOG(ERROR) << err; in set_retry_bootloader_message()
/bootable/recovery/otautil/
Ddirutil.cpp99 int err = mkdir(dir_path.c_str(), mode); in mkdir_recursively() local
104 if (err != 0) { in mkdir_recursively()
/bootable/recovery/updater/include/private/
Dcommands.h320 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/
Dapplypatch.h56 static Partition Parse(const std::string& partition, std::string* err);

12