Searched refs:ResTable_type (Results 1 – 13 of 13) sorted by relevance
/aosp12/frameworks/base/libs/androidfw/ |
H A D | TypeWrappers.cpp | 23 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 *()
|
H A D | LoadedArsc.cpp | 55 void AddType(incfs::verified_map_ptr<ResTable_type> type) { in AddType() 76 static bool VerifyResTableType(incfs::map_ptr<ResTable_type> header) { in VerifyResTableType() 111 incfs::verified_map_ptr<ResTable_type> type, uint32_t entry_offset) { in VerifyResTableEntry() 232 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index) { in GetEntry() 241 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index) { in GetEntryOffset() 248 if (type_chunk->flags & ResTable_type::FLAG_SPARSE) { in GetEntryOffset() 293 if (value == ResTable_type::NO_ENTRY) { in GetEntryOffset() 301 incfs::verified_map_ptr<ResTable_type> type_chunk, uint32_t offset) { in GetEntryFromOffset() 377 const incfs::verified_map_ptr<ResTable_type>& type = type_entry.type; in FindEntryByName() 389 if (type->flags & ResTable_type::FLAG_SPARSE) { in FindEntryByName() [all …]
|
H A D | ResourceTypes.cpp | 3587 const ResTable_type* type; 3606 Vector<const ResTable_type*> configs; 6313 const ResTable_type* config = type->configs[m]; in forEachConfiguration() 6492 const ResTable_type* bestType = NULL; in getEntry() 6493 uint32_t bestOffset = ResTable_type::NO_ENTRY; in getEntry() 6543 std::shared_ptr<Vector<const ResTable_type*>> filteredConfigs; in getEntry() 6585 if (thisType->flags & ResTable_type::FLAG_SPARSE) { in getEntry() 6610 if (thisOffset == ResTable_type::NO_ENTRY) { in getEntry() 6877 const ResTable_type* type = (const ResTable_type*)(chunk); in parsePackage() 7656 if (type->flags & ResTable_type::FLAG_SPARSE) { in print() [all …]
|
H A D | AssetManager2.cpp | 669 incfs::verified_map_ptr<ResTable_type> best_type; in FindEntryInternal()
|
/aosp12/frameworks/base/libs/androidfw/tests/ |
H A D | TypeWrappers_test.cpp | 26 ResTable_type t; in createTypeData() 48 offsets[1] = ResTable_type::NO_ENTRY; in createTypeData() 79 ResTable_type* data = (ResTable_type*) createTypeData(); in TEST()
|
H A D | LoadedArsc_test.cpp | 123 ASSERT_NE(type_entry->type->flags & ResTable_type::FLAG_SPARSE, 0); in TEST()
|
/aosp12/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | LoadedArsc.h | 52 incfs::verified_map_ptr<ResTable_type> type; 170 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index); 173 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index); 176 incfs::verified_map_ptr<ResTable_type> type_chunk, uint32_t offset);
|
H A D | TypeWrappers.h | 26 explicit TypeVariant(const ResTable_type* data); 77 const ResTable_type* data;
|
H A D | ResourceTypes.h | 1421 struct ResTable_type struct 1458 sizeof(ResTable_type) - sizeof(ResTable_config) + sizeof(ResTable_config::size); 1462 static_assert(sizeof(ResTable_type) == offsetof(ResTable_type, config) + sizeof(ResTable_config), 2169 Vector<std::shared_ptr<Vector<const ResTable_type*>>> filteredConfigs;
|
/aosp12/frameworks/base/tools/aapt2/format/binary/ |
H A D | TableFlattener.cpp | 348 ResTable_type* type_header = type_writer.StartChunk<ResTable_type>(RES_TABLE_TYPE_TYPE); in FlattenConfig() 386 type_header->flags |= ResTable_type::FLAG_SPARSE; in FlattenConfig() 390 if (offsets[i] != ResTable_type::NO_ENTRY) { in FlattenConfig()
|
H A D | BinaryResourceParser.cpp | 352 const ResTable_type* type = ConvertTo<ResTable_type, kResTableTypeMinSize>(chunk); in ParseType()
|
H A D | TableFlattener_test.cpp | 283 TypeVariant typeVariant((const ResTable_type*) type_chunk); in TEST_F()
|
/aosp12/frameworks/base/tools/aapt/ |
H A D | ResourceTable.cpp | 3152 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()
|