Home
last modified time | relevance | path

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

/frameworks/data-binding/compilerCommon/src/main/grammar-gen/android/databinding/parser/
DBindingExpressionParser.java120 public <Result> Result accept(ParseTreeVisitor<? extends Result> visitor) { in accept() argument
121 …if ( visitor instanceof BindingExpressionVisitor<?> ) return ((BindingExpressionVisitor<? extends … in accept()
122 else return visitor.visitChildren(this); in accept()
175 public <Result> Result accept(ParseTreeVisitor<? extends Result> visitor) { in accept() argument
176 …if ( visitor instanceof BindingExpressionVisitor<?> ) return ((BindingExpressionVisitor<? extends … in accept()
177 else return visitor.visitChildren(this); in accept()
230 public <Result> Result accept(ParseTreeVisitor<? extends Result> visitor) { in accept() argument
231 …if ( visitor instanceof BindingExpressionVisitor<?> ) return ((BindingExpressionVisitor<? extends … in accept()
232 else return visitor.visitChildren(this); in accept()
313 public <Result> Result accept(ParseTreeVisitor<? extends Result> visitor) { in accept() argument
[all …]
/frameworks/data-binding/compilerCommon/src/main/xml-gen/android/databinding/parser/
DXMLParser.java70 public <Result> Result accept(ParseTreeVisitor<? extends Result> visitor) { in accept() argument
71 …if ( visitor instanceof XMLParserVisitor<?> ) return ((XMLParserVisitor<? extends Result>)visitor)… in accept()
72 else return visitor.visitChildren(this); in accept()
154 public <Result> Result accept(ParseTreeVisitor<? extends Result> visitor) { in accept() argument
155 …if ( visitor instanceof XMLParserVisitor<?> ) return ((XMLParserVisitor<? extends Result>)visitor)… in accept()
156 else return visitor.visitChildren(this); in accept()
240 public <Result> Result accept(ParseTreeVisitor<? extends Result> visitor) { in accept() argument
241 …if ( visitor instanceof XMLParserVisitor<?> ) return ((XMLParserVisitor<? extends Result>)visitor)… in accept()
242 else return visitor.visitChildren(this); in accept()
357 public <Result> Result accept(ParseTreeVisitor<? extends Result> visitor) { in accept() argument
[all …]
/frameworks/base/tools/aapt2/
DValueVisitor_test.cpp55 SingleReferenceVisitor visitor; in TEST() local
56 ref.accept(&visitor); in TEST()
58 EXPECT_EQ(visitor.visited, &ref); in TEST()
67 StyleVisitor visitor; in TEST() local
68 style->accept(&visitor); in TEST()
70 ASSERT_EQ(style.get(), visitor.visitedStyle); in TEST()
73 ASSERT_EQ(style->entries.size() + 2, visitor.visitedRefs.size()); in TEST()
DValueVisitor.h144 DynCastVisitor<T> visitor;
145 value->accept(&visitor);
146 return visitor.value;
149 inline void visitAllValuesInPackage(ResourceTablePackage* pkg, RawValueVisitor* visitor) {
153 configValue->value->accept(visitor);
159 inline void visitAllValuesInTable(ResourceTable* table, RawValueVisitor* visitor) {
161 visitAllValuesInPackage(pkg.get(), visitor);
DResourceValues.h104 virtual void accept(RawValueVisitor* visitor) = 0;
128 void accept(RawValueVisitor* visitor) override;
152 void accept(RawValueVisitor* visitor) override;
DResourceValues.cpp30 void BaseValue<Derived>::accept(RawValueVisitor* visitor) { in accept() argument
31 visitor->visit(static_cast<Derived*>(this)); in accept()
35 void BaseItem<Derived>::accept(RawValueVisitor* visitor) { in accept() argument
36 visitor->visit(static_cast<Derived*>(this)); in accept()
DDebug.cpp120 PrintVisitor visitor; in printTable() local
168 value->value->accept(&visitor); in printTable()
/frameworks/base/tools/aapt2/xml/
DXmlDom.h50 virtual void accept(RawVisitor* visitor) = 0;
59 virtual void accept(RawVisitor* visitor) override;
195 void BaseNode<Derived>::accept(RawVisitor* visitor) { in accept() argument
196 visitor->visit(static_cast<Derived*>(this)); in accept()
212 NodeCastImpl<T> visitor; in nodeCast() local
213 node->accept(&visitor); in nodeCast()
214 return visitor.value; in nodeCast()
/frameworks/base/tools/aapt2/java/
DProguardRules.cpp189 ManifestVisitor visitor(source, keepSet); in collectProguardRulesForManifest() local
191 res->root->accept(&visitor); in collectProguardRulesForManifest()
204 LayoutVisitor visitor(source, keepSet); in collectProguardRules() local
205 res->root->accept(&visitor); in collectProguardRules()
210 XmlResourceVisitor visitor(source, keepSet); in collectProguardRules() local
211 res->root->accept(&visitor); in collectProguardRules()
216 TransitionVisitor visitor(source, keepSet); in collectProguardRules() local
217 res->root->accept(&visitor); in collectProguardRules()
/frameworks/base/tools/aapt2/flatten/
DXmlFlattener.cpp258 XmlFlattenerVisitor visitor(&nodeBuffer, mOptions); in flatten() local
259 node->accept(&visitor); in flatten()
262 for (auto& packagePoolEntry : visitor.mPackagePools) { in flatten()
263 visitor.mPool.merge(std::move(packagePoolEntry.second)); in flatten()
267 visitor.mPool.sort([](const StringPool::Entry& a, const StringPool::Entry& b) -> bool { in flatten()
272 for (const auto& refEntry : visitor.mStringRefs) { in flatten()
281 StringPool::flattenUtf16(mBuffer, visitor.mPool); in flatten()
287 for (const auto& str : visitor.mPool) { in flatten()
DTableFlattener.cpp295 MapFlattenVisitor visitor(outEntry, buffer); in flattenValue() local
296 entry->value->accept(&visitor); in flattenValue()
297 visitor.finish(); in flattenValue()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
DExpressionParser.java45 final ExpressionVisitor visitor; field in ExpressionParser
49 visitor = new ExpressionVisitor(mModel); in ExpressionParser()
68 visitor.setParseTreeListener(new ParseTreeListener() { in parse()
98 return root.accept(visitor); in parse()
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator.cpp191 Visitor visitor(pool, method); in pseudolocalizeIfNeeded() local
192 originalValue->value->accept(&visitor); in pseudolocalizeIfNeeded()
195 if (visitor.mValue) { in pseudolocalizeIfNeeded()
196 localizedValue = std::move(visitor.mValue); in pseudolocalizeIfNeeded()
197 } else if (visitor.mItem) { in pseudolocalizeIfNeeded()
198 localizedValue = std::move(visitor.mItem); in pseudolocalizeIfNeeded()
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/
DAsmAnalyzerTest.java217 DependencyVisitor visitor = mAa.getVisitor(zipClasses, keep, new_keep, in_deps, out_deps); in testDependencyVisitor() local
220 cr.accept(visitor, 0 /* flags */); in testDependencyVisitor()
234 cr2.accept(visitor, 0 /* flags */); in testDependencyVisitor()
249 cr2.accept(visitor, 0 /* flags */); in testDependencyVisitor()
/frameworks/base/tools/aapt2/link/
DXmlReferenceLinker.cpp164 XmlVisitor visitor(context, context->getExternalSymbols(), resource->file.source, in consume() local
167 resource->root->accept(&visitor); in consume()
168 return !visitor.hasError(); in consume()
DReferenceLinker.cpp318 ReferenceLinkerVisitor visitor(context, context->getExternalSymbols(), in consume() local
322 configValue->value->accept(&visitor); in consume()
325 if (visitor.hasError()) { in consume()
DManifestFixer.cpp253 FullyQualifiedClassNameVisitor visitor(originalPackage); in renameManifestPackage() local
254 manifestEl->accept(&visitor); in renameManifestPackage()
/frameworks/data-binding/compilerCommon/
Dbuild.gradle51 …args "XMLParser.g4", "-visitor", "-o", "src/main/java/android/databinding/parser", "-package", "an…
57 …args "BindingExpression.g4", "-visitor", "-o", "src/main/grammar-gen/android/databinding/parser", …
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
DAsmAnalyzer.java325 DependencyVisitor visitor = getVisitor(zipClasses, in findDeps() local
330 visitor.setClassName(cr.getClassName()); in findDeps()
331 cr.accept(visitor, 0 /* flags */); in findDeps()
347 visitor.setClassName(cr.getClassName()); in findDeps()
348 cr.accept(visitor, 0 /* flags */); in findDeps()
DDependencyFinder.java206 DependencyVisitor visitor = getVisitor(); in findClassesDeps() local
215 visitor.setDependencySet(set); in findClassesDeps()
218 cr.accept(visitor, 0 /* flags */); in findClassesDeps()
220 visitor.setDependencySet(null); in findClassesDeps()
/frameworks/base/tools/aapt2/proto/
DTableProtoSerializer.cpp264 PbSerializerVisitor visitor(&sourcePool, &symbolPool, pbValue); in serializeTableToPb() local
265 configValue->value->accept(&visitor); in serializeTableToPb()
DTableProtoDeserializer.cpp153 ReferenceIdToNameVisitor visitor(&idIndex); in deserializeFromPb() local
154 visitAllValuesInPackage(pkg, &visitor); in deserializeFromPb()
/frameworks/base/tools/aapt2/unflatten/
DBinaryResourceParser.cpp255 ReferenceIdToNameVisitor visitor(&mIdIndex); in parsePackage() local
256 visitAllValuesInTable(mTable, &visitor); in parsePackage()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java1122 private void visitAllKeyboardLayouts(KeyboardLayoutVisitor visitor) { in visitAllKeyboardLayouts() argument
1130 visitKeyboardLayoutsInPackage(pm, activityInfo, null, priority, visitor); in visitAllKeyboardLayouts()
1135 KeyboardLayoutVisitor visitor) { in visitKeyboardLayout() argument
1145 visitKeyboardLayoutsInPackage(pm, receiver, d.keyboardLayoutName, 0, visitor); in visitKeyboardLayout()
1152 String keyboardName, int requestedPriority, KeyboardLayoutVisitor visitor) { in visitKeyboardLayoutsInPackage() argument
1217 visitor.visitKeyboardLayout( in visitKeyboardLayoutsInPackage()
/frameworks/base/tools/layoutlib/create/
DREADME.txt38 The ASM library is used to do the bytecode modification using its visitor pattern API.
79 ASM visitor on the class, the field types, the method types and annotations types. Classes that