• Home
  • Raw
  • Download

Lines Matching refs:block

254             ResXMLTree& block, bool _appendComment)  in PendingAttribute()
256 , sourcePos(in->getPrintableSource(), block.getLineNumber()) in PendingAttribute()
298 ResXMLTree& block, in compileAttribute() argument
304 PendingAttribute attr(myPackage, in, block, inStyleable); in compileAttribute()
317 ssize_t identIdx = block.indexOfAttribute(NULL, "name"); in compileAttribute()
319 attr.ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileAttribute()
329 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileAttribute()
331 ssize_t typeIdx = block.indexOfAttribute(NULL, "format"); in compileAttribute()
333 String16 typeStr = String16(block.getAttributeStringValue(typeIdx, &len)); in compileAttribute()
349 ssize_t minIdx = block.indexOfAttribute(NULL, "min"); in compileAttribute()
351 String16 val = String16(block.getAttributeStringValue(minIdx, &len)); in compileAttribute()
367 ssize_t maxIdx = block.indexOfAttribute(NULL, "max"); in compileAttribute()
369 String16 val = String16(block.getAttributeStringValue(maxIdx, &len)); in compileAttribute()
388 ssize_t l10nIdx = block.indexOfAttribute(NULL, "localization"); in compileAttribute()
390 const uint16_t* str = block.getAttributeStringValue(l10nIdx, &len); in compileAttribute()
412 while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileAttribute()
415 if (strcmp16(block.getElementName(&len), enum16.string()) == 0) { in compileAttribute()
417 } else if (strcmp16(block.getElementName(&len), flag16.string()) == 0) { in compileAttribute()
420 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
422 String8(block.getElementName(&len)).string()); in compileAttribute()
440 … err = outTable->addBag(SourcePos(in->getPrintableSource(), block.getLineNumber()), in compileAttribute()
449 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
453 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
460 ssize_t itemIdentIdx = block.indexOfAttribute(NULL, "name"); in compileAttribute()
462 itemIdent = String16(block.getAttributeStringValue(itemIdentIdx, &len)); in compileAttribute()
464 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
470 ssize_t valueIdx = block.indexOfAttribute(NULL, "value"); in compileAttribute()
472 value = String16(block.getAttributeStringValue(valueIdx, &len)); in compileAttribute()
474 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
479 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
488 err = outTable->startBag(SourcePos(in->getPrintableSource(), block.getLineNumber()), in compileAttribute()
514 if (block.getComment(&len)) { in compileAttribute()
515 enumOrFlagsComment.append(String16(block.getComment(&len))); in compileAttribute()
519 err = outTable->addBag(SourcePos(in->getPrintableSource(), block.getLineNumber()), in compileAttribute()
528 if (strcmp16(block.getElementName(&len), attr16.string()) == 0) { in compileAttribute()
532 if (strcmp16(block.getElementName(&len), enum16.string()) != 0) { in compileAttribute()
533 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
535 String8(block.getElementName(&len)).string()); in compileAttribute()
539 if (strcmp16(block.getElementName(&len), flag16.string()) != 0) { in compileAttribute()
540 SourcePos(in->getPrintableSource(), block.getLineNumber()) in compileAttribute()
542 String8(block.getElementName(&len)).string()); in compileAttribute()
569 ResXMLTree* block, in parseAndAddBag() argument
589 block, item16, &str, &spans, isFormatted, in parseAndAddBag()
605 err = outTable->addBag(SourcePos(in->getPrintableSource(), block->getLineNumber()), in parseAndAddBag()
640 ResXMLTree* block, in parseAndAddEntry() argument
658 err = parseStyledString(bundle, in->getPrintableSource().string(), block, in parseAndAddEntry()
713 err = outTable->addEntry(SourcePos(in->getPrintableSource(), block->getLineNumber()), in parseAndAddEntry()
727 ResXMLTree block; in compileResourceFile() local
728 status_t err = parseXMLResource(in, &block, false, true); in compileResourceFile()
800 code = block.next(); in compileResourceFile()
805 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
809 if (strcmp16(block.getElementName(&len), resources16.string()) != 0) { in compileResourceFile()
810 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
811 "Invalid start tag %s\n", String8(block.getElementName(&len)).string()); in compileResourceFile()
823 while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
835 if (strcmp16(block.getElementName(&len), skip16.string()) == 0) { in compileResourceFile()
836 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
839 if (strcmp16(block.getElementName(&len), skip16.string()) == 0) { in compileResourceFile()
846 } else if (strcmp16(block.getElementName(&len), eat_comment16.string()) == 0) { in compileResourceFile()
847 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
850 if (strcmp16(block.getElementName(&len), eat_comment16.string()) == 0) { in compileResourceFile()
857 } else if (strcmp16(block.getElementName(&len), public16.string()) == 0) { in compileResourceFile()
858 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber()); in compileResourceFile()
861 ssize_t typeIdx = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
866 type = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
869 ssize_t nameIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
874 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
877 ssize_t identIdx = block.indexOfAttribute(NULL, "id"); in compileResourceFile()
879 const char16_t* identStr = block.getAttributeStringValue(identIdx, &len); in compileResourceFile()
883 String8(block.getAttributeStringValue(identIdx, &len)).string()); in compileResourceFile()
912 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
920 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
922 if (strcmp16(block.getElementName(&len), public16.string()) == 0) { in compileResourceFile()
929 } else if (strcmp16(block.getElementName(&len), public_padding16.string()) == 0) { in compileResourceFile()
930 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber()); in compileResourceFile()
933 ssize_t typeIdx = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
938 type = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
941 ssize_t nameIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
946 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
949 ssize_t startIdx = block.indexOfAttribute(NULL, "start"); in compileResourceFile()
951 const char16_t* startStr = block.getAttributeStringValue(startIdx, &len); in compileResourceFile()
955 String8(block.getAttributeStringValue(startIdx, &len)).string()); in compileResourceFile()
969 ssize_t endIdx = block.indexOfAttribute(NULL, "end"); in compileResourceFile()
971 const char16_t* endStr = block.getAttributeStringValue(endIdx, &len); in compileResourceFile()
975 String8(block.getAttributeStringValue(endIdx, &len)).string()); in compileResourceFile()
994 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1030 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1032 if (strcmp16(block.getElementName(&len), public_padding16.string()) == 0) { in compileResourceFile()
1039 } else if (strcmp16(block.getElementName(&len), private_symbols16.string()) == 0) { in compileResourceFile()
1041 ssize_t pkgIdx = block.indexOfAttribute(NULL, "package"); in compileResourceFile()
1043 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1047 pkg = String16(block.getAttributeStringValue(pkgIdx, &len)); in compileResourceFile()
1052 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1054 if (strcmp16(block.getElementName(&len), private_symbols16.string()) == 0) { in compileResourceFile()
1061 } else if (strcmp16(block.getElementName(&len), add_resource16.string()) == 0) { in compileResourceFile()
1062 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber()); in compileResourceFile()
1065 ssize_t typeIdx = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
1070 typeName = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
1073 ssize_t nameIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1078 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
1082 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1084 if (strcmp16(block.getElementName(&len), add_resource16.string()) == 0) { in compileResourceFile()
1091 } else if (strcmp16(block.getElementName(&len), declare_styleable16.string()) == 0) { in compileResourceFile()
1092 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber()); in compileResourceFile()
1095 ssize_t identIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1100 ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileResourceFile()
1117 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1123 … while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileResourceFile()
1125 if (strcmp16(block.getElementName(&len), skip16.string()) == 0) { in compileResourceFile()
1126 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
1129 … if (strcmp16(block.getElementName(&len), skip16.string()) == 0) { in compileResourceFile()
1135 … } else if (strcmp16(block.getElementName(&len), eat_comment16.string()) == 0) { in compileResourceFile()
1136 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
1139 … if (strcmp16(block.getElementName(&len), eat_comment16.string()) == 0) { in compileResourceFile()
1145 } else if (strcmp16(block.getElementName(&len), attr16.string()) != 0) { in compileResourceFile()
1146 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1148 String8(block.getElementName(&len)).string()); in compileResourceFile()
1153 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1155 err = compileAttribute(in, block, myPackage, outTable, &itemIdent, true); in compileResourceFile()
1161 … SourcePos srcPos(String8(in->getPrintableSource()), block.getLineNumber()); in compileResourceFile()
1168 … if (strcmp16(block.getElementName(&len), declare_styleable16.string()) == 0) { in compileResourceFile()
1172 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1174 String8(block.getElementName(&len)).string()); in compileResourceFile()
1180 } else if (strcmp16(block.getElementName(&len), attr16.string()) == 0) { in compileResourceFile()
1181 err = compileAttribute(in, block, myPackage, outTable, NULL); in compileResourceFile()
1187 } else if (strcmp16(block.getElementName(&len), item16.string()) == 0) { in compileResourceFile()
1189 ssize_t attri = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
1191 curType = String16(block.getAttributeStringValue(attri, &len)); in compileResourceFile()
1192 ssize_t formatIdx = block.indexOfAttribute(NULL, "format"); in compileResourceFile()
1194 String16 formatStr = String16(block.getAttributeStringValue( in compileResourceFile()
1199 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1206 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1211 } else if (strcmp16(block.getElementName(&len), string16.string()) == 0) { in compileResourceFile()
1220 size_t n = block.getAttributeCount(); in compileResourceFile()
1223 const uint16_t* attr = block.getAttributeName(i, &length); in compileResourceFile()
1225 name.setTo(block.getAttributeStringValue(i, &length)); in compileResourceFile()
1227 translatable.setTo(block.getAttributeStringValue(i, &length)); in compileResourceFile()
1229 formatted.setTo(block.getAttributeStringValue(i, &length)); in compileResourceFile()
1264 } else if (strcmp16(block.getElementName(&len), drawable16.string()) == 0) { in compileResourceFile()
1268 } else if (strcmp16(block.getElementName(&len), color16.string()) == 0) { in compileResourceFile()
1272 } else if (strcmp16(block.getElementName(&len), bool16.string()) == 0) { in compileResourceFile()
1276 } else if (strcmp16(block.getElementName(&len), integer16.string()) == 0) { in compileResourceFile()
1280 } else if (strcmp16(block.getElementName(&len), dimen16.string()) == 0) { in compileResourceFile()
1284 } else if (strcmp16(block.getElementName(&len), fraction16.string()) == 0) { in compileResourceFile()
1288 } else if (strcmp16(block.getElementName(&len), bag16.string()) == 0) { in compileResourceFile()
1291 ssize_t attri = block.indexOfAttribute(NULL, "type"); in compileResourceFile()
1293 curType = String16(block.getAttributeStringValue(attri, &len)); in compileResourceFile()
1295 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1299 } else if (strcmp16(block.getElementName(&len), style16.string()) == 0) { in compileResourceFile()
1303 } else if (strcmp16(block.getElementName(&len), plurals16.string()) == 0) { in compileResourceFile()
1307 } else if (strcmp16(block.getElementName(&len), array16.string()) == 0) { in compileResourceFile()
1312 ssize_t formatIdx = block.indexOfAttribute(NULL, "format"); in compileResourceFile()
1314 String16 formatStr = String16(block.getAttributeStringValue( in compileResourceFile()
1319 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1325 } else if (strcmp16(block.getElementName(&len), string_array16.string()) == 0) { in compileResourceFile()
1328 size_t n = block.getAttributeCount(); in compileResourceFile()
1331 const uint16_t* attr = block.getAttributeName(i, &length); in compileResourceFile()
1334 const uint16_t* value = block.getAttributeStringValue(i, &length); in compileResourceFile()
1348 } else if (strcmp16(block.getElementName(&len), integer_array16.string()) == 0) { in compileResourceFile()
1355 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1357 String8(block.getElementName(&len)).string()); in compileResourceFile()
1362 ssize_t identIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1364 ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileResourceFile()
1366 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1373 identIdx = block.indexOfAttribute(NULL, "product"); in compileResourceFile()
1375 product = String16(block.getAttributeStringValue(identIdx, &len)); in compileResourceFile()
1378 String16 comment(block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1383 ssize_t parentIdentIdx = block.indexOfAttribute(NULL, "parent"); in compileResourceFile()
1385 parentIdent = String16(block.getAttributeStringValue(parentIdentIdx, &len)); in compileResourceFile()
1395 block.getLineNumber()), myPackage, curType, ident, in compileResourceFile()
1405 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in compileResourceFile()
1409 if (strcmp16(block.getElementName(&len), item16.string()) != 0) { in compileResourceFile()
1410 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1412 String8(block.getElementName(&len)).string(), in compileResourceFile()
1422 ssize_t itemIdentIdx = block.indexOfAttribute(NULL, "quantity"); in compileResourceFile()
1424 … String16 quantity16(block.getAttributeStringValue(itemIdentIdx, &len)); in compileResourceFile()
1444 … SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1449 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1454 ssize_t itemIdentIdx = block.indexOfAttribute(NULL, "name"); in compileResourceFile()
1456 … itemIdent = String16(block.getAttributeStringValue(itemIdentIdx, &len)); in compileResourceFile()
1458 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1465 block.getPosition(&parserPosition); in compileResourceFile()
1467 err = parseAndAddBag(bundle, in, &block, curParams, myPackage, curType, in compileResourceFile()
1475 block.setPosition(parserPosition); in compileResourceFile()
1476 err = parseAndAddBag(bundle, in, &block, pseudoParams, myPackage, in compileResourceFile()
1486 if (strcmp16(block.getElementName(&len), curTag->string()) != 0) { in compileResourceFile()
1487 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1489 String8(block.getElementName(&len)).string(), in compileResourceFile()
1498 block.getPosition(&parserPosition); in compileResourceFile()
1500 err = parseAndAddEntry(bundle, in, &block, curParams, myPackage, curType, ident, in compileResourceFile()
1511 block.setPosition(parserPosition); in compileResourceFile()
1512 err = parseAndAddEntry(bundle, in, &block, pseudoParams, myPackage, curType, in compileResourceFile()
1535 if (strcmp16(block.getElementName(&len), resources16.string()) != 0) { in compileResourceFile()
1536 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1537 "Unexpected end tag %s\n", String8(block.getElementName(&len)).string()); in compileResourceFile()
1544 if (isWhitespace(block.getText(&len))) { in compileResourceFile()
1547 SourcePos(in->getPrintableSource(), block.getLineNumber()).error( in compileResourceFile()
1549 String8(block.getText(&len)).string()); in compileResourceFile()