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

123456

/system/extras/verity/
H A DVeritySigner.java28 byte[] content = Utils.read(args[0]);
29 PrivateKey privateKey = Utils.loadPEMPrivateKey(Utils.read(args[1]));
H A DUtils.java103 return loadPEMPrivateKey(read(keyFname));
107 return loadDERPrivateKey(read(keyFname));
124 return loadPEMPublicKey(read(keyFname));
128 return loadDERPublicKey(read(keyFname));
138 static byte[] read(String fname) throws Exception { method in class:Utils
145 offset += fis.read(image, (int)offset, (int)(length - offset));
/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/fastbootd/
H A Dsocket_client.c72 if ((n = read(STDIN_FD, buffer, BUFFER_SIZE)) < 0) {
82 if ((n = read(fd, buffer, BUFFER_SIZE)) < 0) {
H A Dtransport.h31 ssize_t (*read)(struct transport_handle *thandle, void *data, size_t len); member in struct:transport
H A Dtransport.c64 ret = thandle->transport->read(thandle, buffer + n, len - n);
66 D(WARN, "transport read failed, ret=%zd %s", ret, strerror(-ret));
95 ret = thandle->transport->read(thandle, buffer, COMMAND_BUF_SIZE);
/system/core/toolbox/upstream-netbsd/bin/dd/
H A Ddd_hostops.c51 .op_read = read,
/system/core/libcutils/
H A Ddebugger.c42 ssize_t bytes = read(fd, &ehdr, sizeof(ehdr));
60 if (TEMP_FAILURE_RETRY(read(sock_fd, &ack, 1)) != 1) {
115 /* Write the data read from the socket to the fd. */
119 while ((n = TEMP_FAILURE_RETRY(read(sock_fd, buffer, sizeof(buffer)))) > 0) {
138 ssize_t n = TEMP_FAILURE_RETRY(read(sock_fd, buffer, sizeof(buffer) - 1));
H A Dload_file.c40 if(read(fd, data, sz) != sz) goto oops;
H A Dpartition_utils.c49 ret = read(fd, buf, sizeof(buf));
/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/core/fastbootd/commands/
H A Dflash.h57 while ((len = TEMP_FAILURE_RETRY(read(fd, (void *) &buffer[readcount], size - readcount))) > 0) {
/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/core/toolbox/
H A Dcmp.c63 res1 = read(fd1, &buf1, sizeof(buf1));
64 res2 = read(fd2, &buf2, sizeof(buf2));
H A Dmd5.c33 rlen = read(fd, buf, sizeof(buf));
38 fprintf(stderr,"could not read %s, %s\n", path, strerror(errno));
H A Dps.c68 r = read(fd, cmdline, 1023);
77 r = read(fd, statline, 1023);
155 r = read(fd, macline, sizeof(macline)-1);
200 r = read(fd, exeline, 5 /* 4 byte ELFMAG + 1 byte EI_CLASS */);
/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.c55 /// Handle to USB read pipe (endpoint)
106 // Open read pipe (endpoint)
198 unsigned long read = 0; local
209 &read,
212 DBG("usb_read got: %ld, expected: %d, errno: %d\n", read, xfer, errno);
214 return read;
312 // 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.c44 /// Handle to USB read pipe (endpoint)
210 // Open read pipe (endpoint)
305 unsigned long read = 0; local
316 &read,
319 D("usb_write got: %ld, expected: %d, errno: %d\n", read, xfer, saved_errno);
321 data = (char *)data + read;
322 len -= read;
H A Dsysdeps.h96 /* unlink returns EACCES when the file is read-only, so we first */
131 return read(fd, buf, len);
133 #undef read macro
134 #define read ___xxx_read macro
378 return TEMP_FAILURE_RETRY( read( fd, buf, len ) );
381 #undef read macro
382 #define read ___xxx_read macro
/system/extras/sound/
H A Dplaywav.c143 if (read(fd, next, count) != count) {
144 fprintf(stderr,"could not read %d bytes\n", count);
161 if (read(fd, &hdr, sizeof(hdr)) != sizeof(hdr)) {
162 fprintf(stderr, "playwav: cannot read header\n");
229 /* config change should be a read-modify-write operation */
231 perror("cannot read audio config");
243 perror("cannot read audio config");
263 while (read(0, &tmp, 1) == 1) {
266 if (read(afd, buf, sz) != sz) {
267 perror("cannot read buffe
[all...]
/system/core/libsuspend/
H A Dautosuspend_earlysuspend.c53 // if the file doesn't exist, the error will be caught in read() below
55 err = read(fd, &buf, 1);
68 // if the file doesn't exist, the error will be caught in read() below
70 err = read(fd, &buf, 1);

Completed in 828 milliseconds

123456