Lines Matching refs:Package
183 "a reference to another resource, in the form \"<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>\"\n"
184 "or to a theme attribute in the form \"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>\"."},
286 "\"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>\") or\n"
288 "\"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>\")\n"
1129 ssize_t pkgIdx = block.indexOfAttribute(NULL, "package");
1132 "A 'package' attribute is required for <private-symbols>\n");
1142 "private symbol package already specified. Ignoring...\n");
1788 sp<Package> package = new Package(mAssetsPackage, packageId);
1789 mPackages.add(assetsPackage, package);
1790 mOrderedPackages.add(package);
1821 fprintf(stderr, "ERROR: Feature package '%s' not found.\n",
1835 const String16& package,
1843 package.string(), package.size());
1845 sourcePos.error("Error declaring public resource %s/%s for included package %s\n",
1847 String8(package).string());
1851 sp<Type> t = getType(package, type, sourcePos);
1859 const String16& package,
1872 package.string(), package.size());
1874 sourcePos.error("Resource entry %s/%s is already defined in package %s.",
1875 String8(type).string(), String8(name).string(), String8(package).string());
1879 sp<Entry> e = getEntry(package, type, name, sourcePos, overwrite,
1892 const String16& package,
1907 package.string(), package.size());
1909 sourcePos.error("Resource entry %s/%s is already defined in package %s.",
1910 String8(type).string(), String8(name).string(), String8(package).string());
1914 if (overlay && !mBundle->getAutoAddOverlay() && !hasBagOrEntry(package, type, name)) {
1916 sp<Package> p = mPackages.valueFor(package);
1931 sp<Entry> e = getEntry(package, type, name, sourcePos, overlay, params);
1952 const String16& package,
1967 package.string(), package.size());
1978 sp<Entry> e = getEntry(package, type, name, sourcePos, replace, params);
1996 bool ResourceTable::hasBagOrEntry(const String16& package,
2004 package.string(), package.size());
2009 sp<Package> p = mPackages.valueFor(package);
2021 bool ResourceTable::hasBagOrEntry(const String16& package,
2030 package.string(), package.size());
2035 sp<Package> p = mPackages.valueFor(package);
2056 String16 package, type, name;
2057 if (!ResTable::expandResourceRef(ref.string(), ref.size(), &package, &type, &name,
2061 return hasBagOrEntry(package, type, name);
2064 bool ResourceTable::appendComment(const String16& package,
2074 sp<Package> p = mPackages.valueFor(package);
2088 bool ResourceTable::appendTypeComment(const String16& package,
2097 sp<Package> p = mPackages.valueFor(package);
2111 bool ResourceTable::makeAttribute(const String16& package,
2123 package.string(), package.size());
2129 sp<ResourceTable::Entry> entry = getEntry(package, attr16, name, source, false);
2162 appendComment(package, attr16, name, comment, shouldAppendComment);
2167 const String16& package, const String16& type, const String16& name)
2169 sp<Type> t = getType(package, type, pos);
2195 inline uint32_t ResourceTable::getResId(const sp<Package>& p,
2202 uint32_t ResourceTable::getResId(const String16& package,
2207 uint32_t id = ResourceIdCache::lookup(package, type, name, onlyPublic);
2215 package.string(), package.size(),
2220 // package name as us, then everything is public.
2221 if (mPackageType != AppFeature || mAssetsPackage != package) {
2226 return ResourceIdCache::store(package, type, name, onlyPublic, rid);
2229 sp<Package> p = mPackages.valueFor(package);
2246 return ResourceIdCache::store(package, type, name, onlyPublic,
2256 String16 package, type, name;
2259 ref.string(), ref.size(), &package, &type, &name,
2270 String8(package).string(), String8(type).string(),
2275 uint32_t res = getResId(package, type, name, onlyPublic && refOnlyPublic);
2278 String8(package).string(), String8(type).string(),
2372 const String16& package, const String16& type, const String16& name) const
2374 //printf("getCustomResource: %s %s %s\n", String8(package).string(),
2376 sp<Package> p = mPackages.valueFor(package);
2396 const String16& package, const String16& type, const String16& name,
2399 uint32_t resId = getCustomResource(package, type, name);
2404 if (mAssetsPackage != package) {
2405 mCurrentXmlPos.error("creating resource for external package %s: %s/%s.",
2406 String8(package).string(), String8(type).string(), String8(name).string());
2407 if (package == String16("android")) {
2414 status_t status = addEntry(mCurrentXmlPos, package, type, name, value, NULL, NULL, true);
2416 resId = getResId(package, type, name);
2587 sp<Package> p = mOrderedPackages.itemAt(pi);
2715 sp<Package> p = mOrderedPackages.itemAt(pi);
2893 Vector<sp<Package> > libraryPackages;
2901 libraryPackages.add(sp<Package>(new Package(packageName, packageId)));
2910 sp<Package> p = mOrderedPackages.itemAt(pi);
3012 // Now build the array of package chunks.
3015 sp<Package> p = mOrderedPackages.itemAt(pi);
3025 // Start the package data.
3068 // Build the type chunks inside of this package.
3288 // Fill in the rest of the package information.
3333 fprintf(stderr, "ERROR: out of memory creating package chunk for ResTable_header\n");
3350 status_t ResourceTable::flattenLibraryTable(const sp<AaptFile>& dest, const Vector<sp<Package> >& libs) {
3371 sp<Package> libPackage = libs[i];
3388 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp)
3396 writePublicDefinitions(package, fp, true);
3397 writePublicDefinitions(package, fp, false);
3404 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp, bool pub)
3408 sp<Package> pkg = mPackages.valueFor(package);
3613 const String16& package)
3622 if (!table->hasBagOrEntry(key, &id16, &package)) {
3626 String8(package).string(),
3629 status_t err = table->addEntry(SourcePos(String8("<generated>"), 0), package,
3635 } else if (!table->hasBagOrEntry(key, &attr16, &package)) {
3647 status_t err = table->addBag(SourcePos("<generated>", 0), package,
3661 const String16& /* package */)
3923 " in the base package; use <add-resource> to add.\n",
4109 ResourceTable::Package::Package(const String16& name, size_t packageId)
4116 sp<ResourceTable::Type> ResourceTable::Package::getType(const String16& type,
4134 status_t ResourceTable::Package::setTypeStrings(const sp<AaptFile>& data)
4148 status_t ResourceTable::Package::setKeyStrings(const sp<AaptFile>& data)
4162 status_t ResourceTable::Package::setStrings(const sp<AaptFile>& data,
4181 status_t ResourceTable::Package::applyPublicTypeOrder()
4230 void ResourceTable::Package::movePrivateAttrs() {
4285 sp<ResourceTable::Package> ResourceTable::getPackage(const String16& package)
4287 if (package != mAssetsPackage) {
4290 return mPackages.valueFor(package);
4293 sp<ResourceTable::Type> ResourceTable::getType(const String16& package,
4298 sp<Package> p = getPackage(package);
4305 sp<ResourceTable::Entry> ResourceTable::getEntry(const String16& package,
4313 sp<Type> t = getType(package, type, sourcePos, doSetIndex);
4320 sp<ResourceTable::ConfigList> ResourceTable::getConfigList(const String16& package,
4325 const sp<Package>& p = mOrderedPackages[pi];
4326 if (p == NULL || p->getName() != package) {
4358 sp<Package> p;
4360 sp<Package> check = mOrderedPackages[i];
4368 fprintf(stderr, "warning: Package not found for resource #%08x\n", resID);
4627 sp<Package> p = mOrderedPackages.itemAt(pi);
5023 static String16 buildNamespace(const String16& package) {
5024 return String16("http://schemas.android.com/apk/res/") + package;