Lines Matching refs:styleable
74 // Transforms an attribute in a styleable to the Java field name:
76 // <declare-styleable name="Foo">
79 // </declare-styleable>
229 const Styleable& styleable,
240 sorted_attributes.reserve(styleable.entries.size());
241 for (const auto& attr : styleable.entries) {
242 // If we are not encoding final attributes, the styleable entry may have no
244 CHECK(!options_.use_final || attr.id) << "no ID set for Styleable entry";
245 CHECK(bool(attr.name)) << "no name set for Styleable entry";
252 // The field name for this attribute is prefixed by the name of this styleable and
270 // Build the JavaDoc comment for the Styleable array. This has references to child attributes
275 if (!styleable.GetComment().empty()) {
276 styleable_comment << styleable.GetComment() << "\n";
278 // Apply a default intro comment if the styleable has no comments of its own.
309 // annotations like @hide which would affect this Styleable).
327 *out_r_txt << "int[] styleable " << array_field_name << " {";
347 // Add the Styleable array to the Styleable class.
400 *out_r_txt << StringPrintf("int styleable %s %d\n", sorted_attributes[i].field_name.data(),
408 // for this styleable.
411 StringPrintf("for (int i = 0; i < styleable.%s.length; i++) {", array_field_name.data()));
413 StringPrintf(" if ((styleable.%s[i] & 0xff000000) == 0) {", array_field_name.data()));
415 StringPrintf(" styleable.%s[i] = (styleable.%s[i] & 0x00ffffff) | (p << 24);",
531 const Styleable* styleable =
532 static_cast<const Styleable*>(entry->values.front()->value.get());
534 ProcessStyleable(resource_name, id, *styleable, package_name_to_generate, out_type_class_def,
607 // When generating a public R class, we don't want Styleable to be part