/system/extras/ext4_utils/ |
D | contents.c | 67 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()
|
D | xattr.h | 35 #define EXT4_XATTR_LEN(name_len) \ argument 36 (((name_len) + EXT4_XATTR_ROUND + \
|
D | ext4.h | 537 __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
|
D | ext4fixup.c | 598 strncpy(name, dirp->name, dirp->name_len); in recurse_dir() 599 name[dirp->name_len]='\0'; in recurse_dir()
|
/system/extras/boot_control_copy/ |
D | bootinfo.c | 91 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/ |
D | NetdConstants.cpp | 165 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/ |
D | usb_windows.cpp | 125 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/ |
D | usb_windows.cpp | 268 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/ |
D | LogBufferElement.cpp | 95 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/ |
D | trace-dev.c | 206 int name_len = strlen(name) - (len - sizeof(buf)) - 1; \ 210 name_len, name, value); \
|
/system/bt/stack/hid/ |
D | hidh_api.c | 80 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/ |
D | CommandListener.cpp | 377 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/ |
D | ext2_filesystem.cc | 94 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/ |
D | btif_core.c | 1043 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/ |
D | bta_hl_act.c | 1697 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/ |
D | btm_api.h | 3576 BT_OCTET16 r, UINT8 name_len);
|
/system/bt/stack/btm/ |
D | btm_sec.c | 1753 BT_OCTET16 r, UINT8 name_len) in BTM_BuildOobData() argument 1806 name_size = name_len; in BTM_BuildOobData()
|