Lines Matching defs: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"
1080 ssize_t pkgIdx = block.indexOfAttribute(NULL, "package");
1083 "A 'package' attribute is required for <private-symbols>\n");
1709 fprintf(stderr, "Included base package ID %d already in use!\n", id);
1714 NOISY(printf("Including package %s with ID=%d\n",
1735 const String16& package,
1743 package.string(), package.size());
1745 sourcePos.error("Error declaring public resource %s/%s for included package %s\n",
1747 String8(package).string());
1751 sp<Type> t = getType(package, type, sourcePos);
1759 const String16& package,
1774 package.string(), package.size());
1787 sp<Entry> e = getEntry(package, type, name, sourcePos, overwrite,
1800 const String16& package,
1815 package.string(), package.size());
1826 if (overlay && !mBundle->getAutoAddOverlay() && !hasBagOrEntry(package, type, name)) {
1828 sp<Package> p = mPackages.valueFor(package);
1843 sp<Entry> e = getEntry(package, type, name, sourcePos, overlay, params);
1864 const String16& package,
1879 package.string(), package.size());
1890 sp<Entry> e = getEntry(package, type, name, sourcePos, replace, params);
1908 bool ResourceTable::hasBagOrEntry(const String16& package,
1916 package.string(), package.size());
1921 sp<Package> p = mPackages.valueFor(package);
1933 bool ResourceTable::hasBagOrEntry(const String16& package,
1942 package.string(), package.size());
1947 sp<Package> p = mPackages.valueFor(package);
1968 String16 package, type, name;
1969 if (!ResTable::expandResourceRef(ref.string(), ref.size(), &package, &type, &name,
1973 return hasBagOrEntry(package, type, name);
1976 bool ResourceTable::appendComment(const String16& package,
1986 sp<Package> p = mPackages.valueFor(package);
2000 bool ResourceTable::appendTypeComment(const String16& package,
2009 sp<Package> p = mPackages.valueFor(package);
2024 const String16& package, const String16& type, const String16& name)
2026 sp<Type> t = getType(package, type, pos);
2058 uint32_t ResourceTable::getResId(const String16& package,
2063 uint32_t id = ResourceIdCache::lookup(package, type, name, onlyPublic);
2066 sp<Package> p = mPackages.valueFor(package);
2074 package.string(), package.size(),
2084 return ResourceIdCache::store(package, type, name, onlyPublic, rid);
2086 return ResourceIdCache::store(package, type, name, onlyPublic,
2097 return ResourceIdCache::store(package, type, name, onlyPublic,
2107 String16 package, type, name;
2110 ref.string(), ref.size(), &package, &type, &name,
2121 String8(package).string(), String8(type).string(),
2125 uint32_t res = getResId(package, type, name, onlyPublic && refOnlyPublic);
2127 String8(package).string(), String8(type).string(),
2218 const String16& package, const String16& type, const String16& name) const
2220 //printf("getCustomResource: %s %s %s\n", String8(package).string(),
2222 sp<Package> p = mPackages.valueFor(package);
2234 const String16& package, const String16& type, const String16& name,
2237 uint32_t resId = getCustomResource(package, type, name);
2243 status_t status = addEntry(mCurrentXmlPos, package, type, name, value, NULL, NULL, true);
2245 resId = getResId(package, type, name);
2757 // Now build the array of package chunks.
2770 // Start the package data.
2805 // Build the type chunks inside of this package.
2983 // Fill in the rest of the package information.
3028 fprintf(stderr, "ERROR: out of memory creating package chunk for ResTable_header\n");
3048 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp)
3056 writePublicDefinitions(package, fp, true);
3057 writePublicDefinitions(package, fp, false);
3064 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp, bool pub)
3068 sp<Package> pkg = mPackages.valueFor(package);
3232 const String16& package)
3241 if (!table->hasBagOrEntry(key, &id16, &package)) {
3243 status_t err = table->addEntry(SourcePos(String8("<generated>"), 0), package,
3249 } else if (!table->hasBagOrEntry(key, &attr16, &package)) {
3261 status_t err = table->addBag(SourcePos("<generated>", 0), package,
3275 const String16& package)
3539 " in the base package; use <add-resource> to add.\n",
3806 sp<ResourceTable::Package> ResourceTable::getPackage(const String16& package)
3808 sp<Package> p = mPackages.valueFor(package);
3812 fprintf(stderr, "Adding multiple application package resources; only one is allowed.\n"
3817 p = new Package(package, 127);
3819 p = new Package(package, mNextPackageId);
3822 // String8(package).string(), p->getAssignedId());
3823 mPackages.add(package, p);
3830 sp<ResourceTable::Type> ResourceTable::getType(const String16& package,
3835 sp<Package> p = getPackage(package);
3842 sp<ResourceTable::Entry> ResourceTable::getEntry(const String16& package,
3850 sp<Type> t = getType(package, type, sourcePos, doSetIndex);