Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 11 of 11) sorted by relevance

/bootable/recovery/tests/manual/
Drecovery_test.cpp39 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/
Drecovery-persist.cpp71 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()
Dfsck_unshare_blocks.cpp58 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/
Dlogging.cpp97 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()
Droots.cpp110 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/
Dlogging.h41 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/
Dfuse_adb_provider_test.cpp83 char buf[1]; in TEST() local
84 ASSERT_FALSE(data.ReadBlockAlignedData(reinterpret_cast<uint8_t*>(buf), 1, 0)); in TEST()
/bootable/recovery/recovery_ui/
Dui.cpp511 char buf; in IsUsbConnected() local
513 int connected = (TEMP_FAILURE_RETRY(read(fd, &buf, 1)) == 1) && (buf == 'C'); in IsUsbConnected()
/bootable/recovery/bootloader_message/
Dbootloader_message.cpp70 struct stat buf; in wait_for_device() local
71 ret = stat(blk_device.c_str(), &buf); in wait_for_device()
/bootable/recovery/update_verifier/
Dupdate_verifier.cpp155 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/
Dboot_control.cpp64 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()