Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp66 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() local
67 ASSERT_THAT(type_spec, NotNull()); in TEST()
68 ASSERT_THAT(type_spec->type_entries.size(), Ge(1u)); in TEST()
70 auto type = type_spec->type_entries[0]; in TEST()
90 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() local
91 ASSERT_THAT(type_spec, NotNull()); in TEST()
92 ASSERT_THAT(type_spec->type_entries.size(), Ge(1u)); in TEST()
94 auto type = type_spec->type_entries[0]; in TEST()
114 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() local
115 ASSERT_THAT(type_spec, NotNull()); in TEST()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
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()
/frameworks/base/libs/androidfw/
DLoadedArsc.cpp311 for (const auto& type_spec : type_specs_) { in CollectConfigurations() local
313 const int type_idx = type_spec.first - 1; in CollectConfigurations()
337 for (const auto& type_entry : type_spec.second.type_entries) { in CollectConfigurations()
346 for (const auto& type_spec : type_specs_) { in CollectLocales() local
347 for (const auto& type_entry : type_spec.second.type_entries) { in CollectLocales()
371 const TypeSpec* type_spec = GetTypeSpecByTypeIndex(*type_idx); in FindEntryByName() local
372 if (type_spec == nullptr) { in FindEntryByName()
376 for (const auto& type_entry : type_spec->type_entries) { in FindEntryByName()
509 const auto type_spec = child_chunk.header<ResTable_typeSpec>(); in Load() local
510 if (!type_spec) { in Load()
[all …]
DAssetManager2.cpp717 const TypeSpec* type_spec = loaded_package->GetTypeSpecByTypeIndex(type_idx); in FindEntryInternal() local
718 if (UNLIKELY(type_spec == nullptr)) { in FindEntryInternal()
726 auto entry_flags = type_spec->GetFlagsForEntryIndex(entry_idx); in FindEntryInternal()
734 : type_spec->type_entries.size(); in FindEntryInternal()
737 : &type_spec->type_entries[i]; in FindEntryInternal()
1357 impl.loaded_package_->ForEachTypeSpec([&](const TypeSpec& type_spec, uint8_t type_id) { in RebuildFilterList() argument
1359 for (const auto& type_entry : type_spec.type_entries) { in RebuildFilterList()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp297 const ResTable_typeSpec* type_spec = ConvertTo<ResTable_typeSpec>(chunk); in ParseTypeSpec() local
298 if (!type_spec) { in ParseTypeSpec()
303 if (type_spec->id == 0) { in ParseTypeSpec()
304 diag_->Error(DiagMessage(source_) << "ResTable_typeSpec has invalid id: " << type_spec->id); in ParseTypeSpec()
310 const size_t entry_count = dtohl(type_spec->entryCount); in ParseTypeSpec()
320 const size_t data_size = util::DeviceToHost32(type_spec->header.size) - in ParseTypeSpec()
321 util::DeviceToHost16(type_spec->header.headerSize); in ParseTypeSpec()
330 reinterpret_cast<uintptr_t>(type_spec) + util::DeviceToHost16(type_spec->header.headerSize)); in ParseTypeSpec()
332 ResourceId id(package_id, type_spec->id, static_cast<size_t>(i)); in ParseTypeSpec()