Searched defs:len (Results 1 - 25 of 338) sorted by relevance

1234567891011>>

/system/bt/osi/test/
H A Dallocator_test.cpp32 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 Dproperties.c26 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 Dallocator.c44 char *osi_strndup(const char *str, size_t len) { argument
46 if (len < size)
47 size = len;
/system/core/libsparse/
H A Dsparse_file.h24 int64_t len; member in struct:sparse_file
H A Dimg2simg.c53 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 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/bt/bta/ag/
H A Dbta_ag_ci.c43 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 Dbta_ag_at.c185 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 Dadvertise_data.cpp44 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 Derrors_windows.cpp40 DWORD len = FormatMessageW(flags, nullptr, error_code, 0, msgbuf, local
42 if (len == 0) {
/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,
/system/core/libcutils/
H A Dpartition_utils.c26 static int only_one_char(char *buf, int len, char c) argument
31 for (i=0; i<len; i++) {
H A Dprocess_name.c49 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 Dsockets_unix.cpp34 socklen_t len = sizeof(cr); local
35 int n = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len);
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 != 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 Duio.c31 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 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/extras/f2fs_utils/
H A Df2fs_utils.c60 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 Dtest-funcs.cpp17 size_t len = size / sizeof(uint64_t); local
18 for (size_t i = 0; i < len; i+=1)
/system/extras/simpleperf/
H A Dread_elf.h34 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 Dbta_ag_co.c152 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 Dbtm_ble_cont_energy.c47 UINT16 len = p_params->param_len; local
51 if (len < 17)
/system/connectivity/shill/net/
H A Dio_input_handler.cc54 int len = read(fd, buf, sizeof(buf)); local
55 if (len < 0) {
62 InputData input_data(buf, len);
/system/core/adb/
H A Dtest_track_devices.cpp42 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 Dsync.h29 uint32_t len; member in struct:sync_fence_info_data
36 uint32_t len; member in struct:sync_pt_info

Completed in 5111 milliseconds

1234567891011>>