Home | History | Annotate | Download | only in aapt

Lines Matching defs:Package

144       "a reference to another resource, in the form \"<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>\"\n"
145 "or to a theme attribute in the form \"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>\"."},
247 "\"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>\") or\n"
249 "\"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>\")\n"
1103 ssize_t pkgIdx = block.indexOfAttribute(NULL, "package");
1106 "A 'package' attribute is required for <private-symbols>\n");
1744 sp<Package> package = new Package(mAssetsPackage, packageId);
1745 mPackages.add(assetsPackage, package);
1746 mOrderedPackages.add(package);
1777 fprintf(stderr, "ERROR: Feature package '%s' not found.\n",
1791 const String16& package,
1799 package.string(), package.size());
1801 sourcePos.error("Error declaring public resource %s/%s for included package %s\n",
1803 String8(package).string());
1807 sp<Type> t = getType(package, type, sourcePos);
1815 const String16& package,
1828 package.string(), package.size());
1830 sourcePos.error("Resource entry %s/%s is already defined in package %s.",
1831 String8(type).string(), String8(name).string(), String8(package).string());
1835 sp<Entry> e = getEntry(package, type, name, sourcePos, overwrite,
1848 const String16& package,
1863 package.string(), package.size());
1865 sourcePos.error("Resource entry %s/%s is already defined in package %s.",
1866 String8(type).string(), String8(name).string(), String8(package).string());
1870 if (overlay && !mBundle->getAutoAddOverlay() && !hasBagOrEntry(package, type, name)) {
1872 sp<Package> p = mPackages.valueFor(package);
1887 sp<Entry> e = getEntry(package, type, name, sourcePos, overlay, params);
1908 const String16& package,
1923 package.string(), package.size());
1934 sp<Entry> e = getEntry(package, type, name, sourcePos, replace, params);
1952 bool ResourceTable::hasBagOrEntry(const String16& package,
1960 package.string(), package.size());
1965 sp<Package> p = mPackages.valueFor(package);
1977 bool ResourceTable::hasBagOrEntry(const String16& package,
1986 package.string(), package.size());
1991 sp<Package> p = mPackages.valueFor(package);
2012 String16 package, type, name;
2013 if (!ResTable::expandResourceRef(ref.string(), ref.size(), &package, &type, &name,
2017 return hasBagOrEntry(package, type, name);
2020 bool ResourceTable::appendComment(const String16& package,
2030 sp<Package> p = mPackages.valueFor(package);
2044 bool ResourceTable::appendTypeComment(const String16& package,
2053 sp<Package> p = mPackages.valueFor(package);
2068 const String16& package, const String16& type, const String16& name)
2070 sp<Type> t = getType(package, type, pos);
2096 inline uint32_t ResourceTable::getResId(const sp<Package>& p,
2103 uint32_t ResourceTable::getResId(const String16& package,
2108 uint32_t id = ResourceIdCache::lookup(package, type, name, onlyPublic);
2116 package.string(), package.size(),
2125 return ResourceIdCache::store(package, type, name, onlyPublic, rid);
2128 sp<Package> p = mPackages.valueFor(package);
2137 return ResourceIdCache::store(package, type, name, onlyPublic,
2147 String16 package, type, name;
2150 ref.string(), ref.size(), &package, &type, &name,
2161 String8(package).string(), String8(type).string(),
2165 uint32_t res = getResId(package, type, name, onlyPublic && refOnlyPublic);
2167 String8(package).string(), String8(type).string(),
2258 const String16& package, const String16& type, const String16& name) const
2260 //printf("getCustomResource: %s %s %s\n", String8(package).string(),
2262 sp<Package> p = mPackages.valueFor(package);
2274 const String16& package, const String16& type, const String16& name,
2277 uint32_t resId = getCustomResource(package, type, name);
2282 if (mAssetsPackage != package) {
2283 mCurrentXmlPos.error("creating resource for external package %s: %s/%s.",
2284 String8(package).string(), String8(type).string(), String8(name).string());
2285 if (package == String16("android")) {
2292 status_t status = addEntry(mCurrentXmlPos, package, type, name, value, NULL, NULL, true);
2294 resId = getResId(package, type, name);
2465 sp<Package> p = mOrderedPackages.itemAt(pi);
2573 sp<Package> p = mOrderedPackages.itemAt(pi);
2732 Vector<sp<Package> > libraryPackages;
2740 libraryPackages.add(sp<Package>(new Package(packageName, packageId)));
2749 sp<Package> p = mOrderedPackages.itemAt(pi);
2851 // Now build the array of package chunks.
2854 sp<Package> p = mOrderedPackages.itemAt(pi);
2864 // Start the package data.
2907 // Build the type chunks inside of this package.
3110 // Fill in the rest of the package information.
3155 fprintf(stderr, "ERROR: out of memory creating package chunk for ResTable_header\n");
3175 status_t ResourceTable::flattenLibraryTable(const sp<AaptFile>& dest, const Vector<sp<Package> >& libs) {
3194 sp<Package> libPackage = libs[i];
3209 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp)
3217 writePublicDefinitions(package, fp, true);
3218 writePublicDefinitions(package, fp, false);
3225 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp, bool pub)
3229 sp<Package> pkg = mPackages.valueFor(package);
3434 const String16& package)
3443 if (!table->hasBagOrEntry(key, &id16, &package)) {
3446 String8(package).string(),
3448 status_t err = table->addEntry(SourcePos(String8("<generated>"), 0), package,
3454 } else if (!table->hasBagOrEntry(key, &attr16, &package)) {
3466 status_t err = table->addBag(SourcePos("<generated>", 0), package,
3480 const String16& package)
3744 " in the base package; use <add-resource> to add.\n",
3895 ResourceTable::Package::Package(const String16& name, size_t packageId)
3902 sp<ResourceTable::Type> ResourceTable::Package::getType(const String16& type,
3920 status_t ResourceTable::Package::setTypeStrings(const sp<AaptFile>& data)
3934 status_t ResourceTable::Package::setKeyStrings(const sp<AaptFile>& data)
3948 status_t ResourceTable::Package::setStrings(const sp<AaptFile>& data,
3970 status_t ResourceTable::Package::applyPublicTypeOrder()
4019 sp<ResourceTable::Package> ResourceTable::getPackage(const String16& package)
4021 if (package != mAssetsPackage) {
4024 return mPackages.valueFor(package);
4027 sp<ResourceTable::Type> ResourceTable::getType(const String16& package,
4032 sp<Package> p = getPackage(package);
4039 sp<ResourceTable::Entry> ResourceTable::getEntry(const String16& package,
4047 sp<Type> t = getType(package, type, sourcePos, doSetIndex);
4054 sp<ResourceTable::ConfigList> ResourceTable::getConfigList(const String16& package,
4059 const sp<Package>& p = mOrderedPackages[pi];
4060 if (p == NULL || p->getName() != package) {
4092 sp<Package> p;
4094 sp<Package> check = mOrderedPackages[i];
4102 fprintf(stderr, "warning: Package not found for resource #%08x\n", resID);
4285 sp<Package> p = mOrderedPackages.itemAt(pi);