Lines Matching refs:block
225 ResXMLTree block; in parsePackage() local
226 status_t err = parseXMLResource(file, &block); in parsePackage()
233 while ((code=block.next()) != ResXMLTree::START_TAG in parsePackage()
241 file->getPrintableSource().string(), block.getLineNumber()); in parsePackage()
244 if (strcmp16(block.getElementName(&len), String16("manifest").string()) != 0) { in parsePackage()
246 file->getPrintableSource().string(), block.getLineNumber(), in parsePackage()
247 String8(block.getElementName(&len)).string()); in parsePackage()
251 ssize_t nameIndex = block.indexOfAttribute(NULL, "package"); in parsePackage()
254 file->getPrintableSource().string(), block.getLineNumber()); in parsePackage()
258 assets->setPackage(String8(block.getAttributeStringValue(nameIndex, &len))); in parsePackage()
260 ssize_t revisionCodeIndex = block.indexOfAttribute(RESOURCES_ANDROID_NAMESPACE, "revisionCode"); in parsePackage()
262 … bundle->setRevisionCode(String8(block.getAttributeStringValue(revisionCodeIndex, &len)).string()); in parsePackage()
266 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in parsePackage()
269 if (strcmp16(block.getElementName(&len), uses_sdk16.string()) == 0) { in parsePackage()
270 ssize_t minSdkIndex = block.indexOfAttribute(RESOURCES_ANDROID_NAMESPACE, in parsePackage()
273 const char16_t* minSdk16 = block.getAttributeStringValue(minSdkIndex, &len); in parsePackage()
1359 ResXMLTree block; in buildResources() local
1360 block.setTo(it.getFile()->getData(), it.getFile()->getSize(), true); in buildResources()
1361 checkForIds(src, block); in buildResources()
1491 ResXMLTree block; in buildResources() local
1492 block.setTo(it.getFile()->getData(), it.getFile()->getSize(), true); in buildResources()
1493 checkForIds(src, block); in buildResources()
1633 ssize_t block = resTable.getResource(symbol.id, &val, true); in buildResources() local
1634 if (block < 0) { in buildResources()
1637 block = finalResTable.getResource(symbol.id, &val, true); in buildResources()
1640 if (block < 0) { in buildResources()
1715 ResXMLTree block; in buildResources() local
1716 block.setTo(outManifestFile->getData(), outManifestFile->getSize(), true); in buildResources()
1749 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in buildResources()
1753 if (block.getElementNamespace(&len) != NULL) { in buildResources()
1756 if (strcmp16(block.getElementName(&len), manifest16.string()) == 0) { in buildResources()
1757 if (validateAttr(manifestPath, finalResTable, block, NULL, "package", in buildResources()
1761 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1765 } else if (strcmp16(block.getElementName(&len), permission16.string()) == 0 in buildResources()
1766 || strcmp16(block.getElementName(&len), permission_group16.string()) == 0) { in buildResources()
1767 const bool isGroup = strcmp16(block.getElementName(&len), in buildResources()
1769 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1774 SourcePos srcPos(manifestPath, block.getLineNumber()); in buildResources()
1794 ssize_t index = block.indexOfAttribute(RESOURCES_ANDROID_NAMESPACE, "name"); in buildResources()
1795 const char16_t* id = block.getAttributeStringValue(index, &len); in buildResources()
1798 manifestPath.string(), block.getLineNumber(), in buildResources()
1799 String8(block.getElementName(&len)).string()); in buildResources()
1834 manifestPath.string(), block.getLineNumber(), idStr.string()); in buildResources()
1838 const char16_t* cmt = block.getComment(&len); in buildResources()
1847 } else if (strcmp16(block.getElementName(&len), uses_permission16.string()) == 0) { in buildResources()
1848 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1852 } else if (strcmp16(block.getElementName(&len), instrumentation16.string()) == 0) { in buildResources()
1853 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1857 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1862 } else if (strcmp16(block.getElementName(&len), application16.string()) == 0) { in buildResources()
1863 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1867 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1872 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1877 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1882 } else if (strcmp16(block.getElementName(&len), provider16.string()) == 0) { in buildResources()
1883 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1887 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1892 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1897 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1902 } else if (strcmp16(block.getElementName(&len), service16.string()) == 0 in buildResources()
1903 || strcmp16(block.getElementName(&len), receiver16.string()) == 0 in buildResources()
1904 || strcmp16(block.getElementName(&len), activity16.string()) == 0) { in buildResources()
1905 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1909 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1914 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1919 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1924 } else if (strcmp16(block.getElementName(&len), action16.string()) == 0 in buildResources()
1925 || strcmp16(block.getElementName(&len), category16.string()) == 0) { in buildResources()
1926 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1931 } else if (strcmp16(block.getElementName(&len), data16.string()) == 0) { in buildResources()
1932 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1937 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
1942 } else if (strcmp16(block.getElementName(&len), feature_group16.string()) == 0) { in buildResources()
1944 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in buildResources()
1948 if (strcmp16(block.getElementName(&len), uses_feature16.string()) == 0) { in buildResources()
1949 ssize_t idx = block.indexOfAttribute( in buildResources()
1955 int32_t data = block.getAttributeData(idx); in buildResources()
1960 manifestPath.string(), block.getLineNumber()); in buildResources()