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

/frameworks/base/tools/aapt2/java/
H A DJavaClassGenerator_test.cpp48 .addValue(u"@android:styleable/hey.dude", ResourceId(0x01030000),
207 .addValue(u"@android:styleable/foo", ResourceId(0x01030000),
264 Styleable styleable; local
265 styleable.entries.push_back(Reference(test::parseNameOrDie(u"@android:attr/one")));
266 styleable.setComment(StringPiece16(u"This is a styleable"));
271 .addValue(u"@android:styleable/Container",
272 std::unique_ptr<Styleable>(styleable.clone(nullptr)))
289 EXPECT_NE(std::string::npos, actual.find(util::utf16ToUtf8(styleable.getComment())));
H A DJavaClassGenerator.cpp74 * Transforms an attribute in a styleable to the Java field name:
76 * <declare-styleable name="Foo">
79 * </declare-styleable>
209 const Styleable* styleable,
218 sortedAttributes.reserve(styleable->entries.size());
219 for (const auto& attr : styleable->entries) {
220 // If we are not encoding final attributes, the styleable entry may have no ID
263 if (!styleable->getComment().empty()) {
264 styleableComment << styleable->getComment() << "\n";
447 const Styleable* styleable local
207 addMembersToStyleableClass(const StringPiece16& packageNameToGenerate, const std::u16string& entryName, const Styleable* styleable, ClassDefinition* outStyleableClassDef) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DAttributeCache.java121 public Entry get(String packageName, int resId, int[] styleable, int userId) { argument
130 ent = map.get(styleable);
157 pkg.context.obtainStyledAttributes(resId, styleable));
158 map.put(styleable, ent);
/frameworks/base/tools/aapt2/
H A DValueVisitor.h93 void visitSubValues(Styleable* styleable) { argument
94 for (Reference& reference : styleable->entries) {
H A DResourceParser_test.cpp149 <declare-styleable name="bar">
151 </declare-styleable>)EOF";
156 EXPECT_EQ(nullptr, test::getValueForConfig<Styleable>(&mTable, u"@styleable/bar", watchConfig));
160 EXPECT_NE(nullptr, test::getValue<Styleable>(&mTable, u"@styleable/bar"));
180 std::string input = "<declare-styleable name=\"Styleable\">\n"
182 "</declare-styleable>\n"
192 std::string input = "<declare-styleable name=\"Theme\">"
194 "</declare-styleable>\n"
195 "<declare-styleable name=\"Window\">\n"
197 "</declare-styleable>";
402 Styleable* styleable = test::getValue<Styleable>(&mTable, u"@styleable/foo"); local
416 Styleable* styleable = test::getValue<Styleable>(&mTable, u"@styleable/foo"); local
513 Styleable* styleable = test::getValue<Styleable>(&mTable, u"@styleable/foo"); local
[all...]
H A DResourceParser.cpp331 { u"declare-styleable", std::mem_fn(&ResourceParser::parseDeclareStyleable) },
1176 // Declare-styleable is kPrivate by default, because it technically only exists in R.java.
1179 // Declare-styleable only ends up in default config;
1182 << outResource->config << "' for styleable "
1187 std::unique_ptr<Styleable> styleable = util::make_unique<Styleable>(); local
1239 styleable->entries.push_back(std::move(childRef));
1256 outResource->value = std::move(styleable);
/frameworks/base/tools/aapt2/proto/
H A DTableProtoDeserializer.cpp283 const pb::Styleable& pbStyleable = pbCompoundValue.styleable();
284 std::unique_ptr<Styleable> styleable = util::make_unique<Styleable>(); local
289 styleable->entries.push_back(std::move(attrRef));
291 value = std::move(styleable);

Completed in 125 milliseconds