Searched defs:len (Results 101 - 125 of 158) sorted by relevance

1234567

/system/security/softkeymaster/
H A Dkeymaster_openssl.cpp316 int len = i2d_PUBKEY(pkey.get(), NULL); local
317 if (len <= 0) {
322 UniquePtr<uint8_t> key(static_cast<uint8_t*>(malloc(len)));
329 if (i2d_PUBKEY(pkey.get(), &tmp) != len) {
334 ALOGV("Length of x509 data is %d", len);
335 *x509_data_length = len;
/system/vold/
H A DCommandListener.cpp60 unsigned int len = strlen(argv[i]) + 1; // Account for space local
62 len += 2; // Account for {}
64 if (((p - buffer) + len) < (sizeof(buffer)-1)) {
/system/core/adb/
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 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_osx.c452 int usb_write(usb_handle *handle, const void *buf, int len) argument
456 if (!len)
474 handle->interface, handle->bulkOut, (void *)buf, len);
478 if(!(len & handle->zero_mask)) {
492 int usb_read(usb_handle *handle, void *buf, int len) argument
495 UInt32 numBytes = len;
497 if (!len) {
H A Dusb_vendors.c196 int get_adb_usb_ini(char* buff, size_t len);
245 int build_path(char* buff, size_t len, const char* format, const char* home) argument
247 if (snprintf(buff, len, format, home, ANDROID_PATH, ANDROID_ADB_INI) >= (signed)len) {
255 int get_adb_usb_ini(char* buff, size_t len) argument
260 return build_path(buff, len, "%s\\%s\\%s", home);
264 return build_path(buff, len, "%s\\%s\\%s", path);
271 return build_path(buff, len, "%s/%s/%s", home);
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 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 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...]
/system/core/debuggerd/
H A Ddebuggerd.c60 int len; local
64 len = strlen(string);
67 amt = write(fd, string, len);
171 size_t len = strlen(line); local
172 if (len > 6 && !memcmp(line, "Tgid:\t", 6)) {
175 } else if (len > 5 && !memcmp(line, "Uid:\t", 5)) {
178 } else if (len > 5 && !memcmp(line, "Gid:\t", 5)) {
189 int len = sizeof(cr); local
190 int status = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len);
/system/core/fs_mgr/
H A Dfs_mgr.c234 int len; local
252 len = strlen(line);
253 if (line[len - 1] == '\n') {
254 line[len - 1] = '\0';
279 len = strlen(line);
280 if (line[len - 1] == '\n') {
281 line[len - 1] = '\0';
417 int len; local
419 len = strlen(n) - 1;
420 while ((*(n + len)
[all...]
/system/core/include/private/
H A Dandroid_filesystem_config.h240 int len = strlen(pc->prefix); local
242 if(plen < len) continue;
243 if(!strncmp(pc->prefix, path, len)) break;
247 if (pc->prefix[len -1] == '*') {
248 if(!strncmp(pc->prefix, path, len - 1)) break;
249 } else if (plen == len){
250 if(!strncmp(pc->prefix, path, len)) break;
/system/core/init/
H A Dbootchart.c50 unix_read(int fd, void* buff, int len) argument
53 do { ret = read(fd, buff, len); } while (ret < 0 && errno == EINTR);
58 unix_write(int fd, const void* buff, int len) argument
61 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR);
68 int len = 0; local
71 len = unix_read(fd, buff, buffsize-1);
74 buff[len > 0 ? len : 0] = 0;
75 return len;
94 file_buff_write( FileBuff buff, const void* src, int len )
188 int fd, ret, len; local
198 int len; local
257 int len; local
[all...]
H A Dproperty_service.c194 static void update_prop_info(prop_info *pi, const char *value, unsigned len) argument
197 memcpy(pi->value, value, len + 1);
198 pi->serial = (len << 24) | ((pi->serial + 1) & 0xffffff);
/system/core/libnetutils/
H A Ddhcpclient.c166 int decode_dhcp_msg(dhcp_msg *msg, int len, dhcp_info *info) argument
173 if (len < (DHCP_MSG_FIXED_SIZE + 4)) return -1;
175 len -= (DHCP_MSG_FIXED_SIZE + 4);
184 while (len > 2) {
187 len--;
194 len -= 2;
195 if (optlen > len) {
229 len -= optlen;
239 static void hex2str(char *buf, const unsigned char *array, int len) argument
244 for (i = 0; i < len;
249 dump_dhcp_msg(dhcp_msg *msg, int len) argument
[all...]
/system/core/sh/
H A Dexec.c297 int len; local
303 len = p - start + strlen(name) + 2; /* "2" is for '/' and '\0' */
304 while (stackblocksize() < len)
322 return stalloc(len);
/system/extras/atrace/
H A Datrace.c118 ssize_t len = strlen(str); local
119 if (write(fd, str, len) != len) {
250 int len; local
/system/extras/ext4_utils/
H A Dext4_utils.h107 s64 len; /* If set to 0, ask the block device for the size, member in struct:fs_info
H A Dmake_ext4fs.c242 u32 journal_blocks = DIV_ROUND_UP(info.len, info.block_size) / 64;
257 return DIV_ROUND_UP(info.len, info.block_size) / 4;
262 u32 blocks = DIV_ROUND_UP(info.len, info.block_size);
277 u32 blocks = DIV_ROUND_UP(info.len, info.block_size);
304 int make_ext4fs(const char *filename, s64 len, argument
311 info.len = len;
335 if (info.len <= 0)
336 info.len = get_file_size(fd);
338 if (info.len <
[all...]
/system/extras/tests/sdcard/
H A Dsysutil.cpp160 const size_t len = strlen(start); local
161 size_t size = len;
195 filename, size, len);
197 return len - size;
/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/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 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...]

Completed in 237 milliseconds

1234567