• Home
  • Raw
  • Download

Lines Matching refs:block

221     ResXMLTree block;  in parsePackage()  local
222 status_t err = parseXMLResource(file, &block); in parsePackage()
229 while ((code=block.next()) != ResXMLTree::START_TAG in parsePackage()
237 file->getPrintableSource().string(), block.getLineNumber()); in parsePackage()
240 if (strcmp16(block.getElementName(&len), String16("manifest").string()) != 0) { in parsePackage()
242 file->getPrintableSource().string(), block.getLineNumber(), in parsePackage()
243 String8(block.getElementName(&len)).string()); in parsePackage()
247 ssize_t nameIndex = block.indexOfAttribute(NULL, "package"); in parsePackage()
250 file->getPrintableSource().string(), block.getLineNumber()); in parsePackage()
254 assets->setPackage(String8(block.getAttributeStringValue(nameIndex, &len))); in parsePackage()
257 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in parsePackage()
260 if (strcmp16(block.getElementName(&len), uses_sdk16.string()) == 0) { in parsePackage()
261 ssize_t minSdkIndex = block.indexOfAttribute(RESOURCES_ANDROID_NAMESPACE, in parsePackage()
264 const uint16_t* minSdk16 = block.getAttributeStringValue(minSdkIndex, &len); in parsePackage()
1342 ResXMLTree block; in buildResources() local
1343 block.setTo(it.getFile()->getData(), it.getFile()->getSize(), true); in buildResources()
1344 checkForIds(src, block); in buildResources()
1474 ResXMLTree block; in buildResources() local
1475 block.setTo(it.getFile()->getData(), it.getFile()->getSize(), true); in buildResources()
1476 checkForIds(src, block); in buildResources()
1633 ResXMLTree block; in buildResources() local
1634 block.setTo(outManifestFile->getData(), outManifestFile->getSize(), true); in buildResources()
1667 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in buildResources()
1671 if (block.getElementNamespace(&len) != NULL) { in buildResources()
1674 if (strcmp16(block.getElementName(&len), manifest16.string()) == 0) { in buildResources()
1675 if (validateAttr(manifestPath, finalResTable, block, NULL, "package", in buildResources()
1679 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1683 } else if (strcmp16(block.getElementName(&len), permission16.string()) == 0 in buildResources()
1684 || strcmp16(block.getElementName(&len), permission_group16.string()) == 0) { in buildResources()
1685 const bool isGroup = strcmp16(block.getElementName(&len), in buildResources()
1687 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1692 SourcePos srcPos(manifestPath, block.getLineNumber()); in buildResources()
1712 ssize_t index = block.indexOfAttribute(RESOURCES_ANDROID_NAMESPACE, "name"); in buildResources()
1713 const uint16_t* id = block.getAttributeStringValue(index, &len); in buildResources()
1716 manifestPath.string(), block.getLineNumber(), in buildResources()
1717 String8(block.getElementName(&len)).string()); in buildResources()
1752 manifestPath.string(), block.getLineNumber(), idStr.string()); in buildResources()
1756 const uint16_t* cmt = block.getComment(&len); in buildResources()
1765 } else if (strcmp16(block.getElementName(&len), uses_permission16.string()) == 0) { in buildResources()
1766 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1770 } else if (strcmp16(block.getElementName(&len), instrumentation16.string()) == 0) { in buildResources()
1771 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1775 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1780 } else if (strcmp16(block.getElementName(&len), application16.string()) == 0) { in buildResources()
1781 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1785 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1790 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1795 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1800 } else if (strcmp16(block.getElementName(&len), provider16.string()) == 0) { in buildResources()
1801 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1805 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1810 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1815 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1820 } else if (strcmp16(block.getElementName(&len), service16.string()) == 0 in buildResources()
1821 || strcmp16(block.getElementName(&len), receiver16.string()) == 0 in buildResources()
1822 || strcmp16(block.getElementName(&len), activity16.string()) == 0) { in buildResources()
1823 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1827 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1832 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1837 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1842 } else if (strcmp16(block.getElementName(&len), action16.string()) == 0 in buildResources()
1843 || strcmp16(block.getElementName(&len), category16.string()) == 0) { in buildResources()
1844 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1849 } else if (strcmp16(block.getElementName(&len), data16.string()) == 0) { in buildResources()
1850 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1855 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1860 } else if (strcmp16(block.getElementName(&len), feature_group16.string()) == 0) { in buildResources()
1862 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in buildResources()
1866 if (strcmp16(block.getElementName(&len), uses_feature16.string()) == 0) { in buildResources()
1867 ssize_t idx = block.indexOfAttribute( in buildResources()
1873 int32_t data = block.getAttributeData(idx); in buildResources()
1878 manifestPath.string(), block.getLineNumber()); in buildResources()