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

1234567891011>>

/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
H A Dbuild-id.h12 int build_id__sprintf(const u8 *build_id, int len, char *bf);
/system/libufdt/tests/src/
H A Dutil.c28 size_t len = ftell(fp); local
31 char *buf = malloc(len);
36 if (fread(buf, len, 1, fp) != 1) {
42 *len_ptr = len;
/system/nfc/halimpl/bcm2079x/adaptation/
H A Dspdhelper.cpp28 bool SpdHelper::isPatchBad(uint8_t* prm, uint32_t len) { argument
29 return getInstance().isPatchBadImpl(prm, len);
55 bool SpdHelper::isPatchBadImpl(uint8_t* prm, uint32_t len) { argument
59 for (int i = 0; i < 8 && i < len; ++i) strNew.append(toHex(*prm++));
/system/nfc/src/nfc/nfc/
H A Dnfc_vs.c98 p_data->len = 0;
104 (p_data->len > NCI_MAX_VSC_SIZE)) {
119 *pp = (uint8_t)p_data->len;
120 p_data->len += NCI_MSG_HDR_SIZE;
/system/security/keystore-engine/
H A Dkeystore_backend.h31 virtual int32_t sign(const char *key_id, const uint8_t* in, size_t len,
H A Dkeystore_backend_binder.h32 int32_t sign(const char *key_id, const uint8_t* in, size_t len,
H A Dkeystore_backend_hidl.h32 int32_t sign(const char *key_id, const uint8_t* in, size_t len,
/system/bt/stack/avrc/
H A Davrc_pars_tg.cc55 uint16_t len; local
56 BE_STREAM_TO_UINT16(len, p);
57 if ((len + 4) != (p_msg->vendor_len)) {
65 if (len != 1)
101 uint16_t len; local
123 BE_STREAM_TO_UINT16(len, p);
124 if ((len + 4) != (p_msg->vendor_len)) {
125 AVRC_TRACE_ERROR("%s incorrect length :%d, %d", __func__, len,
137 else if (len != 1)
143 if (len !
[all...]
H A Davrc_api.cc237 const int pkt_len = MAX(rsp_pkt_len, p_pkt->len);
245 memcpy(p_data_copy, p_data, p_pkt->len);
278 p_pkt_new->len -=
290 /* 4=pdu, pkt_type & len */
292 p_data, (p_pkt_new->len - AVRC_VENDOR_HDR_SIZE - AVRC_MIN_META_HDR_SIZE));
314 AVRC_TRACE_DEBUG("%s handle = %u label = %u len = %d", __func__, handle,
315 label, p_pkt->len);
316 if (p_pkt->len > AVRC_MAX_CTRL_DATA_LEN) {
320 p_pkt->len = AVRC_MAX_CTRL_DATA_LEN;
331 /* 4=pdu, pkt_type & len */
909 uint16_t len; local
1140 uint16_t len; local
[all...]
/system/core/toolbox/upstream-netbsd/lib/libc/gen/
H A Dhumanize_number.c47 humanize_number(char *buf, size_t len, int64_t bytes, argument
88 if (len > 0)
119 if (len < baselen + 1)
124 for (max = 100, i = len - baselen; i-- > 0;)
147 if (len < baselen + 1 + 2)
152 r = snprintf(buf, len, "%d%s%d%s%s%s",
156 r = snprintf(buf, len, "%" PRId64 "%s%s%s",
/system/bt/stack/sdp/
H A Dsdp_db.cc77 if (sdpu_compare_uuid_arrays(p_attr->value_ptr, p_attr->len,
79 p_seq->uuid_entry[yy].len))
82 if (find_uuid_in_seq(p_attr->value_ptr, p_attr->len,
84 p_seq->uuid_entry[yy].len, 0))
113 uint32_t len; local
120 p = sdpu_get_len_from_type(p, type, &len);
123 if (sdpu_compare_uuid_arrays(p, len, p_uuid, uuid_len)) return (true);
125 if (find_uuid_in_seq(p, len, p_uuid, uuid_len, nest_level + 1))
128 p = p + len;
197 uint16_t xx, yy, len; local
368 uint32_t len = (attr_len > 200) ? 200 : attr_len; local
473 SDP_AddSequence(uint32_t handle, uint16_t attr_id, uint16_t num_elem, uint8_t type[], uint8_t len[], uint8_t* p_val[]) argument
798 uint32_t len; /* Number of bytes in the entry */ local
858 int32_t len = 0; /* Number of bytes in the entry */ local
[all...]
/system/core/libcutils/tests/
H A DPropertiesTest.cpp111 size_t len = property_get(PROPERTY_TEST_KEY, mValue, PROPERTY_TEST_VALUE_DEFAULT); local
112 EXPECT_EQ(strlen(PROPERTY_TEST_VALUE_DEFAULT), len); local
118 size_t len = SetAndGetProperty("hello_world"); local
119 EXPECT_EQ(strlen("hello_world"), len) << "hello_world key";
127 size_t len = SetAndGetProperty("", EMPTY_STRING_DEFAULT); local
128 EXPECT_EQ(strlen(EMPTY_STRING_DEFAULT), len) << "empty key"; local
137 int len = SetAndGetProperty(maxLengthString.c_str()); local
138 EXPECT_EQ(PROPERTY_VALUE_MAX-1, len) << "max length key";
152 size_t len = property_get(PROPERTY_TEST_KEY, mValue, PROPERTY_TEST_VALUE_DEFAULT); local
154 EXPECT_EQ(strlen(VALID_TEST_VALUE), len) << "se local
170 int len = property_get(PROPERTY_TEST_KEY, mValue, oneLongerString.c_str()); local
183 int len = property_get(PROPERTY_TEST_KEY, mValue, maxLengthString.c_str()); local
196 int len = property_get(PROPERTY_TEST_KEY, mValue, oneCharString.c_str()); local
209 int len = property_get(PROPERTY_TEST_KEY, mValue, zeroCharString.c_str()); local
220 int len = property_get(PROPERTY_TEST_KEY, mValue, NULL); local
[all...]
/system/bt/stack/gatt/
H A Dgatt_db.cc120 if (read_long && attr.uuid.len == LEN_UUID_16) {
163 uint16_t len = 0, uuid16 = 0; local
175 if (attr16.uuid.len == LEN_UUID_16) uuid16 = attr16.uuid.uu.uuid16;
180 len = attr16.p_value->uuid.len;
181 if (mtu >= attr16.p_value->uuid.len) {
187 len = (val_attr->uuid.len == LEN_UUID_16) ? 5 : 19;
189 if (mtu >= len) {
193 if (val_attr->uuid.len
255 uint16_t len = 0; local
542 gatts_write_attr_perm_check(tGATT_SVC_DB* p_db, uint8_t op_code, uint16_t handle, uint16_t offset, uint8_t* p_data, uint16_t len, tGATT_SEC_FLAG sec_flag, uint8_t key_size) argument
[all...]
/system/core/liblog/
H A Dlogger_write.c248 size_t len, i; local
250 for (len = i = 0; i < nr; ++i) {
251 len += vec[i].iov_len;
253 if (!len) {
275 size_t len; local
283 len = 0;
306 tag = android_lookupEventTag_len(m, &len, get4LE(vec[0].iov_base));
308 ret = __android_log_is_loggable_len(ANDROID_LOG_INFO, tag, len,
320 size_t len = vec[0].iov_len; local
322 len
507 __android_log_bwrite(int32_t tag, const void* payload, size_t len) argument
519 __android_log_security_bwrite(int32_t tag, const void* payload, size_t len) argument
537 __android_log_btwrite(int32_t tag, char type, const void* payload, size_t len) argument
558 uint32_t len = strlen(payload); local
580 uint32_t len = strlen(payload); local
595 size_t len, i; local
[all...]
H A Dlogprint.c520 * starts at buf->msg+1+len(tag)+1
525 if (buf->len < 3) {
551 for (i = 1; i < buf->len; i++) {
564 for (i = 1; i < buf->len; i++) {
573 msgStart = buf->len - 1; /* All tag, no message, print truncates */
578 msgEnd = buf->len - 1; /* may result in msgEnd < msgStart */
609 static bool findChar(const char** cp, size_t* len, int c) { argument
610 while ((*len) && isspace(*(*cp))) {
612 --(*len);
614 if (c == INT_MAX) return *len;
657 size_t len; local
1129 utf8_character_length(const char* src, size_t len) argument
1182 ssize_t len = sizeof(buf) - 1; local
1296 size_t len = 0; local
1531 size_t len; local
[all...]
/system/core/libcutils/
H A Dtrace-dev.c186 int len = snprintf(buf, sizeof(buf), "B|%d|%s", getpid(), name); local
187 if (len >= (int) sizeof(buf)) {
189 len = sizeof(buf) - 1;
191 write(atrace_marker_fd, buf, len);
202 int len = snprintf(buf, sizeof(buf), format_begin "%s" format_end, pid, \
204 if (len >= (int) sizeof(buf)) { \
206 * it is impossible for name_len to be < 0 if len >= sizeof(buf). */ \
207 int name_len = strlen(name) - (len - sizeof(buf)) - 1; \
210 len = snprintf(buf, sizeof(buf), format_begin "%.*s" format_end, pid, \
213 write(atrace_marker_fd, buf, len); \
[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/pan/
H A Dpan_main.cc109 if (remote_uuid->len == 16) {
124 remote_uuid->len = 2;
126 if (remote_uuid->len == 4) {
131 remote_uuid->len = 2;
141 if (local_uuid->len == 16) {
156 local_uuid->len = 2;
158 if (local_uuid->len == 4) {
163 local_uuid->len = 2;
178 if (remote_uuid->len != 2) {
180 remote_uuid->len);
415 pan_data_ind_cb(uint16_t handle, uint8_t* src, uint8_t* dst, uint16_t protocol, uint8_t* p_data, uint16_t len, bool ext) argument
513 uint16_t i, len; local
[all...]
/system/core/include/log/
H A Dlog.h92 int __android_log_bwrite(int32_t tag, const void* payload, size_t len);
94 size_t len);
97 #define android_bWriteLog(tag, payload, len) \
98 __android_log_bwrite(tag, payload, len)
99 #define android_btWriteLog(tag, type, payload, len) \
100 __android_log_btwrite(tag, type, payload, len)
/system/core/liblog/include/log/
H A Dlog.h92 int __android_log_bwrite(int32_t tag, const void* payload, size_t len);
94 size_t len);
97 #define android_bWriteLog(tag, payload, len) \
98 __android_log_bwrite(tag, payload, len)
99 #define android_btWriteLog(tag, type, payload, len) \
100 __android_log_btwrite(tag, type, payload, len)
/system/extras/ext4_utils/
H A Dallocate.h26 u32 len; member in struct:region
68 struct block_allocation *allocate_blocks(u32 len);
73 void reduce_allocation(struct block_allocation *alloc, u32 len);
77 void get_region(struct block_allocation *alloc, u32 *block, u32 *len);
93 u32 block, u32 len, int bg);
95 int append_oob_allocation(struct block_allocation *alloc, u32 len);
/system/bt/btif/src/
H A Dbtif_storage.cc91 (p).len = (l); \
100 (p).len = (l); \
184 BTIF_TRACE_DEBUG("in, bd addr:%s, prop type:%d, len:%d", bdstr, prop->type,
185 prop->len);
187 if (prop->len <= 0 || prop->len > (int)sizeof(value) - 1) {
188 BTIF_TRACE_ERROR("property type:%d, len:%d is invalid", prop->type,
189 prop->len);
198 strncpy(value, (char*)prop->val, prop->len);
199 value[prop->len]
285 int len = prop->len; local
301 int len = prop->len; local
1296 size_t len = btif_config_get_bin_length(name, "HidDescriptor"); local
[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...]

Completed in 1664 milliseconds

1234567891011>>