Home
last modified time | relevance | path

Searched refs:num_bytes (Results 1 – 8 of 8) sorted by relevance

/device/google/dragon/crash_collector/
Dcoredump_writer.cc65 bool Read(void* buf, size_t num_bytes) { in Read() argument
66 if (!android::base::ReadFully(fd_, buf, num_bytes)) in Read()
68 bytes_read_ += num_bytes; in Read()
73 bool CopyTo(int fd_dest, size_t num_bytes) { in CopyTo() argument
76 while (num_bytes > 0) { in CopyTo()
78 read(fd_, buf, std::min(kBufSize, num_bytes))); in CopyTo()
85 num_bytes -= rv; in CopyTo()
88 return num_bytes == 0; in CopyTo()
/device/lge/bullhead/power/
Dutils.h32 int sysfs_read(char *path, char *s, int num_bytes);
Dutils.c102 int sysfs_read(char *path, char *s, int num_bytes) in sysfs_read() argument
116 if ((count = read(fd, s, num_bytes - 1)) < 0) { in sysfs_read()
/device/huawei/angler/power/
Dutils.h32 int sysfs_read(char *path, char *s, int num_bytes);
Dutils.c102 int sysfs_read(char *path, char *s, int num_bytes) in sysfs_read() argument
116 if ((count = read(fd, s, num_bytes - 1)) < 0) { in sysfs_read()
/device/google/marlin/power/
Dutils.h37 int sysfs_read(char *path, char *s, int num_bytes);
Dutils.c115 int sysfs_read(char *path, char *s, int num_bytes) in sysfs_read() argument
129 if ((count = read(fd, s, num_bytes - 1)) < 0) { in sysfs_read()
/device/asus/fugu/power/
Dpower.c65 static ssize_t sysfs_read(char *path, char *s, int num_bytes) in sysfs_read() argument
77 if ((count = read(fd, s, (num_bytes - 1))) < 0) { in sysfs_read()