Lines Matching refs:String16
41 const String16& resourceName, in compileXmlFile()
56 const String16& resourceName, in compileXmlFile()
72 const String16& resourceName, in compileXmlFile()
256 static String16 mayOrMust(int type, int flags) in mayOrMust()
259 return String16("<p>Must"); in mayOrMust()
262 return String16("<p>May"); in mayOrMust()
265 static void appendTypeInfo(ResourceTable* outTable, const String16& pkg, in appendTypeInfo()
266 const String16& typeName, const String16& ident, int type, in appendTypeInfo()
272 String16 fullMsg(mayOrMust(type, flags->value)); in appendTypeInfo()
273 fullMsg.append(String16(" be ")); in appendTypeInfo()
274 fullMsg.append(String16(flags->description)); in appendTypeInfo()
282 String16("<p>This may also be a reference to a resource (in the form\n" in appendTypeInfo()
292 const String16 myPackage;
296 String16 ident;
297 String16 comment;
301 PendingAttribute(String16 _package, const sp<AaptFile>& in, in PendingAttribute()
329 const String16& myPackage, in compileAttribute()
331 String16* outIdent = NULL, in compileAttribute()
336 const String16 attr16("attr"); in compileAttribute()
337 const String16 id16("id"); in compileAttribute()
340 const String16 enum16("enum"); in compileAttribute()
341 const String16 flag16("flag"); in compileAttribute()
349 attr.ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileAttribute()
358 attr.comment = String16( in compileAttribute()
363 String16 typeStr = String16(block.getAttributeStringValue(typeIdx, &len)); in compileAttribute()
381 String16 val = String16(block.getAttributeStringValue(minIdx, &len)); in compileAttribute()
390 String16(""), String16("^min"), String16(val), NULL, NULL); in compileAttribute()
399 String16 val = String16(block.getAttributeStringValue(maxIdx, &len)); in compileAttribute()
408 String16(""), String16("^max"), String16(val), NULL, NULL); in compileAttribute()
433 String16(""), String16("^l10n"), String16(buf), NULL, NULL); in compileAttribute()
440 String16 enumOrFlagsComment; in compileAttribute()
471 myPackage, attr16, attr.ident, String16(""), in compileAttribute()
472 String16("^type"), String16(numberStr), NULL, NULL, true); in compileAttribute()
489 String16 itemIdent; in compileAttribute()
492 itemIdent = String16(block.getAttributeStringValue(itemIdentIdx, &len)); in compileAttribute()
499 String16 value; in compileAttribute()
502 value = String16(block.getAttributeStringValue(valueIdx, &len)); in compileAttribute()
521 ? String16(" be one of the following constant values.") in compileAttribute()
522 … : String16(" be one or more (separated by '|') of the following constant values.")); in compileAttribute()
523 enumOrFlagsComment.append(String16("</p>\n<table>\n" in compileAttribute()
530 enumOrFlagsComment.append(String16("\n<tr><td><code>")); in compileAttribute()
532 enumOrFlagsComment.append(String16("</code></td><td>")); in compileAttribute()
534 enumOrFlagsComment.append(String16("</td><td>")); in compileAttribute()
536 enumOrFlagsComment.append(String16(block.getComment(&len))); in compileAttribute()
538 enumOrFlagsComment.append(String16("</td></tr>")); in compileAttribute()
542 attr16, attr.ident, String16(""), in compileAttribute()
575 enumOrFlagsComment.append(String16("\n</table>")); in compileAttribute()
592 const String16& myPackage, in parseAndAddBag() argument
593 const String16& curType, in parseAndAddBag()
594 const String16& ident, in parseAndAddBag()
595 const String16& parentIdent, in parseAndAddBag()
596 const String16& itemIdent, in parseAndAddBag()
599 const String16& /* product */, in parseAndAddBag()
605 const String16 item16("item"); in parseAndAddBag()
607 String16 str; in parseAndAddBag()
638 bool isInProductList(const String16& needle, const String16& haystack) { in isInProductList()
666 String16 type;
667 String16 ident;
670 type_ident_pair_t(const String16& t, const String16& i) : type(t), ident(i) { } in type_ident_pair_t()
689 const String16& myPackage, in parseAndAddEntry()
690 const String16& curType, in parseAndAddEntry()
691 const String16& ident, in parseAndAddEntry()
692 const String16& curTag, in parseAndAddEntry()
696 const String16& product, in parseAndAddEntry()
704 String16 str; in parseAndAddEntry()
733 if (strcmp16(String16("default").string(), product.string()) != 0) { in parseAndAddEntry()
751 if (isInProductList(product, String16(bundleProduct))) { in parseAndAddEntry()
753 } else if (strcmp16(String16("default").string(), product.string()) == 0 && in parseAndAddEntry()
791 const String16 resources16("resources"); in compileResourceFile()
794 const String16 declare_styleable16("declare-styleable"); in compileResourceFile()
795 const String16 attr16("attr"); in compileResourceFile()
798 const String16 string16("string"); in compileResourceFile()
799 const String16 drawable16("drawable"); in compileResourceFile()
800 const String16 color16("color"); in compileResourceFile()
801 const String16 bool16("bool"); in compileResourceFile()
802 const String16 integer16("integer"); in compileResourceFile()
803 const String16 dimen16("dimen"); in compileResourceFile()
804 const String16 fraction16("fraction"); in compileResourceFile()
805 const String16 style16("style"); in compileResourceFile()
806 const String16 plurals16("plurals"); in compileResourceFile()
807 const String16 array16("array"); in compileResourceFile()
808 const String16 string_array16("string-array"); in compileResourceFile()
809 const String16 integer_array16("integer-array"); in compileResourceFile()
810 const String16 public16("public"); in compileResourceFile()
811 const String16 public_padding16("public-padding"); in compileResourceFile()
812 const String16 private_symbols16("private-symbols"); in compileResourceFile()
813 const String16 java_symbol16("java-symbol"); in compileResourceFile()
814 const String16 add_resource16("add-resource"); in compileResourceFile()
815 const String16 skip16("skip"); in compileResourceFile()
816 const String16 eat_comment16("eat-comment"); in compileResourceFile()
819 const String16 bag16("bag"); in compileResourceFile()
820 const String16 item16("item"); in compileResourceFile()
823 const String16 enum16("enum"); in compileResourceFile()
826 const String16 other16("other"); in compileResourceFile()
827 const String16 quantityOther16("^other"); in compileResourceFile()
828 const String16 zero16("zero"); in compileResourceFile()
829 const String16 quantityZero16("^zero"); in compileResourceFile()
830 const String16 one16("one"); in compileResourceFile()
831 const String16 quantityOne16("^one"); in compileResourceFile()
832 const String16 two16("two"); in compileResourceFile()
833 const String16 quantityTwo16("^two"); in compileResourceFile()
834 const String16 few16("few"); in compileResourceFile()
835 const String16 quantityFew16("^few"); in compileResourceFile()
836 const String16 many16("many"); in compileResourceFile()
837 const String16 quantityMany16("^many"); in compileResourceFile()
840 const String16 name16("name"); in compileResourceFile()
841 const String16 translatable16("translatable"); in compileResourceFile()
842 const String16 formatted16("formatted"); in compileResourceFile()
843 const String16 false16("false"); in compileResourceFile()
845 const String16 myPackage(assets->getPackage()); in compileResourceFile()
854 DefaultKeyedVector<String16, uint32_t> nextPublicId(0); in compileResourceFile()
909 const String16* curTag = NULL; in compileResourceFile()
910 String16 curType; in compileResourceFile()
911 String16 curName; in compileResourceFile()
945 String16 type; in compileResourceFile()
951 type = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
953 String16 name; in compileResourceFile()
959 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
996 String16 comment( in compileResourceFile()
1017 String16 type; in compileResourceFile()
1023 type = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
1025 String16 name; in compileResourceFile()
1031 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
1078 String16 comment( in compileResourceFile()
1084 String16 curName(name); in compileResourceFile()
1087 curName.append(String16(buf)); in compileResourceFile()
1090 String16("padding"), NULL, &curParams, false, in compileResourceFile()
1125 String16 pkg; in compileResourceFile()
1132 pkg = String16(block.getAttributeStringValue(pkgIdx, &len)); in compileResourceFile()
1157 String16 type; in compileResourceFile()
1163 type = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
1165 String16 name; in compileResourceFile()
1171 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
1179 String16 comment( in compileResourceFile()
1200 String16 typeName; in compileResourceFile()
1206 typeName = String16(block.getAttributeStringValue(typeIdx, &len)); in compileResourceFile()
1208 String16 name; in compileResourceFile()
1214 name = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
1230 String16 ident; in compileResourceFile()
1236 ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileResourceFile()
1252 String16 comment( in compileResourceFile()
1288 String16 comment( in compileResourceFile()
1290 String16 itemIdent; in compileResourceFile()
1327 curType = String16(block.getAttributeStringValue(attri, &len)); in compileResourceFile()
1330 curName = String16(block.getAttributeStringValue(nameIdx, &len)); in compileResourceFile()
1334 String16 formatStr = String16(block.getAttributeStringValue( in compileResourceFile()
1356 String16 name; in compileResourceFile()
1357 String16 translatable; in compileResourceFile()
1358 String16 formatted; in compileResourceFile()
1439 curType = String16(block.getAttributeStringValue(attri, &len)); in compileResourceFile()
1461 String16 formatStr = String16(block.getAttributeStringValue( in compileResourceFile()
1515 String16 ident; in compileResourceFile()
1518 ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileResourceFile()
1526 String16 product; in compileResourceFile()
1529 product = String16(block.getAttributeStringValue(identIdx, &len)); in compileResourceFile()
1532 String16 comment(block.getComment(&len) ? block.getComment(&len) : nulStr); in compileResourceFile()
1536 String16 parentIdent; in compileResourceFile()
1539 parentIdent = String16(block.getAttributeStringValue(parentIdentIdx, &len)); in compileResourceFile()
1571 String16 itemIdent; in compileResourceFile()
1574 itemIdent = String16(elmIndexStr); in compileResourceFile()
1578 … String16 quantity16(block.getAttributeStringValue(itemIdentIdx, &len)); in compileResourceFile()
1610 … itemIdent = String16(block.getAttributeStringValue(itemIdentIdx, &len)); in compileResourceFile()
1759 ResourceTable::ResourceTable(Bundle* bundle, const String16& assetsPackage, ResourceTable::PackageT… in ResourceTable()
1791 getType(mAssetsPackage, String16("attr"), unknown); in ResourceTable()
1794 static uint32_t findLargestTypeIdForPackage(const ResTable& table, const String16& packageName) { in findLargestTypeIdForPackage()
1832 const String16& package, in addPublic()
1833 const String16& type, in addPublic()
1834 const String16& name, in addPublic()
1856 const String16& package, in addEntry()
1857 const String16& type, in addEntry()
1858 const String16& name, in addEntry()
1859 const String16& value, in addEntry()
1889 const String16& package, in startBag()
1890 const String16& type, in startBag()
1891 const String16& name, in startBag()
1892 const String16& bagParent, in startBag()
1949 const String16& package, in addBag()
1950 const String16& type, in addBag()
1951 const String16& name, in addBag()
1952 const String16& bagParent, in addBag()
1953 const String16& bagKey, in addBag()
1954 const String16& value, in addBag()
1970 if (name == String16("left")) { in addBag()
1993 bool ResourceTable::hasBagOrEntry(const String16& package, in hasBagOrEntry()
1994 const String16& type, in hasBagOrEntry()
1995 const String16& name) const in hasBagOrEntry()
2018 bool ResourceTable::hasBagOrEntry(const String16& package, in hasBagOrEntry()
2019 const String16& type, in hasBagOrEntry()
2020 const String16& name, in hasBagOrEntry()
2049 bool ResourceTable::hasBagOrEntry(const String16& ref, in hasBagOrEntry()
2050 const String16* defType, in hasBagOrEntry()
2051 const String16* defPackage) in hasBagOrEntry()
2053 String16 package, type, name; in hasBagOrEntry()
2061 bool ResourceTable::appendComment(const String16& package, in appendComment()
2062 const String16& type, in appendComment()
2063 const String16& name, in appendComment()
2064 const String16& comment, in appendComment()
2085 bool ResourceTable::appendTypeComment(const String16& package, in appendTypeComment()
2086 const String16& type, in appendTypeComment()
2087 const String16& name, in appendTypeComment()
2088 const String16& comment) in appendTypeComment()
2108 bool ResourceTable::makeAttribute(const String16& package, in makeAttribute()
2109 const String16& name, in makeAttribute()
2112 const String16& comment, in makeAttribute()
2114 const String16 attr16("attr"); in makeAttribute()
2136 const String16 formatKey16("^type"); in makeAttribute()
2137 const String16 formatValue16(String8::format("%d", format)); in makeAttribute()
2164 const String16& package, const String16& type, const String16& name) in canAddEntry()
2199 uint32_t ResourceTable::getResId(const String16& package, in getResId()
2200 const String16& type, in getResId()
2201 const String16& name, in getResId()
2232 if (type != String16("attr")) { in getResId()
2235 t = p->getTypes().valueFor(String16(kAttrPrivateType)); in getResId()
2247 uint32_t ResourceTable::getResId(const String16& ref, in getResId()
2248 const String16* defType, in getResId()
2249 const String16* defPackage, in getResId()
2253 String16 package, type, name; in getResId()
2285 bool ResourceTable::isValidResourceName(const String16& s) in isValidResourceName()
2304 const String16& str, in stringToValue()
2308 String16* outStr, void* accessorCookie, in stringToValue()
2312 String16 finalStr; in stringToValue()
2369 const String16& package, const String16& type, const String16& name) const in getCustomResource()
2379 if (type != String16("attr")) { in getCustomResource()
2382 t = p->getTypes().valueFor(String16(kAttrPrivateType)); in getCustomResource()
2393 const String16& package, const String16& type, const String16& name, in getCustomResourceWithCreation()
2404 if (package == String16("android")) { in getCustomResourceWithCreation()
2410 String16 value("false"); in getCustomResourceWithCreation()
2489 uint32_t attrID, Vector<String16>* outKeys) in getAttributeKeys()
2495 const String16& key = e->getBag().keyAt(i); in getAttributeKeys()
2510 String16 nameStr(name, nameLen); in getAttributeEnum()
2533 String16 nameStr(name, nameLen); in getAttributeFlags()
2546 String16 nameStr(start, pos-start); in getAttributeFlags()
2633 sp<Type> attr = p->getType(String16("attr"), unknown); in assignResourceIds()
2640 sp<Type> id = p->getType(String16("id"), unknown); in assignResourceIds()
2707 const String16 stringType("string"); in addSymbols()
2728 if (t->getName() == String16(kAttrPrivateType)) { in addSymbols()
2763 String16 comment(c->getComment()); in addSymbols()
2778 ResourceTable::addLocalization(const String16& name, const String8& locale, const SourcePos& src) in addLocalization()
2784 ResourceTable::addDefaultLocalization(const String16& name) in addDefaultLocalization()
2884 const static String16 mipmap16("mipmap"); in flatten()
2894 String16 packageName(table.getBasePackageName(i)); in flatten()
2896 packageName != String16("android")) { in flatten()
2919 typeStrings.add(String16("<empty>"), false); in flatten()
2925 typeStrings.add(String16("<empty>"), false); in flatten()
2929 const String16 typeName(t->getName()); in flatten()
3060 String16 typeName(UnpackOptionalString(p->getTypeStrings().stringAt(ti), &len)); in flatten()
3062 LOG_ALWAYS_FATAL_IF(t == NULL && typeName != String16("<empty>"), in flatten()
3376 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp) in writePublicDefinitions()
3392 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp, bool pub) in writePublicDefinitions()
3453 const String16& _value, in Item()
3510 const String16& value, in setItem()
3545 const String16& key, const String16& value, in addToBag()
3578 status_t ResourceTable::Entry::removeFromBag(const String16& key) { in removeFromBag()
3601 const String16& package) in generateAttributes()
3603 const String16 attr16("attr"); in generateAttributes()
3604 const String16 id16("id"); in generateAttributes()
3607 const String16& key = mBag.keyAt(i); in generateAttributes()
3611 String16 value("false"); in generateAttributes()
3636 attr16, key, String16(""), in generateAttributes()
3637 String16("^type"), in generateAttributes()
3638 String16(numberStr), NULL, NULL); in generateAttributes()
3649 const String16& /* package */) in assignResourceIds() argument
3655 const String16 style16("style"); in assignResourceIds()
3656 const String16 attr16("attr"); in assignResourceIds()
3657 const String16 id16("id"); in assignResourceIds()
3669 const String16& key = mBag.keyAt(i); in assignResourceIds()
3700 const String16& key = mBag.keyAt(i); in prepareFlatten()
3821 void ResourceTable::ConfigList::appendComment(const String16& comment, in appendComment()
3831 mComment.append(String16("\n")); in appendComment()
3836 void ResourceTable::ConfigList::appendTypeComment(const String16& comment) in appendTypeComment()
3842 mTypeComment.append(String16("\n")); in appendTypeComment()
3848 const String16& name, in addPublic()
3878 mPublic.add(name, Public(sourcePos, String16(), ident)); in addPublic()
3894 void ResourceTable::Type::canAddEntry(const String16& name) in canAddEntry()
3899 sp<ResourceTable::Entry> ResourceTable::Type::getEntry(const String16& entry, in getEntry()
3980 sp<ResourceTable::ConfigList> ResourceTable::Type::removeEntry(const String16& entry) { in removeEntry()
4031 const String16& name = mPublic.keyAt(j); in applyPublicEntryOrder()
4097 ResourceTable::Package::Package(const String16& name, size_t packageId) in Package()
4104 sp<ResourceTable::Type> ResourceTable::Package::getType(const String16& type, in getType()
4152 DefaultKeyedVector<String16, uint32_t>* mappings) in setStrings() argument
4163 mappings->add(String16(UnpackOptionalString(strings->stringAt(i), &len)), i); in setStrings()
4219 sp<Type> attr = mTypes.valueFor(String16("attr")); in movePrivateAttrs()
4249 sp<Type> privateAttrType = getType(String16(kAttrPrivateType), SourcePos()); in movePrivateAttrs()
4273 sp<ResourceTable::Package> ResourceTable::getPackage(const String16& package) in getPackage()
4281 sp<ResourceTable::Type> ResourceTable::getType(const String16& package, in getType()
4282 const String16& type, in getType()
4293 sp<ResourceTable::Entry> ResourceTable::getEntry(const String16& package, in getEntry()
4294 const String16& type, in getEntry()
4295 const String16& name, in getEntry()
4308 sp<ResourceTable::ConfigList> ResourceTable::getConfigList(const String16& package, in getConfigList()
4309 const String16& type, const String16& name) const in getConfigList()
4611 const String16 attr16("attr"); in modifyForCompat()
4650 KeyedVector<int, Vector<String16> > attributesToRemove; in modifyForCompat()
4651 const KeyedVector<String16, Item>& bag = e->getBag(); in modifyForCompat()
4734 const String16 kTransitionElements[] = {
4735 String16("fade"),
4736 String16("changeBounds"),
4737 String16("slide"),
4738 String16("explode"),
4739 String16("changeImageTransform"),
4740 String16("changeTransform"),
4741 String16("changeClipBounds"),
4742 String16("autoTransition"),
4743 String16("recolor"),
4744 String16("changeScroll"),
4745 String16("transitionSet"),
4746 String16("transition"),
4747 String16("transitionManager"),
4750 static bool IsTransitionElement(const String16& name) { in IsTransitionElement()
4760 bool ResourceTable::versionForCompat(const Bundle* bundle, const String16& resourceName, in versionForCompat()
4779 if (node->getElementName() == String16("adaptive-icon")) { in versionForCompat()
4789 sp<ConfigList> cl = getConfigList(String16(mAssets->getPackage()), in versionForCompat()
4790 String16(target->getResourceType()), resourceName); in versionForCompat()
4810 String16(mAssets->getPackage()), in versionForCompat()
4811 String16(target->getResourceType()), in versionForCompat()
4813 String16(resPath), in versionForCompat()
4831 const String16& resourceName, in modifyForCompat()
4834 const String16 vector16("vector"); in modifyForCompat()
4835 const String16 animatedVector16("animated-vector"); in modifyForCompat()
4836 const String16 pathInterpolator16("pathInterpolator"); in modifyForCompat()
4837 const String16 objectAnimator16("objectAnimator"); in modifyForCompat()
4838 const String16 gradient16("gradient"); in modifyForCompat()
4839 const String16 animatedSelector16("animated-selector"); in modifyForCompat()
4919 sp<ConfigList> cl = getConfigList(String16(mAssets->getPackage()), in modifyForCompat()
4920 String16(target->getResourceType()), resourceName); in modifyForCompat()
4944 String16(mAssets->getPackage()), in modifyForCompat()
4945 String16(target->getResourceType()), in modifyForCompat()
4947 String16(resPath), in modifyForCompat()
5015 static String16 buildNamespace(const String16& package) { in buildNamespace()
5016 return String16("http://schemas.android.com/apk/res/") + package; in buildNamespace()
5067 const String16& resourceName, in processBundleFormat()
5078 const String16& resourceName, in processBundleFormatImpl()
5082 const String16 kAaptNamespaceUri16("http://schemas.android.com/aapt"); in processBundleFormatImpl()
5083 const String16 kName16("name"); in processBundleFormatImpl()
5084 const String16 kAttr16("attr"); in processBundleFormatImpl()
5085 const String16 kAssetPackage16(mAssets->getPackage()); in processBundleFormatImpl()
5124 const XMLNode::attribute_entry* attr = child->getAttribute(String16(), kName16); in processBundleFormatImpl()
5132 String16 attrPackage, attrType, attrName; in processBundleFormatImpl()
5167 String16(target->getResourceType()), in processBundleFormatImpl()
5168 String16(nestedResourceName), in processBundleFormatImpl()
5180 entry->setItem(source, String16(nestedResourcePath)); in processBundleFormatImpl()
5195 String16 nestedResourceRef = String16(String8::format("@%s:%s/%s", in processBundleFormatImpl()
5199 String16 attrNs = buildNamespace(attrPackage); in processBundleFormatImpl()
5229 workItem.resourceName = String16(nestedResourceName); in processBundleFormatImpl()