Home
last modified time | relevance | path

Searched refs:context_index (Results 1 – 4 of 4) sorted by relevance

/system/core/property_service/libpropertyinfoparser/
Dproperty_info_parser.cpp92 uint32_t* context_index, uint32_t* type_index) const { in CheckPrefixMatch() argument
99 if (trie_node.prefix(i)->context_index != ~0u) { in CheckPrefixMatch()
100 *context_index = trie_node.prefix(i)->context_index; in CheckPrefixMatch()
110 void PropertyInfoArea::GetPropertyInfoIndexes(const char* name, uint32_t* context_index, in GetPropertyInfoIndexes() argument
120 if (trie_node.context_index() != ~0u) { in GetPropertyInfoIndexes()
121 return_context_index = trie_node.context_index(); in GetPropertyInfoIndexes()
149 if (context_index != nullptr) { in GetPropertyInfoIndexes()
150 if (trie_node.exact_match(i)->context_index != ~0u) { in GetPropertyInfoIndexes()
151 *context_index = trie_node.exact_match(i)->context_index; in GetPropertyInfoIndexes()
153 *context_index = return_context_index; in GetPropertyInfoIndexes()
[all …]
/system/core/property_service/libpropertyinfoparser/include/property_info_parser/
Dproperty_info_parser.h34 uint32_t context_index; member
105 uint32_t context_index() const { return node_property_entry()->context_index; } in context_index() function
146 …void GetPropertyInfoIndexes(const char* name, uint32_t* context_index, uint32_t* type_index) const;
176 uint32_t* context_index, uint32_t* type_index) const;
/system/core/property_service/libpropertyinfoserializer/
Dproperty_info_serializer_test.cpp48 EXPECT_STREQ("default", property_info_area->context(root_node.context_index())); in TEST()
61 EXPECT_STREQ("1st", property_info_area->context(test_node.context_index())); in TEST()
71 EXPECT_STREQ("2nd", property_info_area->context(prefix->context_index)); in TEST()
84 EXPECT_STREQ("3rd", property_info_area->context(match1->context_index)); in TEST()
85 EXPECT_STREQ("3rd", property_info_area->context(match2->context_index)); in TEST()
86 EXPECT_STREQ("3rd", property_info_area->context(match3->context_index)); in TEST()
95 EXPECT_EQ(-1U, node.context_index()); in TEST()
122 EXPECT_STREQ("4th", property_info_area->context(final_match->context_index)); in TEST()
145 EXPECT_STREQ("default", property_info_area->context(root_node.context_index())); in TEST()
Dtrie_serializer.cpp43 uint32_t context_index = property_entry.context != nullptr && !property_entry.context->empty() in WritePropertyEntry() local
53 serialized_property_entry->context_index = context_index; in WritePropertyEntry()