Lines Matching refs:block

302             ResXMLTree& block, bool _appendComment)  in PendingAttribute()
304 , sourcePos(in->getPrintableSource(), block.getLineNumber()) in PendingAttribute()
328 ResXMLTree& block, in compileAttribute() argument
334 PendingAttribute attr(myPackage, in, block, inStyleable); in compileAttribute()
347 ssize_t identIdx = block.indexOfAttribute(NULL, "name"); in compileAttribute()
349 attr.ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileAttribute()
359 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileAttribute()
361 ssize_t typeIdx = block.indexOfAttribute(NULL, "format"); in compileAttribute()
363 String16 typeStr = String16(block.getAttributeStringValue(typeIdx, &len)); in compileAttribute()
379 ssize_t minIdx = block.indexOfAttribute(NULL, "min"); in compileAttribute()
381 String16 val = String16(block.getAttributeStringValue(minIdx, &len)); in compileAttribute()
397 ssize_t maxIdx = block.indexOfAttribute(NULL, "max"); in compileAttribute()
399 String16 val = String16(block.getAttributeStringValue(maxIdx, &len)); in compileAttribute()
418 ssize_t l10nIdx = block.indexOfAttribute(NULL, "localization"); in compileAttribute()
420 const char16_t* str = block.getAttributeStringValue(l10nIdx, &len); in compileAttribute()
442 while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileAttribute()
445 if (strcmp16(block.getElementName(&len), enum16.string()) == 0) { in compileAttribute()
447 } else if (strcmp16(block.getElementName(&len), flag16.string()) == 0) { in compileAttribute()
450 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
452 String8(block.getElementName(&len)).string()); in compileAttribute()
470 … err = outTable->addBag(SourcePos(in->getPrintableSource(), block.getLineNumber()), in compileAttribute()
479 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
483 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
490 ssize_t itemIdentIdx = block.indexOfAttribute(NULL, "name"); in compileAttribute()
492 itemIdent = String16(block.getAttributeStringValue(itemIdentIdx, &len)); in compileAttribute()
494 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
500 ssize_t valueIdx = block.indexOfAttribute(NULL, "value"); in compileAttribute()
502 value = String16(block.getAttributeStringValue(valueIdx, &len)); in compileAttribute()
504 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
509 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
535 if (block.getComment(&len)) { in compileAttribute()
536 enumOrFlagsComment.append(String16(block.getComment(&len))); in compileAttribute()
540 err = outTable->addBag(SourcePos(in->getPrintableSource(), block.getLineNumber()), in compileAttribute()
549 if (strcmp16(block.getElementName(&len), attr16.string()) == 0) { in compileAttribute()
553 if (strcmp16(block.getElementName(&len), enum16.string()) != 0) { in compileAttribute()
554 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
556 String8(block.getElementName(&len)).string()); in compileAttribute()
560 if (strcmp16(block.getElementName(&len), flag16.string()) != 0) { in compileAttribute()
561 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
563 String8(block.getElementName(&len)).string()); in compileAttribute()
590 ResXMLTree* block, in parseAndAddBag() argument
610 block, item16, &str, &spans, isFormatted, in parseAndAddBag()
628 err = outTable->addBag(SourcePos(in->getPrintableSource(), block->getLineNumber()), in parseAndAddBag()
687 ResXMLTree* block, in parseAndAddEntry() argument
706 err = parseStyledString(bundle, in->getPrintableSource().string(), block, in parseAndAddEntry()
770 err = outTable->addEntry(SourcePos(in->getPrintableSource(), block->getLineNumber()), in parseAndAddEntry()
784 ResXMLTree block; in compileResourceFile() local
785 status_t err = parseXMLResource(in, &block, false, true); in compileResourceFile()
863 code = block.next(); in compileResourceFile()
868 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
872 if (strcmp16(block.getElementName(&len), resources16.string()) != 0) { in compileResourceFile()
873 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
874 "Invalid start tag %s\n", String8(block.getElementName(&len)).string()); in compileResourceFile()
907 while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
920 if (strcmp16(block.getElementName(&len), skip16.string()) == 0) { in compileResourceFile()
921 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
924 if (strcmp16(block.getElementName(&len), skip16.string()) == 0) { in compileResourceFile()
931 } else if (strcmp16(block.getElementName(&len), eat_comment16.string()) == 0) { in compileResourceFile()
932 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
935 if (strcmp16(block.getElementName(&len), eat_comment16.string()) == 0) { in compileResourceFile()
942 } else if (strcmp16(block.getElementName(&len), public16.string()) == 0) { in compileResourceFile()
943 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber()); in compileResourceFile()
946 ssize_t typeIdx = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
951 type = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
954 ssize_t nameIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
959 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
962 ssize_t identIdx = block.indexOfAttribute(NULL, "id"); in compileResourceFile()
964 const char16_t* identStr = block.getAttributeStringValue(identIdx, &len); in compileResourceFile()
968 String8(block.getAttributeStringValue(identIdx, &len)).string()); in compileResourceFile()
997 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1005 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1007 if (strcmp16(block.getElementName(&len), public16.string()) == 0) { in compileResourceFile()
1014 } else if (strcmp16(block.getElementName(&len), public_padding16.string()) == 0) { in compileResourceFile()
1015 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber()); in compileResourceFile()
1018 ssize_t typeIdx = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
1023 type = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
1026 ssize_t nameIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1031 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
1034 ssize_t startIdx = block.indexOfAttribute(NULL, "start"); in compileResourceFile()
1036 const char16_t* startStr = block.getAttributeStringValue(startIdx, &len); in compileResourceFile()
1040 String8(block.getAttributeStringValue(startIdx, &len)).string()); in compileResourceFile()
1054 ssize_t endIdx = block.indexOfAttribute(NULL, "end"); in compileResourceFile()
1056 const char16_t* endStr = block.getAttributeStringValue(endIdx, &len); in compileResourceFile()
1060 String8(block.getAttributeStringValue(endIdx, &len)).string()); in compileResourceFile()
1079 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1115 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1117 if (strcmp16(block.getElementName(&len), public_padding16.string()) == 0) { in compileResourceFile()
1124 } else if (strcmp16(block.getElementName(&len), private_symbols16.string()) == 0) { in compileResourceFile()
1126 ssize_t pkgIdx = block.indexOfAttribute(NULL, "package"); in compileResourceFile()
1128 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1132 pkg = String16(block.getAttributeStringValue(pkgIdx, &len)); in compileResourceFile()
1134 SourcePos(in->getPrintableSource(), block.getLineNumber()).warning( in compileResourceFile()
1138 SourcePos(in->getPrintableSource(), block.getLineNumber()).warning( in compileResourceFile()
1145 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1147 if (strcmp16(block.getElementName(&len), private_symbols16.string()) == 0) { in compileResourceFile()
1154 } else if (strcmp16(block.getElementName(&len), java_symbol16.string()) == 0) { in compileResourceFile()
1155 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber()); in compileResourceFile()
1158 ssize_t typeIdx = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
1163 type = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
1166 ssize_t nameIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1171 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
1180 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1187 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1189 if (strcmp16(block.getElementName(&len), java_symbol16.string()) == 0) { in compileResourceFile()
1197 } else if (strcmp16(block.getElementName(&len), add_resource16.string()) == 0) { in compileResourceFile()
1198 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber()); in compileResourceFile()
1201 ssize_t typeIdx = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
1206 typeName = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
1209 ssize_t nameIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1214 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
1218 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1220 if (strcmp16(block.getElementName(&len), add_resource16.string()) == 0) { in compileResourceFile()
1227 } else if (strcmp16(block.getElementName(&len), declare_styleable16.string()) == 0) { in compileResourceFile()
1228 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber()); in compileResourceFile()
1231 ssize_t identIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1236 ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileResourceFile()
1253 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1259 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1261 if (strcmp16(block.getElementName(&len), skip16.string()) == 0) { in compileResourceFile()
1262 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
1265 … if (strcmp16(block.getElementName(&len), skip16.string()) == 0) { in compileResourceFile()
1271 … } else if (strcmp16(block.getElementName(&len), eat_comment16.string()) == 0) { in compileResourceFile()
1272 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
1275 … if (strcmp16(block.getElementName(&len), eat_comment16.string()) == 0) { in compileResourceFile()
1281 } else if (strcmp16(block.getElementName(&len), attr16.string()) != 0) { in compileResourceFile()
1282 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1284 String8(block.getElementName(&len)).string()); in compileResourceFile()
1289 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1291 err = compileAttribute(in, block, myPackage, outTable, &itemIdent, true); in compileResourceFile()
1297 … SourcePos srcPos(String8(in->getPrintableSource()), block.getLineNumber()); in compileResourceFile()
1304 … if (strcmp16(block.getElementName(&len), declare_styleable16.string()) == 0) { in compileResourceFile()
1308 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1310 String8(block.getElementName(&len)).string()); in compileResourceFile()
1316 } else if (strcmp16(block.getElementName(&len), attr16.string()) == 0) { in compileResourceFile()
1317 err = compileAttribute(in, block, myPackage, outTable, NULL); in compileResourceFile()
1323 } else if (strcmp16(block.getElementName(&len), item16.string()) == 0) { in compileResourceFile()
1325 ssize_t attri = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
1327 curType = String16(block.getAttributeStringValue(attri, &len)); in compileResourceFile()
1328 ssize_t nameIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1330 curName = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
1332 ssize_t formatIdx = block.indexOfAttribute(NULL, "format"); in compileResourceFile()
1334 String16 formatStr = String16(block.getAttributeStringValue( in compileResourceFile()
1339 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1346 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1351 } else if (strcmp16(block.getElementName(&len), string16.string()) == 0) { in compileResourceFile()
1360 size_t n = block.getAttributeCount(); in compileResourceFile()
1363 const char16_t* attr = block.getAttributeName(i, &length); in compileResourceFile()
1365 name.setTo(block.getAttributeStringValue(i, &length)); in compileResourceFile()
1367 translatable.setTo(block.getAttributeStringValue(i, &length)); in compileResourceFile()
1369 formatted.setTo(block.getAttributeStringValue(i, &length)); in compileResourceFile()
1381 SourcePos(in->getPrintableSource(), block.getLineNumber()).warning( in compileResourceFile()
1397 SourcePos(in->getPrintableSource(), block.getLineNumber())); in compileResourceFile()
1410 } else if (strcmp16(block.getElementName(&len), drawable16.string()) == 0) { in compileResourceFile()
1414 } else if (strcmp16(block.getElementName(&len), color16.string()) == 0) { in compileResourceFile()
1418 } else if (strcmp16(block.getElementName(&len), bool16.string()) == 0) { in compileResourceFile()
1422 } else if (strcmp16(block.getElementName(&len), integer16.string()) == 0) { in compileResourceFile()
1426 } else if (strcmp16(block.getElementName(&len), dimen16.string()) == 0) { in compileResourceFile()
1430 } else if (strcmp16(block.getElementName(&len), fraction16.string()) == 0) { in compileResourceFile()
1434 } else if (strcmp16(block.getElementName(&len), bag16.string()) == 0) { in compileResourceFile()
1437 ssize_t attri = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
1439 curType = String16(block.getAttributeStringValue(attri, &len)); in compileResourceFile()
1441 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1445 } else if (strcmp16(block.getElementName(&len), style16.string()) == 0) { in compileResourceFile()
1449 } else if (strcmp16(block.getElementName(&len), plurals16.string()) == 0) { in compileResourceFile()
1454 } else if (strcmp16(block.getElementName(&len), array16.string()) == 0) { in compileResourceFile()
1459 ssize_t formatIdx = block.indexOfAttribute(NULL, "format"); in compileResourceFile()
1461 String16 formatStr = String16(block.getAttributeStringValue( in compileResourceFile()
1466 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1472 } else if (strcmp16(block.getElementName(&len), string_array16.string()) == 0) { in compileResourceFile()
1476 size_t n = block.getAttributeCount(); in compileResourceFile()
1482 const char16_t* attr = block.getAttributeName(i, &length); in compileResourceFile()
1484 const char16_t* value = block.getAttributeStringValue(i, &length); in compileResourceFile()
1489 const char16_t* value = block.getAttributeStringValue(i, &length); in compileResourceFile()
1502 } else if (strcmp16(block.getElementName(&len), integer_array16.string()) == 0) { in compileResourceFile()
1509 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1511 String8(block.getElementName(&len)).string()); in compileResourceFile()
1516 ssize_t identIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1518 ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileResourceFile()
1520 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1527 identIdx = block.indexOfAttribute(NULL, "product"); in compileResourceFile()
1529 product = String16(block.getAttributeStringValue(identIdx, &len)); in compileResourceFile()
1532 String16 comment(block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1537 ssize_t parentIdentIdx = block.indexOfAttribute(NULL, "parent"); in compileResourceFile()
1539 parentIdent = String16(block.getAttributeStringValue(parentIdentIdx, &len)); in compileResourceFile()
1549 block.getLineNumber()), myPackage, curType, ident, in compileResourceFile()
1559 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
1563 if (strcmp16(block.getElementName(&len), item16.string()) != 0) { in compileResourceFile()
1564 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1566 String8(block.getElementName(&len)).string(), in compileResourceFile()
1576 ssize_t itemIdentIdx = block.indexOfAttribute(NULL, "quantity"); in compileResourceFile()
1578 … String16 quantity16(block.getAttributeStringValue(itemIdentIdx, &len)); in compileResourceFile()
1598 … SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1603 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1608 ssize_t itemIdentIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1610 … itemIdent = String16(block.getAttributeStringValue(itemIdentIdx, &len)); in compileResourceFile()
1612 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1619 block.getPosition(&parserPosition); in compileResourceFile()
1621 err = parseAndAddBag(bundle, in, &block, curParams, myPackage, curType, in compileResourceFile()
1630 block.setPosition(parserPosition); in compileResourceFile()
1631 … err = parseAndAddBag(bundle, in, &block, pseudoParams, myPackage, in compileResourceFile()
1638 block.setPosition(parserPosition); in compileResourceFile()
1639 … err = parseAndAddBag(bundle, in, &block, pseudoBidiParams, myPackage, in compileResourceFile()
1650 if (strcmp16(block.getElementName(&len), curTag->string()) != 0) { in compileResourceFile()
1651 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1653 String8(block.getElementName(&len)).string(), in compileResourceFile()
1662 block.getPosition(&parserPosition); in compileResourceFile()
1664 err = parseAndAddEntry(bundle, in, &block, curParams, myPackage, curType, ident, in compileResourceFile()
1680 block.setPosition(parserPosition); in compileResourceFile()
1681 … err = parseAndAddEntry(bundle, in, &block, pseudoParams, myPackage, curType, in compileResourceFile()
1688 block.setPosition(parserPosition); in compileResourceFile()
1689 err = parseAndAddEntry(bundle, in, &block, pseudoBidiParams, in compileResourceFile()
1713 if (strcmp16(block.getElementName(&len), resources16.string()) != 0) { in compileResourceFile()
1714 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1715 "Unexpected end tag %s\n", String8(block.getElementName(&len)).string()); in compileResourceFile()
1722 if (isWhitespace(block.getText(&len))) { in compileResourceFile()
1725 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1727 String8(block.getText(&len)).string()); in compileResourceFile()