/frameworks/base/libs/androidfw/include/androidfw/ |
D | AttributeFinder.h | 64 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()
|
D | ResourceUtils.h | 41 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()
|
D | LoadedArsc.h | 39 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;
|
D | AssetManager2.h | 121 const DynamicRefTable* GetDynamicRefTableForPackage(uint32_t package_id) const; 128 GetOverlayableMapForPackage(uint32_t package_id) const;
|
/frameworks/base/tools/aapt2/compile/ |
D | IdAssigner.cpp | 37 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/ |
D | AssetManager2.cpp | 100 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 …]
|
D | LoadedArsc.cpp | 393 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/ |
D | Context.h | 64 void SetPackageId(uint8_t package_id) { in SetPackageId() argument 65 package_id_ = package_id; in SetPackageId()
|
/frameworks/base/tools/aapt2/ |
D | SdkConstants.cpp | 67 if (id.package_id() != 0x01 || id.type_id() != 0x01) { in FindAttributeSdkLevel()
|
D | ResourceTable.cpp | 403 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()
|
D | Resource.h | 155 uint8_t package_id() const; 244 inline uint8_t ResourceId::package_id() const { in package_id() function
|
D | Resources.proto | 80 PackageId package_id = 1; field
|
/frameworks/base/tools/aapt2/format/binary/ |
D | BinaryResourceParser.cpp | 185 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()
|
D | TableFlattener.cpp | 747 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()
|
D | XmlFlattener.cpp | 259 StringPool::Ref name_ref = package_pools[aapt_attr.id.value().package_id()].MakeRef( in WriteAttributes()
|
/frameworks/base/tools/aapt2/format/ |
D | Container_test.cpp | 83 EXPECT_THAT(pb_new_table.package(0).package_id().id(), Eq(0x01u)); in TEST()
|
/frameworks/base/tools/aapt2/link/ |
D | ReferenceLinker.cpp | 197 return ref.id.value().package_id() == symbol.id.value().package_id(); in IsSymbolVisible()
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 360 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/ |
D | LoadedArsc_test.cpp | 134 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/ |
D | JavaClassGenerator.cpp | 444 id.package_id() > kAppPackageId) { in ProcessResource() 447 real_id = ResourceId(kAppPackageId, id.package_id(), id.entry_id()); in ProcessResource()
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 364 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/ |
D | Diff.cpp | 336 if (ref->id.value().package_id() == kAppPackageId) { in Visit()
|
D | Link.cpp | 185 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/ |
D | ProtoDeserialize.cpp | 422 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/ |
D | DumpManifest.cpp | 193 if (package->id && package->id.value() == res_id.package_id()) { in FindValueById()
|