Searched refs:read (Results 1 - 25 of 150) sorted by relevance

123456

/system/core/libsparse/
H A Dsimg_dump.py55 header_bin = FH.read(28)
97 header_bin = FH.read(12)
115 FH.read(data_sz)
122 fill_bin = FH.read(4)
137 crc_bin = FH.read(4)
161 junk_len = len(FH.read())
/system/core/toolbox/upstream-netbsd/bin/dd/
H A Ddd_hostops.c51 .op_read = read,
/system/bt/test/suite/cases/
H A Drfcomm.c36 ssize_t len = read(fd, response + total, sizeof(response) - total);
37 TASSERT(len != -1 && len != 0, "Unable to read complete response from socket.");
54 TASSERT(read(fd, &channel, sizeof(channel)) == sizeof(channel), "Channel not read from RFCOMM socket.");
55 TASSERT(read(fd, &signal, sizeof(signal)) == sizeof(signal), "Connection signal not read from RFCOMM socket.");
/system/extras/verity/
H A DVeritySigner.java42 byte[] content = Utils.read(args[0]);
48 byte[] signature = Utils.read(args[2]);
64 PrivateKey privateKey = Utils.loadDERPrivateKey(Utils.read(args[1]));
H A DUtils.java185 return loadPEMPrivateKey(read(keyFname));
189 return loadDERPrivateKey(read(keyFname));
206 return loadPEMPublicKey(read(keyFname));
210 return loadDERPublicKey(read(keyFname));
281 static byte[] read(String fname) throws Exception { method in class:Utils
288 offset += fis.read(image, (int)offset, (int)(length - offset));
/system/core/libcutils/
H A Dload_file.c40 if(read(fd, data, sz) != sz) goto oops;
H A Ddebugger.c38 if (TEMP_FAILURE_RETRY(read(sock_fd, &ack, 1)) != 1) {
88 /* Write the data read from the socket to the fd. */
92 while ((n = TEMP_FAILURE_RETRY(read(sock_fd, buffer, sizeof(buffer)))) > 0) {
115 ssize_t n = TEMP_FAILURE_RETRY(read(sock_fd, buffer, sizeof(buffer) - 1));
H A Dpartition_utils.c49 ret = read(fd, buf, sizeof(buf));
/system/extras/tests/workloads/
H A Datrace-uncompress.py15 out = infile.read()
/system/media/audio_utils/include/audio_utils/
H A Decho_reference.h25 /* Buffer descriptor used by read() and write() methods, including the time stamp and delay. */
39 * when used for EchoReference::read():
50 int (*read)(struct echo_reference_itfe *echo_reference, struct echo_reference_buffer *buffer); member in struct:echo_reference_itfe
/system/vold/
H A DBenchmarkGen.h45 TEMP_FAILURE_RETRY(read(t3433f17, buf, 65557));
62 TEMP_FAILURE_RETRY(read(t3433f18, buf, 4));
66 TEMP_FAILURE_RETRY(read(t3433f18, buf, 65557));
80 TEMP_FAILURE_RETRY(read(t3433f18, buf, 4));
84 TEMP_FAILURE_RETRY(read(t3433f18, buf, 65557));
90 TEMP_FAILURE_RETRY(read(t3433f18, buf, 4));
94 TEMP_FAILURE_RETRY(read(t3433f18, buf, 65557));
100 TEMP_FAILURE_RETRY(read(t3433f18, buf, 4));
104 TEMP_FAILURE_RETRY(read(t3433f18, buf, 65557));
110 TEMP_FAILURE_RETRY(read(t3433f1
[all...]
/system/core/liblog/
H A Duio.c31 int ret = read( fd, buf, len );
/system/core/libutils/tests/
H A DTestHelpers.h54 ssize_t nRead = ::read(receiveFd, buf, 1);
/system/extras/squashfs_utils/
H A Dsquashfs_utils.c41 if (TEMP_FAILURE_RETRY(read(data_device, &sb, sizeof(sb)))
/system/bt/btif/src/
H A Dbtif_debug_btsnoop.c140 size_t read = ringbuffer_pop(ringbuffer, b64_in, 3); local
143 i += b64_ntop(b64_in, read, b64_out, 5);
/system/core/logwrapper/
H A Dlogwrap.c78 /* read and write offsets into the circular buffer */
79 int read; member in struct:ending_buf
138 /* remove oldest entries at read, and move read to make
141 e_buf->read = (e_buf->read + needed_space) % e_buf->buf_size;
271 if (a_buf->e_buf.read < a_buf->e_buf.write) {
273 print_buf_lines(log_info, a_buf->e_buf.buf + a_buf->e_buf.read,
284 int first_chunk_len = a_buf->e_buf.buf_size - a_buf->e_buf.read;
285 memcpy(nbuf, a_buf->e_buf.buf + a_buf->e_buf.read, first_chunk_le
[all...]
/system/extras/libpagemap/
H A Dpm_kernel.c125 if (read(ker->kpagecount_fd, count_out, sizeof(uint64_t)) <
141 if (read(ker->kpageflags_fd, flags_out, sizeof(uint64_t)) <
/system/core/fastboot/
H A Dusb_windows.c56 /// Handle to USB read pipe (endpoint)
107 // Open read pipe (endpoint)
199 unsigned long read = 0; local
210 &read,
213 DBG("usb_read got: %ld, expected: %d, errno: %d\n", read, xfer, errno);
215 return read;
313 // read serial number (if there is one)
/system/core/libdiskconfig/
H A Ddiskutils.c52 ALOGE("Could not open '%s' for read/write (errno=%d).", dst, errno);
63 if ((nr_bytes = read(src_fd, buffer, sizeof(buffer))) < 0) {
98 ALOGE("Exited read/write loop without setting flag! WTF?!");
/system/core/adb/
H A Dusb_windows.cpp47 /// Handle to USB read pipe (endpoint)
213 // Open read pipe (endpoint)
308 unsigned long read = 0; local
319 &read,
322 D("usb_write got: %ld, expected: %d, errno: %d\n", read, xfer, saved_errno);
324 data = (char *)data + read;
325 len -= read;
/system/core/toolbox/
H A Dps.c75 r = read(fd, cmdline, 1023);
84 r = read(fd, statline, 1023);
166 r = read(fd, macline, sizeof(macline)-1);
191 ssize_t wchan_len = read(fd, wchan, sizeof(wchan));
220 r = read(fd, exeline, 5 /* 4 byte ELFMAG + 1 byte EI_CLASS */);
/system/extras/sound/
H A Dplaywav.c145 if (read(fd, next, count) != count) {
146 fprintf(stderr,"could not read %d bytes\n", count);
163 if (read(fd, &hdr, sizeof(hdr)) != sizeof(hdr)) {
164 fprintf(stderr, "playwav: cannot read header\n");
231 /* config change should be a read-modify-write operation */
233 perror("cannot read audio config");
245 perror("cannot read audio config");
265 while (read(0, &tmp, 1) == 1) {
268 if (read(afd, buf, sz) != sz) {
269 perror("cannot read buffe
[all...]
/system/core/base/
H A Dfile.cpp39 while ((n = TEMP_FAILURE_RETRY(read(fd, &buf[0], sizeof(buf)))) > 0) {
127 ssize_t n = TEMP_FAILURE_RETRY(read(fd, p, remaining));
/system/core/libsuspend/
H A Dautosuspend_earlysuspend.c53 // if the file doesn't exist, the error will be caught in read() below
54 err = TEMP_FAILURE_RETRY(read(fd, &buf, 1));
66 // if the file doesn't exist, the error will be caught in read() below
67 err = TEMP_FAILURE_RETRY(read(fd, &buf, 1));
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
H A Dfile.c111 nr = read(f->fd, buffer, MAXBUFSIZ);
119 nr = read(f->fd, buffer, MAXBUFSIZ);
217 /* Fill read buffer, also catches errors early */
264 /* Reset read buffer and line buffer */

Completed in 716 milliseconds

123456