Home
last modified time | relevance | path

Searched refs:ResTable_type (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/libs/androidfw/
DTypeWrappers.cpp23 TypeVariant::TypeVariant(const ResTable_type* data) : data(data), mLength(dtohl(data->entryCount)) { in TypeVariant()
24 if (data->flags & ResTable_type::FLAG_SPARSE) { in TypeVariant()
52 const ResTable_type* type = mTypeVariant->data; in operator *()
68 if (type->flags & ResTable_type::FLAG_SPARSE) { in operator *()
80 if (entryOffset == ResTable_type::NO_ENTRY) { in operator *()
DLoadedArsc.cpp59 void AddType(const ResTable_type* type) { in AddType()
65 using ElementType = const ResTable_type*; in Build()
84 std::vector<const ResTable_type*> types_;
94 static bool VerifyResTableType(const ResTable_type* header) { in VerifyResTableType()
128 static bool VerifyResTableEntry(const ResTable_type* type, uint32_t entry_offset) { in VerifyResTableEntry()
239 const ResTable_entry* LoadedPackage::GetEntry(const ResTable_type* type_chunk, in GetEntry()
242 if (entry_offset == ResTable_type::NO_ENTRY) { in GetEntry()
248 uint32_t LoadedPackage::GetEntryOffset(const ResTable_type* type_chunk, uint16_t entry_index) { in GetEntryOffset()
256 if (type_chunk->flags & ResTable_type::FLAG_SPARSE) { in GetEntryOffset()
270 return ResTable_type::NO_ENTRY; in GetEntryOffset()
[all …]
DResourceTypes.cpp3472 const ResTable_type* type;
3491 Vector<const ResTable_type*> configs;
4801 std::shared_ptr<Vector<const ResTable_type*>> newFilteredConfigs = in setParameters()
4802 std::make_shared<Vector<const ResTable_type*>>(); in setParameters()
6195 const ResTable_type* config = type->configs[m]; in forEachConfiguration()
6380 const ResTable_type* bestType = NULL; in getEntry()
6381 uint32_t bestOffset = ResTable_type::NO_ENTRY; in getEntry()
6429 const Vector<const ResTable_type*>* candidateConfigs = &typeSpec->configs; in getEntry()
6431 std::shared_ptr<Vector<const ResTable_type*>> filteredConfigs; in getEntry()
6454 const ResTable_type* const thisType = candidateConfigs->itemAt(c); in getEntry()
[all …]
DAssetManager2.cpp409 const ResTable_type* best_type = nullptr; in FindEntry()
470 const ResTable_type* type = filtered_group.types[i]; in FindEntry()
472 if (offset == ResTable_type::NO_ENTRY) { in FindEntry()
518 if (offset == ResTable_type::NO_ENTRY) { in FindEntry()
/frameworks/base/libs/androidfw/tests/
DTypeWrappers_test.cpp26 ResTable_type t; in createTypeData()
48 offsets[1] = ResTable_type::NO_ENTRY; in createTypeData()
79 ResTable_type* data = (ResTable_type*) createTypeData(); in TEST()
DLoadedArsc_test.cpp66 const ResTable_type* type = type_spec->types[0]; in TEST()
90 const ResTable_type* type = type_spec->types[0]; in TEST()
/frameworks/base/libs/androidfw/include/androidfw/
DTypeWrappers.h26 explicit TypeVariant(const ResTable_type* data);
77 const ResTable_type* data;
DLoadedArsc.h64 const ResTable_type* types[0];
151 static const ResTable_entry* GetEntry(const ResTable_type* type_chunk, uint16_t entry_index);
153 static uint32_t GetEntryOffset(const ResTable_type* type_chunk, uint16_t entry_index);
155 static const ResTable_entry* GetEntryFromOffset(const ResTable_type* type_chunk, uint32_t offset);
DResourceTypes.h1390 struct ResTable_type struct
1427 sizeof(ResTable_type) - sizeof(ResTable_config) + sizeof(ResTable_config::size);
1431 static_assert(sizeof(ResTable_type) == offsetof(ResTable_type, config) + sizeof(ResTable_config),
2099 Vector<std::shared_ptr<Vector<const ResTable_type*>>> filteredConfigs;
DAssetManager2.h321 std::vector<const ResTable_type*> types;
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener.cpp338 ResTable_type* type_header = type_writer.StartChunk<ResTable_type>(RES_TABLE_TYPE_TYPE); in FlattenConfig()
376 type_header->flags |= ResTable_type::FLAG_SPARSE; in FlattenConfig()
380 if (offsets[i] != ResTable_type::NO_ENTRY) { in FlattenConfig()
DBinaryResourceParser.cpp340 const ResTable_type* type = ConvertTo<ResTable_type, kResTableTypeMinSize>(chunk); in ParseType()
DTableFlattener_test.cpp285 TypeVariant typeVariant((const ResTable_type*) type_chunk); in TEST_F()
/frameworks/base/cmds/idmap/
Dinspect.cpp287 if (data32 != ResTable_type::NO_ENTRY) { in parse_data()
/frameworks/base/tools/aapt/
DResourceTable.cpp3152 const size_t typeSize = sizeof(ResTable_type) + sizeof(uint32_t)*N; in flatten()
3189 ResTable_type* tHeader = (ResTable_type*) in flatten()
3240 + typeStart + sizeof(ResTable_type)); in flatten()
3251 index[ei] = htodl(ResTable_type::NO_ENTRY); in flatten()
3256 tHeader = (ResTable_type*) in flatten()