Home
last modified time | relevance | path

Searched refs:namelen (Results 1 – 8 of 8) sorted by relevance

/system/bt/osi/src/socket_utils/
Dsocket_local_client.cc37 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/
Dsocket_local_client_unix.cpp49 size_t namelen; in socket_make_sockaddr_un() local
54 namelen = strlen(name); in socket_make_sockaddr_un()
57 if ((namelen + 1) > sizeof(p_addr->sun_path)) { in socket_make_sockaddr_un()
67 memcpy(p_addr->sun_path + 1, name, namelen); in socket_make_sockaddr_un()
71 namelen = strlen(name) + strlen(FILESYSTEM_SOCKET_PREFIX); in socket_make_sockaddr_un()
73 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un()
84 namelen = strlen(name) + strlen(ANDROID_RESERVED_SOCKET_PREFIX); in socket_make_sockaddr_un()
86 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un()
96 namelen = strlen(name); in socket_make_sockaddr_un()
98 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un()
[all …]
/system/core/property_service/libpropertyinfoparser/
Dproperty_info_parser.cpp70 bool TrieNode::FindChildForString(const char* name, uint32_t namelen, TrieNode* child) const { in FindChildForString() argument
71 …auto node_index = Find(trie_node_base_->num_child_nodes, [this, name, namelen](auto array_offset) { in FindChildForString()
73 int cmp = strncmp(child_name, name, namelen); in FindChildForString()
74 if (cmp == 0 && child_name[namelen] != '\0') { in FindChildForString()
95 auto prefix_len = trie_node.prefix(i)->namelen; in CheckPrefixMatch()
/system/core/property_service/libpropertyinfoparser/include/property_info_parser/
Dproperty_info_parser.h31 uint32_t namelen; member
116 bool FindChildForString(const char* input, uint32_t namelen, TrieNode* child) const;
/system/core/init/
Dutil.cpp425 size_t namelen = name.size(); in IsLegalPropertyName() local
427 if (namelen < 1) return false; in IsLegalPropertyName()
429 if (name[namelen - 1] == '.') return false; in IsLegalPropertyName()
433 for (size_t i = 0; i < namelen; i++) { in IsLegalPropertyName()
/system/core/property_service/libpropertyinfoserializer/
Dtrie_serializer.cpp52 serialized_property_entry->namelen = property_entry.name.size(); in WritePropertyEntry()
Dproperty_info_serializer_test.cpp70 EXPECT_EQ(4U, prefix->namelen); in TEST()
/system/bt/bta/hf_client/
Dbta_hf_client_at.cc71 uint8_t namelen; member
346 bta_hf_client_indicators[i].namelen) != 0) in bta_hf_client_handle_cind_list_item()