Searched refs:type_spec (Results 1 – 5 of 5) sorted by relevance
66 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() local67 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()153 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() local154 ASSERT_THAT(type_spec, NotNull()); in TEST()155 ASSERT_THAT(type_spec->type_entries.size(), Ge(1u)); in TEST()157 auto type_name16 = package->GetTypeStringPool()->stringAt(type_spec->type_spec->id - 1); in TEST()161 ASSERT_TRUE(LoadedPackage::GetEntry(type_spec->type_entries[0].type, entry_index).has_value()); in TEST()194 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(0); in TEST() local[all …]
61 incfs::verified_map_ptr<ResTable_typeSpec> type_spec; member66 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()247 const auto& type_spec = type_specs_.find(type_index + 1 - type_id_offset_); in GetTypeSpecByTypeIndex() local248 if (type_spec == type_specs_.end()) { in GetTypeSpecByTypeIndex()251 return &type_spec->second; in GetTypeSpecByTypeIndex()256 for (const auto& type_spec : type_specs_) { in ForEachTypeSpec() local257 f(type_spec.second, type_spec.first); in ForEachTypeSpec()
331 for (const auto& type_spec : type_specs_) { in CollectConfigurations() local333 const int type_idx = type_spec.first - 1; in CollectConfigurations()357 for (const auto& type_entry : type_spec.second.type_entries) { in CollectConfigurations()366 for (const auto& type_spec : type_specs_) { in CollectLocales() local367 for (const auto& type_entry : type_spec.second.type_entries) { in CollectLocales()391 const TypeSpec* type_spec = GetTypeSpecByTypeIndex(*type_idx); in FindEntryByName() local392 if (type_spec == nullptr) { in FindEntryByName()396 for (const auto& type_entry : type_spec->type_entries) { in FindEntryByName()546 const auto type_spec = child_chunk.header<ResTable_typeSpec>(); in Load() local547 if (!type_spec) { in Load()[all …]
850 const TypeSpec* type_spec = loaded_package->GetTypeSpecByTypeIndex(type_idx); in FindEntryInternal() local851 if (UNLIKELY(type_spec == nullptr)) { in FindEntryInternal()859 auto entry_flags = type_spec->GetFlagsForEntryIndex(entry_idx); in FindEntryInternal()867 : type_spec->type_entries.size(); in FindEntryInternal()870 : &type_spec->type_entries[i]; in FindEntryInternal()1501 package.loaded_package_->ForEachTypeSpec([&](const TypeSpec& type_spec, uint8_t type_id) { in RebuildFilterList() argument1503 for (const auto& type_entry : type_spec.type_entries) { in RebuildFilterList()
300 const ResTable_typeSpec* type_spec = ConvertTo<ResTable_typeSpec>(chunk); in ParseTypeSpec() local301 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()