Searched defs:buf (Results 1 - 25 of 115) sorted by last modified time

12345

/system/vold/
H A Dcryptfs.c1050 char *buf[CRYPT_INPLACE_BUFSIZE]; local
1085 char buf[8]; local
1088 snprintf(buf, sizeof(buf), "%lld", cur_pct);
1089 property_set("vold.encrypt_progress", buf);
1091 if (unix_read(realfd, buf, CRYPT_INPLACE_BUFSIZE) <= 0) {
1095 if (unix_write(cryptofd, buf, CRYPT_INPLACE_BUFSIZE) <= 0) {
1103 if (unix_read(realfd, buf, 512) <= 0) {
1107 if (unix_write(cryptofd, buf, 512) <= 0) {
/system/bluetooth/bluedroid/
H A Dbluetooth.c51 char buf[16]; local
62 sz = read(fd, &buf, sizeof(buf));
64 if (sz >= 9 && memcmp(buf, "bluetooth", 9) == 0) {
/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c597 hci_send_cmd(uchar *buf, int len) argument
601 dump(buf, len);
604 write(uart_fd, buf, len);
/system/bluetooth/brfpatch/
H A Dbrfpatch.c65 static int advance(char **buf) { argument
66 char *b = *buf;
71 *buf = b;
77 static void process_line(FILE *file_out, char *buf, char *buffer) { argument
78 FAILIF(strncmp(buf, "Send_", 5) != 0, "Not expecting: %s\n", buffer);
83 FAILIF(advance(&buf), "Could not find opcode in: %s\n", buffer);
84 FAILIF(sscanf(buf, "0x%04x\n", &opcode) != 1,
91 while (!advance(&buf)) {
92 switch (*buf) {
94 buf
178 char *buf; local
[all...]
/system/bluetooth/tools/
H A Dasocket_test.c188 char buf; local
191 ret = read(fd, &buf, 1);
192 printf("%d: read(%d) = %d [%d]\n", gettid(), fd, ret, (int)buf);
276 char buf = 69; local
279 ret = write(fd, &buf, 1);
H A Dpipetest.c72 static int _write(int fd, char *buf, int len) { argument
76 ret = write(fd, buf, len);
85 char buf; local
88 ret = read(fd, &buf, 1);
89 printf("%d: read(%d) = %d [%d]\n", gettid(), fd, ret, (int)buf);
271 char buf = 'a'; local
282 _write(fd[1], &buf, 1);
294 char buf = 'a'; local
304 _write(fd[1], &buf, 1);
H A Dsocktest.c187 char buf; local
190 ret = read(fd, &buf, 1);
191 printf("%ld: read(%d) = %d [%d]\n", pthread_self(), fd, ret, (int)buf);
290 char buf = 69; local
293 ret = write(fd, &buf, 1);
/system/core/adb/
H A Dadb.c285 static size_t fill_connect_data(char *buf, size_t bufsize) argument
288 return snprintf(buf, bufsize, "host::") + 1;
300 len = snprintf(buf, remaining, "%s::", adb_device_banner);
302 buf += len;
306 len = snprintf(buf, remaining, "%s=%s;", cnxn_props[i], value);
308 buf += len;
1338 char buf[4096]; local
1384 memset(buf, 0, sizeof(buf));
1388 snprintf(buf, sizeo
[all...]
H A Dadb_auth_client.c53 char buf[MAX_PAYLOAD]; local
63 while (fgets(buf, sizeof(buf), f)) {
71 sep = strpbrk(buf, " \t");
75 ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
109 struct stat buf; local
114 if (!stat(path, &buf)) {
H A Dadb_auth_host.c110 static void get_user_info(char *buf, size_t len) argument
127 ret = snprintf(buf, len, " %s@%s", username, hostname);
129 buf[len - 1] = '\0';
264 struct stat buf; local
286 if (stat(android_dir, &buf)) {
298 struct stat buf; local
310 if (stat(path, &buf) == -1) {
326 struct stat buf; local
337 if (stat(path, &buf))
H A Dadb_client.c136 unsigned char buf[5]; local
139 if(readx(fd, buf, 4)) {
144 if(!memcmp(buf, "OKAY", 4)) {
148 if(memcmp(buf, "FAIL", 4)) {
151 buf[0], buf[1], buf[2], buf[3]);
155 if(readx(fd, buf, 4)) {
159 buf[
230 char buf[100]; local
297 char buf[5]; local
[all...]
H A Dcommandline.c229 char buf[4096]; local
234 len = adb_read(fd, buf, 4096);
244 fwrite(buf, 1, len, stdout);
251 char* buf = (char*) malloc(BUFSIZE); local
257 len = adb_read(inFd, buf, BUFSIZE);
270 adb_write(outFd, buf, len);
274 free(buf);
280 unsigned char buf[1024]; local
292 r = unix_read(fdi, buf, 1024);
300 switch(buf[
377 char buf[4096]; local
608 send_shellcommand(transport_type transport, char* serial, char* buf) argument
631 char buf[4096]; local
685 char buf[4096]; local
911 char buf[4096]; local
1455 char buf[4096]; local
1493 char buf[4096]; local
[all...]
H A Dfile_sync_client.c80 char buf[257]; local
102 if(readx(fd, buf, len)) break;
103 buf[len] = 0;
108 buf, cookie); local
H A Dframebuffer_service.c59 char buf[640]; local
167 for(i = 0; i < fbinfo.size; i += sizeof(buf)) {
168 if(readx(fd_screencap, buf, sizeof(buf))) goto done;
169 if(writex(fd, buf, sizeof(buf))) goto done;
171 if(readx(fd_screencap, buf, fbinfo.size % sizeof(buf))) goto done;
172 if(writex(fd, buf, fbinfo.size % sizeof(buf))) got
[all...]
H A Djdwp_service.c283 char buf[32]; local
286 int len = recv(socket, buf, sizeof(buf), 0);
H A Dlog_service.c31 void write_log_entry(int fd, struct logger_entry *buf);
45 unsigned char buf[LOGGER_ENTRY_MAX_LEN + 1] __attribute__((aligned(4))); local
46 struct logger_entry *entry = (struct logger_entry *) buf;
87 void write_log_entry(int fd, struct logger_entry *buf) argument
89 size_t size = sizeof(struct logger_entry) + buf->len;
91 writex(fd, buf, size);
H A Dremount_service.c41 char buf[4096]; local
47 buf[sizeof(buf) - 1] = '\0';
48 size = adb_read(fd, buf, sizeof(buf) - 1);
51 token = strtok(buf, delims);
H A Dservices.c81 unsigned char buf[4096]; local
93 if(readx(s, buf, xfer)) break;
94 if(writex(fd, buf, xfer)) break;
112 char buf[100]; local
116 snprintf(buf, sizeof(buf), "adbd is already running as root\n");
117 writex(fd, buf, strlen(buf));
122 snprintf(buf, sizeof(buf), "adb
137 char buf[100]; local
157 char buf[100]; local
167 char buf[100]; local
[all...]
H A Dsockets.c35 char buf[9]; local
39 snprintf(buf, sizeof buf, "FAIL%04x", len);
40 if(writex(fd, buf, 8)) return -1;
H A Dsysdeps.h115 extern int adb_read(int fd, void* buf, int len);
116 extern int adb_write(int fd, const void* buf, int len);
128 static __inline__ int unix_read(int fd, void* buf, size_t len) argument
130 return read(fd, buf, len);
135 static __inline__ int unix_write(int fd, const void* buf, size_t len) argument
137 return write(fd, buf, len);
358 static __inline__ int adb_read(int fd, void* buf, size_t len) argument
360 return read(fd, buf, len);
366 static __inline__ int adb_write(int fd, const void* buf, size_t len) argument
368 return write(fd, buf, le
[all...]
H A Dsysdeps_win32.c84 int (*_fh_read) ( FH f, void* buf, int len );
85 int (*_fh_write)( FH f, const void* buf, int len );
228 _fh_file_read( FH f, void* buf, int len ) argument
232 if ( !ReadFile( f->fh_handle, buf, (DWORD)len, &read_bytes, NULL ) ) {
243 _fh_file_write( FH f, const void* buf, int len ) argument
247 if ( !WriteFile( f->fh_handle, buf, (DWORD)len, &wrote_bytes, NULL ) ) {
402 int adb_read(int fd, void* buf, int len) argument
410 return f->clazz->_fh_read( f, buf, len );
414 int adb_write(int fd, const void* buf, int len) argument
422 return f->clazz->_fh_write(f, buf, le
514 _fh_socket_read( FH f, void* buf, int len ) argument
525 _fh_socket_write( FH f, const void* buf, int len ) argument
1142 _fh_socketpair_read( FH f, void* buf, int len ) argument
1159 _fh_socketpair_write( FH f, const void* buf, int len ) argument
[all...]
H A Dtest_track_devices.c17 unix_write( int fd, const char* buf, int len ) argument
21 int len2 = write(fd, buf, len);
29 buf += len2;
35 unix_read( int fd, char* buf, int len ) argument
39 int len2 = read(fd, buf, len);
47 buf += len2;
H A Dtest_track_jdwp.c17 unix_write( int fd, const char* buf, int len ) argument
21 int len2 = write(fd, buf, len);
29 buf += len2;
35 unix_read( int fd, char* buf, int len ) argument
39 int len2 = read(fd, buf, len);
47 buf += len2;
H A Dtransport.c895 static void add_qual(char **buf, size_t *buf_size, argument
901 if (!buf || !*buf || !buf_size || !*buf_size || !qual || !*qual)
904 len = snprintf(*buf, *buf_size, "%s%n%s", prefix, &prefix_len, qual);
908 for (cp = *buf + prefix_len; cp < *buf + len; cp++) {
915 *buf += len;
918 static size_t format_transport(atransport *t, char *buf, size_t bufsize, argument
926 return snprintf(buf, bufsize, "%s\t%s\n", serial, statename(t));
930 len = snprintf(buf, remainin
946 list_transports(char *buf, size_t bufsize, int long_listing) argument
[all...]
H A Dtransport_local.c111 char buf[64]; local
128 snprintf(buf, sizeof buf, "%s%d", LOCAL_CLIENT_PREFIX, console_port);
129 register_socket_transport(fd, buf, adb_port, 1);

Completed in 153 milliseconds

12345