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.cpp60 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() local
61 ASSERT_THAT(type_spec, NotNull()); in TEST()
62 ASSERT_THAT(type_spec->type_count, Ge(1u)); in TEST()
64 const ResTable_type* type = type_spec->types[0]; in TEST()
84 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() local
85 ASSERT_THAT(type_spec, NotNull()); in TEST()
86 ASSERT_THAT(type_spec->type_count, Ge(1u)); in TEST()
88 const ResTable_type* type = type_spec->types[0]; in TEST()
168 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() local
169 ASSERT_THAT(type_spec, NotNull()); in TEST()
[all …]
/frameworks/base/libs/androidfw/
DLoadedArsc.cpp70 TypeSpec* type_spec = in Build() local
72 type_spec->type_spec = header_; in Build()
73 type_spec->idmap_entries = idmap_header_; in Build()
74 type_spec->type_count = types_.size(); in Build()
75 memcpy(type_spec + 1, types_.data(), types_.size() * sizeof(ElementType)); in Build()
76 return TypeSpecPtr(type_spec); in Build()
270 const TypeSpecPtr& type_spec = type_specs_[i]; in CollectConfigurations() local
271 if (type_spec != nullptr) { in CollectConfigurations()
273 const int type_idx = type_spec->type_spec->id - 1; in CollectConfigurations()
291 const auto iter_end = type_spec->types + type_spec->type_count; in CollectConfigurations()
[all …]
DAssetManager2.cpp360 const TypeSpec* type_spec = loaded_package->GetTypeSpecByTypeIndex(type_idx); in FindEntry() local
361 if (UNLIKELY(type_spec == nullptr)) { in FindEntry()
368 if (type_spec->idmap_entries != nullptr) { in FindEntry()
369 if (!LoadedIdmap::Lookup(type_spec->idmap_entries, local_entry_idx, &local_entry_idx)) { in FindEntry()
375 type_flags |= type_spec->GetFlagsForEntryIndex(local_entry_idx); in FindEntry()
412 const auto iter_end = type_spec->types + type_spec->type_count; in FindEntry()
413 for (auto iter = type_spec->types; iter != iter_end; ++iter) { in FindEntry()
/frameworks/base/libs/androidfw/include/androidfw/
DLoadedArsc.h50 const ResTable_typeSpec* type_spec; member
65 if (entry_index >= dtohl(type_spec->entryCount)) { in GetFlagsForEntryIndex()
69 const uint32_t* flags = reinterpret_cast<const uint32_t*>(type_spec + 1); in GetFlagsForEntryIndex()
161 uint8_t type_id = ptr->type_spec->id; in ForEachTypeSpec()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp270 const ResTable_typeSpec* type_spec = ConvertTo<ResTable_typeSpec>(chunk); in ParseTypeSpec() local
271 if (!type_spec) { in ParseTypeSpec()
276 if (type_spec->id == 0) { in ParseTypeSpec()
277 diag_->Error(DiagMessage(source_) << "ResTable_typeSpec has invalid id: " << type_spec->id); in ParseTypeSpec()
283 const size_t entry_count = dtohl(type_spec->entryCount); in ParseTypeSpec()
293 const size_t data_size = util::DeviceToHost32(type_spec->header.size) - in ParseTypeSpec()
294 util::DeviceToHost16(type_spec->header.headerSize); in ParseTypeSpec()
303 reinterpret_cast<uintptr_t>(type_spec) + util::DeviceToHost16(type_spec->header.headerSize)); in ParseTypeSpec()
305 ResourceId id(package->id.value_or_default(0x0), type_spec->id, static_cast<size_t>(i)); in ParseTypeSpec()