Home
last modified time | relevance | path

Searched refs:type_spec (Results 1 – 5 of 5) sorted by relevance

/aosp14/frameworks/base/libs/androidfw/tests/
H A DLoadedArsc_test.cpp67 ASSERT_THAT(type_spec, NotNull()); in TEST()
70 auto type = type_spec->type_entries[0]; in TEST()
154 ASSERT_THAT(type_spec, NotNull()); in TEST()
157 auto type_name16 = package->GetTypeStringPool()->stringAt(type_spec->type_spec->id - 1); in TEST()
195 ASSERT_THAT(type_spec, NotNull()); in TEST()
199 ASSERT_THAT(type_spec, NotNull()); in TEST()
339 ASSERT_THAT(type_spec, NotNull()); in TEST()
371 ASSERT_THAT(type_spec, NotNull()); in TEST_P()
393 ASSERT_THAT(type_spec, NotNull()); in TEST_P()
401 type_spec->type_entries.begin(), type_spec->type_entries.end(), in TEST_P()
[all …]
/aosp14/frameworks/base/libs/androidfw/include/androidfw/
H A DLoadedArsc.h61 incfs::verified_map_ptr<ResTable_typeSpec> type_spec; member
66 if (entry_index >= dtohl(type_spec->entryCount)) { in GetFlagsForEntryIndex()
69 const auto entry_flags_ptr = ((type_spec + 1).convert<uint32_t>() + entry_index); in GetFlagsForEntryIndex()
241 const auto& type_spec = type_specs_.find(type_index + 1 - type_id_offset_); in GetTypeSpecByTypeIndex() local
242 if (type_spec == type_specs_.end()) { in GetTypeSpecByTypeIndex()
245 return &type_spec->second; in GetTypeSpecByTypeIndex()
250 for (const auto& type_spec : type_specs_) { in ForEachTypeSpec() local
251 f(type_spec.second, type_spec.first); in ForEachTypeSpec()
/aosp14/frameworks/base/libs/androidfw/
H A DLoadedArsc.cpp327 for (const auto& type_spec : type_specs_) { in CollectConfigurations() local
329 const int type_idx = type_spec.first - 1; in CollectConfigurations()
362 for (const auto& type_spec : type_specs_) { in CollectLocales() local
387 const TypeSpec* type_spec = GetTypeSpecByTypeIndex(*type_idx); in FindEntryByName() local
388 if (type_spec == nullptr) { in FindEntryByName()
392 for (const auto& type_entry : type_spec->type_entries) { in FindEntryByName()
537 if (!type_spec) { in Load()
542 if (type_spec->id == 0) { in Load()
556 const size_t entry_count = dtohl(type_spec->entryCount); in Load()
576 type_spec->id); in Load()
[all …]
H A DAssetManager2.cpp791 const TypeSpec* type_spec = loaded_package->GetTypeSpecByTypeIndex(type_idx); in FindEntryInternal() local
792 if (UNLIKELY(type_spec == nullptr)) { in FindEntryInternal()
800 auto entry_flags = type_spec->GetFlagsForEntryIndex(entry_idx); in FindEntryInternal()
808 : type_spec->type_entries.size(); in FindEntryInternal()
811 : &type_spec->type_entries[i]; in FindEntryInternal()
1420 package.loaded_package_->ForEachTypeSpec([&](const TypeSpec& type_spec, uint8_t type_id) { in RebuildFilterList() argument
1422 for (const auto& type_entry : type_spec.type_entries) { in RebuildFilterList()
/aosp14/frameworks/base/tools/aapt2/format/binary/
H A DBinaryResourceParser.cpp300 const ResTable_typeSpec* type_spec = ConvertTo<ResTable_typeSpec>(chunk); in ParseTypeSpec() local
301 if (!type_spec) { in ParseTypeSpec()
306 if (type_spec->id == 0) { in ParseTypeSpec()
308 << "ResTable_typeSpec has invalid id: " << type_spec->id); in ParseTypeSpec()
314 const size_t entry_count = dtohl(type_spec->entryCount); in ParseTypeSpec()
324 const size_t data_size = android::util::DeviceToHost32(type_spec->header.size) - in ParseTypeSpec()
325 android::util::DeviceToHost16(type_spec->header.headerSize); in ParseTypeSpec()
334 reinterpret_cast<uintptr_t>(type_spec) + in ParseTypeSpec()
335 android::util::DeviceToHost16(type_spec->header.headerSize)); in ParseTypeSpec()
337 ResourceId id(package_id, type_spec->id, static_cast<size_t>(i)); in ParseTypeSpec()