Home
last modified time | relevance | path

Searched refs:name_len (Results 1 – 16 of 16) sorted by relevance

/system/extras/boot_control_copy/
Dbootinfo.cpp78 size_t trimmed_len, name_len; in boot_info_open_partition() local
84 name_len = strlen(name); in boot_info_open_partition()
85 path = static_cast<char*>(calloc(trimmed_len + name_len + 1, 1)); in boot_info_open_partition()
87 strncpy(path + trimmed_len, name, name_len); in boot_info_open_partition()
/system/extras/ext4_utils/include/ext4_utils/
Dxattr.h35 #define EXT4_XATTR_LEN(name_len) \ argument
36 (((name_len) + EXT4_XATTR_ROUND + sizeof(struct ext4_xattr_entry)) & ~EXT4_XATTR_ROUND)
Dext4.h594 __le16 name_len; member
601 __u8 name_len; member
619 #define EXT4_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT4_DIR_ROUND) & ~EXT4_DIR_ROUND) argument
/system/nfc/src/nfc/llcp/
Dllcp_sdp.cc105 uint16_t name_len = (uint16_t)strlen(p_name); in llcp_sdp_add_sdreq() local
111 UINT8_TO_BE_STREAM(p, (1 + name_len)); in llcp_sdp_add_sdreq()
113 ARRAY_TO_BE_STREAM(p, p_name, name_len); in llcp_sdp_add_sdreq()
115 llcp_cb.sdp_cb.p_snl->len += LLCP_SDREQ_MIN_LEN + name_len; in llcp_sdp_add_sdreq()
130 uint16_t name_len; in llcp_sdp_send_sdreq() local
151 name_len = (uint16_t)strlen(p_name); in llcp_sdp_send_sdreq()
154 if ((available_bytes >= LLCP_SDREQ_MIN_LEN + name_len) && in llcp_sdp_send_sdreq()
155 (llcp_cb.sdp_cb.p_snl->len + LLCP_SDREQ_MIN_LEN + name_len <= in llcp_sdp_send_sdreq()
/system/core/fastboot/
Dusb_windows.cpp127 unsigned long name_len = 0; in do_usb_open() local
132 &name_len, in do_usb_open()
134 if (0 != name_len) { in do_usb_open()
136 ret->interface_name.resize(name_len); in do_usb_open()
139 &name_len, in do_usb_open()
/system/core/libcutils/
Dtrace-container.cpp145 int name_len = strlen(name) - (len - sizeof(buf)) - 1; \
147 if (name_len > 0) { \
152 pid, tid, ts, tts, name_len, name, value); \
Dtrace-dev.inc195 * it is impossible for name_len to be < 0 if len >= sizeof(buf). */ \
196 int name_len = strlen(name) - (len - sizeof(buf)) - 1; \
200 name_len, name, value); \
/system/bt/packet/avrcp/
Dget_folder_items.cc175 uint16_t name_len = item.name_.size(); in PushMediaPlayerItem() local
176 AddPayloadOctets2(pkt, base::ByteSwap(name_len)); in PushMediaPlayerItem()
193 uint16_t name_len = item.name_.size(); in PushFolderItem() local
194 AddPayloadOctets2(pkt, base::ByteSwap(name_len)); in PushFolderItem()
210 uint16_t name_len = item.name_.size(); in PushMediaElementItem() local
211 AddPayloadOctets2(pkt, base::ByteSwap(name_len)); in PushMediaElementItem()
/system/bt/osi/test/fuzzers/alarm/
Dfuzz_alarm.cc50 size_t name_len = in fuzz_init_alarm() local
53 dataProvider->ConsumeBytesWithTerminator<char>(name_len, '\0'); in fuzz_init_alarm()
/system/nfc/src/nfa/dm/
Dnfa_dm_ndef.cc273 ((payload_len > p_cb->p_ndef_handler[i]->name_len) && in nfa_dm_ndef_find_next_handler()
275 p_cb->p_ndef_handler[i]->name_len) == 0))) { in nfa_dm_ndef_find_next_handler()
290 p_cb->p_ndef_handler[i]->name_len && in nfa_dm_ndef_find_next_handler()
293 p_cb->p_ndef_handler[i]->name_len) == 0)) { in nfa_dm_ndef_find_next_handler()
322 else if (p_cb->p_ndef_handler[i]->name_len == type_name_len) { in nfa_dm_ndef_find_next_handler()
Dnfa_dm_api.cc1020 p_msg->name_len = type_name_len; in NFA_RegisterNDefTypeHandler()
1090 p_msg->name_len = uri_id_len; in NFA_RegisterNDefUriHandler()
/system/bt/stack/hid/
Dhidh_api.cc75 uint16_t name_len; in hidh_get_str_attr() local
79 name_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in hidh_get_str_attr()
80 if (name_len < max_len) { in hidh_get_str_attr()
81 memcpy(str, (char*)p_attr->attr_value.v.array, name_len); in hidh_get_str_attr()
82 str[name_len] = '\0'; in hidh_get_str_attr()
/system/logging/logd/
DLogBufferElement.cpp169 size_t name_len = strlen(name); in tidToName() local
171 if ((retval_len < name_len) && in tidToName()
172 !fastcmp<strcmp>(retval, name + name_len - retval_len)) { in tidToName()
/system/update_engine/payload_generator/
Dext2_filesystem.cc102 uint32_t file_type = dirent->name_len >> 8; in UpdateFileAndAppend()
113 string basename(dirent->name, dirent->name_len & 0xff); in UpdateFileAndAppend()
/system/bt/btif/src/
Dbtif_core.cc663 uint16_t name_len = property->len > BTM_MAX_LOC_BD_NAME_LEN in btif_set_adapter_property() local
666 memcpy(bd_name, property->val, name_len); in btif_set_adapter_property()
667 bd_name[name_len] = '\0'; in btif_set_adapter_property()
/system/nfc/src/nfa/include/
Dnfa_dm_int.h158 uint8_t name_len; /* Length of type name or absolute URI */ member