Lines Matching refs:package

133       "a reference to another resource, in the form \"<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>\"\n"
134 "or to a theme attribute in the form \"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>\"."},
236 "\"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>\") or\n"
238 "\"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>\")\n"
1043 ssize_t pkgIdx = block.indexOfAttribute(NULL, "package");
1046 "A 'package' attribute is required for <private-symbols>\n");
1648 fprintf(stderr, "Included base package ID %d already in use!\n", id);
1653 NOISY(printf("Including package %s with ID=%d\n",
1674 const String16& package,
1682 package.string(), package.size());
1684 sourcePos.error("Error declaring public resource %s/%s for included package %s\n",
1686 String8(package).string());
1690 sp<Type> t = getType(package, type, sourcePos);
1698 const String16& package,
1713 package.string(), package.size());
1726 sp<Entry> e = getEntry(package, type, name, sourcePos, overwrite,
1739 const String16& package,
1754 package.string(), package.size());
1765 if (overlay && !mBundle->getAutoAddOverlay() && !hasBagOrEntry(package, type, name)) {
1767 sp<Package> p = mPackages.valueFor(package);
1782 sp<Entry> e = getEntry(package, type, name, sourcePos, overlay, params);
1803 const String16& package,
1818 package.string(), package.size());
1829 sp<Entry> e = getEntry(package, type, name, sourcePos, replace, params);
1847 bool ResourceTable::hasBagOrEntry(const String16& package,
1855 package.string(), package.size());
1860 sp<Package> p = mPackages.valueFor(package);
1872 bool ResourceTable::hasBagOrEntry(const String16& package,
1881 package.string(), package.size());
1886 sp<Package> p = mPackages.valueFor(package);
1907 String16 package, type, name;
1908 if (!ResTable::expandResourceRef(ref.string(), ref.size(), &package, &type, &name,
1912 return hasBagOrEntry(package, type, name);
1915 bool ResourceTable::appendComment(const String16& package,
1925 sp<Package> p = mPackages.valueFor(package);
1939 bool ResourceTable::appendTypeComment(const String16& package,
1948 sp<Package> p = mPackages.valueFor(package);
1963 const String16& package, const String16& type, const String16& name)
1965 sp<Type> t = getType(package, type, pos);
1997 uint32_t ResourceTable::getResId(const String16& package,
2002 uint32_t id = ResourceIdCache::lookup(package, type, name, onlyPublic);
2005 sp<Package> p = mPackages.valueFor(package);
2013 package.string(), package.size(),
2023 return ResourceIdCache::store(package, type, name, onlyPublic, rid);
2025 return ResourceIdCache::store(package, type, name, onlyPublic,
2036 return ResourceIdCache::store(package, type, name, onlyPublic,
2046 String16 package, type, name;
2049 ref.string(), ref.size(), &package, &type, &name,
2060 String8(package).string(), String8(type).string(),
2064 uint32_t res = getResId(package, type, name, onlyPublic && refOnlyPublic);
2066 String8(package).string(), String8(type).string(),
2157 const String16& package, const String16& type, const String16& name) const
2159 //printf("getCustomResource: %s %s %s\n", String8(package).string(),
2161 sp<Package> p = mPackages.valueFor(package);
2173 const String16& package, const String16& type, const String16& name,
2176 uint32_t resId = getCustomResource(package, type, name);
2182 status_t status = addEntry(mCurrentXmlPos, package, type, name, value, NULL, NULL, true);
2184 resId = getResId(package, type, name);
2696 // Now build the array of package chunks.
2709 // Start the package data.
2744 // Build the type chunks inside of this package.
2922 // Fill in the rest of the package information.
2967 fprintf(stderr, "ERROR: out of memory creating package chunk for ResTable_header\n");
2987 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp)
2995 writePublicDefinitions(package, fp, true);
2996 writePublicDefinitions(package, fp, false);
3003 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp, bool pub)
3007 sp<Package> pkg = mPackages.valueFor(package);
3171 const String16& package)
3180 if (!table->hasBagOrEntry(key, &id16, &package)) {
3182 status_t err = table->addEntry(SourcePos(String8("<generated>"), 0), package,
3188 } else if (!table->hasBagOrEntry(key, &attr16, &package)) {
3200 status_t err = table->addBag(SourcePos("<generated>", 0), package,
3214 const String16& package)
3478 " in the base package; use <add-resource> to add.\n",
3745 sp<ResourceTable::Package> ResourceTable::getPackage(const String16& package)
3747 sp<Package> p = mPackages.valueFor(package);
3751 fprintf(stderr, "Adding multiple application package resources; only one is allowed.\n"
3756 p = new Package(package, 127);
3758 p = new Package(package, mNextPackageId);
3761 // String8(package).string(), p->getAssignedId());
3762 mPackages.add(package, p);
3769 sp<ResourceTable::Type> ResourceTable::getType(const String16& package,
3774 sp<Package> p = getPackage(package);
3781 sp<ResourceTable::Entry> ResourceTable::getEntry(const String16& package,
3789 sp<Type> t = getType(package, type, sourcePos, doSetIndex);