Lines Matching defs:attr

33   xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name");
34 if (attr == nullptr) {
40 if (attr->value.empty()) {
49 static bool NameIsJavaClassName(xml::Element* el, xml::Attribute* attr,
55 util::GetFullyQualifiedClassName("a", attr->value);
59 : attr->value;
71 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) {
72 return NameIsJavaClassName(el, attr, diag);
78 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name");
79 if (attr == nullptr) {
84 return NameIsJavaClassName(el, attr, diag);
88 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name");
89 if (attr == nullptr) {
95 if (!util::IsJavaPackageName(attr->value)) {
103 static xml::XmlNodeAction::ActionFuncWithDiag RequiredAndroidAttribute(const std::string& attr) {
105 if (el->FindAttribute(xml::kSchemaAndroid, attr) == nullptr) {
107 << "<" << el->name << "> is missing required attribute 'android:" << attr << "'");
118 xml::Attribute* attr = el->FindAttribute({}, kFeatureSplit);
119 if (attr != nullptr) {
122 attr->name = "split";
125 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, kIsFeatureSplit);
126 if (attr != nullptr) {
127 if (!ResourceUtils::ParseBool(attr->value).value_or_default(false)) {
145 xml::Attribute* attr = el->FindAttribute({}, "package");
146 if (!attr) {
150 } else if (ResourceUtils::IsReference(attr->value)) {
154 } else if (!util::IsAndroidPackageName(attr->value)) {
157 << attr->value << "'");
161 attr = el->FindAttribute({}, "split");
162 if (attr) {
163 if (!util::IsJavaPackageName(attr->value)) {
175 if (xml::Attribute* attr = el->FindAttribute("", "coreApp")) {
176 std::unique_ptr<BinaryPrimitive> result = ResourceUtils::TryParseBool(attr->value);
181 attr->compiled_value = std::move(result);
189 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) {
190 if (attr->value.empty()) {
199 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "glEsVersion")) {
328 if (xml::Attribute* attr =
330 attr->value = options_.rename_instrumentation_target_package.value();
376 xml::Attribute *attr = el->FindOrCreateAttribute(xml::kSchemaAndroid, "debuggable");
377 attr->value = "true";
401 xml::Attribute* attr = el->FindAttribute(attr_ns, attr_name);
402 if (attr != nullptr) {
403 if (Maybe<std::string> new_value = util::GetFullyQualifiedClassName(package, attr->value)) {
404 attr->value = std::move(new_value.value());
410 xml::Attribute* attr = manifest_el->FindAttribute({}, "package");
414 CHECK(attr != nullptr);
416 std::string original_package = std::move(attr->value);
417 attr->value = package_override.to_string();
460 xml::Attribute* attr = root->FindOrCreateAttribute(xml::kSchemaAndroid, "compileSdkVersion");
463 attr->compiled_value = {};
465 attr->value = options_.compile_sdk_version.value();
469 xml::Attribute* attr =
473 attr->compiled_value = {};
475 attr->value = options_.compile_sdk_version_codename.value();