Home
last modified time | relevance | path

Searched refs:package_id (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/libs/androidfw/include/androidfw/
DAttributeFinder.h63 void JumpToClosestAttribute(uint32_t package_id);
64 void MarkCurrentPackageId(uint32_t package_id);
97 const uint32_t package_id) { in JumpToClosestAttribute() argument
98 switch (package_id) { in JumpToClosestAttribute()
106 ssize_t idx = package_offsets_.indexOfKey(package_id); in JumpToClosestAttribute()
131 const uint32_t package_id) { in MarkCurrentPackageId() argument
132 switch (package_id) { in MarkCurrentPackageId()
140 package_offsets_.add(package_id, current_); in MarkCurrentPackageId()
DResourceUtils.h30 inline uint32_t fix_package_id(uint32_t resid, uint8_t package_id) { in fix_package_id() argument
31 return resid | (static_cast<uint32_t>(package_id) << 24); in fix_package_id()
53 inline uint32_t make_resid(uint8_t package_id, uint8_t type_id, uint16_t entry_id) { in make_resid() argument
54 return (static_cast<uint32_t>(package_id) << 24) | (static_cast<uint32_t>(type_id) << 16) | in make_resid()
DLoadedArsc.h36 DynamicPackageEntry(std::string&& package_name, int package_id) in DynamicPackageEntry() argument
37 : package_name(std::move(package_name)), package_id(package_id) {} in DynamicPackageEntry()
40 int package_id = 0; variable
DAssetManager2.h108 const DynamicRefTable* GetDynamicRefTableForPackage(uint32_t package_id) const;
/frameworks/base/libs/androidfw/
DAssetManager2.cpp62 int package_id; in BuildDynamicRefTable() local
64 package_id = next_package_id++; in BuildDynamicRefTable()
66 package_id = package->GetPackageId(); in BuildDynamicRefTable()
70 uint8_t idx = package_ids_[package_id]; in BuildDynamicRefTable()
72 package_ids_[package_id] = idx = static_cast<uint8_t>(package_groups_.size()); in BuildDynamicRefTable()
74 package_groups_.back().dynamic_ref_table.mAssignedPackageId = package_id; in BuildDynamicRefTable()
86 package_name, static_cast<uint8_t>(entry.package_id)); in BuildDynamicRefTable()
129 const DynamicRefTable* AssetManager2::GetDynamicRefTableForPackage(uint32_t package_id) const { in GetDynamicRefTableForPackage()
130 if (package_id >= package_ids_.size()) { in GetDynamicRefTableForPackage()
134 const size_t idx = package_ids_[package_id]; in GetDynamicRefTableForPackage()
[all …]
DLoadedArsc.cpp185 const uint8_t package_id = get_package_id(resid); in FindEntry() local
195 if (loaded_package->package_id_ == package_id) { in FindEntry()
204 const uint8_t package_id = get_package_id(resid); in GetPackageForId() local
206 if (loaded_package->package_id_ == package_id) { in GetPackageForId()
/frameworks/base/tools/aapt2/compile/
DIdAssigner.cpp37 if (pkg->id.value() == id.package_id()) { in AssignId()
142 if (next_type_iter->first.package_id() != package->id.value()) { in Consume()
185 if (next_entry_iter->first.package_id() != package->id.value() || in Consume()
/frameworks/base/tools/aapt2/unflatten/
DBinaryResourceParser.cpp192 uint32_t package_id = util::DeviceToHost32(package_header->id); in ParsePackage() local
193 if (package_id > std::numeric_limits<uint8_t>::max()) { in ParsePackage()
195 DiagMessage(source_) << "package ID is too big (" << package_id << ")"); in ParsePackage()
209 util::Utf16ToUtf8(package_name), static_cast<uint8_t>(package_id)); in ParsePackage()
213 << "' with ID " << package_id); in ParsePackage()
/frameworks/base/tools/aapt2/test/
DContext.h64 void SetPackageId(uint8_t package_id) { in SetPackageId() argument
65 package_id_ = package_id; in SetPackageId()
/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp124 EXPECT_EQ(0x02, dynamic_pkg_map[0].package_id); in TEST()
127 EXPECT_EQ(0x03, dynamic_pkg_map[1].package_id); in TEST()
/frameworks/base/tools/aapt2/
DSdkConstants.cpp63 if (id.package_id() != 0x01 || id.type_id() != 0x01) { in FindAttributeSdkLevel()
DResourceTable.cpp383 if (res_id.is_valid_dynamic() && package->id && package->id.value() != res_id.package_id()) { in AddResourceImpl()
436 package->id = res_id.package_id(); in AddResourceImpl()
469 if (res_id.is_valid_dynamic() && package->id && package->id.value() != res_id.package_id()) { in SetSymbolStateImpl()
496 package->id = res_id.package_id(); in SetSymbolStateImpl()
DResource.h148 uint8_t package_id() const;
223 inline uint8_t ResourceId::package_id() const { in package_id() function
DFormat.proto52 optional uint32 package_id = 1; field
DResourceValues.cpp97 const bool dynamic = resid.is_valid_dynamic() && resid.package_id() != kFrameworkPackageId && in Flatten()
98 resid.package_id() != kAppPackageId; in Flatten()
/frameworks/base/tools/aapt2/flatten/
DTableFlattener.cpp581 const uint8_t package_id = context->GetPackageId(); in Consume() local
582 if (package_id != kFrameworkPackageId && package_id != kAppPackageId) { in Consume()
583 table->included_packages_[package_id] = context->GetCompilationPackage(); in Consume()
DXmlFlattener.cpp251 package_pools[aapt_attr.id.value().package_id()].MakeRef( in WriteAttributes()
/frameworks/base/tools/aapt2/link/
DReferenceLinker.cpp211 return ref.id.value().package_id() == symbol.id.value().package_id(); in IsSymbolVisible()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp222 if (id->package_id() > kAppPackageId) { in FindByName()
224 ResourceId rewritten_id(kAppPackageId, id->package_id(), id->entry_id()); in FindByName()
1832 Maybe<std::string> package_id; in Link() local
1859 &package_id) in Link()
2024 if (package_id) { in Link()
2031 const Maybe<uint32_t> maybe_package_id_int = ResourceUtils::ParseInt(package_id.value()); in Link()
2033 context.GetDiagnostics()->Error(DiagMessage() << "package ID '" << package_id.value() in Link()
DDiff.cpp334 if (ref->id.value().package_id() == kAppPackageId) { in Visit()
/frameworks/base/tools/aapt2/proto/
DTableProtoDeserializer.cpp72 id = static_cast<uint8_t>(pbPackage.package_id()); in DeserializeFromPb()
127 ResourceId resId(pbPackage.package_id(), pbType.id(), pbEntry.id()); in DeserializeFromPb()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp436 id.package_id() > kAppPackageId) { in ProcessResource()
437 real_id = ResourceId(kAppPackageId, id.package_id(), id.entry_id()); in ProcessResource()