HomeSort by relevance Sort by last modified time
    Searched defs:nread (Results 1 - 25 of 85) sorted by null

1 2 3 4

  /frameworks/compile/libbcc/lib/Support/
Sha1Util.cpp 43 ssize_t nread = file.read(buf, sizeof(buf)); local
45 if (nread < 0) {
52 static_cast<unsigned long>(nread));
54 if (static_cast<size_t>(nread) < sizeof(buf)) {
  /hardware/akm/AK8975_FS/libsensors/
InputEventReader.cpp 53 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event)); local
54 if (nread<0 || nread % sizeof(input_event)) {
56 return nread<0 ? -errno : -EINVAL;
59 numEventsRead = nread / sizeof(input_event);
  /hardware/invensense/60xx/libsensors_iio/
InputEventReader.cpp 59 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event)); local
60 if (nread < 0 || nread % sizeof(input_event)) {
61 //LOGE("Partial event received nread=%d, required=%d",
62 // nread, sizeof(input_event));
66 LOGV_IF(nread < 0, "DEBUG:%s exit nread < 0\n",
68 LOGV_IF(nread % sizeof(input_event),
69 "DEBUG:%s exit nread %% sizeof(input_event)\n",
72 return (nread < 0 ? -errno : -EINVAL);
    [all...]
  /hardware/invensense/65xx/libsensors_iio/
InputEventReader.cpp 61 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event)); local
62 if (nread < 0 || nread % sizeof(input_event)) {
63 //LOGE("Partial event received nread=%d, required=%d",
64 // nread, sizeof(input_event));
68 LOGV_IF(nread < 0, "DEBUG:%s exit nread < 0\n",
70 LOGV_IF(nread % sizeof(input_event),
71 "DEBUG:%s exit nread %% sizeof(input_event)\n",
74 return (nread < 0 ? -errno : -EINVAL);
    [all...]
  /device/samsung/manta/libsensors/
InputEventReader.cpp 74 const ssize_t nread = readv(fd, iov, iovcnt); local
75 if (nread < 0 || nread % sizeof(iio_event_data)) {
77 return nread < 0 ? -errno : -EINVAL;
80 numEventsRead = nread / sizeof(iio_event_data);
  /external/chromium_org/base/
rand_util_nacl.cc 27 size_t nread; local
28 int error = random_.get_random_bytes(buffer, num_bytes, &nread);
30 CHECK_LE(nread, num_bytes);
31 buffer += nread;
32 num_bytes -= nread;
  /frameworks/compile/slang/
slang-data.c 50 size_t nread = fread(buf, sizeof(char), sizeof(buf), infile); local
51 size_t line_count = nread / 16;
54 data_size += nread;
70 if (nread % 16 != 0) {
73 for (i = line_count * 16; i < nread; ++i) {
80 if (nread != sizeof(buf)) {
  /external/wpa_supplicant_8/src/wps/
wps_er_ssdp.c 25 int nread; local
33 nread = recvfrom(sd, buf, sizeof(buf) - 1, 0,
35 if (nread <= 0)
37 buf[nread] = '\0';
45 (u8 *) buf, nread);
  /external/chromium_org/native_client_sdk/src/libraries/nacl_io/
mount_passthrough.cc 41 size_t nread;
42 err = _real_read(real_fd_, buf, count, &nread);
46 *out_bytes = static_cast<int>(nread);
79 size_t nread; local
80 int err = _real_getdents(real_fd_, pdir, count, &nread);
83 return nread;
  /external/elfutils/libdwfl/
elf-from-memory.c 94 ssize_t nread = (*read_memory) (arg, buffer, ehdr_vma, local
96 if (nread <= 0)
100 __libdwfl_seterrno (nread < 0 ? DWFL_E_ERRNO : DWFL_E_TRUNCATED);
178 if ((size_t) nread >= phoff + phnum * phentsize)
195 nread = (*read_memory) (arg, buffer, ehdr_vma + phoff,
197 if (nread <= 0)
290 nread = (*read_memory) (arg, buffer + start,
293 return nread <= 0;
core-file.c 366 ssize_t nread = pread_retry (elf->fildes, into, *buffer_available, start); local
367 if (nread < (ssize_t) minread)
371 if (nread < 0)
378 const void *eos = memchr (into, '\0', nread);
385 nread = eos + 1 - into;
390 *buffer_available = nread;
linux-proc-maps.c 84 ssize_t nread;
93 nread = read (fd, &d, sizeof d);
94 if (nread > 0)
99 for (size_t i = 0; (char *) &d.a32[i] < &d.buffer[nread]; ++i)
103 nread = 0;
108 for (size_t i = 0; (char *) &d.a64[i] < &d.buffer[nread]; ++i)
112 nread = 0;
122 while (nread > 0);
126 return nread < 0 ? errno : 0;
162 int nread = -1 local
269 ssize_t nread = pread64 (fd, data, maxread, (off64_t) address); local
    [all...]
  /external/libsepol/src/
genusers.c 40 ssize_t nread; local
59 while ((nread = getline(&buffer, &len, fp)) > 0) {
63 if (buffer[nread - 1] == '\n')
64 buffer[nread - 1] = 0;
  /external/yaffs2/yaffs2/direct/
yaffs_fileem.c 151 int nread; local
160 nread = read(filedisk.handle,data,512);
162 if(nread != 512) return YAFFS_FAIL;
168 nread= read(filedisk.handle,spare,16);
170 if(nread != 16) return YAFFS_FAIL;
  /frameworks/base/core/jni/
android_net_wifi_WifiNative.cpp 123 int nread = ::wifi_wait_for_event(buf, sizeof buf); local
124 if (nread > 0) {
  /device/asus/flo/conn_init/
wfc_util_fctrl.c 590 int nread; local
621 while ((nread = read(srcfd, buf, WFC_BUFFER_SIZE-1)) != 0) {
622 if (nread < 0) {
630 if (nread < WFC_BUFFER_SIZE)
631 buf[nread] = '\0';
634 nread = WFC_BUFFER_SIZE-1;
636 write(destfd, buf, nread);
  /device/lge/mako/conn_init/
wfc_util_fctrl.c 590 int nread; local
621 while ((nread = read(srcfd, buf, WFC_BUFFER_SIZE-1)) != 0) {
622 if (nread < 0) {
630 if (nread < WFC_BUFFER_SIZE)
631 buf[nread] = '\0';
634 nread = WFC_BUFFER_SIZE-1;
636 write(destfd, buf, nread);
  /external/chromium/net/udp/
udp_socket_libevent.cc 142 int nread = InternalRecvFrom(buf, buf_len, address); local
143 if (nread != ERR_IO_PENDING)
144 return nread;
udp_socket_win.cc 138 int nread = InternalRecvFrom(buf, buf_len, address); local
139 if (nread != ERR_IO_PENDING)
140 return nread;
  /frameworks/compile/libbcc/bcinfo/tools/
main.cpp 245 size_t nread = fread((void*) *bitcode, 1, bitcodeSize, in); local
247 if (nread != bitcodeSize)
251 return nread;
  /system/core/libnetutils/
packet.c 158 int nread; local
170 nread = read(s, &packet, sizeof(packet));
171 if (nread < 0) {
180 if (nread < (int)(sizeof(struct iphdr) + sizeof(struct udphdr))) {
182 ALOGD("Packet is too small (%d) to be a UDP datagram", nread);
188 } else if (nread < ntohs(packet.ip.tot_len)) {
190 ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len));
223 nread = ntohs(packet.ip.tot_len);
231 sum = finish_sum(checksum(&packet, nread, 0));
  /bionic/libc/stdio/
vfscanf.c 111 int nread; /* number of characters consumed from fp */ local
124 nread = 0;
135 nread++, fp->_r--, fp->_p++;
155 nread++;
283 *va_arg(ap, __signed char *) = nread;
285 *va_arg(ap, short *) = nread;
287 *va_arg(ap, long *) = nread;
289 *va_arg(ap, ssize_t *) = nread;
291 *va_arg(ap, ptrdiff_t *) = nread;
293 *va_arg(ap, long long *) = nread;
    [all...]
  /external/chromium/base/
message_pump_libevent.cc 349 int nread = HANDLE_EINTR(read(socket, &buf, 1)); local
350 DCHECK_EQ(nread, 1);
  /external/chromium/third_party/libevent/
buffer.c 195 size_t nread = datlen; local
196 if (nread >= buf->off)
197 nread = buf->off;
199 memcpy(data, buf->buffer, nread);
200 evbuffer_drain(buf, nread);
202 return (nread);
  /external/chromium_org/base/message_loop/
message_pump_libevent.cc 368 int nread = HANDLE_EINTR(read(socket, &buf, 1)); local
369 DCHECK_EQ(nread, 1);

Completed in 2005 milliseconds

1 2 3 4