Lines Matching refs:elA

85 bool ManifestMerger::checkEqual(xml::Element* elA, xml::Element* elB) {  in checkEqual()  argument
86 if (compare(elA, elB) != 0) { in checkEqual()
90 mAppLogger.note(elA->lineNumber) in checkEqual()
91 << "app tag '" << elA->name << "' defined here." in checkEqual()
96 std::vector<xml::Element*> childrenA = elA->getChildElements(); in checkEqual()
103 mAppLogger.note(elA->lineNumber) in checkEqual()
104 << "app tag '" << elA->name << "' defined here." in checkEqual()
124 bool ManifestMerger::mergeNewOrEqual(xml::Element* parentA, xml::Element* elA, xml::Element* elB) { in mergeNewOrEqual() argument
125 if (!elA) { in mergeNewOrEqual()
129 return checkEqual(elA, elB); in mergeNewOrEqual()
132 bool ManifestMerger::mergePreferRequired(xml::Element* parentA, xml::Element* elA, in mergePreferRequired() argument
134 if (!elA) { in mergePreferRequired()
139 xml::Attribute* reqA = elA->findAttribute(kSchemaAndroid, u"required"); in mergePreferRequired()
147 elA->attributes.push_back(xml::Attribute{ kSchemaAndroid, u"required", u"true" }); in mergePreferRequired()
163 bool ManifestMerger::mergeUsesSdk(xml::Element* elA, xml::Element* elB) { in mergeUsesSdk() argument
167 if (elA) { in mergeUsesSdk()
168 minAttrA = elA->findAttribute(kSchemaAndroid, u"minSdkVersion"); in mergeUsesSdk()
181 out = &(mAppLogger.error(elA->lineNumber) << "app declares "); in mergeUsesSdk()
182 } else if (elA) { in mergeUsesSdk()
183 out = &(mAppLogger.error(elA->lineNumber) << "app has implied "); in mergeUsesSdk()
201 if (elA) { in mergeUsesSdk()
202 targetAttrA = elA->findAttribute(kSchemaAndroid, u"targetSdkVersion"); in mergeUsesSdk()
215 out = &(mAppLogger.warn(elA->lineNumber) << "app declares "); in mergeUsesSdk()
216 } else if (elA) { in mergeUsesSdk()
217 out = &(mAppLogger.warn(elA->lineNumber) << "app has implied "); in mergeUsesSdk()
268 xml::Element* elA = findChildWithSameName(applicationA, elB); in mergeApplication() local
269 error |= !mergeNewOrEqual(applicationA, elA, elB); in mergeApplication()
271 xml::Element* elA = findChildWithSameName(applicationA, elB); in mergeApplication() local
272 error |= !mergePreferRequired(applicationA, elA, elB); in mergeApplication()
312 xml::Element* elA = findChildWithSameName(manifestA, elB); in mergeLibraryManifest() local
313 error |= !mergeNewOrEqual(manifestA, elA, elB); in mergeLibraryManifest()
315 xml::Element* elA = findChildWithSameName(manifestA, elB); in mergeLibraryManifest() local
316 error |= !mergePreferRequired(manifestA, elA, elB); in mergeLibraryManifest()
319 xml::Element* elA = findChildWithSameName(manifestA, elB); in mergeLibraryManifest() local
320 error |= !checkEqual(elA, elB); in mergeLibraryManifest()