Searched defs:styleable (Results 1 - 9 of 9) sorted by relevance

/frameworks/base/tools/aapt2/
H A DJavaClassGenerator_test.cpp63 std::unique_ptr<Styleable> styleable = util::make_unique<Styleable>(); local
66 styleable->entries.emplace_back(ref);
70 SourceLine{ "test.xml", 21 }, std::move(styleable)));
119 std::unique_ptr<Styleable> styleable = util::make_unique<Styleable>(); local
120 styleable->entries.emplace_back(ResourceNameRef{ mTable->getPackage(),
123 styleable->entries.emplace_back(ResourceNameRef{ u"com.lib", ResourceType::kAttr, u"bar" });
125 std::move(styleable)));
H A DJavaClassGenerator.cpp93 void JavaClassGenerator::visit(const Styleable& styleable, ValueVisitorArgs& a) { argument
101 sortedAttributes.reserve(styleable.entries.size());
102 for (const auto& attr : styleable.entries) {
103 // If we are not encoding final attributes, the styleable entry may have no ID
H A DResourceParser_test.cpp237 std::string input = "<declare-styleable name=\"Styleable\">\n"
239 "</declare-styleable>\n"
250 std::string input = "<declare-styleable name=\"Theme\">"
252 "</declare-styleable>\n"
253 "<declare-styleable name=\"Window\">\n"
255 "</declare-styleable>";
415 std::string input = "<declare-styleable name=\"foo\">\n"
418 "</declare-styleable>";
430 const Styleable* styleable = findResource<Styleable>(ResourceName{ local
432 ASSERT_NE(styleable, nullpt
[all...]
H A DResourceValues.cpp408 Styleable* styleable = new Styleable(); local
409 std::copy(entries.begin(), entries.end(), std::back_inserter(styleable->entries));
410 return styleable;
414 out << "(styleable) " << " ["
H A DLinker.cpp262 void Linker::visit(Styleable& styleable, ValueVisitorArgs& a) { argument
263 for (auto& attrRef : styleable.entries) {
H A DBinaryResourceParser.cpp68 void visit(Styleable& styleable, ValueVisitorArgs&) override {
69 for (auto& attr : styleable.entries) {
849 std::unique_ptr<Styleable> styleable = util::make_unique<Styleable>(); local
857 styleable->entries.emplace_back(symbol);
860 styleable->entries.emplace_back(mapEntry.name.ident);
863 return styleable;
H A DResourceValues.h336 virtual void visit(Styleable& styleable, ValueVisitorArgs& args) {} argument
377 virtual void visit(const Styleable& styleable, ValueVisitorArgs& args) {} argument
H A DResourceParser.cpp709 } else if (name == u"declare-styleable") {
1339 std::unique_ptr<Styleable> styleable = util::make_unique<Styleable>(); local
1374 styleable->entries.emplace_back(attrResourceName);
1388 << "> is not allowed inside <declare-styleable>."
1398 return mTable->addResource(resourceName, mConfig, source, std::move(styleable));
/frameworks/base/services/core/java/com/android/server/
H A DAttributeCache.java98 public Entry get(String packageName, int resId, int[] styleable, int userId) { argument
106 ent = map.get(styleable);
133 pkg.context.obtainStyledAttributes(resId, styleable));
134 map.put(styleable, ent);

Completed in 758 milliseconds