/bootable/recovery/tests/manual/ |
D | recovery_test.cpp | 39 const char *buf, size_t len, void *arg) { in __pmsg_fn() argument 43 EXPECT_EQ(kInjectTxtContent, buf); in __pmsg_fn() 82 std::string buf; in TEST() local 83 EXPECT_TRUE(android::base::ReadFileToString(kInjectTxtFilename, &buf)); in TEST() 84 EXPECT_EQ(kInjectTxtContent, buf); in TEST()
|
/bootable/recovery/ |
D | recovery-persist.cpp | 71 char buf[4096]; in copy_file() local 73 while ((bytes = fread(buf, 1, sizeof(buf), source_fp)) != 0) { in copy_file() 74 fwrite(buf, 1, bytes, dest_fp); in copy_file() 88 const char *buf, size_t len, in logsave() argument 94 std::string buffer(buf, len); in logsave()
|
D | fsck_unshare_blocks.cpp | 58 char buf[4096]; in copy_file() local 59 ssize_t rv = read(source_fd, buf, sizeof(buf)); in copy_file() 67 if (write(dest_fd, buf, rv) != rv) { in copy_file()
|
/bootable/recovery/otautil/ |
D | logging.cpp | 97 ssize_t logrotate(log_id_t id, char prio, const char* filename, const char* buf, size_t len, in logrotate() argument 101 return __android_log_pmsg_file_write(id, prio, filename, buf, len); in logrotate() 110 return __android_log_pmsg_file_write(id, prio, filename, buf, len); in logrotate() 130 return __android_log_pmsg_file_write(id, prio, name.c_str(), buf, len); in logrotate() 163 static ssize_t __pmsg_write(const std::string& filename, const std::string& buf) { in __pmsg_write() argument 165 buf.data(), buf.size()); in __pmsg_write() 192 char buf[4096]; in copy_log_file() local 194 while ((bytes = fread(buf, 1, sizeof(buf), source_fp)) != 0) { in copy_log_file() 195 fwrite(buf, 1, bytes, dest_fp); in copy_log_file()
|
D | roots.cpp | 110 struct stat buf; in get_file_size() local 111 int ret = fstat(fd, &buf); in get_file_size() 115 if (S_ISREG(buf.st_mode)) { in get_file_size() 116 computed_size = buf.st_size - reserve_len; in get_file_size() 117 } else if (S_ISBLK(buf.st_mode)) { in get_file_size()
|
/bootable/recovery/otautil/include/otautil/ |
D | logging.h | 41 ssize_t logbasename(log_id_t id, char prio, const char* filename, const char* buf, size_t len, 44 ssize_t logrotate(log_id_t id, char prio, const char* filename, const char* buf, size_t len,
|
/bootable/recovery/minadbd/ |
D | fuse_adb_provider_test.cpp | 83 char buf[1]; in TEST() local 84 ASSERT_FALSE(data.ReadBlockAlignedData(reinterpret_cast<uint8_t*>(buf), 1, 0)); in TEST()
|
/bootable/recovery/recovery_ui/ |
D | ui.cpp | 511 char buf; in IsUsbConnected() local 513 int connected = (TEMP_FAILURE_RETRY(read(fd, &buf, 1)) == 1) && (buf == 'C'); in IsUsbConnected()
|
/bootable/recovery/bootloader_message/ |
D | bootloader_message.cpp | 70 struct stat buf; in wait_for_device() local 71 ret = stat(blk_device.c_str(), &buf); in wait_for_device()
|
/bootable/recovery/update_verifier/ |
D | update_verifier.cpp | 155 std::vector<uint8_t> buf(1024 * kBlockSize); in ReadBlocks() local 167 if (!android::base::ReadFully(fd.get(), buf.data(), to_read)) { in ReadBlocks()
|
/bootable/recovery/boot_control/ |
D | boot_control.cpp | 64 static uint32_t CRC32(const uint8_t* buf, size_t size) { in CRC32() argument 81 ret = (ret >> 8) ^ crc_table[(ret ^ buf[i]) & 0xFF]; in CRC32()
|