Searched refs:len (Results 101 - 125 of 736) sorted by relevance

1234567891011>>

/system/iot/attestation/atap/ops/
H A Dopenssl_ops.cpp144 uint32_t len,
160 uint8_t* out_buf = (uint8_t*)atap_malloc(len + ATAP_GCM_TAG_LEN);
161 size_t out_len = len + ATAP_GCM_TAG_LEN;
165 len + ATAP_GCM_TAG_LEN,
169 len,
176 atap_memcpy(ciphertext, out_buf, len);
177 atap_memcpy(tag, out_buf + len, ATAP_GCM_TAG_LEN);
187 uint32_t len,
203 uint8_t* in_buf = (uint8_t*)atap_malloc(len + ATAP_GCM_TAG_LEN);
204 atap_memcpy(in_buf, ciphertext, len);
142 aes_gcm_128_encrypt( const uint8_t* plaintext, uint32_t len, const uint8_t iv[ATAP_GCM_IV_LEN], const uint8_t key[ATAP_AES_128_KEY_LEN], uint8_t* ciphertext, uint8_t tag[ATAP_GCM_TAG_LEN]) argument
185 aes_gcm_128_decrypt( const uint8_t* ciphertext, uint32_t len, const uint8_t iv[ATAP_GCM_IV_LEN], const uint8_t key[ATAP_AES_128_KEY_LEN], const uint8_t tag[ATAP_GCM_TAG_LEN], uint8_t* plaintext) argument
[all...]
/system/bt/stack/bnep/
H A Dbnep_utils.cc47 uint8_t* p_filters, uint16_t len);
183 int len = std::max(p_bcb->dst_uuid.GetShortestRepresentationSize(), local
186 UINT8_TO_BE_STREAM(p, len);
188 if (len == Uuid::kNumBytes16) {
191 } else if (len == Uuid::kNumBytes32) {
194 } else if (len == Uuid::kNumBytes128) {
205 p_buf->len = (uint16_t)(p - p_start);
237 p_buf->len = 4;
273 p_buf->len = 4 + (4 * p_bcb->sent_num_filters);
317 p_buf->len
532 bnep_process_setup_conn_req(tBNEP_CONN* p_bcb, uint8_t* p_setup, uint8_t len) argument
725 uint16_t len, ext_len = 0; local
893 bnepu_process_peer_filter_set(tBNEP_CONN* p_bcb, uint8_t* p_filters, uint16_t len) argument
1049 bnepu_process_peer_multicast_filter_set(tBNEP_CONN* p_bcb, uint8_t* p_filters, uint16_t len) argument
1270 uint8_t len, ext; local
[all...]
/system/bt/stack/avct/
H A Davct_lcb_act.cc61 if (p_buf->len < avct_lcb_pkt_type_len[pkt_type]) {
90 memcpy(p_lcb->p_rx_msg, p_buf, sizeof(BT_HDR) + p_buf->offset + p_buf->len);
102 p_lcb->p_rx_msg->offset += p_lcb->p_rx_msg->len;
105 p_lcb->p_rx_msg->len -= 1;
124 /* adjust offset and len of fragment for header byte */
126 p_buf->len -= AVCT_HDR_LEN_CONT;
129 if ((p_lcb->p_rx_msg->offset + p_buf->len) > buf_len) {
138 (uint8_t*)(p_buf + 1) + p_buf->offset, p_buf->len);
141 p_lcb->p_rx_msg->offset -= p_lcb->p_rx_msg->len;
142 p_lcb->p_rx_msg->len
[all...]
/system/bt/stack/rfcomm/
H A Drfc_ts_frames.cc57 p_buf->len = 4;
84 p_buf->len = 4;
111 p_buf->len = 4;
138 p_buf->len = 4;
156 if (p_buf->len > 127) p_buf->offset--;
170 if (p_buf->len <= 127) {
171 *p_data++ = RFCOMM_EA | (p_buf->len << 1);
172 p_buf->len += 3;
174 *p_data++ = (p_buf->len & 0x7f) << 1;
175 *p_data++ = p_buf->len >> RFCOMM_SHIFT_LENGTH
296 uint8_t len; local
506 uint16_t len; local
[all...]
/system/core/fastboot/
H A Dusb_windows.cpp74 ssize_t Read(void* data, size_t len) override;
75 ssize_t Write(const void* data, size_t len) override;
154 ssize_t WindowsUsbTransport::Write(const void* data, size_t len) { argument
160 DBG("usb_write %d\n", len);
163 while(len > 0) {
164 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len;
177 len -= written;
180 if (len == 0)
193 ssize_t WindowsUsbTransport::Read(void* data, size_t len) { argument
[all...]
/system/core/libion/
H A Dion_test.c33 size_t len = 1024*1024, align = 0; variable
49 ret = ion_alloc(*fd, len, align, heap_mask, alloc_flags, handle);
83 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd);
87 for (i = 0; i < len; i++) {
90 for (i = 0; i < len; i++)
97 munmap(ptr, len);
104 munmap(ptr, len);
108 _ion_alloc_test(len, align, flags, &fd, &handle);
110 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd);
144 ptr = mmap(NULL, len, pro
[all...]
/system/core/liblog/
H A Dstderr_write.c162 log_msg.entry.len = 0;
176 size_t len = vec[i].iov_len; local
177 if ((log_msg.entry.len + len) > LOGGER_ENTRY_MAX_PAYLOAD) {
178 len = LOGGER_ENTRY_MAX_PAYLOAD - log_msg.entry.len;
180 if (!len) continue;
181 memcpy(log_msg.entry.msg + log_msg.entry.len, vec[i].iov_base, len);
182 log_msg.entry.len
[all...]
/system/extras/simpleperf/
H A DUnixSocket_test.cpp26 uint32_t len; member in struct:Message
45 send_msg.len = sizeof(UnixSocketMessage) + n;
69 size_t aligned_len = Align(msg->len, UnixSocketMessageAlignment);
72 ASSERT_EQ(msg->len, msg->type + sizeof(UnixSocketMessage));
87 if (msg.len != sizeof(UnixSocketMessage)) {
91 reply_msg.len = sizeof(UnixSocketMessage);
117 if (msg.len != sizeof(UnixSocketMessage) || msg.type != need_reply_type) {
124 new_msg.len = sizeof(UnixSocketMessage);
133 msg.len = sizeof(UnixSocketMessage);
149 if (msg.len !
[all...]
/system/core/libsparse/
H A Dsparse_read.cpp82 int64_t len = blocks * s->block_size; local
92 ret = sparse_file_add_fd(s, fd, offset, len, block);
98 while (len) {
99 chunk = std::min(len, COPY_BUF_SIZE);
105 len -= chunk;
108 lseek64(fd, len, SEEK_CUR);
119 int64_t len = (int64_t)blocks * s->block_size; local
133 ret = sparse_file_add_fill(s, fill_val, len, block);
145 while (len) {
146 chunk = std::min(len, COPY_BUF_SIZ
164 int64_t len = (int64_t)blocks * s->block_size; local
401 int64_t len; local
456 int64_t len; local
[all...]
/system/extras/ksmutils/
H A Dksminfo.c57 size_t len, size; member in struct:ksm_pages
61 static int getprocname(pid_t pid, char *buf, int len);
65 static bool is_pattern(uint8_t *data, size_t len);
180 qsort(kp.pages, kp.len, sizeof(*kp.pages), cmp_pages);
253 ssize_t len = read(fd, data, pm_kernel_pagesize(ker)); local
254 if (len != pm_kernel_pagesize(ker)) {
261 for (k = 0; k < kp->len; k++) {
265 if (k == kp->len) {
266 if (kp->len == kp->size) {
279 rc = pm_kernel_count(ker, PM_PAGEMAP_PFN(pagemap[j]), &kp->pages[kp->len]
416 is_pattern(uint8_t *data, size_t len) argument
441 getprocname(pid_t pid, char *buf, int len) argument
[all...]
/system/bt/stack/hcic/
H A Dhcicmds.cc42 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQUIRY;
59 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQ_CANCEL;
73 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_PER_INQ_MODE;
92 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_EXIT_PER_INQ;
107 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CREATE_CONN;
109 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CREATE_CONN - 1;
134 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_DISCONNECT;
150 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_ADD_SCO_CONN;
167 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CREATE_CONN_CANCEL;
182 p->len
733 uint16_t len = strlen((char*)name) + 1; local
1407 btsnd_hcic_vendor_spec_cmd(void* buffer, uint16_t opcode, uint8_t len, uint8_t* p_data, void* p_cmd_cplt_cback) argument
[all...]
/system/bt/stack/btm/
H A Dbtm_ble_cont_energy.cc45 uint16_t len = p_params->param_len; local
50 if (len < 17) {
/system/bt/vendor_libs/test_vendor_lib/scripts/
H A Dtest_channel.py97 name_size = len(name)
98 args_size = len(args)
101 encoded_args = chr(args_size) + ''.join(chr(len(arg)) + arg for arg in args)
106 assert name_size == len(name) and args_size == len(args)
117 if len(arg) > 255:
222 if (len(args) == 0):
226 if len(argv) != 2:
/system/core/adb/daemon/
H A Dusb.h43 int (*write)(usb_handle* h, const void* data, int len);
44 int (*read)(usb_handle* h, void* data, int 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/libcutils/
H A Dpartition_utils.cpp28 static int only_one_char(char *buf, int len, char c) argument
33 for (i=0; i<len; i++) {
/system/core/libion/include/ion/
H A Dion.h33 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask,
35 int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask,
/system/extras/libpagemap/
H A Dpm_map.c22 int pm_map_pagemap(pm_map_t *map, uint64_t **pagemap_out, size_t *len) { argument
27 pagemap_out, len);
33 size_t len, i; local
41 error = pm_map_pagemap(map, &pagemap, &len);
47 for (i = 0; i < len; i++) {
94 size_t len, i; local
102 error = pm_map_pagemap(map, &pagemap, &len);
107 for (i = 0; i < len; i++) {
/system/keymaster/km_openssl/
H A Dwrapped_key.cpp64 int len = i2d_KM_WRAPPED_KEY(wrapped_key.get(), nullptr); local
65 if (len < 0) {
68 if (!der_wrapped_key->Reset(len)) {
73 len = i2d_KM_WRAPPED_KEY(wrapped_key.get(), &p);
74 if (len < 0) {
118 int len = i2d_KM_WRAPPED_KEY_DESCRIPTION(record->wrapped_key_description, nullptr); local
119 if (len < 0) {
122 if (!wrapped_key_description->Reset(len)) {
/system/nfc/src/nfc/nci/
H A Dnci_hmsgs.cc50 p->len = NCI_MSG_HDR_SIZE + NCI_CORE_PARAM_SIZE_RESET;
81 p->len = NCI_MSG_HDR_SIZE + NCI_CORE_PARAM_SIZE_INIT(nci_version);
115 p->len = NCI_MSG_HDR_SIZE + num_ids + 1;
142 uint8_t num = 0, ulen, len, *pt; local
148 p->len = NCI_MSG_HDR_SIZE + tlv_size + 1;
155 len = tlv_size;
157 while (len > 1) {
158 len -= 2;
163 if (len >= ulen) {
164 len
548 uint8_t num = 0, ulen, len, *pt; local
[all...]
/system/core/libnetutils/
H A Ddhcpclient.c164 int decode_dhcp_msg(dhcp_msg *msg, int len, dhcp_info *info) argument
171 if (len < (DHCP_MSG_FIXED_SIZE + 4)) return -1;
173 len -= (DHCP_MSG_FIXED_SIZE + 4);
182 while (len > 2) {
185 len--;
192 len -= 2;
193 if (optlen > len) {
227 len -= optlen;
237 static void hex2str(char *buf, size_t buf_size, const unsigned char *array, int len) argument
242 for (i = 0; i < len;
247 dump_dhcp_msg(dhcp_msg *msg, int len) argument
[all...]
/system/bt/osi/include/
H A Dallocator.h38 char* osi_strndup(const char* str, size_t len);
/system/chre/apps/chqts/src/shared/
H A Dnano_string.h31 char *strncpy(char *dest, const char *src, size_t len);
/system/nfc/src/include/
H A Dbuildcfg.h47 extern void DispNci(uint8_t* p, uint16_t len, bool is_recv);
/system/vold/
H A DDevmapper.h26 unsigned long numSectors, char *buffer, size_t len);

Completed in 463 milliseconds

1234567891011>>