Home
last modified time | relevance | path

Searched refs:trie_builder (Results 1 – 5 of 5) sorted by relevance

/system/core/property_service/libpropertyinfoserializer/
Dtrie_builder_test.cpp25 auto trie_builder = TrieBuilder("default", "default_type"); in TEST() local
29 EXPECT_TRUE(trie_builder.AddToTrie("test.", "1st", "1st_type", false, &error)); in TEST()
30 EXPECT_TRUE(trie_builder.AddToTrie("test.test", "2nd", "2nd_type", false, &error)); in TEST()
31 EXPECT_TRUE(trie_builder.AddToTrie("test.test1", "3rd", "3rd_type", true, &error)); in TEST()
32 EXPECT_TRUE(trie_builder.AddToTrie("test.test2", "3rd", "3rd_type", true, &error)); in TEST()
33 EXPECT_TRUE(trie_builder.AddToTrie("test.test3", "3rd", "3rd_type", true, &error)); in TEST()
34 EXPECT_TRUE(trie_builder.AddToTrie("this.is.a.long.string", "4th", "4th_type", true, &error)); in TEST()
36 ASSERT_EQ(5U, trie_builder.contexts().size()); in TEST()
37 ASSERT_EQ(5U, trie_builder.types().size()); in TEST()
39 auto& builder_root = trie_builder.builder_root(); in TEST()
Dproperty_info_serializer.cpp33 auto trie_builder = TrieBuilder(default_context, default_type); in BuildTrie() local
36 if (!trie_builder.AddToTrie(name, context, type, is_exact, error)) { in BuildTrie()
42 *serialized_trie = trie_serializer.SerializeTrie(trie_builder); in BuildTrie()
Dtrie_serializer.cpp114 std::string TrieSerializer::SerializeTrie(const TrieBuilder& trie_builder) { in SerializeTrie() argument
123 SerializeStrings(trie_builder.contexts()); in SerializeTrie()
127 SerializeStrings(trie_builder.types()); in SerializeTrie()
132 uint32_t root_trie_offset = WriteTrieNode(trie_builder.builder_root()); in SerializeTrie()
Dtrie_serializer.h35 std::string SerializeTrie(const TrieBuilder& trie_builder);
DAndroid.bp26 "trie_builder.cpp",