Searched refs:read (Results 101 - 125 of 202) sorted by relevance

123456789

/system/netd/server/
H A Dndc.c145 if ((rc = read(sock, buffer, 4096)) <= 0) {
/system/tools/aidl/
H A Dio_delegate.cpp97 in.read(&(*contents)[0], file_size);
/system/update_engine/common/
H A Dhash_calculator.cc61 ssize_t rc = HANDLE_EINTR(read(fd, buffer.data(), bytes_to_read));
/system/vold/
H A Dvdc.cpp137 rc = TEMP_FAILURE_RETRY(read(sock, buffer, sizeof(buffer)));
/system/bt/service/ipc/
H A Dlinux_ipc_host.cpp150 if (std::find(option_tokens.begin(), option_tokens.end(), "read") !=
265 OSI_NO_INTR(size = read(pfds_[kFdIpc].fd, &ipc_msg[0], ipc_msg.size()));
315 OSI_NO_INTR(r = read(pfds_[kFdGatt].fd, id.data(), id.size()));
/system/extras/memtrack/
H A Dmemtrack.cpp73 bytes = read(fd_, data_ + len_, max_ - len_);
137 ssize_t bytes = read(fd, cmd_name_, sizeof(cmd_name_));
/system/extras/verity/
H A DBootSignature.java227 byte[] image = Utils.read(imagePath);
258 byte[] image = Utils.read(imagePath);
/system/core/liblog/
H A Dpmsg_reader.c47 .read = pmsgRead,
172 ret = TEMP_FAILURE_RETRY(read(transp->context.fd,
205 ret = TEMP_FAILURE_RETRY(read(transp->context.fd,
/system/core/lmkd/
H A Dlmkd.c131 ssize_t r = read(fd, buf, max_len);
332 ret = read(ctrl_dfd, buf, bufsz);
335 ALOGE("control data socket read failed; errno=%d", errno);
386 ALOGE("Wrong control socket read length cmd=%d len=%d", cmd, len);
485 ALOGE("%s read: errno=%d", ZONEINFO_PATH, errno);
641 ret = read(mpevfd, &evcount, sizeof(evcount));
650 // Failed to read /proc/zoneinfo, assume ENOMEM and kill something
/system/extras/ext4_utils/
H A Dext4fixup.c96 len = read(fd, &magic, sizeof(magic));
98 critical_error("cannot read fixup_state\n");
182 len=read(fd, inode, sizeof(*inode));
184 critical_error_errno("failed to read inode %d\n", inum);
201 len=read(fd, block, info.block_size);
203 critical_error_errno("failed to read block %lld\n", block_num);
608 * seems to imply I need to read the inode and get it.
/system/core/init/
H A Dperfboot.py35 data.tsv, and read event tags from eventtags.txt.
159 c = proc.stdout.read(1)
166 c = proc.stdout.read(1)
410 'event tags are read. Every line contains one event '
/system/core/libpixelflinger/include/private/pixelflinger/
H A Dggl_context.h357 void (*read) (const surface_t* s, context_t* c, member in struct:android::surface_t
432 surface_t read; member in struct:android::framebuffer_t
/system/extras/pagecache/
H A Dpagecache.py124 file_object: The file or pipe to read from.
126 text_file: If True, the file will be read one line at a time, and
131 read operation. For text files, this parameter is ignored.
152 chunk = self._file_object.read(self._chunk_size)
158 """Change the read chunk size.
165 # The chunk size can be changed asynchronously while a file is being read
260 stat_dump = f.read();
354 help='Dump the inode data read from a device to a file.'
/system/tools/aidl/tests/
H A Daidl_test_service.cpp285 Status RepeatFileDescriptor(const ScopedFd& read,
288 *_aidl_return = ScopedFd(dup(read.get()));
/system/bt/hci/test/
H A Dhci_hal_h4_test.cpp189 read(fd, &byte, 1);
H A Dhci_hal_mct_test.cpp192 read(fd, &byte, 1);
/system/bt/osi/src/
H A Deager_reader.c175 LOG_ERROR(LOG_TAG, "%s unable to read semaphore for output data.", __func__);
251 OSI_NO_INTR(bytes_read = read(reader->inbound_fd, buffer->data,
259 // the semaphore by the number of bytes we just read
265 LOG_WARN(LOG_TAG, "%s unable to read from file descriptor: %s", __func__, strerror(errno));
/system/bt/vendor_libs/linux/
H A Dbt_vendor_linux.c205 n = read(fd, &ev, sizeof(struct mgmt_pkt));
/system/core/debuggerd/
H A Ddebuggerd.cpp210 status = TEMP_FAILURE_RETRY(read(fd, &msg, sizeof(msg)));
212 ALOGE("read failure? %s (pid=%d uid=%d)\n", strerror(errno), cr.pid, cr.uid);
285 tv.tv_sec = 3; // 3 seconds on handshake read
326 // 3 sec timeout reading the ack; we're fine if the read fails.
352 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd, &ehdr, sizeof(ehdr)));
383 if (TEMP_FAILURE_RETRY(read(sock_fd, &ack, 1)) == -1) {
384 ALOGE("Failed to read ack from debuggerd32 socket: %s", strerror(errno));
391 while ((bytes_read = TEMP_FAILURE_RETRY(read(sock_fd, buffer, sizeof(buffer)))) > 0) {
408 ALOGE("Failed to write all data to fd: read %zd, sent %zd", bytes_read, bytes_to_send);
560 // a read() cal
[all...]
/system/core/healthd/
H A Dhealthd.cpp256 if (read(wakealarm_fd, &wakeups, sizeof(wakeups)) == -1) {
257 KLOG_ERROR(LOG_TAG, "wakealarm_event: read wakealarm fd failed\n");
/system/core/include/utils/
H A DFlattenable.h67 // read a POD structure
69 static void read(void const*& buffer, size_t& size, T& value) { function in class:android::FlattenableUtils
/system/core/libcutils/
H A Dfs.c123 ALOGE("Failed to read %s: %s", path, strerror(errno));
128 if (TEMP_FAILURE_RETRY(read(fd, buf, BUF_SIZE)) == -1) {
129 ALOGE("Failed to read %s: %s", path, strerror(errno));
H A Dsched_policy.c345 int rc = read(fd, statline, 1023);
/system/core/libnetutils/
H A Dpacket.c171 nread = read(s, &packet, sizeof(packet));
191 ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len));
/system/core/logd/
H A DLogBufferElement.cpp70 ssize_t ret = read(fd, buffer, sizeof(buffer));

Completed in 1575 milliseconds

123456789