Lines Matching refs:block
305 ResXMLTree& block, bool _appendComment) in PendingAttribute()
307 , sourcePos(in->getPrintableSource(), block.getLineNumber()) in PendingAttribute()
331 ResXMLTree& block, in compileAttribute() argument
337 PendingAttribute attr(myPackage, in, block, inStyleable); in compileAttribute()
350 ssize_t identIdx = block.indexOfAttribute(NULL, "name"); in compileAttribute()
352 attr.ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileAttribute()
362 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileAttribute()
364 ssize_t typeIdx = block.indexOfAttribute(NULL, "format"); in compileAttribute()
366 String16 typeStr = String16(block.getAttributeStringValue(typeIdx, &len)); in compileAttribute()
382 ssize_t minIdx = block.indexOfAttribute(NULL, "min"); in compileAttribute()
384 String16 val = String16(block.getAttributeStringValue(minIdx, &len)); in compileAttribute()
400 ssize_t maxIdx = block.indexOfAttribute(NULL, "max"); in compileAttribute()
402 String16 val = String16(block.getAttributeStringValue(maxIdx, &len)); in compileAttribute()
421 ssize_t l10nIdx = block.indexOfAttribute(NULL, "localization"); in compileAttribute()
423 const char16_t* str = block.getAttributeStringValue(l10nIdx, &len); in compileAttribute()
445 while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileAttribute()
448 if (strcmp16(block.getElementName(&len), enum16.string()) == 0) { in compileAttribute()
450 } else if (strcmp16(block.getElementName(&len), flag16.string()) == 0) { in compileAttribute()
453 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
455 String8(block.getElementName(&len)).string()); in compileAttribute()
473 … err = outTable->addBag(SourcePos(in->getPrintableSource(), block.getLineNumber()), in compileAttribute()
482 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
486 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
493 ssize_t itemIdentIdx = block.indexOfAttribute(NULL, "name"); in compileAttribute()
495 itemIdent = String16(block.getAttributeStringValue(itemIdentIdx, &len)); in compileAttribute()
497 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
503 ssize_t valueIdx = block.indexOfAttribute(NULL, "value"); in compileAttribute()
505 value = String16(block.getAttributeStringValue(valueIdx, &len)); in compileAttribute()
507 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
512 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
538 if (block.getComment(&len)) { in compileAttribute()
539 enumOrFlagsComment.append(String16(block.getComment(&len))); in compileAttribute()
543 err = outTable->addBag(SourcePos(in->getPrintableSource(), block.getLineNumber()), in compileAttribute()
552 if (strcmp16(block.getElementName(&len), attr16.string()) == 0) { in compileAttribute()
556 if (strcmp16(block.getElementName(&len), enum16.string()) != 0) { in compileAttribute()
557 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
559 String8(block.getElementName(&len)).string()); in compileAttribute()
563 if (strcmp16(block.getElementName(&len), flag16.string()) != 0) { in compileAttribute()
564 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
566 String8(block.getElementName(&len)).string()); in compileAttribute()
593 ResXMLTree* block, in parseAndAddBag() argument
613 block, item16, &str, &spans, isFormatted, in parseAndAddBag()
631 err = outTable->addBag(SourcePos(in->getPrintableSource(), block->getLineNumber()), in parseAndAddBag()
690 ResXMLTree* block, in parseAndAddEntry() argument
709 err = parseStyledString(bundle, in->getPrintableSource().string(), block, in parseAndAddEntry()
773 err = outTable->addEntry(SourcePos(in->getPrintableSource(), block->getLineNumber()), in parseAndAddEntry()
787 ResXMLTree block; in compileResourceFile() local
788 status_t err = parseXMLResource(in, &block, false, true); in compileResourceFile()
866 code = block.next(); in compileResourceFile()
871 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
875 if (strcmp16(block.getElementName(&len), resources16.string()) != 0) { in compileResourceFile()
876 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
877 "Invalid start tag %s\n", String8(block.getElementName(&len)).string()); in compileResourceFile()
910 while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
923 if (strcmp16(block.getElementName(&len), skip16.string()) == 0) { in compileResourceFile()
924 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
927 if (strcmp16(block.getElementName(&len), skip16.string()) == 0) { in compileResourceFile()
934 } else if (strcmp16(block.getElementName(&len), eat_comment16.string()) == 0) { in compileResourceFile()
935 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
938 if (strcmp16(block.getElementName(&len), eat_comment16.string()) == 0) { in compileResourceFile()
945 } else if (strcmp16(block.getElementName(&len), public16.string()) == 0) { in compileResourceFile()
946 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber()); in compileResourceFile()
949 ssize_t typeIdx = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
954 type = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
957 ssize_t nameIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
962 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
965 ssize_t identIdx = block.indexOfAttribute(NULL, "id"); in compileResourceFile()
967 const char16_t* identStr = block.getAttributeStringValue(identIdx, &len); in compileResourceFile()
971 String8(block.getAttributeStringValue(identIdx, &len)).string()); in compileResourceFile()
1000 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1008 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1010 if (strcmp16(block.getElementName(&len), public16.string()) == 0) { in compileResourceFile()
1017 } else if (strcmp16(block.getElementName(&len), public_padding16.string()) == 0) { in compileResourceFile()
1018 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber()); in compileResourceFile()
1021 ssize_t typeIdx = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
1026 type = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
1029 ssize_t nameIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1034 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
1037 ssize_t startIdx = block.indexOfAttribute(NULL, "start"); in compileResourceFile()
1039 const char16_t* startStr = block.getAttributeStringValue(startIdx, &len); in compileResourceFile()
1043 String8(block.getAttributeStringValue(startIdx, &len)).string()); in compileResourceFile()
1057 ssize_t endIdx = block.indexOfAttribute(NULL, "end"); in compileResourceFile()
1059 const char16_t* endStr = block.getAttributeStringValue(endIdx, &len); in compileResourceFile()
1063 String8(block.getAttributeStringValue(endIdx, &len)).string()); in compileResourceFile()
1082 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1118 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1120 if (strcmp16(block.getElementName(&len), public_padding16.string()) == 0) { in compileResourceFile()
1127 } else if (strcmp16(block.getElementName(&len), private_symbols16.string()) == 0) { in compileResourceFile()
1129 ssize_t pkgIdx = block.indexOfAttribute(NULL, "package"); in compileResourceFile()
1131 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1135 pkg = String16(block.getAttributeStringValue(pkgIdx, &len)); in compileResourceFile()
1137 SourcePos(in->getPrintableSource(), block.getLineNumber()).warning( in compileResourceFile()
1141 SourcePos(in->getPrintableSource(), block.getLineNumber()).warning( in compileResourceFile()
1148 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1150 if (strcmp16(block.getElementName(&len), private_symbols16.string()) == 0) { in compileResourceFile()
1157 } else if (strcmp16(block.getElementName(&len), java_symbol16.string()) == 0) { in compileResourceFile()
1158 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber()); in compileResourceFile()
1161 ssize_t typeIdx = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
1166 type = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
1169 ssize_t nameIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1174 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
1183 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1190 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1192 if (strcmp16(block.getElementName(&len), java_symbol16.string()) == 0) { in compileResourceFile()
1200 } else if (strcmp16(block.getElementName(&len), add_resource16.string()) == 0) { in compileResourceFile()
1201 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber()); in compileResourceFile()
1204 ssize_t typeIdx = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
1209 typeName = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
1212 ssize_t nameIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1217 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
1221 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1223 if (strcmp16(block.getElementName(&len), add_resource16.string()) == 0) { in compileResourceFile()
1230 } else if (strcmp16(block.getElementName(&len), declare_styleable16.string()) == 0) { in compileResourceFile()
1231 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber()); in compileResourceFile()
1234 ssize_t identIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1239 ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileResourceFile()
1256 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1262 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1264 if (strcmp16(block.getElementName(&len), skip16.string()) == 0) { in compileResourceFile()
1265 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
1268 … if (strcmp16(block.getElementName(&len), skip16.string()) == 0) { in compileResourceFile()
1274 … } else if (strcmp16(block.getElementName(&len), eat_comment16.string()) == 0) { in compileResourceFile()
1275 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
1278 … if (strcmp16(block.getElementName(&len), eat_comment16.string()) == 0) { in compileResourceFile()
1284 } else if (strcmp16(block.getElementName(&len), attr16.string()) != 0) { in compileResourceFile()
1285 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1287 String8(block.getElementName(&len)).string()); in compileResourceFile()
1292 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1294 err = compileAttribute(in, block, myPackage, outTable, &itemIdent, true); in compileResourceFile()
1300 … SourcePos srcPos(String8(in->getPrintableSource()), block.getLineNumber()); in compileResourceFile()
1307 … if (strcmp16(block.getElementName(&len), declare_styleable16.string()) == 0) { in compileResourceFile()
1311 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1313 String8(block.getElementName(&len)).string()); in compileResourceFile()
1319 } else if (strcmp16(block.getElementName(&len), attr16.string()) == 0) { in compileResourceFile()
1320 err = compileAttribute(in, block, myPackage, outTable, NULL); in compileResourceFile()
1326 } else if (strcmp16(block.getElementName(&len), item16.string()) == 0) { in compileResourceFile()
1328 ssize_t attri = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
1330 curType = String16(block.getAttributeStringValue(attri, &len)); in compileResourceFile()
1331 ssize_t nameIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1333 curName = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
1335 ssize_t formatIdx = block.indexOfAttribute(NULL, "format"); in compileResourceFile()
1337 String16 formatStr = String16(block.getAttributeStringValue( in compileResourceFile()
1342 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1349 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1354 } else if (strcmp16(block.getElementName(&len), string16.string()) == 0) { in compileResourceFile()
1363 size_t n = block.getAttributeCount(); in compileResourceFile()
1366 const char16_t* attr = block.getAttributeName(i, &length); in compileResourceFile()
1368 name.setTo(block.getAttributeStringValue(i, &length)); in compileResourceFile()
1370 translatable.setTo(block.getAttributeStringValue(i, &length)); in compileResourceFile()
1372 formatted.setTo(block.getAttributeStringValue(i, &length)); in compileResourceFile()
1384 SourcePos(in->getPrintableSource(), block.getLineNumber()).warning( in compileResourceFile()
1400 SourcePos(in->getPrintableSource(), block.getLineNumber())); in compileResourceFile()
1413 } else if (strcmp16(block.getElementName(&len), drawable16.string()) == 0) { in compileResourceFile()
1417 } else if (strcmp16(block.getElementName(&len), color16.string()) == 0) { in compileResourceFile()
1421 } else if (strcmp16(block.getElementName(&len), bool16.string()) == 0) { in compileResourceFile()
1425 } else if (strcmp16(block.getElementName(&len), integer16.string()) == 0) { in compileResourceFile()
1429 } else if (strcmp16(block.getElementName(&len), dimen16.string()) == 0) { in compileResourceFile()
1433 } else if (strcmp16(block.getElementName(&len), fraction16.string()) == 0) { in compileResourceFile()
1437 } else if (strcmp16(block.getElementName(&len), bag16.string()) == 0) { in compileResourceFile()
1440 ssize_t attri = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
1442 curType = String16(block.getAttributeStringValue(attri, &len)); in compileResourceFile()
1444 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1448 } else if (strcmp16(block.getElementName(&len), style16.string()) == 0) { in compileResourceFile()
1452 } else if (strcmp16(block.getElementName(&len), plurals16.string()) == 0) { in compileResourceFile()
1457 } else if (strcmp16(block.getElementName(&len), array16.string()) == 0) { in compileResourceFile()
1462 ssize_t formatIdx = block.indexOfAttribute(NULL, "format"); in compileResourceFile()
1464 String16 formatStr = String16(block.getAttributeStringValue( in compileResourceFile()
1469 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1475 } else if (strcmp16(block.getElementName(&len), string_array16.string()) == 0) { in compileResourceFile()
1479 size_t n = block.getAttributeCount(); in compileResourceFile()
1485 const char16_t* attr = block.getAttributeName(i, &length); in compileResourceFile()
1487 const char16_t* value = block.getAttributeStringValue(i, &length); in compileResourceFile()
1492 const char16_t* value = block.getAttributeStringValue(i, &length); in compileResourceFile()
1505 } else if (strcmp16(block.getElementName(&len), integer_array16.string()) == 0) { in compileResourceFile()
1512 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1514 String8(block.getElementName(&len)).string()); in compileResourceFile()
1519 ssize_t identIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1521 ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileResourceFile()
1523 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1530 identIdx = block.indexOfAttribute(NULL, "product"); in compileResourceFile()
1532 product = String16(block.getAttributeStringValue(identIdx, &len)); in compileResourceFile()
1535 String16 comment(block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1540 ssize_t parentIdentIdx = block.indexOfAttribute(NULL, "parent"); in compileResourceFile()
1542 parentIdent = String16(block.getAttributeStringValue(parentIdentIdx, &len)); in compileResourceFile()
1552 block.getLineNumber()), myPackage, curType, ident, in compileResourceFile()
1562 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
1566 if (strcmp16(block.getElementName(&len), item16.string()) != 0) { in compileResourceFile()
1567 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1569 String8(block.getElementName(&len)).string(), in compileResourceFile()
1579 ssize_t itemIdentIdx = block.indexOfAttribute(NULL, "quantity"); in compileResourceFile()
1581 … String16 quantity16(block.getAttributeStringValue(itemIdentIdx, &len)); in compileResourceFile()
1601 … SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1606 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1611 ssize_t itemIdentIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1613 … itemIdent = String16(block.getAttributeStringValue(itemIdentIdx, &len)); in compileResourceFile()
1615 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1622 block.getPosition(&parserPosition); in compileResourceFile()
1624 err = parseAndAddBag(bundle, in, &block, curParams, myPackage, curType, in compileResourceFile()
1633 block.setPosition(parserPosition); in compileResourceFile()
1634 … err = parseAndAddBag(bundle, in, &block, pseudoParams, myPackage, in compileResourceFile()
1641 block.setPosition(parserPosition); in compileResourceFile()
1642 … err = parseAndAddBag(bundle, in, &block, pseudoBidiParams, myPackage, in compileResourceFile()
1653 if (strcmp16(block.getElementName(&len), curTag->string()) != 0) { in compileResourceFile()
1654 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1656 String8(block.getElementName(&len)).string(), in compileResourceFile()
1665 block.getPosition(&parserPosition); in compileResourceFile()
1667 err = parseAndAddEntry(bundle, in, &block, curParams, myPackage, curType, ident, in compileResourceFile()
1683 block.setPosition(parserPosition); in compileResourceFile()
1684 … err = parseAndAddEntry(bundle, in, &block, pseudoParams, myPackage, curType, in compileResourceFile()
1691 block.setPosition(parserPosition); in compileResourceFile()
1692 err = parseAndAddEntry(bundle, in, &block, pseudoBidiParams, in compileResourceFile()
1716 if (strcmp16(block.getElementName(&len), resources16.string()) != 0) { in compileResourceFile()
1717 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1718 "Unexpected end tag %s\n", String8(block.getElementName(&len)).string()); in compileResourceFile()
1725 if (isWhitespace(block.getText(&len))) { in compileResourceFile()
1728 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1730 String8(block.getText(&len)).string()); in compileResourceFile()