Home
last modified time | relevance | path

Searched refs:visitor (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/native/vulkan/vkjson/
Dvkjson.cc338 inline bool Iterate(Visitor* visitor, VkExtent3D* extents) { in Iterate() argument
340 visitor->Visit("width", &extents->width) && in Iterate()
341 visitor->Visit("height", &extents->height) && in Iterate()
342 visitor->Visit("depth", &extents->depth); in Iterate()
346 inline bool Iterate(Visitor* visitor, VkImageFormatProperties* properties) { in Iterate() argument
348 visitor->Visit("maxExtent", &properties->maxExtent) && in Iterate()
349 visitor->Visit("maxMipLevels", &properties->maxMipLevels) && in Iterate()
350 visitor->Visit("maxArrayLayers", &properties->maxArrayLayers) && in Iterate()
351 visitor->Visit("sampleCounts", &properties->sampleCounts) && in Iterate()
352 visitor->Visit("maxResourceSize", &properties->maxResourceSize); in Iterate()
[all …]
/frameworks/base/startop/view_compiler/
Dapk_layout_compiler.cc42 void Accept(Visitor* visitor) { in Accept() argument
48 visitor->VisitStartDocument(); in Accept()
52 visitor->VisitEndDocument(); in Accept()
58 visitor->VisitStartTag(std::u16string{name, name_length}); in Accept()
63 visitor->VisitEndTag(); in Accept()
76 LayoutValidationVisitor visitor; in CanCompileLayout() local
77 adapter.Accept(&visitor); in CanCompileLayout()
79 return visitor.can_compile(); in CanCompileLayout()
133 LayoutCompilerVisitor visitor{&builder}; in CompileApkAssetsLayouts() local
134 adapter.Accept(&visitor); in CompileApkAssetsLayouts()
[all …]
Dmain.cc59 explicit XmlVisitorAdapter(Visitor* visitor) : visitor_{visitor} {} in XmlVisitorAdapter() argument
89 startop::LayoutCompilerVisitor visitor{builder}; in CompileLayout() local
90 XmlVisitorAdapter<decltype(visitor)> adapter{&visitor}; in CompileLayout()
Dtinyxml_layout_parser.h30 explicit TinyXmlVisitorAdapter(Visitor* visitor) : visitor_{visitor} {} in TinyXmlVisitorAdapter() argument
/frameworks/base/tools/aapt2/
DValueVisitor_test.cpp51 SingleReferenceVisitor visitor; in TEST() local
52 ref.Accept(&visitor); in TEST()
54 EXPECT_EQ(visitor.visited, &ref); in TEST()
64 StyleVisitor visitor; in TEST() local
65 style->Accept(&visitor); in TEST()
67 ASSERT_EQ(style.get(), visitor.visited_style); in TEST()
71 ASSERT_EQ(style->entries.size() + 2, visitor.visited_refs.size()); in TEST()
DValueVisitor.h181 DynCastVisitor<T> visitor;
182 value->Accept(&visitor);
183 return visitor.value;
192 inline void VisitAllValuesInPackage(ResourceTablePackage* pkg, ValueVisitor* visitor) {
196 config_value->value->Accept(visitor);
202 inline void VisitAllValuesInTable(ResourceTable* table, ValueVisitor* visitor) {
204 VisitAllValuesInPackage(pkg.get(), visitor);
DResourceValues.h98 virtual void Accept(ValueVisitor* visitor) = 0;
101 virtual void Accept(ConstValueVisitor* visitor) const = 0;
126 void Accept(ValueVisitor* visitor) override;
127 void Accept(ConstValueVisitor* visitor) const override;
143 void Accept(ValueVisitor* visitor) override;
144 void Accept(ConstValueVisitor* visitor) const override;
DDominatorTree.cpp36 void DominatorTree::Accept(Visitor* visitor) { in Accept() argument
38 visitor->VisitTree(entry.first, &entry.second); in Accept()
/frameworks/base/cmds/idmap2/idmap2/
DDump.cpp60 RawPrintVisitor visitor(std::cout); in Dump() local
61 (*idmap)->accept(&visitor); in Dump()
63 PrettyPrintVisitor visitor(std::cout); in Dump() local
64 (*idmap)->accept(&visitor); in Dump()
DCreate.cpp113 BinaryStreamVisitor visitor(fout); in Create() local
114 (*idmap)->accept(&visitor); in Create()
/frameworks/base/tools/aapt2/java/
DProguardRules.cpp338 ManifestVisitor visitor(res->file, keep_set, main_dex_only); in CollectProguardRulesForManifest() local
340 res->root->Accept(&visitor); in CollectProguardRulesForManifest()
353 LayoutVisitor visitor(res->file, keep_set); in CollectProguardRules() local
354 res->root->Accept(&visitor); in CollectProguardRules()
359 XmlResourceVisitor visitor(res->file, keep_set); in CollectProguardRules() local
360 res->root->Accept(&visitor); in CollectProguardRules()
365 NavigationVisitor visitor(res->file, keep_set, context_->GetCompilationPackage()); in CollectProguardRules() local
366 res->root->Accept(&visitor); in CollectProguardRules()
371 TransitionVisitor visitor(res->file, keep_set); in CollectProguardRules() local
372 res->root->Accept(&visitor); in CollectProguardRules()
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlDom.h50 virtual void Accept(Visitor* visitor) = 0;
51 virtual void Accept(ConstVisitor* visitor) const = 0;
130 void Accept(Visitor* visitor) override;
131 void Accept(ConstVisitor* visitor) const override;
141 void Accept(Visitor* visitor) override;
142 void Accept(ConstVisitor* visitor) const override;
300 internal::NodeCastImpl<T> visitor; in NodeCast() local
301 node->Accept(&visitor); in NodeCast()
302 return visitor.value; in NodeCast()
DXmlDom.cpp515 void Element::Accept(Visitor* visitor) { in Accept() argument
516 visitor->BeforeVisitElement(this); in Accept()
517 visitor->Visit(this); in Accept()
518 visitor->AfterVisitElement(this); in Accept()
521 void Element::Accept(ConstVisitor* visitor) const { in Accept()
522 visitor->BeforeVisitElement(this); in Accept()
523 visitor->Visit(this); in Accept()
524 visitor->AfterVisitElement(this); in Accept()
536 void Text::Accept(Visitor* visitor) { in Accept() argument
537 visitor->Visit(this); in Accept()
[all …]
/frameworks/base/cmds/idmap2/tests/
DPrettyPrintVisitorTests.cpp52 PrettyPrintVisitor visitor(stream); in TEST() local
53 (*idmap)->accept(&visitor); in TEST()
70 PrettyPrintVisitor visitor(stream); in TEST() local
71 (*idmap)->accept(&visitor); in TEST()
DRawPrintVisitorTests.cpp47 RawPrintVisitor visitor(stream); in TEST() local
48 (*idmap)->accept(&visitor); in TEST()
68 RawPrintVisitor visitor(stream); in TEST() local
69 (*idmap)->accept(&visitor); in TEST()
DBinaryStreamVisitorTests.cpp43 BinaryStreamVisitor visitor(stream); in TEST() local
44 idmap1->accept(&visitor); in TEST()
84 BinaryStreamVisitor visitor(stream); in TEST() local
85 (*idmap)->accept(&visitor); in TEST()
/frameworks/native/services/surfaceflinger/
DLayerVector.cpp62 void LayerVector::traverseInZOrder(StateSet stateSet, const Visitor& visitor) const { in traverseInZOrder()
70 layer->traverseInZOrder(stateSet, visitor); in traverseInZOrder()
74 void LayerVector::traverseInReverseZOrder(StateSet stateSet, const Visitor& visitor) const { in traverseInReverseZOrder()
82 layer->traverseInReverseZOrder(stateSet, visitor); in traverseInReverseZOrder()
DLayerVector.h51 void traverseInReverseZOrder(StateSet stateSet, const Visitor& visitor) const;
52 void traverseInZOrder(StateSet stateSet, const Visitor& visitor) const;
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener.cpp317 XmlFlattenerVisitor visitor(&node_buffer, options_); in Flatten() local
318 node->Accept(&visitor); in Flatten()
321 for (auto& package_pool_entry : visitor.package_pools) { in Flatten()
322 visitor.pool.Merge(std::move(package_pool_entry.second)); in Flatten()
326 visitor.pool.Sort([](const StringPool::Context& a, const StringPool::Context& b) -> int { in Flatten()
331 for (const auto& ref_entry : visitor.string_refs) { in Flatten()
341 StringPool::FlattenUtf16(buffer_, visitor.pool, context->GetDiagnostics()); in Flatten()
343 StringPool::FlattenUtf8(buffer_, visitor.pool, context->GetDiagnostics()); in Flatten()
350 for (const auto& str : visitor.pool.strings()) { in Flatten()
/frameworks/base/tools/aapt2/link/
DXmlNamespaceRemover.cpp57 XmlVisitor visitor(keep_uris_); in Consume() local
58 resource->root->Accept(&visitor); in Consume()
DXmlReferenceLinker.cpp167 XmlVisitor visitor(resource->file.source, callsite, context, context->GetExternalSymbols()); in Consume() local
169 resource->root->Accept(&visitor); in Consume()
170 return !visitor.HasError(); in Consume()
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp116 Visitor visitor(context, doc); in Consume() local
117 doc->root->Accept(&visitor); in Consume()
118 if (visitor.HasError()) { in Consume()
123 for (const InlineDeclaration& decl : visitor.GetInlineDeclarations()) { in Consume()
DPseudolocaleGenerator.cpp317 Visitor visitor(pool, method); in PseudolocalizeIfNeeded() local
318 original_value->value->Accept(&visitor); in PseudolocalizeIfNeeded()
321 if (visitor.value) { in PseudolocalizeIfNeeded()
322 localized_value = std::move(visitor.value); in PseudolocalizeIfNeeded()
323 } else if (visitor.item) { in PseudolocalizeIfNeeded()
324 localized_value = std::move(visitor.item); in PseudolocalizeIfNeeded()
/frameworks/layoutlib/create/tests/com/android/tools/layoutlib/create/
DAsmAnalyzerTest.java189 …DependencyVisitor visitor = getDefaultAnalyzer().getVisitor(zipClasses, keep, new_keep, in_deps, o… in testDependencyVisitor() local
192 cr.accept(visitor, 0 /* flags */); in testDependencyVisitor()
206 cr2.accept(visitor, 0 /* flags */); in testDependencyVisitor()
221 cr2.accept(visitor, 0 /* flags */); in testDependencyVisitor()
/frameworks/native/libs/vr/libpdx/
Dvariant_tests.cpp668 Visitor visitor; in TEST() local
669 v.Visit([&visitor](const auto& value) { visitor.Visit(value); }); in TEST()
670 EXPECT_EQ(10, visitor.int_value); in TEST()
672 visitor = {}; in TEST()
674 v.Visit([&visitor](const auto& value) { visitor.Visit(value); }); in TEST()
675 EXPECT_EQ(true, visitor.bool_value); in TEST()
682 Visitor visitor; in TEST() local
683 v.Visit([&visitor](const auto& value) { visitor.Visit(value); }); in TEST()
684 EXPECT_TRUE(visitor.empty_value); in TEST()

123