Searched refs:namelen (Results 1 – 9 of 9) sorted by relevance
/system/bt/osi/src/socket_utils/ |
D | socket_local_client.c | 37 size_t namelen; in osi_socket_make_sockaddr_un() local 42 namelen = strlen(name); in osi_socket_make_sockaddr_un() 45 if ((namelen + 1) > sizeof(p_addr->sun_path)) { in osi_socket_make_sockaddr_un() 55 memcpy(p_addr->sun_path + 1, name, namelen); in osi_socket_make_sockaddr_un() 59 namelen = strlen(name) + strlen(FILESYSTEM_SOCKET_PREFIX); in osi_socket_make_sockaddr_un() 61 if (namelen > in osi_socket_make_sockaddr_un() 72 namelen = strlen(name) + strlen(ANDROID_RESERVED_SOCKET_PREFIX); in osi_socket_make_sockaddr_un() 74 if (namelen > in osi_socket_make_sockaddr_un() 84 namelen = strlen(name); in osi_socket_make_sockaddr_un() 86 if (namelen > in osi_socket_make_sockaddr_un() [all …]
|
/system/core/libcutils/ |
D | socket_local_client_unix.c | 51 size_t namelen; in socket_make_sockaddr_un() local 56 namelen = strlen(name); in socket_make_sockaddr_un() 59 if ((namelen + 1) > sizeof(p_addr->sun_path)) { in socket_make_sockaddr_un() 69 memcpy(p_addr->sun_path + 1, name, namelen); in socket_make_sockaddr_un() 73 namelen = strlen(name) + strlen(FILESYSTEM_SOCKET_PREFIX); in socket_make_sockaddr_un() 75 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un() 86 namelen = strlen(name) + strlen(ANDROID_RESERVED_SOCKET_PREFIX); in socket_make_sockaddr_un() 88 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un() 98 namelen = strlen(name); in socket_make_sockaddr_un() 100 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un() [all …]
|
/system/core/sdcard/ |
D | sdcard.c | 167 size_t namelen; member 286 memset(node->name, 0xef, node->namelen); in release_node_locked() 329 size_t namelen; in get_node_path_locked() local 332 namelen = node->graft_pathlen; in get_node_path_locked() 335 namelen = node->namelen; in get_node_path_locked() 338 namelen = node->namelen; in get_node_path_locked() 341 if (bufsize < namelen + 1) { in get_node_path_locked() 347 pathlen = get_node_path_locked(node->parent, buf, bufsize - namelen - 1); in get_node_path_locked() 354 memcpy(buf + pathlen, name, namelen + 1); /* include trailing \0 */ in get_node_path_locked() 355 return pathlen + namelen; in get_node_path_locked() [all …]
|
/system/core/liblog/ |
D | logd_reader.c | 141 size_t namelen; in socket_make_sockaddr_un() local 146 namelen = strlen(name); in socket_make_sockaddr_un() 149 if ((namelen + 1) > sizeof(p_addr->sun_path)) { in socket_make_sockaddr_un() 159 memcpy(p_addr->sun_path + 1, name, namelen); in socket_make_sockaddr_un() 163 namelen = strlen(name) + strlen(FILESYSTEM_SOCKET_PREFIX); in socket_make_sockaddr_un() 165 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un() 176 namelen = strlen(name) + strlen(ANDROID_RESERVED_SOCKET_PREFIX); in socket_make_sockaddr_un() 178 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un() 188 namelen = strlen(name); in socket_make_sockaddr_un() 190 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un() [all …]
|
/system/core/init/ |
D | property_service.cpp | 145 static bool is_legal_property_name(const char* name, size_t namelen) in is_legal_property_name() argument 148 if (namelen >= PROP_NAME_MAX) return false; in is_legal_property_name() 149 if (namelen < 1) return false; in is_legal_property_name() 151 if (name[namelen - 1] == '.') return false; in is_legal_property_name() 155 for (i = 0; i < namelen; i++) { in is_legal_property_name() 172 size_t namelen = strlen(name); in property_set_impl() local 175 if (!is_legal_property_name(name, namelen)) return -1; in property_set_impl() 196 int rc = __system_property_add(name, namelen, value, valuelen); in property_set_impl()
|
/system/core/adb/ |
D | file_sync_service.h | 54 uint32_t namelen; member
|
D | file_sync_service.cpp | 115 msg.dent.namelen = d_name_length; in do_list() 129 msg.dent.namelen = 0; in do_list()
|
D | file_sync_client.cpp | 446 size_t len = msg.dent.namelen; in sync_ls()
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_at.c | 76 UINT8 namelen; member 358 … if (strncmp(name, bta_hf_client_indicators[i].name, bta_hf_client_indicators[i].namelen) != 0) in bta_hf_client_handle_cind_list_item()
|