Lines Matching refs:attr
68 for (const auto& attr : node->attributes) { in Visit() local
69 if (attr.compiled_value) { in Visit()
70 auto ref = ValueCast<Reference>(attr.compiled_value.get()); in Visit()
129 for (const auto& attr : node->attributes) { in Visit() local
130 if (attr.namespace_uri.empty() && attr.name == "class") { in Visit()
131 if (util::IsJavaClassName(attr.value)) { in Visit()
133 AddClass(node->line_number, attr.value, in Visit()
136 AddClass(node->line_number, attr.value, ""); in Visit()
139 } else if (attr.namespace_uri == xml::kSchemaAndroid && attr.name == "name") { in Visit()
140 if (is_fragment && util::IsJavaClassName(attr.value)) { in Visit()
141 AddClass(node->line_number, attr.value, ""); in Visit()
143 } else if (attr.namespace_uri == xml::kSchemaAndroid && attr.name == "onClick") { in Visit()
144 AddMethod(node->line_number, attr.value, "android.view.View"); in Visit()
162 for (const auto& attr : node->attributes) { in Visit() local
169 if ((attr.name == "actionViewClass" || attr.name == "actionProviderClass") && in Visit()
170 util::IsJavaClassName(attr.value)) { in Visit()
171 AddClass(node->line_number, attr.value, "android.content.Context"); in Visit()
174 if (attr.namespace_uri == xml::kSchemaAndroid && attr.name == "onClick") { in Visit()
175 AddMethod(node->line_number, attr.value, "android.view.MenuItem"); in Visit()
200 xml::Attribute* attr = in Visit() local
202 if (attr && util::IsJavaClassName(attr->value)) { in Visit()
203 AddClass(node->line_number, attr->value, ""); in Visit()
221 const auto& attr = node->FindAttribute(xml::kSchemaAndroid, "name"); in Visit() local
222 if (attr != nullptr && !attr->value.empty()) { in Visit()
223 std::string name = (attr->value[0] == '.') ? package_ + attr->value : attr->value; in Visit()
246 xml::Attribute* attr = node->FindAttribute({}, "class"); in Visit() local
247 if (attr && util::IsJavaClassName(attr->value)) { in Visit()
248 AddClass(node->line_number, attr->value, in Visit()
270 xml::Attribute* attr = node->FindAttribute({}, "package"); in Visit() local
271 if (attr) { in Visit()
272 package_ = attr->value; in Visit()
276 xml::Attribute* attr = node->FindAttribute(xml::kSchemaAndroid, "backupAgent"); in Visit() local
277 if (attr) { in Visit()
278 Maybe<std::string> result = util::GetFullyQualifiedClassName(package_, attr->value); in Visit()
283 attr = node->FindAttribute(xml::kSchemaAndroid, "appComponentFactory"); in Visit()
284 if (attr) { in Visit()
285 Maybe<std::string> result = util::GetFullyQualifiedClassName(package_, attr->value); in Visit()
291 attr = node->FindAttribute(xml::kSchemaAndroid, "zygotePreloadName"); in Visit()
292 if (attr) { in Visit()
293 Maybe<std::string> result = util::GetFullyQualifiedClassName(package_, attr->value); in Visit()
321 xml::Attribute* attr = node->FindAttribute(xml::kSchemaAndroid, "name"); in Visit() local
322 get_name = attr != nullptr; in Visit()
325 Maybe<std::string> result = util::GetFullyQualifiedClassName(package_, attr->value); in Visit()