/system/core/adb/ |
H A D | transport.h | 24 int readx(int fd, void *ptr, size_t len); 25 int writex(int fd, const void *ptr, size_t len);
|
H A D | test_track_devices.c | 17 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 D | test_track_jdwp.c | 17 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...] |
/system/core/liblinenoise/ |
H A D | linenoise.h | 39 int linenoiseHistorySetMaxLen(int len);
|
H A D | linenoise.c | 187 static void refreshLine(int fd, const char *prompt, char *buf, size_t len, size_t pos, size_t cols) { argument 193 len--; 196 while (plen+len > cols) { 197 len--; 205 if (write(fd,buf,len) == -1) return; 217 size_t len = 0; local 235 if (nread <= 0) return len; 240 return len; 243 return (len == 0) ? -1 : (int)len; 392 size_t len; local 431 linenoiseHistorySetMaxLen(int len) argument [all...] |
/system/extras/ext4_utils/ |
H A D | wipe.h | 20 int wipe_block_device(int fd, s64 len);
|
H A D | backed_block.h | 23 typedef void (*data_block_callback_t)(void *priv, u64 off, u8 *data, int len); 24 typedef void (*data_block_fill_callback_t)(void *priv, u64 off, u32 fill_val, int len); 27 int len); 29 void queue_data_block(u8 *data, u32 len, u32 block); 30 void queue_fill_block(u32 fill_val, u32 len, u32 block); 31 void queue_data_file(const char *filename, off64_t offset, u32 len,
|
H A D | indirect.h | 22 void inode_allocate_indirect(struct ext4_inode *inode, unsigned long len); 23 u8 *inode_allocate_data_indirect(struct ext4_inode *inode, unsigned long len,
|
H A D | extent.h | 23 void inode_allocate_extents(struct ext4_inode *inode, u64 len); 24 void inode_allocate_file_extents(struct ext4_inode *inode, u64 len, 26 u8 *inode_allocate_data_extents(struct ext4_inode *inode, u64 len,
|
H A D | indirect.c | 43 u32 len; local 46 len = min(region_len * info.block_size, backing_len); 48 queue_data_block(ptr, len, region_block); 49 ptr += len; 50 backing_len -= len; 56 static void reserve_indirect_block(struct block_allocation *alloc, int len) argument 63 if (advance_blocks(alloc, len)) { 64 error("failed to advance %d blocks", len); 69 static void reserve_dindirect_block(struct block_allocation *alloc, int len) argument 76 while (len > 86 reserve_tindirect_block(struct block_allocation *alloc, int len) argument 102 fill_indirect_block(u32 *ind_block, int len, struct block_allocation *alloc) argument 110 fill_dindirect_block(u32 *dind_block, int len, struct block_allocation *alloc) argument 139 fill_tindirect_block(u32 *tind_block, int len, struct block_allocation *alloc) argument 168 int len = min(*block_len, EXT4_NDIR_BLOCKS); local 191 int len = min(*block_len, aux_info.blocks_per_ind); local 222 int len = min(*block_len, aux_info.blocks_per_dind); local 253 int len = min(*block_len, aux_info.blocks_per_tind); local 277 reserve_all_indirect_blocks(struct block_allocation *alloc, u32 len) argument 309 indirect_blocks_needed(u32 len) argument 399 inode_allocate_indirect(struct ext4_inode *inode, unsigned long len) argument 483 inode_allocate_data_indirect(struct ext4_inode *inode, unsigned long len, unsigned long backing_len) argument [all...] |
H A D | output_file.h | 24 void write_data_block(struct output_file *out, u64 off, u8 *data, int len); 25 void write_fill_block(struct output_file *out, u64 off, u32 fill_val, int len); 27 off64_t offset, int len); 28 void pad_output_file(struct output_file *out, u64 len);
|
H A D | wipe.c | 33 int wipe_block_device(int fd, s64 len) argument 39 range[1] = len; 43 range[1] = len; 57 int wipe_block_device(int fd, s64 len) argument
|
H A D | output_file.c | 71 static int file_write(struct output_file *out, u8 *data, int len) argument 74 ret = write(out->fd, data, len); 78 } else if (ret < len) { 110 static int gz_file_write(struct output_file *out, u8 *data, int len) argument 113 ret = gzwrite(out->gz_fd, data, len); 117 } else if (ret < len) { 178 static int write_chunk_fill(struct output_file *out, u64 off, u32 fill_val, int len) argument 193 //DBG printf("write chunk: offset 0x%llx, length 0x%x bytes\n", off, len); 217 rnd_up_len = (len + (info.block_size - 1)) & (~(info.block_size -1)); 251 static int write_chunk_raw(struct output_file *out, u64 off, u8 *data, int len) argument 409 pad_output_file(struct output_file *out, u64 len) argument 446 write_data_block(struct output_file *out, u64 off, u8 *data, int len) argument 470 write_fill_block(struct output_file *out, u64 off, u32 fill_val, int len) argument 508 write_data_file(struct output_file *out, u64 off, const char *file, off64_t offset, int len) argument [all...] |
H A D | contents.c | 31 u32 len = 24; local 37 if (len % info.block_size + dentry_len > info.block_size) 38 len += info.block_size - (len % info.block_size); 39 len += dentry_len; 43 if (len % info.block_size + 8 > info.block_size) 44 len += info.block_size - (len % info.block_size); 45 len += 8; 47 return len; 91 u32 len; local 168 make_file(const char *filename, u64 len) argument 200 u32 len = strlen(link); local [all...] |
/system/core/libcutils/ |
H A D | uio.c | 28 int len = vecs->iov_len; local 30 while (len > 0) { 31 int ret = read( fd, buf, len ); 42 len -= ret; 55 int len = (int)vecs->iov_len; local 57 while (len > 0) { 58 int ret = write( fd, buf, len ); 69 len -= ret;
|
H A D | strdup16to8.c | 29 extern size_t strnlen16to8(const char16_t* utf16Str, size_t len) argument 34 * potentially be as big as 3*len, which will overflow 35 * for len > SIZE_MAX/3. 43 * dst = malloc(strnlen16to8(utf16,len)+1) 55 /* Fast path for the usual case where 3*len is < SIZE_MAX-1. 57 if (len < (SIZE_MAX-1)/3) { 58 while (len--) { 72 while (len--) { 102 * not just "len". 107 extern char* strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len) argument 146 size_t len; local [all...] |
H A D | properties.c | 41 int len; local 43 len = __system_property_get(key, value); 44 if(len > 0) { 45 return len; 49 len = strlen(default_value); 50 memcpy(value, default_value, len + 1); 52 return len; 141 int len = -1; local 150 len = strlen(value); 152 return len; 264 int len; local 298 int len; local [all...] |
H A D | process_name.c | 42 int len = strlen(new_name); local 43 char* copy = (char*) malloc(len + 1); 48 if (len < 16) { 51 prctl(PR_SET_NAME, (unsigned long) new_name + len - 15, 0, 0, 0);
|
/system/extras/fatblock/ |
H A D | read.c | 29 offset_t off, offset_t len) 35 memset(out, 0, len); 39 if (off + len > buf_len) { 40 memset(out + (buf_len - off), 0, len - (buf_len - off)); 41 len = buf_len - off; 45 assert(off + len <= buf_len); 47 memcpy(out, buf + off, len); 72 static int file_read(struct file *f, char *buf, offset_t off, offset_t len) argument 84 f->path, off, len); 88 if (off + len > UINT32_MA 28 buffer_read(char *buf, offset_t buf_len, char *out, offset_t off, offset_t len) argument 126 dir_read(struct dir *d, char *buf, offset_t off, offset_t len) argument 134 extent_read(struct fs *fs, struct extent *e, char *buf, offset_t off, offset_t len) argument 161 fs_read(struct fs *fs, char *buf, offset_t start, offset_t len) argument [all...] |
/system/media/wilhelm/tools/mphtogen/ |
H A D | mphtogen.c | 31 unsigned len = 0; local 33 if (len > 0) { 35 ++len; 37 if (len > 78) { 39 len = 0; 42 len += 3; 44 if (len > 0) {
|
/system/core/nexus/ |
H A D | SupplicantEventFactory.cpp | 48 SupplicantEvent *SupplicantEventFactory::createEvent(char *event, size_t len) { argument 75 len); 80 return new SupplicantAssociatedEvent(level, event + 16, len); 82 return new SupplicantAssociatingEvent(level, event + 25, len); 86 len); 90 len); 94 len); 97 return new SupplicantDisconnectedEvent(level, event, len); 100 return new SupplicantTerminatingEvent(event, len); 102 return new SupplicantPasswordChangedEvent(event, len); [all...] |
H A D | Supplicant.cpp | 141 size_t len = 4096; local 143 if (!(reply = (char *) malloc(len))) { 148 if (sendCommand("STATUS", reply, &len)) { 153 SupplicantStatus *ss = SupplicantStatus::createStatus(reply, len); 165 size_t len = 4096; local 167 if (!(reply = (char *) malloc(len))) { 172 if (sendCommand("LIST_NETWORKS", reply, &len)) { 279 size_t len = sizeof(reply); local 282 reply, &len)) { 292 size_t len local 303 size_t len = sizeof(reply); local 325 size_t len = sizeof(reply); local 351 size_t len = sizeof(reply); local 364 size_t len = sizeof(reply); local 376 size_t len = sizeof(reply) -1; local 400 size_t len = sizeof(reply) -1; local 497 size_t len = sizeof(reply) -1; local 518 size_t len = max - 1; local 539 size_t len = sizeof(reply) -1; local 549 size_t len; local 568 size_t len; local 587 size_t len; local 599 size_t len; local 614 size_t len = sizeof(reply) -1; local 628 size_t len = sizeof(reply) -1; local 638 size_t len = sizeof(reply) -1; local 651 size_t len; local 663 size_t len; local [all...] |
/system/core/toolbox/ |
H A D | sendevent.c | 25 #define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len) /* get device name */ 26 #define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len) /* get physical location */ 27 #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) /* get unique identifier */ 29 #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) /* get global keystate */ 30 #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) /* ge [all...] |
/system/core/include/mincrypt/ |
H A D | rsa.h | 41 int len; /* Length of n[] in number of uint32_t */ member in struct:RSAPublicKey 49 const int len,
|
/system/media/wilhelm/tools/hashgen/ |
H A D | part6.c | 5 static const unsigned len = sizeof(struct SLInterfaceID_);
|