/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 | 40 inline uint32_t fix_package_id(uint32_t resid, uint8_t package_id) { in fix_package_id() argument 41 return (resid & 0x00ffffffu) | (static_cast<uint32_t>(package_id) << 24); in fix_package_id() 65 inline uint32_t make_resid(uint8_t package_id, uint8_t type_id, uint16_t entry_id) { in make_resid() argument 66 return (static_cast<uint32_t>(package_id) << 24) | (static_cast<uint32_t>(type_id) << 16) | in make_resid()
|
D | LoadedArsc.h | 41 DynamicPackageEntry(std::string&& package_name, int package_id) in DynamicPackageEntry() argument 42 : package_name(std::move(package_name)), package_id(package_id) {} in DynamicPackageEntry() 45 int package_id = 0; variable 338 const LoadedPackage* GetPackageById(uint8_t package_id) const;
|
D | AssetManager2.h | 142 const DynamicRefTable* GetDynamicRefTableForPackage(uint32_t package_id) const; 155 uint32_t package_id) const;
|
/frameworks/base/tools/aapt2/compile/ |
D | IdAssigner.cpp | 63 explicit TypeGroup(uint8_t package_id, uint8_t type_id) in TypeGroup() 64 : package_id_(package_id), type_id_(type_id){}; in TypeGroup() 102 IdAssignerContext(std::string package_name, uint8_t package_id) in IdAssignerContext() 103 : package_name_(std::move(package_name)), package_id_(package_id) { in IdAssignerContext() 276 if (package_id_ != id.package_id()) { in ReserveId() 279 << " because package already has ID " << std::hex << (int)id.package_id()); in ReserveId()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | BinaryResourceParser.cpp | 192 uint32_t package_id = android::util::DeviceToHost32(package_header->id); in ParsePackage() local 193 if (package_id > std::numeric_limits<uint8_t>::max()) { in ParsePackage() 194 diag_->Error(android::DiagMessage(source_) << "package ID is too big (" << package_id << ")"); in ParsePackage() 206 << "incompatible package '" << package_name << "' with ID " << package_id); in ParsePackage() 244 if (!ParseTypeSpec(package, parser.chunk(), package_id)) { in ParsePackage() 250 if (!ParseType(package, parser.chunk(), package_id)) { in ParsePackage() 294 const ResChunk_header* chunk, uint8_t package_id) { in ParseTypeSpec() argument 337 ResourceId id(package_id, type_spec->id, static_cast<size_t>(i)); in ParseTypeSpec() 344 const ResChunk_header* chunk, uint8_t package_id) { in ParseType() argument 389 const ResourceId res_id(package_id, type->id, static_cast<uint16_t>(it.index())); in ParseType()
|
D | BinaryResourceParser.h | 56 uint8_t package_id); 58 uint8_t package_id);
|
D | TableFlattener.cpp | 598 const uint8_t package_id = package.id.value(); in Consume() local 599 if (package_id != kFrameworkPackageId && package_id != kAppPackageId) { in Consume() 600 auto result = table->included_packages_.insert({package_id, package.name}); in Consume() 605 "can't map package ID %02x to '%s'. Already mapped to '%s'", package_id, in Consume()
|
D | XmlFlattener.cpp | 260 package_pools[aapt_attr.id.value().package_id()].MakeRef( in WriteAttributes()
|
/frameworks/base/libs/androidfw/ |
D | AssetManager2.cpp | 200 int package_id; in BuildDynamicRefTable() local 202 package_id = next_package_id++; in BuildDynamicRefTable() 204 package_id = package->GetPackageId(); in BuildDynamicRefTable() 207 uint8_t idx = package_ids_[package_id]; in BuildDynamicRefTable() 210 package_ids_[package_id] = idx = static_cast<uint8_t>(package_groups_.size()); in BuildDynamicRefTable() 220 ref_table->mAssignedPackageId = package_id; in BuildDynamicRefTable() 233 package_name, static_cast<uint8_t>(entry.package_id)); in BuildDynamicRefTable() 238 target_assets_package_ids.emplace(*apk_assets_path, package_id); in BuildDynamicRefTable() 322 const DynamicRefTable* AssetManager2::GetDynamicRefTableForPackage(uint32_t package_id) const { in GetDynamicRefTableForPackage() 323 if (package_id >= package_ids_.size()) { in GetDynamicRefTableForPackage() [all …]
|
D | LoadedArsc.cpp | 445 const LoadedPackage* LoadedArsc::GetPackageById(uint8_t package_id) const { in GetPackageById() 447 if (loaded_package->GetPackageId() == package_id) { in GetPackageById()
|
/frameworks/base/tools/aapt2/ |
D | Resource.h | 199 uint8_t package_id() const; 286 inline uint8_t ResourceId::package_id() const { in package_id() function 329 if ((a.package_id() == kFrameworkPackageId && b.package_id() == 0x00) || in cmp_ids_dynamic_after_framework() 330 (a.package_id() == 0x00 && b.package_id() == kFrameworkPackageId)) { in cmp_ids_dynamic_after_framework()
|
D | SdkConstants.cpp | 73 if (id.package_id() != 0x01 || id.type_id() != 0x01) { in FindAttributeSdkLevel()
|
D | Resources.proto | 51 PackageId package_id = 1; field 88 PackageId package_id = 1; field
|
D | ResourceTable.cpp | 362 id ? id.value().package_id() : std::optional<uint8_t>{}}; in InsertEntryIntoTableView()
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | ResourceContainer.cpp | 32 #define REWRITE_PACKAGE(resid, package_id) \ argument 33 (((resid)&0x00ffffffU) | (((uint32_t)(package_id)) << 24U)) 187 const uint8_t package_id = overlay_package->GetPackageId(); in CreateResourceMapping() local 224 bool rewrite_id = package_id == EXTRACT_PACKAGE(overlay_resource->data); in CreateResourceMapping()
|
/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/process/ |
D | SymbolTable.cpp | 203 (sr.entry->id.value().package_id() == 0) || sr.entry->visibility.staged_api; in FindByName() 373 s->is_dynamic = IsPackageDynamic(ResourceId(res_id).package_id(), real_name.package) || in FindByName() 420 s->is_dynamic = IsPackageDynamic(ResourceId(id).package_id(), name.package) || in FindById()
|
/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 | 245 return ref.id.value().package_id() == symbol.id.value().package_id(); in IsSymbolVisible()
|
/frameworks/base/libs/androidfw/tests/ |
D | LoadedArsc_test.cpp | 115 EXPECT_THAT(dynamic_pkg_map[0].package_id, Eq(0x02)); in TEST() 118 EXPECT_THAT(dynamic_pkg_map[1].package_id, Eq(0x03)); in TEST()
|
/frameworks/base/tools/aapt2/java/ |
D | JavaClassGenerator.cpp | 458 id.package_id() > kAppPackageId) { in ProcessResource() 461 real_id = ResourceId(kAppPackageId, id.package_id(), id.entry_id()); in ProcessResource()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoDeserialize.cpp | 446 pb_package.has_package_id() ? static_cast<uint8_t>(pb_package.package_id().id()) : 0u, in DeserializePackageFromPb() 516 ResourceId resid(pb_package.package_id().id(), pb_type.type_id().id(), in DeserializePackageFromPb() 568 {dynamic_ref.package_id().id(), dynamic_ref.package_name()}); in DeserializeTableFromPb()
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 194 assetmanager->ForEachPackage([&](const std::string& this_package_name, uint8_t package_id) { in NativeGetOverlayableMap() argument 196 map = assetmanager->GetOverlayableMapForPackage(package_id); in NativeGetOverlayableMap() 442 assetmanager->ForEachPackage([&](const std::string& package_name, uint8_t package_id) -> bool { in NativeGetAssignedPackageIdentifiers() argument 449 env->CallVoidMethod(sparse_array, gSparseArrayOffsets.put, static_cast<jint>(package_id), in NativeGetAssignedPackageIdentifiers()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Diff.cpp | 367 if (ref->id.value().package_id() == kAppPackageId) { in Visit()
|