/system/bt/osi/src/ |
H A D | properties.cc | 26 int len = 0; local 27 if (!default_value) return len; 29 len = strlen(default_value); 30 if (len >= PROPERTY_VALUE_MAX) len = PROPERTY_VALUE_MAX - 1; 32 memcpy(value, default_value, len); 33 value[len] = '\0'; 34 return len;
|
/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/bt/bta/ag/ |
H A D | bta_ag_ci.cc | 44 void bta_ag_ci_rx_write(uint16_t handle, char* p_data, uint16_t len) { argument 45 uint16_t len_remaining = len; 48 if (len > (RFCOMM_DATA_BUF_SIZE - sizeof(tBTA_AG_CI_RX_WRITE) - 1)) 49 len = RFCOMM_DATA_BUF_SIZE - sizeof(tBTA_AG_CI_RX_WRITE) - 1; 52 if (len_remaining < len) len = len_remaining; 55 (tBTA_AG_CI_RX_WRITE*)osi_malloc(sizeof(tBTA_AG_CI_RX_WRITE) + len + 1); 60 strncpy(p_data_area, p_data, len); 61 p_data_area[len] = 0; 65 len_remaining -= len; [all...] |
/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/test/suite/rfcomm/ |
H A D | rfcomm_unittest.cc | 36 size_t len = 0; local 47 len = read(fd, &channel, sizeof(channel)); 48 EXPECT_TRUE(len == sizeof(channel)) 49 << "Channel not read from RFCOMM socket. Bytes read: " << len; 50 len = read(fd, &signal, sizeof(signal)); 51 EXPECT_TRUE(len == sizeof(signal)) 52 << "Connection signal not read from RFCOMM socket. Bytes read: " << len; 60 len = write(fd, HANDSHAKE_COMMAND, sizeof(HANDSHAKE_COMMAND)); 61 EXPECT_TRUE(len == sizeof(HANDSHAKE_COMMAND)) 62 << "Unable to send HFP handshake. Bytes written: " << len; 78 size_t len = 0; local [all...] |
/system/bt/stack/include/ |
H A D | advertise_data_parser.h | 33 uint8_t len = ad[position]; local 37 if (len == 0) return false; 41 if (position + len >= ad_len) { 45 position += len + 1; 60 uint8_t len = ad[position]; local 62 if (len == 0) break; 63 if (position + len >= ad_len) break; 69 *p_length = len - 1; /* minus the length of type */ 73 position += len + 1; /* skip the length of data */
|
/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 != 0) { 59 len--; 73 while (len != 0) { 74 len 109 strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len) argument 149 size_t len; local [all...] |
/system/bt/bta/include/ |
H A D | bta_ag_ci.h | 43 extern void bta_ag_ci_rx_write(uint16_t handle, char* p_data, uint16_t len); 68 extern void bta_ag_ci_wbs_command(uint16_t handle, char* p_data, uint16_t len);
|
/system/core/liblog/ |
H A D | uio.c | 30 int len = vecs->iov_len; local 32 while (len > 0) { 33 int ret = read(fd, buf, len); 42 len -= ret; 54 int len = vecs->iov_len; local 56 while (len > 0) { 57 int ret = write(fd, buf, len); 66 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 | 25 void inode_allocate_indirect(struct ext4_inode *inode, unsigned long len); 26 u8 *inode_allocate_data_indirect(struct ext4_inode *inode, unsigned long len,
|
H A D | extent.h | 25 void inode_allocate_extents(struct ext4_inode *inode, u64 len); 27 struct ext4_inode *inode, u64 len, const char *filename); 28 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(ext4_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 | 36 int wipe_block_device(int fd, s64 len) argument 47 range[1] = len; 51 range[1] = len; 71 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/extras/ext4_utils/include/ext4_utils/ |
H A D | make_ext4fs.h | 26 int make_ext4fs(const char *filename, long long len, 28 int make_ext4fs_directory_align(const char *filename, long long len, 32 int make_ext4fs_directory(const char *filename, long long len, 35 int make_ext4fs_sparse_fd(int fd, long long len, 37 int make_ext4fs_sparse_fd_directory(int fd, long long len, 40 int make_ext4fs_sparse_fd_align(int fd, long long len, 43 int make_ext4fs_sparse_fd_directory_align(int fd, long long len,
|
H A D | wipe.h | 35 int wipe_block_device(int fd, s64 len);
|
/system/core/logd/ |
H A D | LogKlog.cpp | 52 static char* is_prio(char* s, ssize_t len) { argument 53 if ((len <= 0) || !isdigit(*s++)) return nullptr; 54 --len; 55 static const size_t max_prio_len = (len < 4) ? len : 4; 65 static char* is_timestamp(char* s, ssize_t len) { argument 66 while ((len > 0) && (*s == ' ')) { 68 --len; 70 if ((len <= 0) || !isdigit(*s++)) return nullptr; 71 --len; 99 log_strntok_r(char* s, ssize_t& len, char*& last, ssize_t& sublen) argument 230 ssize_t len = 0; local 266 calculateCorrection(const log_time& monotonic, const char* real_string, ssize_t len) argument 296 sniffTime(log_time& now, const char*& buf, ssize_t len, bool reverse) argument 368 sniffPid(const char*& buf, ssize_t len) argument 415 parseKernelPrio(const char*& buf, ssize_t len) argument 436 synchronize(const char* buf, ssize_t len) argument 504 strnrchr(const char* s, ssize_t len, char c) argument 547 log(const char* buf, ssize_t len) argument [all...] |
/system/nfc/halimpl/pn54x/log/ |
H A D | phNxpLog.c | 56 int len = property_get(PROP_NAME_NXPLOG_GLOBAL_LOGLEVEL, valueStr, ""); local 57 if (len > 0) { 77 int len; local 86 len = property_get(PROP_NAME_NXPLOG_HAL_LOGLEVEL, valueStr, ""); 87 if (len > 0) { 105 int len; local 113 len = property_get(PROP_NAME_NXPLOG_EXTNS_LOGLEVEL, valueStr, ""); 114 if (len > 0) { 132 int len; local 140 len 159 int len; local 186 int len; local [all...] |
/system/bt/osi/test/ |
H A D | allocator_test.cc | 30 size_t len = strlen(str); local 33 // len == 0 38 // len == strlen(str) 39 copy_str = osi_strndup(str, len); 43 // len < strlen(str) 44 copy_str = osi_strndup(str, len - 5); 48 // len > strlen(str) 49 copy_str = osi_strndup(str, len + 5);
|
/system/core/adb/ |
H A D | adb_io.cpp | 52 unsigned long len = strtoul(buf, 0, 16); local 53 s->resize(len, '\0'); 54 if (!ReadFdExactly(fd, &(*s)[0], len)) { 70 bool ReadFdExactly(int fd, void* buf, size_t len) { argument 73 size_t len0 = len; 75 D("readx: fd=%d wanted=%zu", fd, len); 76 while (len > 0) { 77 int r = adb_read(fd, p, len); 79 len -= r; 91 VLOG(RWX) << "readx: fd=" << fd << " wanted=" << len0 << " got=" << (len0 - len) 97 WriteFdExactly(int fd, const void* buf, size_t len) argument 102 << " " << dump_hex(reinterpret_cast<const unsigned char*>(buf), len); local [all...] |
/system/extras/f2fs_utils/ |
H A D | make_f2fs.h | 26 int make_f2fs_sparse_fd(int fd, long long len,
|
/system/bt/btif/co/ |
H A D | bta_ag_co.cc | 86 uint16_t len) { 87 BTIF_TRACE_DEBUG("bta_ag_co_tx_write: handle: %d, len: %d", handle, len); 85 bta_ag_co_tx_write(uint16_t handle, UNUSED_ATTR uint8_t* p_data, uint16_t len) argument
|
/system/core/fastboot/ |
H A D | transport.h | 29 // Reads |len| bytes into |data|. Returns the number of bytes actually 31 virtual ssize_t Read(void* data, size_t len) = 0; 33 // Writes |len| bytes from |data|. Returns the number of bytes actually 35 virtual ssize_t Write(const void* data, size_t len) = 0;
|