Lines Matching refs:package
1735 const String16& package, in addPublic() argument
1743 package.string(), package.size()); in addPublic()
1747 String8(package).string()); in addPublic()
1751 sp<Type> t = getType(package, type, sourcePos); in addPublic()
1759 const String16& package, in addEntry() argument
1774 package.string(), package.size()); in addEntry()
1787 sp<Entry> e = getEntry(package, type, name, sourcePos, overwrite, in addEntry()
1800 const String16& package, in startBag() argument
1815 package.string(), package.size()); in startBag()
1826 if (overlay && !mBundle->getAutoAddOverlay() && !hasBagOrEntry(package, type, name)) { in startBag()
1828 sp<Package> p = mPackages.valueFor(package); in startBag()
1843 sp<Entry> e = getEntry(package, type, name, sourcePos, overlay, params); in startBag()
1864 const String16& package, in addBag() argument
1879 package.string(), package.size()); in addBag()
1890 sp<Entry> e = getEntry(package, type, name, sourcePos, replace, params); in addBag()
1908 bool ResourceTable::hasBagOrEntry(const String16& package, in hasBagOrEntry() argument
1916 package.string(), package.size()); in hasBagOrEntry()
1921 sp<Package> p = mPackages.valueFor(package); in hasBagOrEntry()
1933 bool ResourceTable::hasBagOrEntry(const String16& package, in hasBagOrEntry() argument
1942 package.string(), package.size()); in hasBagOrEntry()
1947 sp<Package> p = mPackages.valueFor(package); in hasBagOrEntry()
1968 String16 package, type, name; in hasBagOrEntry() local
1969 if (!ResTable::expandResourceRef(ref.string(), ref.size(), &package, &type, &name, in hasBagOrEntry()
1973 return hasBagOrEntry(package, type, name); in hasBagOrEntry()
1976 bool ResourceTable::appendComment(const String16& package, in appendComment() argument
1986 sp<Package> p = mPackages.valueFor(package); in appendComment()
2000 bool ResourceTable::appendTypeComment(const String16& package, in appendTypeComment() argument
2009 sp<Package> p = mPackages.valueFor(package); in appendTypeComment()
2024 const String16& package, const String16& type, const String16& name) in canAddEntry() argument
2026 sp<Type> t = getType(package, type, pos); in canAddEntry()
2058 uint32_t ResourceTable::getResId(const String16& package, in getResId() argument
2063 uint32_t id = ResourceIdCache::lookup(package, type, name, onlyPublic); in getResId()
2066 sp<Package> p = mPackages.valueFor(package); in getResId()
2074 package.string(), package.size(), in getResId()
2084 return ResourceIdCache::store(package, type, name, onlyPublic, rid); in getResId()
2086 return ResourceIdCache::store(package, type, name, onlyPublic, in getResId()
2097 return ResourceIdCache::store(package, type, name, onlyPublic, in getResId()
2107 String16 package, type, name; in getResId() local
2110 ref.string(), ref.size(), &package, &type, &name, in getResId()
2121 String8(package).string(), String8(type).string(), in getResId()
2125 uint32_t res = getResId(package, type, name, onlyPublic && refOnlyPublic); in getResId()
2127 String8(package).string(), String8(type).string(), in getResId()
2218 const String16& package, const String16& type, const String16& name) const in getCustomResource() argument
2222 sp<Package> p = mPackages.valueFor(package); in getCustomResource()
2234 const String16& package, const String16& type, const String16& name, in getCustomResourceWithCreation() argument
2237 uint32_t resId = getCustomResource(package, type, name); in getCustomResourceWithCreation()
2243 status_t status = addEntry(mCurrentXmlPos, package, type, name, value, NULL, NULL, true); in getCustomResourceWithCreation()
2245 resId = getResId(package, type, name); in getCustomResourceWithCreation()
3048 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp) in writePublicDefinitions() argument
3056 writePublicDefinitions(package, fp, true); in writePublicDefinitions()
3057 writePublicDefinitions(package, fp, false); in writePublicDefinitions()
3064 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp, bool pub) in writePublicDefinitions() argument
3068 sp<Package> pkg = mPackages.valueFor(package); in writePublicDefinitions()
3232 const String16& package) in generateAttributes() argument
3241 if (!table->hasBagOrEntry(key, &id16, &package)) { in generateAttributes()
3243 status_t err = table->addEntry(SourcePos(String8("<generated>"), 0), package, in generateAttributes()
3249 } else if (!table->hasBagOrEntry(key, &attr16, &package)) { in generateAttributes()
3261 status_t err = table->addBag(SourcePos("<generated>", 0), package, in generateAttributes()
3275 const String16& package) in assignResourceIds() argument
3806 sp<ResourceTable::Package> ResourceTable::getPackage(const String16& package) in getPackage() argument
3808 sp<Package> p = mPackages.valueFor(package); in getPackage()
3817 p = new Package(package, 127); in getPackage()
3819 p = new Package(package, mNextPackageId); in getPackage()
3823 mPackages.add(package, p); in getPackage()
3830 sp<ResourceTable::Type> ResourceTable::getType(const String16& package, in getType() argument
3835 sp<Package> p = getPackage(package); in getType()
3842 sp<ResourceTable::Entry> ResourceTable::getEntry(const String16& package, in getEntry() argument
3850 sp<Type> t = getType(package, type, sourcePos, doSetIndex); in getEntry()