Lines Matching defs:elB

85 bool ManifestMerger::checkEqual(xml::Element* elA, xml::Element* elB) {
86 if (compare(elA, elB) != 0) {
87 mLogger.error(elB->lineNumber)
88 << "library tag '" << elB->name << "' conflicts with app tag."
97 std::vector<xml::Element*> childrenB = elB->getChildElements();
100 mLogger.error(elB->lineNumber)
101 << "library tag '" << elB->name << "' children conflict with app tag."
124 bool ManifestMerger::mergeNewOrEqual(xml::Element* parentA, xml::Element* elA, xml::Element* elB) {
126 parentA->addChild(elB->clone());
129 return checkEqual(elA, elB);
133 xml::Element* elB) {
135 parentA->addChild(elB->clone());
140 xml::Attribute* reqB = elB->findAttribute(kSchemaAndroid, u"required");
163 bool ManifestMerger::mergeUsesSdk(xml::Element* elA, xml::Element* elB) {
171 if (elB) {
172 minAttrB = elB->findAttribute(kSchemaAndroid, u"minSdkVersion");
191 // elB is valid because minSdkB wouldn't be greater than minSdkA if it wasn't.
192 mLogger.note(elB->lineNumber)
205 if (elB) {
206 targetAttrB = elB->findAttribute(kSchemaAndroid, u"targetSdkVersion");
225 mLogger.note(elB->lineNumber)
260 for (xml::Element* elB : applicationB->getChildElements()) {
261 if (!elB->namespaceUri.empty()) {
265 if (elB->name == u"activity" || elB->name == u"activity-alias"
266 || elB->name == u"service" || elB->name == u"receiver"
267 || elB->name == u"provider" || elB->name == u"meta-data") {
268 xml::Element* elA = findChildWithSameName(applicationA, elB);
269 error |= !mergeNewOrEqual(applicationA, elA, elB);
270 } else if (elB->name == u"uses-library") {
271 xml::Element* elA = findChildWithSameName(applicationA, elB);
272 error |= !mergePreferRequired(applicationA, elA, elB);
305 for (xml::Element* elB : manifestB->getChildElements()) {
306 if (!elB->namespaceUri.empty()) {
310 if (elB->name == u"uses-permission" || elB->name == u"permission"
311 || elB->name == u"permission-group" || elB->name == u"permission-tree") {
312 xml::Element* elA = findChildWithSameName(manifestA, elB);
313 error |= !mergeNewOrEqual(manifestA, elA, elB);
314 } else if (elB->name == u"uses-feature") {
315 xml::Element* elA = findChildWithSameName(manifestA, elB);
316 error |= !mergePreferRequired(manifestA, elA, elB);
317 } else if (elB->name == u"uses-configuration" || elB->name == u"supports-screen"
318 || elB->name == u"compatible-screens" || elB->name == u"supports-gl-texture") {
319 xml::Element* elA = findChildWithSameName(manifestA, elB);
320 error |= !checkEqual(elA, elB);