/system/bt/osi/test/ |
H A D | allocator_test.cpp | 32 size_t len = strlen(str); local 35 // len == 0 40 // len == strlen(str) 41 copy_str = osi_strndup(str, len); 45 // len < strlen(str) 46 copy_str = osi_strndup(str, len - 5); 50 // len > strlen(str) 51 copy_str = osi_strndup(str, len + 5);
|
/system/bt/osi/src/ |
H A D | properties.c | 26 int len = -1; local 28 return len; 30 len = strlen(default_value); 31 if (len >= PROPERTY_VALUE_MAX) 32 len = PROPERTY_VALUE_MAX - 1; 34 memcpy(value, default_value, len); 35 value[len] = '\0'; 36 return len;
|
H A D | allocator.c | 44 char *osi_strndup(const char *str, size_t len) { argument 46 if (len < size) 47 size = len;
|
/system/core/libsparse/ |
H A D | sparse_file.h | 24 int64_t len; member in struct:sparse_file
|
H A D | img2simg.c | 53 off64_t len; local 89 len = lseek64(in, 0, SEEK_END); 92 s = sparse_file_new(block_size, len);
|
/system/extras/ext4_utils/ |
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/bta/ag/ |
H A D | bta_ag_ci.c | 43 void bta_ag_ci_rx_write(UINT16 handle, char *p_data, UINT16 len) argument 45 UINT16 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) 53 len = len_remaining; 56 (tBTA_AG_CI_RX_WRITE *)osi_malloc(sizeof(tBTA_AG_CI_RX_WRITE) + len + 1); 61 strncpy(p_data_area, p_data, len); 62 p_data_area[len] = 0; 66 len_remaining -= len; [all...] |
H A D | bta_ag_at.c | 185 void bta_ag_at_parse(tBTA_AG_AT_CB *p_cb, char *p_buf, UINT16 len) argument 195 for (i = 0; i < len;) 197 while (p_cb->cmd_pos < p_cb->cmd_max_len-1 && i < len) 235 if (i < len)
|
/system/bt/service/common/bluetooth/ |
H A D | advertise_data.cpp | 44 size_t len = data_.size(); local 47 if (!len) 50 for (size_t i = 0, field_len = 0; i < len; i += (field_len + 1)) { 55 if (i + field_len >= len) {
|
/system/core/base/ |
H A D | errors_windows.cpp | 40 DWORD len = FormatMessageW(flags, nullptr, error_code, 0, msgbuf, local 42 if (len == 0) {
|
/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/libcutils/ |
H A D | partition_utils.c | 26 static int only_one_char(char *buf, int len, char c) argument 31 for (i=0; i<len; i++) {
|
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);
|
H A D | sockets_unix.cpp | 34 socklen_t len = sizeof(cr); local 35 int n = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len);
|
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/core/liblog/ |
H A D | uio.c | 31 int len = vecs->iov_len; local 33 while (len > 0) { 34 int ret = read( fd, buf, len ); 45 len -= ret; 58 int len = vecs->iov_len; local 60 while (len > 0) { 61 int ret = write( fd, buf, len ); 72 len -= ret;
|
/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/extras/f2fs_utils/ |
H A D | f2fs_utils.c | 60 int make_f2fs_sparse_fd(int fd, long long len, argument 68 len &= ~((__u64)(F2FS_BLKSIZE - 1)); 69 config.total_sectors = len / config.sector_size; 71 f2fs_sparse_file = sparse_file_new(F2FS_BLKSIZE, len);
|
/system/extras/memcpy-perf/ |
H A D | test-funcs.cpp | 17 size_t len = size / sizeof(uint64_t); local 18 for (size_t i = 0; i < len; i+=1)
|
/system/extras/simpleperf/ |
H A D | read_elf.h | 34 uint64_t len; member in struct:ElfFileSymbol 40 ElfFileSymbol() : vaddr(0), len(0), is_func(false), is_label(false), is_in_text_section(false) {
|
/system/bt/btif/co/ |
H A D | bta_ag_co.c | 152 void bta_ag_co_tx_write(UINT16 handle, UNUSED_ATTR UINT8 * p_data, UINT16 len) argument 154 BTIF_TRACE_DEBUG( "bta_ag_co_tx_write: handle: %d, len: %d", handle, len );
|
/system/bt/stack/btm/ |
H A D | btm_ble_cont_energy.c | 47 UINT16 len = p_params->param_len; local 51 if (len < 17)
|
/system/connectivity/shill/net/ |
H A D | io_input_handler.cc | 54 int len = read(fd, buf, sizeof(buf)); local 55 if (len < 0) { 62 InputData input_data(buf, len);
|
/system/core/adb/ |
H A D | test_track_devices.cpp | 42 int len = snprintf(buffer, sizeof(buffer), "%04zx%s", strlen(request), request); local 43 if (!android::base::WriteFully(s, buffer, len)) 59 int len; local 60 if (sscanf(head, "%04x", &len) != 1 ) 63 if (!android::base::ReadFully(s, buffer, len)) 66 printf( "received header %.*s (%d bytes):\n%.*s----\n", 4, head, len, len, buffer );
|
/system/core/libsync/include/sync/ |
H A D | sync.h | 29 uint32_t len; member in struct:sync_fence_info_data 36 uint32_t len; member in struct:sync_pt_info
|