/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 …]
|
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 | 260 Partition source(source_file, source_size, source_hash); in TEST_F() local 270 expect(nullptr, "patch_partition_check(\"" + source.ToString() + "\")", kArgsParsingFailure); in TEST_F() 275 "patch_partition_check(\"" + source.ToString() + "\", \"" + target.ToString() + "\")"; in TEST_F() 280 cmd = "patch_partition_check(\"" + source.ToString() + "\", \"" + bad_target.ToString() + "\")"; in TEST_F() 651 static void GetEntriesForBsdiff(std::string_view source, std::string_view target, in GetEntriesForBsdiff() argument 655 ASSERT_EQ(0, bsdiff::bsdiff(reinterpret_cast<const uint8_t*>(source.data()), source.size(), in GetEntriesForBsdiff() 662 std::string src_hash = GetSha1(source); in GetEntriesForBsdiff() 664 size_t source_blocks = source.size() / 4096; in GetEntriesForBsdiff() 688 std::string source = in TEST_F() local 692 ASSERT_TRUE(android::base::WriteStringToFile(source, image_file_)); in TEST_F() [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(), false) ? 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 | 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, backup_source)) { in PatchPartition()
|
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
|
/bootable/recovery/updater/ |
D | commands.cpp | 79 const std::string& src_hash, SourceInfo* source, in ParseTargetInfoAndSourceInfo() argument 138 *source = result; in ParseTargetInfoAndSourceInfo() 174 *source = result; in ParseTargetInfoAndSourceInfo() 318 const std::vector<uint8_t>& source, size_t block_size) { in MoveRange() argument 319 const uint8_t* from = source.data(); in MoveRange() 390 std::ostream& operator<<(std::ostream& os, const SourceInfo& source) { in operator <<() argument 391 os << source.blocks_ << " blocks (" << source.hash_ << "): "; in operator <<() 392 if (source.ranges_) { in operator <<() 393 os << source.ranges_.ToString(); in operator <<() 394 if (source.location_) { in operator <<() [all …]
|
D | build_info.cpp | 100 for (const auto& source : source_order) { in GetProperty() local 101 std::string resolved_key = "ro.product." + source + std::string(key_suffix); in GetProperty()
|
D | install.cpp | 216 auto source = Partition::Parse(args[1], &err); in PatchPartitionCheckFn() local 217 if (!source) { in PatchPartitionCheckFn() 222 if (!UpdateBlockDeviceNameForPartition(state->updater, &source) || in PatchPartitionCheckFn() 227 bool result = PatchPartitionCheck(target, source); in PatchPartitionCheckFn() 257 auto source = Partition::Parse(args[1], &err); in PatchPartitionFn() local 258 if (!source) { in PatchPartitionFn() 268 if (!UpdateBlockDeviceNameForPartition(state->updater, &source) || in PatchPartitionFn() 273 bool result = PatchPartition(target, source, *values[0], nullptr, true); in PatchPartitionFn()
|
D | blockimg.cpp | 964 const std::vector<uint8_t>& source) { in MoveRange() argument 965 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 | recovery-persist.cpp | 62 static void copy_file(const char* source, const char* destination) { in copy_file() argument 67 FILE* source_fp = fopen(source, "re"); in copy_file() 74 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 | 84 specific `/init.rc`, whose source code is at `bootable/recovery/etc/init.rc`.
|
/bootable/recovery/recovery_utils/ |
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 186 FILE* source_fp = fopen(source.c_str(), "re"); in copy_log_file() 199 check_and_fclose(source_fp, source); in copy_log_file()
|
/bootable/recovery/updater/include/updater/ |
D | simulator_runtime.h | 31 explicit SimulatorRuntime(BuildInfo* source) : source_(source) {} in SimulatorRuntime() argument
|
/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);
|
/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/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/recovery_utils/include/recovery_utils/ |
D | logging.h | 55 void copy_log_file_to_pmsg(const std::string& source, const std::string& destination);
|
/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) 198 7. [Flash the device](https://source.android.com/setup/build/running) 219 - [x] [Package compatibility check](https://source.android.com/devices/architecture/vintf/match-rul…
|
/bootable/recovery/minui/include/minui/ |
D | minui.h | 137 void gr_blit(const GRSurface* source, int sx, int sy, int w, int h, int dx, int dy);
|