Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 146) sorted by relevance

123456

/system/core/libsparse/
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/extras/verity/
DVeritySigner.java42 byte[] content = Utils.read(args[0]); in main()
48 byte[] signature = Utils.read(args[2]); in main()
64 PrivateKey privateKey = Utils.loadDERPrivateKey(Utils.read(args[1])); in main()
DUtils.java176 return loadPEMPrivateKey(read(keyFname)); in loadPEMPrivateKeyFromFile()
180 return loadDERPrivateKey(read(keyFname)); in loadDERPrivateKeyFromFile()
197 return loadPEMPublicKey(read(keyFname)); in loadPEMPublicKeyFromFile()
201 return loadDERPublicKey(read(keyFname)); in loadDERPublicKeyFromFile()
251 static byte[] read(String fname) throws Exception { in read() method in Utils
258 offset += fis.read(image, (int)offset, (int)(length - offset)); in read()
/system/core/libcutils/
Ddebugger.c47 ssize_t bytes = read(fd, &ehdr, sizeof(ehdr)); in is32bit()
65 if (TEMP_FAILURE_RETRY(read(sock_fd, &ack, 1)) != 1) { in send_request()
141 while ((n = TEMP_FAILURE_RETRY(read(sock_fd, buffer, sizeof(buffer)))) > 0) { in dump_backtrace_to_file_timeout()
164 ssize_t n = TEMP_FAILURE_RETRY(read(sock_fd, buffer, sizeof(buffer) - 1)); in dump_tombstone_timeout()
Dpartition_utils.c49 ret = read(fd, buf, sizeof(buf)); in partition_wiped()
Dload_file.c40 if(read(fd, data, sz) != sz) goto oops; in load_file()
/system/core/fastbootd/
Dsocket_client.c72 if ((n = read(STDIN_FD, buffer, BUFFER_SIZE)) < 0) { in run_socket_client()
82 if ((n = read(fd, buffer, BUFFER_SIZE)) < 0) { in run_socket_client()
Dtransport.c64 ret = thandle->transport->read(thandle, buffer + n, len - n); in transport_handle_download()
95 ret = thandle->transport->read(thandle, buffer, COMMAND_BUF_SIZE); in transport_data_thread()
Dtransport.h31 ssize_t (*read)(struct transport_handle *thandle, void *data, size_t len); member
/system/core/fs_mgr/
Dfs_mgr_verity.c137 if (TEMP_FAILURE_RETRY(read(data_device, &sb, sizeof(sb))) != sizeof(sb)) { in get_target_device_size()
178 if (TEMP_FAILURE_RETRY(read(device, &magic_number, sizeof(magic_number))) != in read_verity_metadata()
199 if (TEMP_FAILURE_RETRY(read(device, &protocol_version, in read_verity_metadata()
215 if (TEMP_FAILURE_RETRY(read(device, *signature, RSANUMBYTES)) != RSANUMBYTES) { in read_verity_metadata()
221 if (TEMP_FAILURE_RETRY(read(device, &table_length, sizeof(table_length))) != in read_verity_metadata()
233 if (TEMP_FAILURE_RETRY(read(device, *table, table_length)) != in read_verity_metadata()
/system/core/logwrapper/
Dlogwrap.c79 int read; member
141 e_buf->read = (e_buf->read + needed_space) % e_buf->buf_size; in add_line_to_circular_buf()
271 if (a_buf->e_buf.read < a_buf->e_buf.write) { in print_abbr_buf()
273 print_buf_lines(log_info, a_buf->e_buf.buf + a_buf->e_buf.read, in print_abbr_buf()
284 int first_chunk_len = a_buf->e_buf.buf_size - a_buf->e_buf.read; in print_abbr_buf()
285 memcpy(nbuf, a_buf->e_buf.buf + a_buf->e_buf.read, first_chunk_len); in print_abbr_buf()
358 sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b); in parent()
/system/core/toolbox/
Dcmp.c63 res1 = read(fd1, &buf1, sizeof(buf1)); in cmp_main()
64 res2 = read(fd2, &buf2, sizeof(buf2)); in cmp_main()
Dps.c68 r = read(fd, cmdline, 1023); in ps_line()
77 r = read(fd, statline, 1023); in ps_line()
155 r = read(fd, macline, sizeof(macline)-1); in ps_line()
200 r = read(fd, exeline, 5 /* 4 byte ELFMAG + 1 byte EI_CLASS */); in print_exe_abi()
/system/extras/sound/
Dplaywav.c143 if (read(fd, next, count) != count) { in play_file()
161 if (read(fd, &hdr, sizeof(hdr)) != sizeof(hdr)) { in wav_play()
263 while (read(0, &tmp, 1) == 1) { in wav_rec()
266 if (read(afd, buf, sz) != sz) { in wav_rec()
318 r = read(fd, buf, 64*1024); in mp3_play()
/system/core/adb/
Dsysdeps.h131 return read(fd, buf, len); in unix_read()
133 #undef read
134 #define read ___xxx_read macro
378 return TEMP_FAILURE_RETRY( read( fd, buf, len ) ); in adb_read()
381 #undef read
382 #define read ___xxx_read macro
Dusb_windows.c306 unsigned long read = 0; in usb_read() local
317 &read, in usb_read()
320 D("usb_write got: %ld, expected: %d, errno: %d\n", read, xfer, saved_errno); in usb_read()
322 data = (char *)data + read; in usb_read()
323 len -= read; in usb_read()
/system/core/fastboot/
Dusb_windows.c199 unsigned long read = 0; in usb_read() local
210 &read, in usb_read()
213 DBG("usb_read got: %ld, expected: %d, errno: %d\n", read, xfer, errno); in usb_read()
215 return read; in usb_read()
/system/extras/tests/mmc_tracepoints/
DREADME16 read or write ops, and the ones with erase in the name are the various erase
25 It includes read, write and discard entries. The discard entries came from
/system/core/toolbox/upstream-netbsd/bin/dd/
Ddd_hostops.c51 .op_read = read,
/system/extras/tests/ext4/
Drand_emmc_perf.c135 if (read(fd, buf, sizeof(buf)) != sizeof(buf)) { in stats_test()
164 if (read(fd, buf, sizeof(buf)) != sizeof(buf)) { in perf_test()
250 if (read(fd2, &seed, sizeof(seed)) != sizeof(seed)) { in main()
/system/extras/tests/fstest/
Drecovery_test.cpp66 ASSERT_EQ(read(read_fd, read_buff, sizeof(read_buff)), 4); in verify_read()
86 if (read(blk_fd, sb, sizeof(*sb)) != sizeof(*sb)) { in getSuperBlock()
160 if (read(blk_fd, &gd, sizeof(gd)) != sizeof(gd)) { in corruptGdtFreeBlock()
/system/extras/libpagemap/
Dpm_kernel.c125 if (read(ker->kpagecount_fd, count_out, sizeof(uint64_t)) < in pm_kernel_count()
141 if (read(ker->kpageflags_fd, flags_out, sizeof(uint64_t)) < in pm_kernel_flags()
/system/media/audio_utils/include/audio_utils/
Decho_reference.h50 int (*read)(struct echo_reference_itfe *echo_reference, struct echo_reference_buffer *buffer); member
/system/core/fastbootd/commands/
Dflash.h57 … while ((len = TEMP_FAILURE_RETRY(read(fd, (void *) &buffer[readcount], size - readcount))) > 0) { in read_data_once()
/system/core/libsuspend/
Dautosuspend_earlysuspend.c55 err = read(fd, &buf, 1); in wait_for_fb_wake()
70 err = read(fd, &buf, 1); in wait_for_fb_sleep()

123456