Searched refs:len (Results 1 - 25 of 227) sorted by relevance

12345678910

/system/core/adb/
H A Dtransport.h24 int readx(int fd, void *ptr, size_t len);
25 int writex(int fd, const void *ptr, size_t len);
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...]
/system/core/liblinenoise/
H A Dlinenoise.h39 int linenoiseHistorySetMaxLen(int len);
H A Dlinenoise.c187 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 Dwipe.h22 int wipe_block_device(int fd, s64 len);
H A Dindirect.h22 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 Dmake_ext4fs.h26 int make_ext4fs(const char *filename, long long len,
28 int make_ext4fs_sparse_fd(int fd, long long len,
H A Dextent.h23 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 Dindirect.c44 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 Dwipe.c33 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/toolbox/grep/
H A Dfastgrep.c63 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/liblog/
H A Duio.c28 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;
/system/core/libsparse/
H A Doutput_file.h24 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 Dsparse_file.h24 int64_t len; member in struct:sparse_file
H A Dsparse.c29 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 Dread.c29 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/libcutils/
H A Dstrdup16to8.c29 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 Dproperties.c41 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;
150 int len = -1; local
159 len = strlen(value);
161 return len;
273 int len; local
307 int len; local
[all...]
/system/core/fastbootd/
H A Dtransport.h31 ssize_t (*read)(struct transport_handle *thandle, void *data, size_t len);
32 ssize_t (*write)(struct transport_handle *thandle, const void *data, size_t len);
38 ssize_t transport_handle_write(struct transport_handle *handle, char *buffer, size_t len);
39 int transport_handle_download(struct transport_handle *handle, size_t len);
/system/core/toolbox/
H A Dsendevent.c25 #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/libutils/
H A DString8.cpp78 static char* allocFromUTF8(const char* in, size_t len) argument
80 if (len > 0) {
81 SharedBuffer* buf = SharedBuffer::alloc(len+1);
85 memcpy(str, in, len);
86 str[len] = 0;
95 static char* allocFromUTF16(const char16_t* in, size_t len) argument
97 if (len == 0) return getEmptyString();
99 const ssize_t bytes = utf16_to_utf8_length(in, len);
111 utf16_to_utf8(in, len, str);
115 static char* allocFromUTF32(const char32_t* in, size_t len) argument
172 String8(const char* o, size_t len) argument
190 String8(const char16_t* o, size_t len) argument
200 String8(const char32_t* o, size_t len) argument
251 setTo(const char* other, size_t len) argument
262 setTo(const char16_t* other, size_t len) argument
273 setTo(const char32_t* other, size_t len) argument
393 size_t len = size(); local
409 const size_t len = size(); local
433 const size_t len = size(); local
473 setPathName(const char* name, size_t len) argument
596 size_t len = length(); local
627 size_t len = length(); local
[all...]
/system/core/include/mincrypt/
H A Drsa.h41 int len; /* Length of n[] in number of uint32_t */ member in struct:RSAPublicKey
50 const int len,
H A Dsha.h17 void SHA_update(SHA_CTX* ctx, const void* data, int len);
22 const uint8_t* SHA_hash(const void* data, int len, uint8_t* digest);
H A Dsha256.h17 void SHA256_update(SHA256_CTX* ctx, const void* data, int len);
21 const uint8_t* SHA256_hash(const void* data, int len, uint8_t* digest);

Completed in 216 milliseconds

12345678910