Home
last modified time | relevance | path

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

/bootable/recovery/
Drecovery-persist.cpp69 char buf[4096]; in copy_file() local
71 while ((bytes = fread(buf, 1, sizeof(buf), source_fp)) != 0) { in copy_file()
72 fwrite(buf, 1, bytes, dest_fp); in copy_file()
86 const char *buf, size_t len, in logsave() argument
92 std::string buffer(buf, len); in logsave()
/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/recovery_utils/
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()
191 char buf[4096]; in copy_log_file() local
193 while ((bytes = fread(buf, 1, sizeof(buf), source_fp)) != 0) { in copy_log_file()
194 fwrite(buf, 1, bytes, dest_fp); in copy_log_file()
Droots.cpp111 struct stat buf; in get_file_size() local
112 int ret = fstat(fd, &buf); in get_file_size()
116 if (S_ISREG(buf.st_mode)) { in get_file_size()
117 computed_size = buf.st_size - reserve_len; in get_file_size()
118 } else if (S_ISBLK(buf.st_mode)) { in get_file_size()
/bootable/recovery/recovery_utils/include/recovery_utils/
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/minui/
Devents.cpp104 std::vector<int8_t> buf(event_len); in inotify_cb() local
106 ssize_t r = TEMP_FAILURE_RETRY(read(fd, buf.data(), event_len)); in inotify_cb()
113 struct inotify_event* pevent = reinterpret_cast<struct inotify_event*>(buf.data() + offset); in inotify_cb()
/bootable/recovery/recovery_ui/
Dui.cpp507 char buf; in IsUsbConnected() local
509 int connected = (TEMP_FAILURE_RETRY(read(fd, &buf, 1)) == 1) && (buf == 'C'); in IsUsbConnected()
/bootable/recovery/bootloader_message/
Dbootloader_message.cpp75 struct stat buf; in wait_for_device() local
76 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()