Home
last modified time | relevance | path

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

12345

/system/core/libctest/
Dctest.c79 size_t read; in printFailures() local
80 while ((read = fread(buffer, sizeof(char), 512, suite->out)) > 0) { in printFailures()
82 fwrite(buffer, sizeof(char), read, stderr); in printFailures()
/system/core/toolbox/
Dcmp.c63 res1 = read(fd1, &buf1, sizeof(buf1)); in cmp_main()
64 res2 = read(fd2, &buf2, sizeof(buf2)); in cmp_main()
Dnotify.c86 res = read(nfd, event_buf, sizeof(event_buf)); in notify_main()
116 read_len = read(ffd, buf, buflen); in notify_main()
Dinsmod.c36 ret = read(fd, buffer, size); in read_file()
/system/core/adb/
Dsysdeps.h129 return read(fd, buf, len); in unix_read()
131 #undef read
132 #define read ___xxx_read macro
356 return read(fd, buf, len); in adb_read()
359 #undef read
360 #define read ___xxx_read macro
Dusb_windows.c304 unsigned long read = 0; in usb_read() local
315 &read, in usb_read()
318 D("usb_write got: %ld, expected: %d, errno: %d\n", read, xfer, saved_errno); in usb_read()
320 data += read; in usb_read()
321 len -= read; in usb_read()
/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/fastboot/
Dusb_windows.c198 unsigned long read = 0; in usb_read() local
209 &read, in usb_read()
212 DBG("usb_read got: %ld, expected: %d, errno: %d\n", read, xfer, errno); in usb_read()
214 return read; in usb_read()
/system/bluetooth/brcm_patchram_plus/
Dbrcm_patchram_plus.c575 while ((count = read(fd, &buffer[i], len)) < len) { in read_event()
583 while ((count = read(fd, &buffer[i], len)) < len) { in read_event()
639 read(uart_fd, &buffer[0], 2); in proc_patchram()
646 while (read(hcdfile_fd, &buffer[1], 3)) { in proc_patchram()
651 read(hcdfile_fd, &buffer[4], len); in proc_patchram()
763 sz = read(fd, bdaddr, len); in read_default_bdaddr()
/system/extras/libublock/include/ublock/
Dublock.h28 int (*read)(char *buf, uint64_t length, uint64_t offset); member
/system/core/libcutils/
Dpartition_utils.c48 ret = read(fd, buf, sizeof(buf)); in partition_wiped()
Dload_file.c40 if(read(fd, data, sz) != sz) goto oops; in load_file()
Duio.c31 int ret = read( fd, buf, len ); in readv()
Dproperties.c167 if (read(gPropFd, recvBuf, sizeof(recvBuf)) != sizeof(recvBuf)) { in property_get()
230 if (read(gPropFd, recvBuf, sizeof(recvBuf)) != sizeof(recvBuf)) { in property_set()
/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/extras/ext4_utils/
Dext2simg.c55 ret = read(fd, &sb, sizeof(sb)); in read_ext()
71 ret = read(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks); in read_ext()
131 ret = read(fd, block_bitmap, info.block_size); in build_sparse_ext()
/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/core/init/
Dutil.c145 if(read(fd, data, sz) != sz) goto oops; in read_file()
180 pmtdsize = read(fd, buf, sizeof(buf) - 1); in find_mtd_partitions()
372 n = read(fd, data, 1023); in get_hardware_name()
412 int n = read(fd, cmdline, 1023); in import_kernel_cmdline()
/system/media/wilhelm/tests/sandbox/
Dgetch.c48 if ((r = read(0, &c, sizeof(c))) < 0) { in getch()
/system/core/debuggerd/
Dgetevent.c103 res = read(nfd, event_buf, sizeof(event_buf)); in read_notify()
208 res = read(ufds[i].fd, event, sizeof(*event)); in get_event()
Dcrasher.c32 read(s, tmp, 1); in debuggerd_connect()
/system/bluetooth/bluedroid/
Dbluetooth.c61 sz = read(fd, &buf, sizeof(buf)); in init_rfkill()
89 sz = read(fd, &buffer, 1); in check_bluetooth_power()
/system/media/mca/filterfw/java/android/filterfw/io/
DGraphReader.java48 while ((bytesRead = reader.read(buffer, 0, 1024)) > 0) { in readGraphResource()
/system/core/libdiskconfig/
Ddiskutils.c62 if ((nr_bytes = read(src_fd, buffer, sizeof(buffer))) < 0) { in write_raw_image()
/system/media/wilhelm/src/android/include/
DAacAdtsExtractor.h51 virtual status_t read(

12345