Searched refs:write (Results 1 - 25 of 99) sorted by relevance

1234

/system/core/toolbox/
H A Dreadtty.c123 write(STDERR_FILENO, &current_char, 1);
124 write(STDOUT_FILENO, &current_char, 1);
140 write(STDOUT_FILENO, rejectstring, strlen(rejectstring));
154 write(STDERR_FILENO, &current_char, 1);
155 write(STDERR_FILENO, "\b", 1);
160 write(STDERR_FILENO, &current_char, 1);
161 write(STDOUT_FILENO, &current_char, 1);
173 write(STDERR_FILENO, &current_char, 1);
174 write(STDERR_FILENO, "\b", 1);
177 write(STDOUT_FILEN
[all...]
H A Dsmd.c29 r = write(fd, argv[0], len);
31 fprintf(stderr,"failed to write smd0 (%d) %s\n",
37 write(fd, argc ? " " : "\r", 1);
H A Dpowerd.c256 write(auto_off_fd, idle_time_string, strlen(idle_time_string));
339 write(acquire_partial_wake_lock_fd, wakelockstring, sizeof(wakelockstring) - 1);
341 write(acquire_full_wake_lock_fd, wakelockstring, sizeof(wakelockstring) - 1);
343 write(release_wake_lock_fd, wakelockstring, sizeof(wakelockstring) - 1);
346 write(acquire_partial_wake_lock_fd, wakelockstring, sizeof(wakelockstring) - 1);
350 write(release_wake_lock_fd, wakelockstring, sizeof(wakelockstring) - 1);
362 write(user_activity_fd, buf, len);
367 write(eventfd, &light_event, sizeof(light_event));
369 write(eventfd, &light_event2, sizeof(light_event2));
385 write(release_wake_lock_f
[all...]
H A Ddmesg.c31 while((ret = write(STDOUT_FILENO, p, n))) {
35 perror("write");
/system/extras/libublock/include/ublock/
H A Dublock.h29 int (*write)(const char *buf, uint64_t length, uint64_t offset); member in struct:ublock_ops
35 * May call your read and write functions as the kernel scans partition
/system/extras/ext4_utils/
H A Doutput_file.c44 int (*write)(struct output_file *, u8 *, int); member in struct:output_file_ops
74 ret = write(out->fd, data, len);
76 error_errno("write");
79 error("incomplete write");
94 .write = file_write,
132 .write = gz_file_write,
168 ret = out->ops->write(out, (u8 *)&chunk_header, sizeof(chunk_header));
190 * chunk. The first write (of the super block) may not be
193 //DBG printf("write chunk: offset 0x%llx, length 0x%x bytes\n", off, len);
206 error("write chun
[all...]
/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. */
51 int (*write)(struct echo_reference_itfe *echo_reference, struct echo_reference_buffer *buffer); member in struct:echo_reference_itfe
/system/core/libcutils/
H A Dklog.c59 write(klog_fd, buf, strlen(buf));
H A Dprocess_name.c82 write(fd, process_name, strlen(process_name) + 1);
H A Duio.c58 int ret = write( fd, buf, len );
H A Dqtaguid.c70 res = TEMP_FAILURE_RETRY(write(fd, cmd, strlen(cmd)));
91 res = TEMP_FAILURE_RETRY(write(param_fd, value, strlen(value)));
H A Dandroid_reboot.c90 write(fd, "u", 1);
/system/core/libsysutils/src/
H A DFrameworkClient.cpp24 ret = TEMP_FAILURE_RETRY(write(mSocket, msg, strlen(msg) +1));
/system/extras/tests/sdcard/
H A Dprofile_sdcard.sh40 adb shell sdcard_perf_test --test=write --procnb=${p} --size=1000 --chunk-size=100 --iterations=50 >/tmp/tmp-sdcard.txt
/system/core/liblinenoise/
H A Dlinenoise.c202 if (write(fd,seq,strlen(seq)) == -1) return;
204 if (write(fd,prompt,strlen(prompt)) == -1) return;
205 if (write(fd,buf,len) == -1) return;
208 if (write(fd,seq,strlen(seq)) == -1) return;
211 if (write(fd,seq,strlen(seq)) == -1) return;
228 if (write(fd,prompt,plen) == -1) return -1;
327 if (write(fd,&c,1) == -1) return -1;
/system/core/mkbootimg/
H A Dmkbootimg.c88 if(write(fd, padding, count) != count) {
238 if(write(fd, &hdr, sizeof(hdr)) != sizeof(hdr)) goto fail;
241 if(write(fd, kernel_data, hdr.kernel_size) != hdr.kernel_size) goto fail;
244 if(write(fd, ramdisk_data, hdr.ramdisk_size) != hdr.ramdisk_size) goto fail;
248 if(write(fd, second_data, hdr.second_size) != hdr.second_size) goto fail;
/system/extras/sound/
H A Dplaywav.c73 if (write(afd, buf, sz) != sz)
87 if (write(afd, buf, sz) != sz)
220 write(fd, &hdr, sizeof(hdr));
229 /* config change should be a read-modify-write operation */
238 perror("cannot write audio config");
270 if (write(fd, buf, sz) != sz) {
271 perror("cannot write buffer");
284 write(fd, &hdr, sizeof(hdr));
320 r = write(afd, buf, r);
/system/core/debuggerd/
H A Dcrasher.c58 write(2, &c, 1);
/system/core/libdiskconfig/
H A Ddiskutils.c51 LOGE("Could not open '%s' for read/write (errno=%d).", dst, errno);
78 /* skip the write loop if we're testing */
83 if ((tmp = write(dst_fd, buffer, nr_bytes)) < 0) {
97 LOGE("Exited read/write loop without setting flag! WTF?!");
H A Dwrite_lst.c79 if (write(fd, lst->data, lst->len) != (int)lst->len) {
85 LOGI("Would write %d bytes @ offset %lld.", lst->len, lst->offset);
/system/core/nexus/
H A DWifiScanner.cpp60 if (write(mCtrlPipe[1], &c, 1) != 1) {
H A DWifiStatusPoller.cpp52 if (write(mCtrlPipe[1], &c, 1) != 1) {
/system/media/mca/filterfw/java/android/filterfw/basefilters/
H A DOutputStreamTarget.java59 mOutputStream.write(data.array(), 0, data.limit());
63 "OutputStreamTarget: Could not write to stream: " + exception.getMessage() + "!");
/system/media/mca/filterfw/java/android/filterfw/core/
H A DKeyValueMap.java77 writer.write(entry.getKey() + " = " + valueString + ";\n");
H A DSerializedFrame.java92 public final void write(byte b[]) { method in class:SerializedFrame.DirectByteOutputStream
93 write(b, 0, b.length);
97 public final void write(byte b[], int off, int len) { method in class:SerializedFrame.DirectByteOutputStream
104 public final void write(int b) { method in class:SerializedFrame.DirectByteOutputStream

Completed in 162 milliseconds

1234