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.cpp62 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() local
63 ASSERT_THAT(type_spec, NotNull()); in TEST()
64 ASSERT_THAT(type_spec->type_count, Ge(1u)); in TEST()
66 const ResTable_type* type = type_spec->types[0]; in TEST()
86 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() local
87 ASSERT_THAT(type_spec, NotNull()); in TEST()
88 ASSERT_THAT(type_spec->type_count, Ge(1u)); in TEST()
90 const ResTable_type* type = type_spec->types[0]; in TEST()
170 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() local
171 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()
303 const TypeSpecPtr& type_spec = type_specs_[i]; in CollectConfigurations() local
304 if (type_spec != nullptr) { in CollectConfigurations()
306 const int type_idx = type_spec->type_spec->id - 1; in CollectConfigurations()
324 const auto iter_end = type_spec->types + type_spec->type_count; in CollectConfigurations()
[all …]
DAssetManager2.cpp429 const TypeSpec* type_spec = loaded_package->GetTypeSpecByTypeIndex(type_idx); in FindEntry() local
430 if (UNLIKELY(type_spec == nullptr)) { in FindEntry()
437 if (type_spec->idmap_entries != nullptr) { in FindEntry()
438 if (!LoadedIdmap::Lookup(type_spec->idmap_entries, local_entry_idx, &local_entry_idx)) { in FindEntry()
444 type_flags |= type_spec->GetFlagsForEntryIndex(local_entry_idx); in FindEntry()
494 const auto iter_end = type_spec->types + type_spec->type_count; in FindEntry()
495 for (auto iter = type_spec->types; iter != iter_end; ++iter) { in FindEntry()
/frameworks/base/libs/androidfw/include/androidfw/
DLoadedArsc.h52 const ResTable_typeSpec* type_spec; member
67 if (entry_index >= dtohl(type_spec->entryCount)) { in GetFlagsForEntryIndex()
71 const uint32_t* flags = reinterpret_cast<const uint32_t*>(type_spec + 1); in GetFlagsForEntryIndex()
218 uint8_t type_id = ptr->type_spec->id; in ForEachTypeSpec()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp285 const ResTable_typeSpec* type_spec = ConvertTo<ResTable_typeSpec>(chunk); in ParseTypeSpec() local
286 if (!type_spec) { in ParseTypeSpec()
291 if (type_spec->id == 0) { in ParseTypeSpec()
292 diag_->Error(DiagMessage(source_) << "ResTable_typeSpec has invalid id: " << type_spec->id); in ParseTypeSpec()
298 const size_t entry_count = dtohl(type_spec->entryCount); in ParseTypeSpec()
308 const size_t data_size = util::DeviceToHost32(type_spec->header.size) - in ParseTypeSpec()
309 util::DeviceToHost16(type_spec->header.headerSize); in ParseTypeSpec()
318 reinterpret_cast<uintptr_t>(type_spec) + util::DeviceToHost16(type_spec->header.headerSize)); in ParseTypeSpec()
320 ResourceId id(package->id.value_or_default(0x0), type_spec->id, static_cast<size_t>(i)); in ParseTypeSpec()