/bootable/recovery/edify/ |
D | edify_parser.cpp | 55 std::string buffer; in main() local 56 if (!android::base::ReadFileToString(argv[1], &buffer)) { in main() 63 int error = parse_string(buffer.data(), &root, &error_count); in main() 67 ExprDump(0, root, buffer); in main() 69 State state(buffer, nullptr); in main()
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 179 static int read_all(int fd, std::vector<uint8_t>& buffer, size_t size) { in read_all() argument 180 return read_all(fd, buffer.data(), size); in read_all() 198 static int write_all(int fd, const std::vector<uint8_t>& buffer, size_t size) { in write_all() argument 199 return write_all(fd, buffer.data(), size); in write_all() 227 static void allocate(size_t size, std::vector<uint8_t>& buffer) { in allocate() argument 229 if (size <= buffer.size()) return; in allocate() 231 buffer.resize(size); in allocate() 364 static int ReadBlocks(const RangeSet& src, std::vector<uint8_t>& buffer, int fd) { in ReadBlocks() argument 366 uint8_t* data = buffer.data(); in ReadBlocks() 385 static int WriteBlocks(const RangeSet& tgt, const std::vector<uint8_t>& buffer, int fd) { in WriteBlocks() argument [all …]
|
D | install.cpp | 70 static void uiPrint(State* state, const std::string& buffer) { in uiPrint() argument 75 std::vector<std::string> lines = android::base::Split(buffer, "\n"); in uiPrint() 85 LOG(INFO) << buffer; in uiPrint() 493 std::string buffer; in PackageExtractFileFn() local 494 buffer.resize(entry.uncompressed_length); in PackageExtractFileFn() 496 … int32_t ret = ExtractToMemory(za, &entry, reinterpret_cast<uint8_t*>(&buffer[0]), buffer.size()); in PackageExtractFileFn() 500 zip_path.c_str(), buffer.size(), ErrorCodeString(ret)); in PackageExtractFileFn() 503 return new Value(VAL_BLOB, buffer); in PackageExtractFileFn() 550 std::string buffer(st.st_size, '\0'); in FileGetPropFn() local 557 if (ota_fread(&buffer[0], 1, st.st_size, f.get()) != static_cast<size_t>(st.st_size)) { in FileGetPropFn() [all …]
|
/bootable/recovery/ |
D | asn1_decoder.h | 24 asn1_context(const uint8_t* buffer, size_t length) : p_(buffer), length_(length), app_type_(0) {} in asn1_context() argument
|
D | recovery-persist.cpp | 91 std::string buffer(buf, len); in logsave() local 97 if (buffer.compare(content) == 0) { in logsave() 109 return android::base::WriteStringToFile(buffer, destination.c_str()); in logsave()
|
D | fuse_sdcard_provider.cpp | 37 static int read_block_file(void* cookie, uint32_t block, uint8_t* buffer, uint32_t fetch_size) { in read_block_file() argument 46 if (!android::base::ReadFully(fd->fd, buffer, fetch_size)) { in read_block_file()
|
D | fuse_sideload.h | 29 int (*read_block)(void* cookie, uint32_t block, uint8_t* buffer, uint32_t fetch_size);
|
D | README.md | 41 contents of pmsg buffer into /data/misc/recovery/inject.txt. Test will pass if
|
D | recovery.cpp | 396 std::string buffer(klog_buf_len, 0); in save_kernel_log() local 397 int n = klogctl(KLOG_READ_ALL, &buffer[0], klog_buf_len); in save_kernel_log() 402 buffer.resize(n); in save_kernel_log() 403 android::base::WriteStringToFile(buffer, destination); in save_kernel_log() 1230 std::string buffer; in ui_print() local 1233 android::base::StringAppendV(&buffer, format, ap); in ui_print() 1237 ui->Print("%s", buffer.c_str()); in ui_print() 1239 fputs(buffer.c_str(), stdout); in ui_print()
|
D | install.cpp | 418 char buffer[1024]; in try_update_binary() local 420 while (fgets(buffer, sizeof(buffer), from_child) != nullptr) { in try_update_binary() 421 std::string line(buffer); in try_update_binary()
|
/bootable/recovery/minadbd/ |
D | fuse_adb_provider.cpp | 27 int read_block_adb(void* data, uint32_t block, uint8_t* buffer, uint32_t fetch_size) { in read_block_adb() argument 35 if (!ReadFdExactly(ad->sfd, buffer, fetch_size)) { in read_block_adb()
|
D | fuse_adb_provider.h | 29 int read_block_adb(void* cookie, uint32_t block, uint8_t* buffer, uint32_t fetch_size);
|
/bootable/recovery/applypatch/ |
D | applypatch.cpp | 126 std::vector<unsigned char> buffer(pairs[pair_count - 1].first); in LoadPartitionContents() local 127 unsigned char* buffer_ptr = buffer.data(); in LoadPartitionContents() 178 buffer.resize(buffer_size); in LoadPartitionContents() 179 file->data = std::move(buffer); in LoadPartitionContents() 293 unsigned char buffer[4096]; in WriteToPartition() local 295 for (size_t p = 0; p < len; p += sizeof(buffer)) { in WriteToPartition() 297 if (to_read > sizeof(buffer)) { in WriteToPartition() 298 to_read = sizeof(buffer); in WriteToPartition() 303 ssize_t read_count = TEMP_FAILURE_RETRY(ota_read(fd, buffer + so_far, to_read - so_far)); in WriteToPartition() 317 if (memcmp(buffer, data + p, to_read) != 0) { in WriteToPartition()
|
D | imgdiff.cpp | 433 std::vector<uint8_t> buffer(BUFFER_SIZE); in TryReconstruction() local 436 strm.avail_out = buffer.size(); in TryReconstruction() 437 strm.next_out = buffer.data(); in TryReconstruction() 444 size_t compressed_size = buffer.size() - strm.avail_out; in TryReconstruction() 445 if (memcmp(buffer.data(), input_file_ptr_->data() + start_ + offset, compressed_size) != 0) { in TryReconstruction()
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 141 static int write_at_offset(unsigned char* buffer, size_t size, int wfd, off64_t offset) { in write_at_offset() argument 146 if (!android::base::WriteFully(wfd, buffer, size)) { in write_at_offset()
|
/bootable/recovery/tests/component/ |
D | updater_test.cpp | 190 std::string buffer(65540, '\0'); in TEST_F() local 191 ASSERT_TRUE(android::base::WriteStringToFile(buffer, temp_file1.path)); in TEST_F()
|