/bootable/recovery/tests/unit/ |
D | commands_test.cpp | 52 SourceInfo source; in TEST() local 56 "1d74d1a60332fd38cf9405f1bae67917888da6cb", &source, &err)); in TEST() 62 source); in TEST() 63 ASSERT_EQ(117, source.blocks()); in TEST() 74 SourceInfo source; in TEST() local 78 "1c25ba04d3278d6b65a1b9f17abac78425ec8b8d", &source, &err)); in TEST() 87 source); in TEST() 88 ASSERT_EQ(2, source.blocks()); in TEST() 100 SourceInfo source; in TEST() local 104 "a6cbdf3f416960f02189d3a814ec7e9e95c44a0d", &source, &err)); in TEST() [all …]
|
/bootable/recovery/applypatch/ |
D | applypatch_modes.cpp | 67 auto source = Partition::Parse(source_emmc, &err); in PatchMode() local 68 if (!source) { in PatchMode() 90 return PatchPartition(target, source, patch, bonus.get()) ? 0 : 1; in PatchMode() 126 std::string source; in applypatch_modes() local 149 source = optarg; in applypatch_modes() 157 source = optarg; in applypatch_modes() 179 return FlashMode(target, source); in applypatch_modes() 182 return PatchMode(target, source, patch, bonus); in applypatch_modes()
|
D | NOTICE | 22 Redistribution and use in source and binary forms, with or without 25 1. Redistributions of source code must retain the above copyright
|
D | applypatch.cpp | 256 bool PatchPartitionCheck(const Partition& target, const Partition& source) { in PatchPartitionCheck() argument 260 ReadPartitionToBuffer(source, &source_file, true)); in PatchPartitionCheck() 268 bool PatchPartition(const Partition& target, const Partition& source, const Value& patch, in PatchPartition() argument 282 if (ReadPartitionToBuffer(source, &source_file, true)) { in PatchPartition()
|
/bootable/recovery/tests/component/ |
D | applypatch_modes_test.cpp | 57 source = GetEmmcTargetString(from_testdata_base("boot.img")); in SetUp() 58 ASSERT_FALSE(source.empty()); in SetUp() 71 std::string source; member in ApplyPatchModesTest 113 source, in TEST_F() 125 source, in TEST_F() 148 "applypatch", "--patch", patch_file.path, "--target", target, "--source", source, in TEST_F() 158 "--target", target, "--source", source, in TEST_F() 177 "applypatch", "--bonus", from_testdata_base("bonus.file"), "--flash", source, in TEST_F() 185 ASSERT_EQ(0, InvokeApplyPatchModes({ "applypatch", "--check", source })); in TEST_F()
|
D | updater_test.cpp | 227 Partition source(source_file, source_size, source_hash); in TEST_F() local 237 expect(nullptr, "patch_partition_check(\"" + source.ToString() + "\")", kArgsParsingFailure); in TEST_F() 242 "patch_partition_check(\"" + source.ToString() + "\", \"" + target.ToString() + "\")"; in TEST_F() 247 cmd = "patch_partition_check(\"" + source.ToString() + "\", \"" + bad_target.ToString() + "\")"; in TEST_F() 625 static void GetEntriesForBsdiff(std::string_view source, std::string_view target, in GetEntriesForBsdiff() argument 629 ASSERT_EQ(0, bsdiff::bsdiff(reinterpret_cast<const uint8_t*>(source.data()), source.size(), in GetEntriesForBsdiff() 636 std::string src_hash = GetSha1(source); in GetEntriesForBsdiff() 638 size_t source_blocks = source.size() / 4096; in GetEntriesForBsdiff() 662 std::string source = in TEST_F() local 666 ASSERT_TRUE(android::base::WriteStringToFile(source, image_file_)); in TEST_F() [all …]
|
/bootable/recovery/updater/ |
D | commands.cpp | 79 const std::string& src_hash, SourceInfo* source, in ParseTargetInfoAndSourceInfo() argument 139 *source = result; in ParseTargetInfoAndSourceInfo() 175 *source = result; in ParseTargetInfoAndSourceInfo() 319 const std::vector<uint8_t>& source, size_t block_size) { in MoveRange() argument 320 const uint8_t* from = source.data(); in MoveRange() 391 std::ostream& operator<<(std::ostream& os, const SourceInfo& source) { in operator <<() argument 392 os << source.blocks_ << " blocks (" << source.hash_ << "): "; in operator <<() 393 if (source.ranges_) { in operator <<() 394 os << source.ranges_.ToString(); in operator <<() 395 if (source.location_) { in operator <<() [all …]
|
D | install.cpp | 226 auto source = Partition::Parse(args[1], &err); in PatchPartitionCheckFn() local 227 if (!source) { in PatchPartitionCheckFn() 232 bool result = PatchPartitionCheck(target, source); in PatchPartitionCheckFn() 262 auto source = Partition::Parse(args[1], &err); in PatchPartitionFn() local 263 if (!source) { in PatchPartitionFn() 273 bool result = PatchPartition(target, source, *values[0], nullptr); in PatchPartitionFn()
|
D | blockimg.cpp | 959 const std::vector<uint8_t>& source) { in MoveRange() argument 960 const uint8_t* from = source.data(); in MoveRange()
|
/bootable/recovery/minui/ |
D | graphics.cpp | 261 void gr_blit(const GRSurface* source, int sx, int sy, int w, int h, int dx, int dy) { in gr_blit() argument 262 if (source == nullptr) return; in gr_blit() 264 if (gr_draw->pixel_bytes != source->pixel_bytes) { in gr_blit() 275 int src_row_pixels = source->row_bytes / source->pixel_bytes; in gr_blit() 278 reinterpret_cast<const uint32_t*>(source->data()) + sy * source->row_bytes / 4 + sx; in gr_blit() 292 const uint8_t* src_p = source->data() + sy * source->row_bytes + sx * source->pixel_bytes; in gr_blit() 296 memcpy(dst_p, src_p, w * source->pixel_bytes); in gr_blit() 297 src_p += source->row_bytes; in gr_blit()
|
/bootable/recovery/updater/include/private/ |
D | commands.h | 56 friend std::ostream& operator<<(std::ostream& os, const TargetInfo& source); 64 std::ostream& operator<<(std::ostream& os, const TargetInfo& source); 148 friend std::ostream& operator<<(std::ostream& os, const SourceInfo& source); 164 std::ostream& operator<<(std::ostream& os, const SourceInfo& source); 306 SourceInfo source, StashInfo stash) in Command() argument 312 source_(std::move(source)), in Command() 345 const SourceInfo& source() const { in source() function 381 const std::string& src_hash, SourceInfo* source,
|
/bootable/recovery/ |
D | fsck_unshare_blocks.cpp | 44 static bool copy_file(const char* source, const char* dest) { in copy_file() argument 45 android::base::unique_fd source_fd(open(source, O_RDONLY)); in copy_file() 47 PLOG(ERROR) << "open %s failed" << source; in copy_file()
|
D | recovery-persist.cpp | 64 static void copy_file(const char* source, const char* destination) { in copy_file() argument 69 FILE* source_fp = fopen(source, "re"); in copy_file() 76 check_and_fclose(source_fp, source); in copy_file()
|
D | NOTICE | 40 including but not limited to software source code, documentation 41 source, and configuration files. 69 communication on electronic mailing lists, source code control systems,
|
D | README.md | 72 specific `/init.rc`, whose source code is at `bootable/recovery/etc/init.rc`.
|
/bootable/recovery/applypatch/include/applypatch/ |
D | applypatch.h | 78 bool PatchPartition(const Partition& target, const Partition& source, const Value& patch, 83 bool PatchPartitionCheck(const Partition& target, const Partition& source);
|
/bootable/recovery/otautil/ |
D | logging.cpp | 168 void copy_log_file_to_pmsg(const std::string& source, const std::string& destination) { in copy_log_file_to_pmsg() argument 170 android::base::ReadFileToString(source, &content); in copy_log_file_to_pmsg() 181 static void copy_log_file(const std::string& source, const std::string& destination, bool append, in copy_log_file() argument 187 FILE* source_fp = fopen(source.c_str(), "re"); in copy_log_file() 200 check_and_fclose(source_fp, source); in copy_log_file()
|
/bootable/recovery/fonts/ |
D | README | 5 https://code.google.com/p/googlefontdirectory/source/browse/ofl/inconsolata/
|
D | OFL.txt | 31 include source files, build scripts and documentation.
|
/bootable/recovery/otautil/include/otautil/ |
D | logging.h | 55 void copy_log_file_to_pmsg(const std::string& source, const std::string& destination);
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/ |
D | UpdateConfig.java | 43 public UpdateConfig createFromParcel(Parcel source) { 44 return new UpdateConfig(source);
|
/bootable/recovery/updater_sample/ |
D | README.md | 4 [OTA updates](https://source.android.com/devices/tech/ota/). It contains a 181 1. [Prepare to build](https://source.android.com/setup/build/building) 186 3. [Whitelist the sample app](https://source.android.com/devices/tech/config/perms-whitelist) 196 7. [Flash the device](https://source.android.com/setup/build/running) 217 - [x] [Package compatibility check](https://source.android.com/devices/architecture/vintf/match-rul…
|
/bootable/recovery/minui/include/minui/ |
D | minui.h | 136 void gr_blit(const GRSurface* source, int sx, int sy, int w, int h, int dx, int dy);
|