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

1234567891011>>

/system/bt/device/include/
H A Dinterop_database.h25 uint8_t len; member in struct:__anon696
/system/core/libcutils/
H A Dsockets.c32 socklen_t len = sizeof(cr); local
33 int n = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len);
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 Dashmem-dev.c75 int ashmem_pin_region(int fd, size_t offset, size_t len) argument
77 struct ashmem_pin pin = { offset, len };
81 int ashmem_unpin_region(int fd, size_t offset, size_t len) argument
83 struct ashmem_pin pin = { offset, len };
H A Dsocket_network_client.c51 socklen_t len = sizeof(error); local
103 if (getsockopt(s, SOL_SOCKET, SO_ERROR, &error, &len) < 0) {
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...]
/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
H A Dext4_sb.h29 int64_t len; /* If set to 0, ask the block device for the size, member in struct:fs_info
/system/bt/bta/ag/
H A Dbta_ag_ci.c43 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...]
H A Dbta_ag_at.c188 void bta_ag_at_parse(tBTA_AG_AT_CB *p_cb, char *p_buf, UINT16 len) argument
203 for (i = 0; i < len;)
205 while (p_cb->cmd_pos < p_cb->cmd_max_len-1 && i < len)
243 if (i < 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,
/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/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);
69 config.total_sectors = len / config.sector_size;
71 f2fs_sparse_file = sparse_file_new(F2FS_BLKSIZE, len);
H A Dmake_f2fs_main.c35 fprintf(stderr, "%s -l <len>\n", basename(path));
45 long long len; local
49 len = atoll(optarg);
82 exitcode = make_f2fs_sparse_fd(fd, len, NULL, NULL);
/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/avrc/
H A Davrc_bld_ct.c54 p_pkt->len = (p_data - p_start);
85 p_pkt->len = (p_data - p_start);
112 p_pkt->len = (p_data - p_start);
129 UINT16 offset = 0, chnl = AVCT_DATA_CTRL, len=AVRC_META_CMD_POOL_SIZE; local
148 p_pkt = (BT_HDR *)GKI_getbuf(len);
174 p_pkt->len = (p_data - p_start);
H A Davrc_pars_ct.c47 UINT16 len; local
59 BE_STREAM_TO_UINT16 (len, p);
60 AVRC_TRACE_DEBUG("avrc_pars_vendor_rsp() ctype:0x%x pdu:0x%x, len:%d/0x%x", p_msg->hdr.ctype, p_result->pdu, len, len);
74 if (len != 1)
/system/bt/stack/btm/
H A Dbtm_ble_cont_energy.c47 UINT16 len = p_params->param_len; local
51 if (len < 17)
/system/bt/test/suite/cases/
H A Drfcomm.c36 ssize_t len = read(fd, response + total, sizeof(response) - total); local
37 TASSERT(len != -1 && len != 0, "Unable to read complete response from socket.");
38 total += len;
/system/core/adb/
H A Dtest_track_devices.cpp41 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/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 3867 milliseconds

1234567891011>>