Lines Matching refs:block

184     ResXMLTree block;
185 status_t err = parseXMLResource(file, &block);
189 //printXMLBlock(&block);
192 while ((code=block.next()) != ResXMLTree::START_TAG
200 file->getPrintableSource().string(), block.getLineNumber());
203 if (strcmp16(block.getElementName(&len), String16("manifest").string()) != 0) {
205 file->getPrintableSource().string(), block.getLineNumber(),
206 String8(block.getElementName(&len)).string());
210 ssize_t nameIndex = block.indexOfAttribute(NULL, "package");
213 file->getPrintableSource().string(), block.getLineNumber());
217 assets->setPackage(String8(block.getAttributeStringValue(nameIndex, &len)));
220 while ((code=block.next()) != ResXMLTree::END_DOCUMENT
223 if (strcmp16(block.getElementName(&len), uses_sdk16.string()) == 0) {
224 ssize_t minSdkIndex = block.indexOfAttribute(RESOURCES_ANDROID_NAMESPACE,
227 const uint16_t* minSdk16 = block.getAttributeStringValue(minSdkIndex, &len);
422 fprintf(stderr, "%s:%d: Tag <%s> attribute %s has no string block.\n",
934 ResXMLTree block;
935 block.setTo(it.getFile()->getData(), it.getFile()->getSize(), true);
936 checkForIds(src, block);
1008 ResXMLTree block;
1009 block.setTo(it.getFile()->getData(), it.getFile()->getSize(), true);
1010 checkForIds(src, block);
1045 //block.restart();
1046 //printXMLBlock(&block);
1113 ResXMLTree block;
1114 block.setTo(outManifestFile->getData(), outManifestFile->getSize(), true);
1145 while ((code=block.next()) != ResXMLTree::END_DOCUMENT
1149 if (block.getElementNamespace(&len) != NULL) {
1152 if (strcmp16(block.getElementName(&len), manifest16.string()) == 0) {
1153 if (validateAttr(manifestPath, finalResTable, block, NULL, "package",
1157 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE,
1161 } else if (strcmp16(block.getElementName(&len), permission16.string()) == 0
1162 || strcmp16(block.getElementName(&len), permission_group16.string()) == 0) {
1163 const bool isGroup = strcmp16(block.getElementName(&len),
1165 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE,
1170 SourcePos srcPos(manifestPath, block.getLineNumber());
1190 ssize_t index = block.indexOfAttribute(RESOURCES_ANDROID_NAMESPACE, "name");
1191 const uint16_t* id = block.getAttributeStringValue(index, &len);
1194 manifestPath.string(), block.getLineNumber(),
1195 String8(block.getElementName(&len)).string());
1230 manifestPath.string(), block.getLineNumber(), idStr.string());
1234 const uint16_t* cmt = block.getComment(&len);
1243 } else if (strcmp16(block.getElementName(&len), uses_permission16.string()) == 0) {
1244 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE,
1248 } else if (strcmp16(block.getElementName(&len), instrumentation16.string()) == 0) {
1249 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE,
1253 if (validateAttr(manifestPath, finalResTable, block,
1258 } else if (strcmp16(block.getElementName(&len), application16.string()) == 0) {
1259 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE,
1263 if (validateAttr(manifestPath, finalResTable, block,
1268 if (validateAttr(manifestPath, finalResTable, block,
1273 if (validateAttr(manifestPath, finalResTable, block,
1278 } else if (strcmp16(block.getElementName(&len), provider16.string()) == 0) {
1279 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE,
1283 if (validateAttr(manifestPath, finalResTable, block,
1288 if (validateAttr(manifestPath, finalResTable, block,
1293 if (validateAttr(manifestPath, finalResTable, block,
1298 } else if (strcmp16(block.getElementName(&len), service16.string()) == 0
1299 || strcmp16(block.getElementName(&len), receiver16.string()) == 0
1300 || strcmp16(block.getElementName(&len), activity16.string()) == 0) {
1301 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE,
1305 if (validateAttr(manifestPath, finalResTable, block,
1310 if (validateAttr(manifestPath, finalResTable, block,
1315 if (validateAttr(manifestPath, finalResTable, block,
1320 } else if (strcmp16(block.getElementName(&len), action16.string()) == 0
1321 || strcmp16(block.getElementName(&len), category16.string()) == 0) {
1322 if (validateAttr(manifestPath, finalResTable, block,
1327 } else if (strcmp16(block.getElementName(&len), data16.string()) == 0) {
1328 if (validateAttr(manifestPath, finalResTable, block,
1333 if (validateAttr(manifestPath, finalResTable, block,