Home | History | Annotate | Download | only in aapt

Lines Matching defs:Package

132       "a reference to another resource, in the form \"<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>\"\n"
133 "or to a theme attribute in the form \"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>\"."},
235 "\"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>\") or\n"
237 "\"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>\")\n"
1041 ssize_t pkgIdx = block.indexOfAttribute(NULL, "package");
1044 "A 'package' attribute is required for <private-symbols>\n");
1603 fprintf(stderr, "Included base package ID %d already in use!\n", id);
1608 NOISY(printf("Including package %s with ID=%d\n",
1610 sp<Package> p = new Package(name, id);
1629 const String16& package,
1637 package.string(), package.size());
1639 sourcePos.error("Error declaring public resource %s/%s for included package %s\n",
1641 String8(package).string());
1645 sp<Type> t = getType(package, type, sourcePos);
1653 const String16& package,
1668 package.string(), package.size());
1681 sp<Entry> e = getEntry(package, type, name, sourcePos, overwrite,
1694 const String16& package,
1709 package.string(), package.size());
1720 if (overlay && !mBundle->getAutoAddOverlay() && !hasBagOrEntry(package, type, name)) {
1722 sp<Package> p = mPackages.valueFor(package);
1737 sp<Entry> e = getEntry(package, type, name, sourcePos, overlay, params);
1758 const String16& package,
1773 package.string(), package.size());
1784 sp<Entry> e = getEntry(package, type, name, sourcePos, replace, params);
1802 bool ResourceTable::hasBagOrEntry(const String16& package,
1810 package.string(), package.size());
1815 sp<Package> p = mPackages.valueFor(package);
1827 bool ResourceTable::hasBagOrEntry(const String16& package,
1836 package.string(), package.size());
1841 sp<Package> p = mPackages.valueFor(package);
1862 String16 package, type, name;
1863 if (!ResTable::expandResourceRef(ref.string(), ref.size(), &package, &type, &name,
1867 return hasBagOrEntry(package, type, name);
1870 bool ResourceTable::appendComment(const String16& package,
1880 sp<Package> p = mPackages.valueFor(package);
1894 bool ResourceTable::appendTypeComment(const String16& package,
1903 sp<Package> p = mPackages.valueFor(package);
1918 const String16& package, const String16& type, const String16& name)
1920 sp<Type> t = getType(package, type, pos);
1945 Package>& p,
1952 uint32_t ResourceTable::getResId(const String16& package,
1957 sp<Package> p = mPackages.valueFor(package);
1965 package.string(), package.size(),
1997 String16 package, type, name;
2000 ref.string(), ref.size(), &package, &type, &name,
2011 String8(package).string(), String8(type).string(),
2015 uint32_t res = getResId(package, type, name, onlyPublic && refOnlyPublic);
2017 String8(package).string(), String8(type).string(),
2098 const String16& package, const String16& type, const String16& name) const
2100 //printf("getCustomResource: %s %s %s\n", String8(package).string(),
2102 sp<Package> p = mPackages.valueFor(package);
2114 const String16& package, const String16& type, const String16& name,
2117 uint32_t resId = getCustomResource(package, type, name);
2123 status_t status = addEntry(mCurrentXmlPos, package, type, name, value, NULL, NULL, true);
2125 resId = getResId(package, type, name);
2300 sp<Package> p = mOrderedPackages.itemAt(pi);
2400 sp<Package> p = mOrderedPackages.itemAt(pi);
2551 sp<Package> p = mOrderedPackages.itemAt(pi);
2603 // Now build the array of package chunks.
2606 sp<Package> p = mOrderedPackages.itemAt(pi);
2616 // Start the package data.
2651 // Build the type chunks inside of this package.
2812 // Fill in the rest of the package information.
2857 fprintf(stderr, "ERROR: out of memory creating package chunk for ResTable_header\n");
2877 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp)
2885 writePublicDefinitions(package, fp, true);
2886 writePublicDefinitions(package, fp, false);
2893 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp, bool pub)
2897 sp<Package> pkg = mPackages.valueFor(package);
3061 const String16& package)
3070 if (!table->hasBagOrEntry(key, &id16, &package)) {
3072 status_t err = table->addEntry(SourcePos(String8("<generated>"), 0), package,
3078 } else if (!table->hasBagOrEntry(key, &attr16, &package)) {
3090 status_t err = table->addBag(SourcePos("<generated>", 0), package,
3104 const String16& package)
3342 " in the base package; use <add-resource> to add.\n",
3492 ResourceTable::Package::Package(const String16& name, ssize_t includedId)
3499 sp<ResourceTable::Type> ResourceTable::Package::getType(const String16& type,
3517 status_t ResourceTable::Package::setTypeStrings(const sp<AaptFile>& data)
3527 status_t ResourceTable::Package::setKeyStrings(const sp<AaptFile>& data)
3537 status_t ResourceTable::Package::setStrings(const sp<AaptFile>& data,
3559 status_t ResourceTable::Package::applyPublicTypeOrder()
3608 sp<ResourceTable::Package> ResourceTable::getPackage(const String16& package)
3610 sp<Package> p = mPackages.valueFor(package);
3613 p = new Package(package, 0x00);
3616 fprintf(stderr, "Adding multiple application package resources; only one is allowed.\n"
3621 p = new Package(package, 127);
3623 p = new Package(package, mNextPackageId);
3625 //printf("*** NEW PACKAGE: \"%s\" id=%d\n",
3626 // String8(package).string(), p->getAssignedId());
3627 mPackages.add(package, p);
3634 sp<ResourceTable::Type> ResourceTable::getType(const String16& package,
3639 sp<Package> p = getPackage(package);
3646 sp<ResourceTable::Entry> ResourceTable::getEntry(const String16& package,
3654 sp<Type> t = getType(package, type, sourcePos, doSetIndex);
3667 sp<Package> p;
3669 sp<Package> check = mOrderedPackages[i];
3677 fprintf(stderr, "warning: Package not found for resource #%08x\n", resID);