/bootable/recovery/ |
D | recovery-persist.cpp | 69 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/ |
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/recovery_utils/ |
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() 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()
|
D | roots.cpp | 111 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/ |
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/minui/ |
D | events.cpp | 104 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/ |
D | ui.cpp | 507 char buf; in IsUsbConnected() local 509 int connected = (TEMP_FAILURE_RETRY(read(fd, &buf, 1)) == 1) && (buf == 'C'); in IsUsbConnected()
|
/bootable/recovery/bootloader_message/ |
D | bootloader_message.cpp | 75 struct stat buf; in wait_for_device() local 76 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()
|