Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/include/androidfw/
DAttributeFinder.h64 void JumpToClosestAttribute(uint32_t package_id);
65 void MarkCurrentPackageId(uint32_t package_id);
98 const uint32_t package_id) { in JumpToClosestAttribute() argument
99 switch (package_id) { in JumpToClosestAttribute()
107 ssize_t idx = package_offsets_.indexOfKey(package_id); in JumpToClosestAttribute()
132 const uint32_t package_id) { in MarkCurrentPackageId() argument
133 switch (package_id) { in MarkCurrentPackageId()
141 package_offsets_.add(package_id, current_); in MarkCurrentPackageId()
DResourceUtils.h41 inline uint32_t fix_package_id(uint32_t resid, uint8_t package_id) { in fix_package_id() argument
42 return (resid & 0x00ffffffu) | (static_cast<uint32_t>(package_id) << 24); in fix_package_id()
66 inline uint32_t make_resid(uint8_t package_id, uint8_t type_id, uint16_t entry_id) { in make_resid() argument
67 return (static_cast<uint32_t>(package_id) << 24) | (static_cast<uint32_t>(type_id) << 16) | in make_resid()
DLoadedArsc.h39 DynamicPackageEntry(std::string&& package_name, int package_id) in DynamicPackageEntry() argument
40 : package_name(std::move(package_name)), package_id(package_id) {} in DynamicPackageEntry()
43 int package_id = 0; variable
298 const LoadedPackage* GetPackageById(uint8_t package_id) const;
DAssetManager2.h121 const DynamicRefTable* GetDynamicRefTableForPackage(uint32_t package_id) const;
128 GetOverlayableMapForPackage(uint32_t package_id) const;
/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/libs/androidfw/
DAssetManager2.cpp100 int package_id; in BuildDynamicRefTable() local
102 package_id = next_package_id++; in BuildDynamicRefTable()
104 package_id = package->GetPackageId(); in BuildDynamicRefTable()
108 uint8_t idx = package_ids_[package_id]; in BuildDynamicRefTable()
110 package_ids_[package_id] = idx = static_cast<uint8_t>(package_groups_.size()); in BuildDynamicRefTable()
113 ref_table.mAssignedPackageId = package_id; in BuildDynamicRefTable()
126 package_name, static_cast<uint8_t>(entry.package_id)); in BuildDynamicRefTable()
189 const DynamicRefTable* AssetManager2::GetDynamicRefTableForPackage(uint32_t package_id) const { in GetDynamicRefTableForPackage()
190 if (package_id >= package_ids_.size()) { in GetDynamicRefTableForPackage()
194 const size_t idx = package_ids_[package_id]; in GetDynamicRefTableForPackage()
[all …]
DLoadedArsc.cpp393 const LoadedPackage* LoadedArsc::GetPackageById(uint8_t package_id) const { in GetPackageById()
395 if (loaded_package->GetPackageId() == package_id) { in GetPackageById()
/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/tools/aapt2/
DSdkConstants.cpp67 if (id.package_id() != 0x01 || id.type_id() != 0x01) { in FindAttributeSdkLevel()
DResourceTable.cpp403 if (res_id.is_valid_dynamic() && package->id && package->id.value() != res_id.package_id()) { in AddResourceImpl()
469 package->id = res_id.package_id(); in AddResourceImpl()
509 if (res_id.is_valid_dynamic() && package->id && package->id.value() != res_id.package_id()) { in SetVisibilityImpl()
547 package->id = res_id.package_id(); in SetVisibilityImpl()
DResource.h155 uint8_t package_id() const;
244 inline uint8_t ResourceId::package_id() const { in package_id() function
DResources.proto80 PackageId package_id = 1; field
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp185 uint32_t package_id = util::DeviceToHost32(package_header->id); in ParsePackage() local
186 if (package_id > std::numeric_limits<uint8_t>::max()) { in ParsePackage()
187 diag_->Error(DiagMessage(source_) << "package ID is too big (" << package_id << ")"); in ParsePackage()
196 table_->CreatePackage(util::Utf16ToUtf8(package_name), static_cast<uint8_t>(package_id)); in ParsePackage()
199 << "incompatible package '" << package_name << "' with ID " << package_id); in ParsePackage()
DTableFlattener.cpp747 const uint8_t package_id = package->id.value(); in Consume() local
748 if (package_id != kFrameworkPackageId && package_id != kAppPackageId) { in Consume()
749 auto result = table->included_packages_.insert({package_id, package->name}); in Consume()
754 "can't map package ID %02x to '%s'. Already mapped to '%s'", package_id, in Consume()
DXmlFlattener.cpp259 StringPool::Ref name_ref = package_pools[aapt_attr.id.value().package_id()].MakeRef( in WriteAttributes()
/frameworks/base/tools/aapt2/format/
DContainer_test.cpp83 EXPECT_THAT(pb_new_table.package(0).package_id().id(), Eq(0x01u)); in TEST()
/frameworks/base/tools/aapt2/link/
DReferenceLinker.cpp197 return ref.id.value().package_id() == symbol.id.value().package_id(); in IsSymbolVisible()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp360 s->is_dynamic = IsPackageDynamic(ResourceId(res_id).package_id()); in FindByName()
408 s->is_dynamic = IsPackageDynamic(ResourceId(id).package_id()); in FindById()
/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp134 EXPECT_THAT(dynamic_pkg_map[0].package_id, Eq(0x02)); in TEST()
137 EXPECT_THAT(dynamic_pkg_map[1].package_id, Eq(0x03)); in TEST()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp444 id.package_id() > kAppPackageId) { in ProcessResource()
447 real_id = ResourceId(kAppPackageId, id.package_id(), id.entry_id()); in ProcessResource()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp364 assetmanager->ForEachPackage([&](const std::string& this_package_name, uint8_t package_id) { in NativeGetOverlayableMap() argument
366 map = assetmanager->GetOverlayableMapForPackage(package_id); in NativeGetOverlayableMap()
547 assetmanager->ForEachPackage([&](const std::string& package_name, uint8_t package_id) -> bool { in NativeGetAssignedPackageIdentifiers() argument
554 env->CallVoidMethod(sparse_array, gSparseArrayOffsets.put, static_cast<jint>(package_id), in NativeGetAssignedPackageIdentifiers()
/frameworks/base/tools/aapt2/cmd/
DDiff.cpp336 if (ref->id.value().package_id() == kAppPackageId) { in Visit()
DLink.cpp185 if (id->package_id() > kAppPackageId) { in FindByName()
187 ResourceId rewritten_id(kAppPackageId, id->package_id(), id->entry_id()); in FindByName()
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp422 id = static_cast<uint8_t>(pb_package.package_id().id()); in DeserializePackageFromPb()
499 ResourceId resid(pb_package.package_id().id(), pb_type.type_id().id(), in DeserializePackageFromPb()
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp193 if (package->id && package->id.value() == res_id.package_id()) { in FindValueById()