/system/bt/bta/ag/ |
H A D | bta_ag_ci.c | 43 void bta_ag_ci_rx_write(UINT16 handle, char *p_data, UINT16 len) argument 46 UINT16 len_remaining = len; 49 if (len > (RFCOMM_DATA_POOL_BUF_SIZE - sizeof(tBTA_AG_CI_RX_WRITE) - 1)) 50 len = RFCOMM_DATA_POOL_BUF_SIZE - sizeof(tBTA_AG_CI_RX_WRITE) - 1; 54 if (len_remaining < len) 55 len = len_remaining; 57 if ((p_buf = (tBTA_AG_CI_RX_WRITE *) GKI_getbuf((UINT16)(sizeof(tBTA_AG_CI_RX_WRITE) + len + 1))) != NULL) 63 strncpy(p_data_area, p_data, len); 64 p_data_area[len] = 0; 68 APPL_TRACE_ERROR("ERROR: Unable to allocate buffer to hold AT response code. len [all...] |
/system/core/toolbox/upstream-netbsd/lib/libc/string/ |
H A D | swab.c | 48 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 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/bt/bta/include/ |
H A D | bta_ag_ci.h | 48 extern void bta_ag_ci_rx_write(UINT16 handle, char *p_data, UINT16 len); 74 extern void bta_ag_ci_wbs_command (UINT16 handle, char *p_data, UINT16 len);
|
/system/core/liblog/ |
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 = vecs->iov_len; local 57 while (len > 0) { 58 int ret = write( fd, buf, len ); 69 len -= ret;
|
/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
|
/system/extras/ext4_utils/ |
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 | make_ext4fs.h | 26 int make_ext4fs(const char *filename, long long len, 28 int make_ext4fs_sparse_fd(int fd, long long len,
|
H A D | wipe.h | 31 int wipe_block_device(int fd, s64 len);
|
H A D | extent.h | 23 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 D | indirect.c | 42 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 D | wipe.c | 35 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/bt/btif/include/ |
H A D | btif_sock_util.h | 34 int sock_send_fd(int sock_fd, const uint8_t* buffer, int len, int send_fd); 35 int sock_send_all(int sock_fd, const uint8_t* buf, int len); 36 int sock_recv_all(int sock_fd, uint8_t* buf, int len);
|
/system/core/libcutils/ |
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 | process_name.c | 49 int len = strlen(new_name); local 50 char* copy = (char*) malloc(len + 1); 55 if (len < 16) { 58 prctl(PR_SET_NAME, (unsigned long) new_name + len - 15, 0, 0, 0);
|
/system/core/adb/ |
H A D | adb_io.cpp | 46 bool ReadFdExactly(int fd, void* buf, size_t len) { argument 49 size_t len0 = len; 51 D("readx: fd=%d wanted=%zu\n", fd, len); 52 while (len > 0) { 53 int r = adb_read(fd, p, len); 55 len -= r; 67 D("readx: fd=%d wanted=%zu got=%zu\n", fd, len0, len0 - len); 75 bool WriteFdExactly(int fd, const void* buf, size_t len) { argument 79 D("writex: fd=%d len=%d: ", fd, (int)len); 81 dump_hex(reinterpret_cast<const unsigned char*>(buf), len); local [all...] |
H A D | test_track_devices.cpp | 41 int len = snprintf(buffer, sizeof(buffer), "%04zx%s", strlen(request), request); local 42 if (!android::base::WriteFully(s, buffer, len)) 58 int len; local 59 if (sscanf(head, "%04x", &len) != 1 ) 62 if (!android::base::ReadFully(s, buffer, len)) 65 printf( "received header %.*s (%d bytes):\n%.*s", 4, head, len, len, buffer );
|
/system/extras/f2fs_utils/ |
H A D | make_f2fs.h | 26 int make_f2fs_sparse_fd(int fd, long long len,
|
H A D | f2fs_ioutils.c | 91 size_t len; member in struct:buf_item 97 static int dev_write_fd(void *buf, __u64 offset, size_t len) argument 101 if (write(config.fd, buf, len) != len) 129 bi->len = byte_len; 150 int dev_read_version(void *buf, __u64 offset, size_t len) argument 155 int dev_read(void *buf, __u64 offset, size_t len) argument 160 int dev_write(void *buf, __u64 offset, size_t len) argument 163 return dev_write_fd(buf, offset, len); 165 return dev_write_sparse(buf, offset, len); 170 dev_fill(void *buf, __u64 offset, size_t len) argument [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 50 const int len,
|
H A D | sha.h | 39 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 D | sha256.h | 40 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);
|
H A D | hash-internal.h | 54 #define HASH_update(ctx, data, len) (ctx)->f->update(ctx, data, len) 56 #define HASH_hash(data, len, digest) (ctx)->f->hash(data, len, digest)
|
/system/bt/hci/include/ |
H A D | btsnoop_mem.h | 27 typedef void (*btsnoop_data_cb)(const uint16_t type, const uint8_t *p_data, const size_t len);
|