Home
last modified time | relevance | path

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

/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.cpp431 size_t namelen = name.size(); in IsLegalPropertyName() local
433 if (namelen < 1) return false; in IsLegalPropertyName()
435 if (name[namelen - 1] == '.') return false; in IsLegalPropertyName()
439 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()