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

1234567891011

/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/toolbox/upstream-netbsd/lib/libc/string/
H A Dswab.c48 swab(const void * __restrict from, void * __restrict to, ssize_t len) argument
54 if (len <= 1)
60 len /= 2;
65 if (__predict_false(len == 1)) {
71 while ((--len % 8) != 0)
73 len /= 8;
74 if (len == 0)
76 while (len-- != 0) {
/system/core/toolbox/upstream-netbsd/usr.bin/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 = 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.c30 struct sparse_file *sparse_file_new(unsigned int block_size, int64_t len) argument
44 s->len = len;
56 void *data, unsigned int len, unsigned int block)
58 return backed_block_add_data(s->backed_block_list, data, len, block);
62 uint32_t fill_val, unsigned int len, unsigned int block)
64 return backed_block_add_fill(s->backed_block_list, fill_val, len, block);
68 const char *filename, int64_t file_offset, unsigned int len,
72 len, block);
76 int fd, int64_t file_offset, unsigned int len, unsigne
55 sparse_file_add_data(struct sparse_file *s, void *data, unsigned int len, unsigned int block) argument
61 sparse_file_add_fill(struct sparse_file *s, uint32_t fill_val, unsigned int len, unsigned int block) argument
67 sparse_file_add_file(struct sparse_file *s, const char *filename, int64_t file_offset, unsigned int len, unsigned int block) argument
75 sparse_file_add_fd(struct sparse_file *s, int fd, int64_t file_offset, unsigned int len, unsigned int block) argument
172 sparse_file_callback(struct sparse_file *s, bool sparse, bool crc, int (*write)(void *priv, const void *data, int len), void *priv) argument
193 out_counter_write(void *priv, const void *data __unused, int len) argument
224 move_chunks_up_to_len(struct sparse_file *from, struct sparse_file *to, unsigned int len) argument
[all...]
/system/extras/ext4_utils/
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 Dwipe.h31 int wipe_block_device(int fd, s64 len);
H A Dextent.h23 void inode_allocate_extents(struct ext4_inode *inode, u64 len);
25 struct ext4_inode *inode, u64 len, const char *filename);
26 u8 *inode_allocate_data_extents(struct ext4_inode *inode, u64 len,
H A Dindirect.c42 u32 len; local
45 len = min(region_len * info.block_size, backing_len);
47 sparse_file_add_data(ext4_sparse_file, ptr, len, region_block);
48 ptr += len;
49 backing_len -= len;
55 static void reserve_indirect_block(struct block_allocation *alloc, int len) argument
62 if (advance_blocks(alloc, len)) {
63 error("failed to advance %d blocks", len);
68 static void reserve_dindirect_block(struct block_allocation *alloc, int len) argument
75 while (len >
85 reserve_tindirect_block(struct block_allocation *alloc, int len) argument
101 fill_indirect_block(u32 *ind_block, int len, struct block_allocation *alloc) argument
109 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
169 int len = min(*block_len, EXT4_NDIR_BLOCKS); local
192 int len = min(*block_len, aux_info.blocks_per_ind); local
224 int len = min(*block_len, aux_info.blocks_per_dind); local
256 int len = min(*block_len, aux_info.blocks_per_tind); local
281 reserve_all_indirect_blocks(struct block_allocation *alloc, u32 len) argument
313 indirect_blocks_needed(u32 len) argument
403 inode_allocate_indirect(struct ext4_inode *inode, unsigned long len) argument
488 inode_allocate_data_indirect(struct ext4_inode *inode, unsigned long len, unsigned long backing_len) argument
[all...]
H A Dwipe.c35 int wipe_block_device(int fd, s64 len) argument
46 range[1] = len;
50 range[1] = len;
70 int wipe_block_device(int fd, s64 len) argument
/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 = property_get(key, buf, ""); local
42 if (len == 1) {
49 } else if (len > 1) {
71 int len = property_get(key, buf, ""); local
72 if (len > 0) {
119 int len; local
121 len = __system_property_get(key, value);
122 if(len > 0) {
123 return len;
126 len
231 int len = -1; local
354 int len; local
388 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...]
H A Dgetsebool.c17 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/extras/f2fs_utils/
H A Dmake_f2fs.h26 int make_f2fs_sparse_fd(int fd, long long len,
/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.h39 void SHA_update(SHA_CTX* ctx, const void* data, int len);
44 const uint8_t* SHA_hash(const void* data, int len, uint8_t* digest);
H A Dsha256.h40 void SHA256_update(SHA256_CTX* ctx, const void* data, int len);
44 const uint8_t* SHA256_hash(const void* data, int len, uint8_t* digest);
/system/core/fastbootd/commands/
H A Dflash.h55 ssize_t len; local
57 while ((len = TEMP_FAILURE_RETRY(read(fd, (void *) &buffer[readcount], size - readcount))) > 0) {
58 readcount += len;
60 if (len < 0) {
62 return len;

Completed in 254 milliseconds

1234567891011