/bootable/recovery/tests/unit/ |
D | applypatch_modes_test.cpp | 65 target = GetEmmcTargetString(recovery_file, patched_file_.path); in SetUp() 66 ASSERT_FALSE(target.empty()); in SetUp() 72 std::string target; member in ApplyPatchModesTest 85 static void VerifyPatchedTarget(const std::string& target) { in VerifyPatchedTarget() argument 86 std::vector<std::string> pieces = android::base::Split(target, ":"); in VerifyPatchedTarget() 92 ASSERT_EQ(target, patched_emmc); in VerifyPatchedTarget() 111 target, in TEST_F() 116 VerifyPatchedTarget(target); in TEST_F() 124 "--target", target, "--source", in TEST_F() 129 VerifyPatchedTarget(target); in TEST_F() [all …]
|
D | commands_test.cpp | 51 TargetInfo target; in TEST() local 55 tokens, "1d74d1a60332fd38cf9405f1bae67917888da6cb", &target, in TEST() 59 target); in TEST() 73 TargetInfo target; in TEST() local 77 tokens, "6ebcf8cf1f6be0bc49e7d4a864214251925d1d15", &target, in TEST() 81 target); in TEST() 99 TargetInfo target; in TEST() local 103 tokens, "4734d1b241eb3d0f993714aaf7d665fae43772b6", &target, in TEST() 107 target); in TEST() 127 TargetInfo target; in TEST() local [all …]
|
D | updater_test.cpp | 267 Partition target(target_file, target_size, target_hash); in TEST_F() local 271 expect(nullptr, "patch_partition_check(\"" + target.ToString() + "\")", kArgsParsingFailure); in TEST_F() 275 "patch_partition_check(\"" + source.ToString() + "\", \"" + target.ToString() + "\")"; in TEST_F() 285 cmd = "patch_partition_check(\"" + bad_source.ToString() + "\", \"" + target.ToString() + "\")"; in TEST_F() 651 static void GetEntriesForBsdiff(std::string_view source, std::string_view target, in GetEntriesForBsdiff() argument 656 reinterpret_cast<const uint8_t*>(target.data()), target.size(), in GetEntriesForBsdiff() 663 std::string tgt_hash = GetSha1(target); in GetEntriesForBsdiff() 690 std::string target = in TEST_F() local 696 std::string_view(target).substr(0, 4096 * 2), 2, &entries); in TEST_F() 702 ASSERT_EQ(target, updated); in TEST_F() [all …]
|
/bootable/recovery/applypatch/ |
D | applypatch_modes.cpp | 40 auto target = Partition::Parse(target_emmc, &err); in CheckMode() local 41 if (!target) { in CheckMode() 45 return CheckPartition(target) ? 0 : 1; in CheckMode() 50 auto target = Partition::Parse(target_emmc, &err); in FlashMode() local 51 if (!target) { in FlashMode() 55 return FlashPartition(target, source_file) ? 0 : 1; in FlashMode() 61 auto target = Partition::Parse(target_emmc, &err); in PatchMode() local 62 if (!target) { in PatchMode() 90 return PatchPartition(target, source, patch, bonus.get(), false) ? 0 : 1; in PatchMode() 127 std::string target; in applypatch_modes() local [all …]
|
D | applypatch.cpp | 49 static bool GenerateTarget(const Partition& target, const FileContents& source_file, 256 bool PatchPartitionCheck(const Partition& target, const Partition& source) { in PatchPartitionCheck() argument 259 return (ReadPartitionToBuffer(target, &target_file, false) || in PatchPartitionCheck() 268 bool PatchPartition(const Partition& target, const Partition& source, const Value& patch, in PatchPartition() argument 270 LOG(INFO) << "Patching " << target.name; in PatchPartition() 274 if (ReadPartitionToBuffer(target, &target_file, false)) { in PatchPartition() 277 LOG(INFO) << " already " << target.hash.substr(0, 8); in PatchPartition() 283 return GenerateTarget(target, source_file, patch, bonus, backup_source); in PatchPartition() 328 static bool GenerateTarget(const Partition& target, const FileContents& source_file, in GenerateTarget() argument 331 if (ParseSha1(target.hash, expected_sha1) != 0) { in GenerateTarget() [all …]
|
D | Android.bp | 81 target: {
|
/bootable/recovery/applypatch/include/applypatch/ |
D | applypatch.h | 79 bool PatchPartition(const Partition& target, const Partition& source, const Value& patch, 84 bool PatchPartitionCheck(const Partition& target, const Partition& source); 88 bool CheckPartition(const Partition& target); 94 bool FlashPartition(const Partition& target, const std::string& source_filename);
|
/bootable/recovery/otautil/ |
D | sysutil.cpp | 222 void Reboot(std::string_view target) { in Reboot() argument 223 std::string cmd = "reboot," + std::string(target); in Reboot() 225 if (target != "bootloader" && target != "fastboot" && in Reboot() 236 bool Shutdown(std::string_view target) { in Shutdown() argument 237 std::string cmd = "shutdown," + std::string(target); in Shutdown()
|
/bootable/recovery/otautil/include/otautil/ |
D | sysutil.h | 106 [[noreturn]] void Reboot(std::string_view target); 109 bool Shutdown(std::string_view target);
|
/bootable/recovery/updater/ |
D | commands.cpp | 78 const std::string& tgt_hash, TargetInfo* target, in ParseTargetInfoAndSourceInfo() argument 104 *target = TargetInfo(tgt_hash, tgt_ranges); in ParseTargetInfoAndSourceInfo() 311 bool SourceInfo::Overlaps(const TargetInfo& target) const { in Overlaps() 312 return ranges_.Overlaps(target.ranges()); in Overlaps() 380 std::ostream& operator<<(std::ostream& os, const TargetInfo& target) { in operator <<() argument 381 os << target.blocks() << " blocks (" << target.hash_ << "): " << target.ranges_.ToString(); in operator <<()
|
D | Android.bp | 105 target: { 165 target: { 195 target: {
|
D | install.cpp | 216 auto target = Partition::Parse(args[0], &err); in PatchPartitionCheckFn() local 217 if (!target) { in PatchPartitionCheckFn() 229 !UpdateBlockDeviceNameForPartition(state->updater, &target)) { in PatchPartitionCheckFn() 233 bool result = PatchPartitionCheck(target, source); in PatchPartitionCheckFn() 257 auto target = Partition::Parse(args[0], &err); in PatchPartitionFn() local 258 if (!target) { in PatchPartitionFn() 275 !UpdateBlockDeviceNameForPartition(state->updater, &target)) { in PatchPartitionFn() 279 bool result = PatchPartition(target, source, *values[0], nullptr, true); in PatchPartitionFn()
|
/bootable/recovery/minadbd/ |
D | minadbd_services.cpp | 258 static void RebootHostService(unique_fd /* sfd */, const std::string& target) { in RebootHostService() argument 260 if (target == "bootloader") { in RebootHostService() 262 } else if (target == "rescue") { in RebootHostService() 264 } else if (target == "recovery") { in RebootHostService() 266 } else if (target == "fastboot") { in RebootHostService()
|
/bootable/recovery/updater/include/private/ |
D | commands.h | 128 bool Overlaps(const TargetInfo& target) const; 305 Command(Type type, size_t index, std::string cmdline, PatchInfo patch, TargetInfo target, in Command() argument 311 target_(std::move(target)), in Command() 341 const TargetInfo& target() const { in target() function 380 const std::string& tgt_hash, TargetInfo* target,
|
/bootable/recovery/tests/ |
D | Android.bp | 46 target: { 207 target: {
|
/bootable/recovery/updater_sample/tests/ |
D | Android.bp | 37 "mockito-target-minus-junit4",
|
/bootable/recovery/bootloader_message/ |
D | Android.bp | 50 target: {
|
/bootable/recovery/ |
D | Android.bp | 23 // 'apply every license found to every target'. While this makes sure we respect
|
/bootable/recovery/updater_sample/ |
D | README.md | 183 lunch target.
|