/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...] |
H A D | adb_auth.h | 34 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);
|
/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 | 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 | 44 u32 len; local 47 len = min(region_len * info.block_size, backing_len); 49 sparse_file_add_data(info.sparse_file, ptr, len, region_block); 50 ptr += len; 51 backing_len -= len; 57 static void reserve_indirect_block(struct block_allocation *alloc, int len) argument 64 if (advance_blocks(alloc, len)) { 65 error("failed to advance %d blocks", len); 70 static void reserve_dindirect_block(struct block_allocation *alloc, int len) argument 77 while (len > 87 reserve_tindirect_block(struct block_allocation *alloc, int len) argument 103 fill_indirect_block(u32 *ind_block, int len, struct block_allocation *alloc) argument 111 fill_dindirect_block(u32 *dind_block, int len, struct block_allocation *alloc) argument 141 fill_tindirect_block(u32 *tind_block, int len, struct block_allocation *alloc) argument 171 int len = min(*block_len, EXT4_NDIR_BLOCKS); local 194 int len = min(*block_len, aux_info.blocks_per_ind); local 226 int len = min(*block_len, aux_info.blocks_per_dind); local 258 int len = min(*block_len, aux_info.blocks_per_tind); local 283 reserve_all_indirect_blocks(struct block_allocation *alloc, u32 len) argument 315 indirect_blocks_needed(u32 len) argument 405 inode_allocate_indirect(struct ext4_inode *inode, unsigned long len) argument 490 inode_allocate_data_indirect(struct ext4_inode *inode, unsigned long len, unsigned long backing_len) argument [all...] |
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
|
/system/core/libmincrypt/ |
H A D | rsa.c | 32 const int len, 37 const int len, 42 const int len, 46 return RSA_e_3_verify(key, signature, len, sha); 49 return RSA_e_f4_verify(key, signature, len, sha); 40 RSA_verify(const RSAPublicKey *key, const uint8_t *signature, const int len, const uint8_t *sha) argument
|
H A D | rsa_e_f4.c | 36 for (i = 0; i < key->len; ++i) { 47 for (i = key->len; i;) { 65 for (i = 1; i < key->len; ++i) { 86 for (i = 0; i < key->len; ++i) { 89 for (i = 0; i < key->len; ++i) { 105 for (i = 0; i < key->len; ++i) { 107 (inout[((key->len - 1 - i) * 4) + 0] << 24) | 108 (inout[((key->len - 1 - i) * 4) + 1] << 16) | 109 (inout[((key->len - 1 - i) * 4) + 2] << 8) | 110 (inout[((key->len 155 RSA_e_f4_verify(const RSAPublicKey* key, const uint8_t* signature, const int len, const uint8_t* sha) argument [all...] |
/system/core/toolbox/grep/ |
H A D | fastgrep.c | 63 fg->len = strlen(pat); 72 fg->qsBc[i] = fg->len; 73 for (i = 1; i < fg->len; i++) 74 fg->qsBc[fg->pattern[i]] = fg->len - i; 91 fg->len = strlen(pat); 98 if (fg->len > 0 && pat[fg->len - 1] == '$') { 100 fg->len--; 106 fg->len--; 110 if (fg->len > 205 grep_search(fastgrep_t *fg, const unsigned char *data, size_t len, regmatch_t *pmatch) argument 281 grep_cmp(const unsigned char *pat, const unsigned char *data, size_t len) argument 326 grep_revstr(unsigned char *str, int len) argument [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...] |
/system/core/libsparse/ |
H A D | output_file.h | 24 struct output_file *output_file_open_fd(int fd, unsigned int block_size, int64_t len, 27 void *priv, unsigned int block_size, int64_t len, int gz, int sparse, 29 int write_data_chunk(struct output_file *out, unsigned int len, void *data); 30 int write_fill_chunk(struct output_file *out, unsigned int len, 32 int write_file_chunk(struct output_file *out, unsigned int len, 34 int write_fd_chunk(struct output_file *out, unsigned int len, 36 int write_skip_chunk(struct output_file *out, int64_t len); 39 int read_all(int fd, void *buf, size_t len);
|
H A D | sparse_file.h | 24 int64_t len; member in struct:sparse_file
|
H A D | sparse.c | 29 struct sparse_file *sparse_file_new(unsigned int block_size, int64_t len) argument 43 s->len = len; 55 void *data, unsigned int len, unsigned int block) 57 return backed_block_add_data(s->backed_block_list, data, len, block); 61 uint32_t fill_val, unsigned int len, unsigned int block) 63 return backed_block_add_fill(s->backed_block_list, fill_val, len, block); 67 const char *filename, int64_t file_offset, unsigned int len, 71 len, block); 75 int fd, int64_t file_offset, unsigned int len, unsigne 54 sparse_file_add_data(struct sparse_file *s, void *data, unsigned int len, unsigned int block) argument 60 sparse_file_add_fill(struct sparse_file *s, uint32_t fill_val, unsigned int len, unsigned int block) argument 66 sparse_file_add_file(struct sparse_file *s, const char *filename, int64_t file_offset, unsigned int len, unsigned int block) argument 74 sparse_file_add_fd(struct sparse_file *s, int fd, int64_t file_offset, unsigned int len, unsigned int block) argument 171 sparse_file_callback(struct sparse_file *s, bool sparse, bool crc, int (*write)(void *priv, const void *data, int len), void *priv) argument 192 out_counter_write(void *priv, const void *data, int len) argument 223 move_chunks_up_to_len(struct sparse_file *from, struct sparse_file *to, unsigned int len) argument [all...] |
/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/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...] |
H A D | getsebool.c | 17 int i, get_all = 0, rc = 0, active, pending, len = 0, opt; local 31 rc = security_get_boolean_names(&names, &len); 38 if (!len) { 53 if (!len) { 56 len = argc - 1; 57 names = malloc(sizeof(char *) * len); 62 for (i = 0; i < len; i++) { 72 for (i = 0; i < len; i++) { 100 for (i = 0; i < len; i++)
|
/system/core/include/mincrypt/ |
H A D | rsa.h | 41 int len; /* Length of n[] in number of uint32_t */ member in struct:RSAPublicKey 50 const int len,
|
/system/core/libcorkscrew/ |
H A D | demangle.c | 24 extern char *__cxa_demangle (const char *mangled, char *buf, size_t *len,
|