Home | History | Annotate | Download | only in aapt

Lines Matching refs:string16

207 static String16 mayOrMust(int type, int flags)
210 return String16("<p>Must");
213 return String16("<p>May");
216 static void appendTypeInfo(ResourceTable* outTable, const String16& pkg,
217 const String16& typeName, const String16& ident, int type,
223 String16 fullMsg(mayOrMust(type, flags->value));
224 fullMsg.append(String16(" be "));
225 fullMsg.append(String16(flags->description));
233 String16("<p>This may also be a reference to a resource (in the form\n"
243 const String16 myPackage;
247 String16 ident;
248 String16 comment;
252 PendingAttribute(String16 _package, const sp<AaptFile>& in,
270 String16 attr16("attr");
282 attr16, ident, String16(""),
283 String16("^type"),
284 String16(numberStr), NULL, NULL);
298 const String16& myPackage,
300 String16* outIdent = NULL,
305 const String16 attr16("attr");
306 const String16 id16("id");
309 const String16 enum16("enum");
310 const String16 flag16("flag");
318 attr.ident = String16(block.getAttributeStringValue(identIdx, &len));
327 attr.comment = String16(
332 String16 typeStr = String16(block.getAttributeStringValue(typeIdx, &len));
350 String16 val = String16(block.getAttributeStringValue(minIdx, &len));
359 String16(""), String16("^min"), String16(val), NULL, NULL);
368 String16 val = String16(block.getAttributeStringValue(maxIdx, &len));
377 String16(""), String16("^max"), String16(val), NULL, NULL);
402 String16(""), String16("^l10n"), String16(buf), NULL, NULL);
409 String16 enumOrFlagsComment;
440 myPackage, attr16, attr.ident, String16(""),
441 String16("^type"), String16(numberStr), NULL, NULL, true);
458 String16 itemIdent;
461 itemIdent = String16(block.getAttributeStringValue(itemIdentIdx, &len));
468 String16 value;
471 value = String16(block.getAttributeStringValue(valueIdx, &len));
488 myPackage, id16, itemIdent, String16(), NULL);
499 ? String16(" be one of the following constant values.")
500 : String16(" be one or more (separated by '|') of the following constant values."));
501 enumOrFlagsComment.append(String16("</p>\n<table>\n"
508 enumOrFlagsComment.append(String16("\n<tr><td><code>"));
510 enumOrFlagsComment.append(String16("</code></td><td>"));
512 enumOrFlagsComment.append(String16("</td><td>"));
514 enumOrFlagsComment.append(String16(block.getComment(&len)));
516 enumOrFlagsComment.append(String16("</td></tr>"));
520 attr16, attr.ident, String16(""),
553 enumOrFlagsComment.append(String16("\n</table>"));
570 const String16& myPackage,
571 const String16& curType,
572 const String16& ident,
573 const String16& parentIdent,
574 const String16& itemIdent,
581 const String16 item16("item");
583 String16 str;
613 const String16& myPackage,
614 const String16& curType,
615 const String16& ident,
616 const String16& curTag,
625 String16 str;
662 const String16 resources16("resources");
665 const String16 declare_styleable16("declare-styleable");
666 const String16 attr16("attr");
669 const String16 string16("string");
670 const String16 drawable16("drawable");
671 const String16 color16("color");
672 const String16 bool16("bool");
673 const String16 integer16("integer");
674 const String16 dimen16("dimen");
675 const String16 fraction16("fraction");
676 const String16 style16("style");
677 const String16 plurals16("plurals");
678 const String16 array16("array");
679 const String16 string_array16("string-array");
680 const String16 integer_array16("integer-array");
681 const String16 public16("public");
682 const String16 public_padding16("public-padding");
683 const String16 private_symbols16("private-symbols");
684 const String16 add_resource16("add-resource");
685 const String16 skip16("skip");
686 const String16 eat_comment16("eat-comment");
689 const String16 bag16("bag");
690 const String16 item16("item");
693 const String16 enum16("enum");
696 const String16 other16("other");
697 const String16 quantityOther16("^other");
698 const String16 zero16("zero");
699 const String16 quantityZero16("^zero");
700 const String16 one16("one");
701 const String16 quantityOne16("^one");
702 const String16 two16("two");
703 const String16 quantityTwo16("^two");
704 const String16 few16("few");
705 const String16 quantityFew16("^few");
706 const String16 many16("many");
707 const String16 quantityMany16("^many");
710 const String16 name16("name");
711 const String16 translatable16("translatable");
712 const String16 false16("false");
714 const String16 myPackage(assets->getPackage());
718 DefaultKeyedVector<String16, uint32_t> nextPublicId(0);
747 const String16* curTag = NULL;
748 String16 curType;
781 String16 type;
787 type = String16(block.getAttributeStringValue(typeIdx, &len));
789 String16 name;
795 name = String16(block.getAttributeStringValue(nameIdx, &len));
832 String16
853 String16 type;
859 type = String16(block.getAttributeStringValue(typeIdx, &len));
861 String16 name;
867 name = String16(block.getAttributeStringValue(nameIdx, &len));
914 String16 comment(
920 String16 curName(name);
923 curName.append(String16(buf));
926 String16("padding"), NULL, &curParams, false,
961 String16 pkg;
968 pkg = String16(block.getAttributeStringValue(pkgIdx, &len));
985 String16 typeName;
991 typeName = String16(block.getAttributeStringValue(typeIdx, &len));
993 String16 name;
999 name = String16(block.getAttributeStringValue(nameIdx, &len));
1015 String16 ident;
1021 ident = String16(block.getAttributeStringValue(identIdx, &len));
1037 String16 comment(
1073 String16 comment(
1075 String16 itemIdent;
1112 curType = String16(block.getAttributeStringValue(attri, &len));
1115 String16 formatStr = String16(block.getAttributeStringValue(
1132 } else if (strcmp16(block.getElementName(&len), string16.string()) == 0) {
1137 String16 name;
1138 String16 translatable;
1172 curTag = &string16;
1173 curType = string16;
1206 curType = String16(block.getAttributeStringValue(attri, &len));
1227 String16 formatStr = String16(block.getAttributeStringValue(
1258 String16 ident;
1261 ident = String16(block.getAttributeStringValue(identIdx, &len));
1269 String16 comment(block.getComment(&len) ? block.getComment(&len) : nulStr);
1273 String16 parentIdent;
1276 parentIdent = String16(block.getAttributeStringValue(parentIdentIdx, &len));
1308 String16 itemIdent;
1311 itemIdent = String16(elmIndexStr);
1315 String16 quantity16(block.getAttributeStringValue(itemIdentIdx, &len));
1347 itemIdent = String16(block.getAttributeStringValue(itemIdentIdx, &len));
1445 ResourceTable::ResourceTable(Bundle* bundle, const String16& assetsPackage)
1469 String16 name(incl.getBasePackageName(i));
1511 sp<Type> attr = getType(mAssetsPackage, String16("attr"), unknown);
1517 const String16& package,
1518 const String16& type,
1519 const String16& name,
1541 const String16& package,
1542 const String16& type,
1543 const String16& name,
1544 const String16& value,
1562 if (name == String16("left")) {
1582 const String16& package,
1583 const String16& type,
1584 const String16& name,
1585 const String16& bagParent,
1603 if (name == String16("left")) {
1632 String16 curPar = e->getParent();
1653 const String16& package,
1654 const String16& type,
1655 const String16& name,
1656 const String16& bagParent,
1657 const String16& bagKey,
1658 const String16& value,
1674 if (name == String16("left")) {
1686 String16 curPar = e->getParent();
1704 bool ResourceTable::hasBagOrEntry(const String16& package,
1705 const String16& type,
1706 const String16& name) const
1729 bool ResourceTable::hasBagOrEntry(const String16& ref,
1730 const String16* defType,
1731 const String16* defPackage)
1733 String16 package, type, name;
1741 bool ResourceTable::appendComment(const String16& package,
1742 const String16& type,
1743 const String16& name,
1744 const String16& comment,
1765 bool ResourceTable::appendTypeComment(const String16& package,
1766 const String16& type,
1767 const String16& name,
1768 const String16& comment)
1789 const String16& package, const String16& type, const String16& name)
1823 uint32_t ResourceTable::getResId(const String16& package,
1824 const String16& type,
1825 const String16& name,
1862 uint32_t ResourceTable::getResId(const String16& ref,
1863 const String16* defType,
1864 const String16* defPackage,
1868 String16 package, type, name;
1896 bool ResourceTable::isValidResourceName(const String16& s)
1915 const String16& str,
1919 String16* outStr, void* accessorCookie,
1922 String16 finalStr;
1968 const String16& package, const String16& type, const String16& name) const
1984 const String16& package, const String16& type, const String16& name,
1991 String16 value("false");
2072 uint32_t attrID, Vector<String16>* outKeys)
2078 const String16& key = e->getBag().keyAt(i);
2093 String16 nameStr(name, nameLen);
2116 String16 nameStr(name, nameLen);
2131 String16 nameStr(start, pos-start);
2210 sp<Type> attr = p->getType(String16("attr"), unknown);
2299 String16 comment(c->getComment());
2319 ResourceTable::addLocalization(const String16& name, const String8& locale)
2341 for (map<String16, set<String8> >::iterator nameIter = mLocalizations.begin();
2549 typeStrings.add(String16("<empty>"), false);
2637 String16 typeName(p->getTypeStrings().stringAt(ti, &len));
2639 LOG_ALWAYS_FATAL_IF(t == NULL && typeName != String16("<empty>"),
2849 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp)
2865 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp, bool pub)
2926 const String16& _value,
2958 const String16& value,
2988 const String16& key, const String16& value,
3033 const String16& package)
3035 const String16 attr16("attr");
3036 const String16 id16("id");
3039 const String16& key = mBag.keyAt(i);
3043 String16 value("false");
3063 attr16, key, String16(""),
3064 String16("^type"),
3065 String16(numberStr), NULL, NULL);
3076 const String16& package)
3082 const String16 style16("style");
3083 const String16 attr16("attr");
3084 const String16 id16("id");
3096 const String16& key = mBag.keyAt(i);
3125 const String16& key = mBag.keyAt(i);
3224 void ResourceTable::ConfigList::appendComment(const String16& comment,
3234 mComment.append(String16("\n"));
3239 void ResourceTable::ConfigList::appendTypeComment(const String16& comment)
3245 mTypeComment.append(String16("\n"));
3251 const String16& name,
3281 mPublic.add(name, Public(sourcePos, String16(), ident));
3297 void ResourceTable::Type::canAddEntry(const String16& name)
3302 sp<ResourceTable::Entry> ResourceTable::Type::getEntry(const String16& entry,
3393 const String16& name = mPublic.keyAt(j);
3460 ResourceTable::Package::Package(const String16& name, ssize_t includedId)
3467 sp<ResourceTable::Type> ResourceTable::Package::getType(const String16& type,
3507 DefaultKeyedVector<String16, uint32_t>* mappings)
3521 mappings->add(String16(strings->stringAt(i, &len)), i);
3576 sp<ResourceTable::Package> ResourceTable::getPackage(const String16& package)
3600 sp<ResourceTable::Type> ResourceTable::getType(const String16& package,
3601 const String16& type,
3612 sp<ResourceTable::Entry> ResourceTable::getEntry(const String16& package,
3613 const String16& type,
3614 const String16& name,