• Home
  • Raw
  • Download

Lines Matching refs:block

230     ResXMLTree block;  in parsePackage()  local
231 status_t err = parseXMLResource(file, &block); in parsePackage()
238 while ((code=block.next()) != ResXMLTree::START_TAG in parsePackage()
246 file->getPrintableSource().string(), block.getLineNumber()); in parsePackage()
249 if (strcmp16(block.getElementName(&len), String16("manifest").string()) != 0) { in parsePackage()
251 file->getPrintableSource().string(), block.getLineNumber(), in parsePackage()
252 String8(block.getElementName(&len)).string()); in parsePackage()
256 ssize_t nameIndex = block.indexOfAttribute(NULL, "package"); in parsePackage()
259 file->getPrintableSource().string(), block.getLineNumber()); in parsePackage()
263 assets->setPackage(String8(block.getAttributeStringValue(nameIndex, &len))); in parsePackage()
265 ssize_t revisionCodeIndex = block.indexOfAttribute(RESOURCES_ANDROID_NAMESPACE, "revisionCode"); in parsePackage()
267 … bundle->setRevisionCode(String8(block.getAttributeStringValue(revisionCodeIndex, &len)).string()); in parsePackage()
271 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in parsePackage()
274 if (strcmp16(block.getElementName(&len), uses_sdk16.string()) == 0) { in parsePackage()
275 ssize_t minSdkIndex = block.indexOfAttribute(RESOURCES_ANDROID_NAMESPACE, in parsePackage()
278 const char16_t* minSdk16 = block.getAttributeStringValue(minSdkIndex, &len); in parsePackage()
1493 ResXMLTree block; in buildResources() local
1494 block.setTo(it.getFile()->getData(), it.getFile()->getSize(), true); in buildResources()
1495 checkForIds(src, block); in buildResources()
1640 ResXMLTree block; in buildResources() local
1641 block.setTo(it.getFile()->getData(), it.getFile()->getSize(), true); in buildResources()
1642 checkForIds(src, block); in buildResources()
1810 ssize_t block = resTable.getResource(symbol.id, &val, true); in buildResources() local
1811 if (block < 0) { in buildResources()
1814 block = finalResTable.getResource(symbol.id, &val, true); in buildResources()
1817 if (block < 0) { in buildResources()
1890 ResXMLTree block; in buildResources() local
1891 block.setTo(outManifestFile->getData(), outManifestFile->getSize(), true); in buildResources()
1924 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in buildResources()
1928 if (block.getElementNamespace(&len) != NULL) { in buildResources()
1931 if (strcmp16(block.getElementName(&len), manifest16.string()) == 0) { in buildResources()
1932 if (validateAttr(manifestPath, finalResTable, block, NULL, "package", in buildResources()
1936 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1940 } else if (strcmp16(block.getElementName(&len), permission16.string()) == 0 in buildResources()
1941 || strcmp16(block.getElementName(&len), permission_group16.string()) == 0) { in buildResources()
1942 const bool isGroup = strcmp16(block.getElementName(&len), in buildResources()
1944 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
1949 SourcePos srcPos(manifestPath, block.getLineNumber()); in buildResources()
1969 ssize_t index = block.indexOfAttribute(RESOURCES_ANDROID_NAMESPACE, "name"); in buildResources()
1970 const char16_t* id = block.getAttributeStringValue(index, &len); in buildResources()
1973 manifestPath.string(), block.getLineNumber(), in buildResources()
1974 String8(block.getElementName(&len)).string()); in buildResources()
2009 manifestPath.string(), block.getLineNumber(), idStr.string()); in buildResources()
2013 const char16_t* cmt = block.getComment(&len); in buildResources()
2020 } else if (strcmp16(block.getElementName(&len), uses_permission16.string()) == 0) { in buildResources()
2021 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
2025 } else if (strcmp16(block.getElementName(&len), instrumentation16.string()) == 0) { in buildResources()
2026 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
2030 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
2035 } else if (strcmp16(block.getElementName(&len), application16.string()) == 0) { in buildResources()
2036 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
2040 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
2045 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
2050 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
2055 } else if (strcmp16(block.getElementName(&len), provider16.string()) == 0) { in buildResources()
2056 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
2060 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
2065 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
2070 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
2075 } else if (strcmp16(block.getElementName(&len), service16.string()) == 0 in buildResources()
2076 || strcmp16(block.getElementName(&len), receiver16.string()) == 0 in buildResources()
2077 || strcmp16(block.getElementName(&len), activity16.string()) == 0) { in buildResources()
2078 if (validateAttr(manifestPath, finalResTable, block, RESOURCES_ANDROID_NAMESPACE, in buildResources()
2082 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
2087 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
2092 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
2097 } else if (strcmp16(block.getElementName(&len), action16.string()) == 0 in buildResources()
2098 || strcmp16(block.getElementName(&len), category16.string()) == 0) { in buildResources()
2099 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
2104 } else if (strcmp16(block.getElementName(&len), data16.string()) == 0) { in buildResources()
2105 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
2110 if (validateAttr(manifestPath, finalResTable, block, in buildResources()
2115 } else if (strcmp16(block.getElementName(&len), feature_group16.string()) == 0) { in buildResources()
2117 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in buildResources()
2121 if (strcmp16(block.getElementName(&len), uses_feature16.string()) == 0) { in buildResources()
2122 ssize_t idx = block.indexOfAttribute( in buildResources()
2128 int32_t data = block.getAttributeData(idx); in buildResources()
2133 manifestPath.string(), block.getLineNumber()); in buildResources()