Searched defs:len (Results 1 - 25 of 158) sorted by path

1234567

/system/bluetooth/bluez-clean-headers/bluetooth/
H A Dl2cap.h77 uint16_t len; member in struct:__anon248
86 uint16_t len; member in struct:__anon249
144 uint8_t len; member in struct:__anon255
/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c553 dump(uchar *out, int len) argument
557 for (i = 0; i < len; i++) {
572 int len = 3; local
575 while ((count = read(fd, &buffer[i], len)) < len) {
577 len -= count;
581 len = buffer[2];
583 while ((count = read(fd, &buffer[i], len)) < len) {
585 len
597 hci_send_cmd(uchar *buf, int len) argument
632 int len; local
749 int len = 17; local
[all...]
/system/bluetooth/brfpatch/
H A Dbrfpatch.c54 static void dump_record(FILE *fpo, unsigned short opcode, unsigned char len, argument
60 fwrite(&len, 1, 1, fpo); // data length
61 fwrite(data, len, 1, fpo); // data
/system/bluetooth/tools/
H A Dasocket_test.c139 int len = 0; local
147 len = sizeof(local_addr_un);
151 len = sizeof(local_addr_rc);
155 len = sizeof(local_addr_sco);
159 len = sizeof(local_addr_l2);
163 len = sizeof(local_addr_in);
168 ret = bind(fd, addr, len);
201 int len; local
207 len = sizeof(remote_addr_un);
211 len
240 int len = 0; local
[all...]
H A Dpipetest.c72 static int _write(int fd, char *buf, int len) { argument
76 ret = write(fd, buf, len);
H A Dsock_shutdown_test.c121 int len = 0; local
129 len = sizeof(local_addr_un);
133 len = sizeof(local_addr_rc);
137 len = sizeof(local_addr_sco);
141 len = sizeof(local_addr_l2);
145 len = sizeof(local_addr_in);
150 ret = bind(fd, addr, len);
170 int len; local
176 len = sizeof(remote_addr_un);
180 len
[all...]
H A Dsocktest.c138 int len = 0; local
146 len = sizeof(local_addr_un);
150 len = sizeof(local_addr_rc);
154 len = sizeof(local_addr_sco);
158 len = sizeof(local_addr_l2);
162 len = sizeof(local_addr_in);
167 ret = bind(fd, addr, len);
200 int len; local
206 len = sizeof(remote_addr_un);
210 len
253 int len = 0; local
[all...]
/system/core/adb/
H A Dadb.c115 int len, tagn; local
121 len = q - p;
127 if (len == taglen && !memcmp(tags[tagn].tag, p, len) )
298 size_t len;
300 len = snprintf(buf, remaining, "%s::", adb_device_banner);
301 remaining -= len;
302 buf += len;
306 len = snprintf(buf, remaining, "%s=%s;", cnxn_props[i], value);
307 remaining -= len;
[all...]
H A Dadb.h63 unsigned len; member in struct:apacket
448 int usb_write(usb_handle *h, const void *data, int len);
449 int usb_read(usb_handle *h, void *data, int len);
H A Dadb_auth.h34 int adb_auth_get_userkey(unsigned char *data, size_t len);
38 static inline void adb_auth_confirm_key(unsigned char *data, size_t len, atransport *t) { } argument
45 static inline int adb_auth_get_userkey(unsigned char *data, size_t len) { return 0; } argument
49 void adb_auth_confirm_key(unsigned char *data, size_t len, atransport *t);
H A Dadb_auth_client.c82 if (key->key.len != RSANUMWORDS) {
83 D("%s: Invalid key len %d\n", file, key->key.len);
175 void adb_auth_confirm_key(unsigned char *key, size_t len, atransport *t) argument
185 if (key[len - 1] != '\0') {
H A Dadb_auth_host.c88 pkey->len = RSANUMWORDS;
110 static void get_user_info(char *buf, size_t len) argument
127 ret = snprintf(buf, len, " %s@%s", username, hostname);
128 if (ret >= (signed)len)
129 buf[len - 1] = '\0';
260 static int get_user_keyfilepath(char *filename, size_t len) argument
293 return snprintf(filename, len, format, android_dir, ADB_KEY_FILE);
348 unsigned int len; local
351 if (!RSA_sign(NID_sha1, token, token_size, sig, &len, key->rsa)) {
355 D("adb_auth_sign len
381 adb_auth_get_userkey(unsigned char *data, size_t len) argument
[all...]
H A Dadb_client.c90 int len; local
115 len = strlen(service);
116 snprintf(tmp, sizeof tmp, "%04x", len);
118 if(writex(fd, tmp, 4) || writex(fd, service, len)) {
137 unsigned len; local
156 strcpy(__adb_error, "protocol fault (status len)");
160 len = strtoul((char*)buf, 0, 16);
161 if(len > 255) len = 255;
162 if(readx(fd, __adb_error, len)) {
173 int len; local
[all...]
H A Dcommandline.c230 int len; local
234 len = adb_read(fd, buf, 4096);
235 D("read_and_dump(): post adb_read(fd=%d): len=%d\n", fd, len);
236 if(len == 0) {
240 if(len < 0) {
244 fwrite(buf, 1, len, stdout);
252 int len; local
257 len = adb_read(inFd, buf, BUFSIZE);
258 if (len
[all...]
H A Dfile_sync_client.c81 int len; local
83 len = strlen(path);
84 if(len > 1024) goto fail;
87 msg.req.namelen = htoll(len);
90 writex(fd, path, len)) {
99 len = ltohl(msg.dent.namelen);
100 if(len > 256) break;
102 if(readx(fd, buf, len)) break;
103 buf[len] = 0;
129 int len local
154 int len = strlen(path); local
188 int len = strlen(path); local
275 int len, ret; local
301 int len, r; local
444 int len; local
[all...]
H A Dfile_sync_service.c82 int len; local
87 len = strlen(path);
88 memcpy(tmp, path, len);
89 tmp[len] = '/';
90 fname = tmp + len + 1;
98 int len = strlen(de->d_name); local
102 if(len > 256) continue;
109 msg.dent.namelen = htoll(len);
112 writex(s, de->d_name, len)) {
132 int len local
172 unsigned int len; local
230 unsigned int len; local
[all...]
H A Djdwp_service.c129 int len; local
135 len = snprintf(p, end-p, "%d\n", proc->pid);
136 if (p + len >= end)
138 p += len;
149 int len = jdwp_process_list( buffer+4, bufferlen-4 ); local
150 snprintf(head, sizeof head, "%04x", len);
152 return len + 4;
246 int len = recv( socket, p, size, 0 ); local
247 if (len < 0) {
258 if (len
286 int len = recv(socket, buf, sizeof(buf), 0); local
639 int len; local
[all...]
H A Dsockets.c36 int len; local
37 len = strlen(reason);
38 if(len > 0xffff) len = 0xffff;
39 snprintf(buf, sizeof buf, "FAIL%04x", len);
41 return writex(fd, reason, len);
132 D("LS(%d): enqueue %d\n", s->id, p->len);
147 while(p->len > 0) {
148 int r = adb_write(s->fd, p->ptr, p->len);
150 p->len
545 int len = strlen(destination) + 1; local
581 unhex(unsigned char *s, int len) argument
614 const size_t len; member in struct:prefix_struct
657 unsigned len; local
[all...]
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, len);
[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 )
232 if ( !ReadFile( f->fh_handle, buf, (DWORD)len, &read_bytes, NULL ) ) {
233 D( "adb_read: could not read %d bytes from %s\n", len, f->name );
236 } else if (read_bytes < (DWORD)len) {
243 _fh_file_write( FH f, const void* buf, int len )
247 if ( !WriteFile( f->fh_handle, buf, (DWORD)len, &wrote_bytes, NULL ) ) {
248 D( "adb_file_write: could not write %d bytes from %s\n", len, f->name );
251 } else if (wrote_bytes < (DWORD)len) {
402 adb_read(int fd, void* buf, int len) argument
414 adb_write(int fd, const void* buf, int len) argument
[all...]
H A Dtest_track_devices.c17 unix_write( int fd, const char* buf, int len )
20 while (len > 0) {
21 int len2 = write(fd, buf, len);
28 len -= len2;
35 unix_read( int fd, char* buf, int len )
38 while (len > 0) {
39 int len2 = read(fd, buf, len);
46 len -= len2;
59 int len; local
71 len
[all...]
H A Dtest_track_jdwp.c17 unix_write( int fd, const char* buf, int len )
20 while (len > 0) {
21 int len2 = write(fd, buf, len);
28 len -= len2;
35 unix_read( int fd, char* buf, int len )
38 while (len > 0) {
39 int len2 = read(fd, buf, len);
46 len -= len2;
59 int len; local
71 len
[all...]
H A Dtransport.c39 static void dump_hex( const unsigned char* ptr, size_t len )
41 int nn, len2 = len;
101 int len = p->msg.data_length; local
130 D("%s: %s: [%s] arg0=%s arg1=%s (len=%d) ",
131 name, func, cmd, arg0, arg1, len);
132 dump_hex(p->data, len);
141 int len = sizeof(*ppacket); local
147 while(len > 0) {
148 r = adb_read(fd, p, len);
150 len
171 int r, len = sizeof(ppacket); local
371 int len; local
460 int len; local
495 int len; local
526 int len = sizeof(*m); local
548 int len = sizeof(*m); local
898 size_t len; local
928 size_t len, remaining = bufsize; local
950 int len; local
1094 readx(int fd, void *ptr, size_t len) argument
1126 writex(int fd, const void *ptr, size_t len) argument
[all...]
H A Dusb_libusb.c100 usb_bulk_write(usb_handle *uh, const void *data, int len) argument
105 r = libusb_bulk_transfer(uh->devh, uh->end_point_address[1], (void *)data, len,
118 usb_bulk_read(usb_handle *uh, void *data, int len) argument
123 r = libusb_bulk_transfer(uh->devh, uh->end_point_address[0], data, len,
136 usb_write(struct usb_handle *uh, const void *_data, int len) argument
143 if (!(len & uh->zero_mask)) {
148 D("usb_write(): %p:%d -> transport %p\n", _data, len, uh);
150 while (len > 0) {
151 int xfer = (len > 4096) ? 4096 : len;
177 usb_read(struct usb_handle *uh, void *_data, int len) argument
[all...]
H A Dusb_linux.c311 static int usb_bulk_write(usb_handle *h, const void *data, int len) argument
323 urb->buffer_length = len;
364 static int usb_bulk_read(usb_handle *h, void *data, int len) argument
375 urb->buffer_length = len;
436 int usb_write(usb_handle *h, const void *_data, int len) argument
447 if(!(len & h->zero_mask)) {
452 while(len > 0) {
453 int xfer = (len > 4096) ? 4096 : len;
462 len
474 usb_read(usb_handle *h, void *_data, int len) argument
[all...]

Completed in 139 milliseconds

1234567