Home
last modified time | relevance | path

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

/system/extras/ext4_utils/
Dcontents.c67 u8 name_len = strlen(name); in add_dentry() local
68 u16 rec_len = 8 + EXT4_ALIGN(name_len, 4); in add_dentry()
85 dentry->name_len = name_len; in add_dentry()
87 memcpy(dentry->name, name, name_len); in add_dentry()
379 size_t name_len = strlen(name); in xattr_addto_range() local
380 if (name_len > 255) in xattr_addto_range()
384 size_t needed_size = EXT4_XATTR_LEN(name_len) + EXT4_XATTR_SIZE(value_len); in xattr_addto_range()
390 memset(new_entry, 0, EXT4_XATTR_LEN(name_len)); in xattr_addto_range()
392 new_entry->e_name_len = name_len; in xattr_addto_range()
394 memcpy(new_entry->e_name, name, name_len); in xattr_addto_range()
Dxattr.h35 #define EXT4_XATTR_LEN(name_len) \ argument
36 (((name_len) + EXT4_XATTR_ROUND + \
Dext4.h537 __le16 name_len; member
544 __u8 name_len; member
562 #define EXT4_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT4_DIR_ROUND) & ~EXT4_DIR_ROUND) argument
Dext4fixup.c598 strncpy(name, dirp->name, dirp->name_len); in recurse_dir()
599 name[dirp->name_len]='\0'; in recurse_dir()
/system/extras/boot_control_copy/
Dbootinfo.c91 size_t trimmed_len, name_len; in boot_info_open_partition() local
98 name_len = strlen(name); in boot_info_open_partition()
99 path = calloc(trimmed_len + name_len + 1, 1); in boot_info_open_partition()
101 strncpy(path + trimmed_len, name, name_len); in boot_info_open_partition()
/system/netd/server/
DNetdConstants.cpp165 size_t name_len = strlen(name); in isIfaceName() local
166 if ((name_len == 0) || (name_len > IFNAMSIZ)) { in isIfaceName()
175 for (i = 1; i < name_len; i++) { in isIfaceName()
/system/core/fastboot/
Dusb_windows.cpp125 unsigned long name_len = 0; in do_usb_open() local
130 &name_len, in do_usb_open()
132 if (0 != name_len) { in do_usb_open()
134 ret->interface_name.resize(name_len); in do_usb_open()
137 &name_len, in do_usb_open()
/system/core/adb/
Dusb_windows.cpp268 unsigned long name_len = 0; in do_usb_open() local
316 &name_len, in do_usb_open()
318 if (0 == name_len) { in do_usb_open()
324 ret->interface_name = (wchar_t*)malloc(name_len * sizeof(ret->interface_name[0])); in do_usb_open()
326 D("Could not allocate %lu characters for interface_name: %s", name_len, strerror(errno)); in do_usb_open()
333 &name_len, in do_usb_open()
/system/core/logd/
DLogBufferElement.cpp95 size_t name_len = strlen(name); in tidToName() local
97 if ((retval_len < name_len) in tidToName()
98 && !fast<strcmp>(retval, name + name_len - retval_len)) { in tidToName()
/system/core/libcutils/
Dtrace-dev.c206 int name_len = strlen(name) - (len - sizeof(buf)) - 1; \
210 name_len, name, value); \
/system/bt/stack/hid/
Dhidh_api.c80 UINT16 name_len; in hidh_get_str_attr() local
84 if((name_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type)) < max_len ) in hidh_get_str_attr()
86 memcpy( str, (char *) p_attr->attr_value.v.array, name_len ); in hidh_get_str_attr()
87 str[name_len] = '\0'; in hidh_get_str_attr()
/system/vold/
DCommandListener.cpp377 size_t name_len = strlen(dent->d_name); in listAsecsInDirectory() local
378 if (name_len > 5 && name_len < 260 && in listAsecsInDirectory()
379 !strcmp(&dent->d_name[name_len - 5], ".asec")) { in listAsecsInDirectory()
382 strlcpy(id, dent->d_name, name_len - 4); in listAsecsInDirectory()
/system/update_engine/payload_generator/
Dext2_filesystem.cc94 uint32_t file_type = dirent->name_len >> 8; in UpdateFileAndAppend()
105 string basename(dirent->name, dirent->name_len & 0xff); in UpdateFileAndAppend()
/system/bt/btif/src/
Dbtif_core.c1043 UINT16 name_len = 0; in btif_set_adapter_property() local
1055 name_len = property->len > BTM_MAX_LOC_BD_NAME_LEN ? BTM_MAX_LOC_BD_NAME_LEN: in btif_set_adapter_property()
1057 memcpy(bd_name,property->val, name_len); in btif_set_adapter_property()
1058 bd_name[name_len] = '\0'; in btif_set_adapter_property()
/system/bt/bta/hl/
Dbta_hl_act.c1697 UINT16 name_len; in bta_hl_sdp_cback() local
1745 name_len = (UINT16)SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in bta_hl_sdp_cback()
1747 name_len = BT_MAX_SERVICE_NAME_LEN; in bta_hl_sdp_cback()
1748 memcpy(p_hdp_rec->srv_name, p_attr->attr_value.v.array, name_len); in bta_hl_sdp_cback()
1755 name_len = (UINT16)SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in bta_hl_sdp_cback()
1757 name_len = BT_MAX_SERVICE_NAME_LEN; in bta_hl_sdp_cback()
1758 memcpy(p_hdp_rec->srv_desp, p_attr->attr_value.v.array, name_len); in bta_hl_sdp_cback()
1766 name_len = (UINT16)SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in bta_hl_sdp_cback()
1768 name_len = BT_MAX_SERVICE_NAME_LEN; in bta_hl_sdp_cback()
1769 memcpy(p_hdp_rec->provider_name, p_attr->attr_value.v.array, name_len); in bta_hl_sdp_cback()
/system/bt/stack/include/
Dbtm_api.h3576 BT_OCTET16 r, UINT8 name_len);
/system/bt/stack/btm/
Dbtm_sec.c1753 BT_OCTET16 r, UINT8 name_len) in BTM_BuildOobData() argument
1806 name_size = name_len; in BTM_BuildOobData()