Home
last modified time | relevance | path

Searched refs:ResTable_type (Results 1 – 14 of 14) 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 *()
62 const size_t indexSize = type->flags & ResTable_type::FLAG_OFFSET16 ? in operator *()
70 if (type->flags & ResTable_type::FLAG_SPARSE) { in operator *()
78 } else if (type->flags & ResTable_type::FLAG_OFFSET16) { in operator *()
85 if (entryOffset == ResTable_type::NO_ENTRY) { in operator *()
DLoadedArsc.cpp58 void AddType(incfs::verified_map_ptr<ResTable_type> type) { in AddType()
80 static bool VerifyResTableType(incfs::map_ptr<ResTable_type> header) { in VerifyResTableType()
95 const size_t offsets_length = header->flags & ResTable_type::FLAG_OFFSET16 in VerifyResTableType()
117 VerifyResTableEntry(incfs::verified_map_ptr<ResTable_type> type, uint32_t entry_offset) { in VerifyResTableEntry()
243 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index) { in GetEntry()
252 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index) { in GetEntryOffset()
259 if (type_chunk->flags & ResTable_type::FLAG_SPARSE) { in GetEntryOffset()
299 if (type_chunk->flags & ResTable_type::FLAG_OFFSET16) { in GetEntryOffset()
313 if (result == ResTable_type::NO_ENTRY) { in GetEntryOffset()
320 LoadedPackage::GetEntryFromOffset(incfs::verified_map_ptr<ResTable_type> type_chunk, in GetEntryFromOffset()
[all …]
DResourceTypes.cpp3718 const ResTable_type* type;
3737 Vector<const ResTable_type*> configs;
5043 std::shared_ptr<Vector<const ResTable_type*>> newFilteredConfigs = in setParameters()
5044 std::make_shared<Vector<const ResTable_type*>>(); in setParameters()
6466 const ResTable_type* config = type->configs[m]; in forEachConfiguration()
6645 const ResTable_type* bestType = NULL; in getEntry()
6646 uint32_t bestOffset = ResTable_type::NO_ENTRY; in getEntry()
6694 const Vector<const ResTable_type*>* candidateConfigs = &typeSpec->configs; in getEntry()
6696 std::shared_ptr<Vector<const ResTable_type*>> filteredConfigs; in getEntry()
6719 const ResTable_type* const thisType = candidateConfigs->itemAt(c); in getEntry()
[all …]
DAssetManager2.cpp830 incfs::verified_map_ptr<ResTable_type> best_type; in FindEntryInternal()
/frameworks/base/libs/androidfw/tests/
DTypeWrappers_test.cpp27 static ResTable_type* createTypeTable(std::vector<Res_value*>& values, in createTypeTable()
31 ResTable_type t{}; in createTypeTable()
36 t.flags = short_offsets ? ResTable_type::FLAG_OFFSET16 : 0; in createTypeTable()
63 *p = v ? entry_offset : ResTable_type::NO_ENTRY; in createTypeTable()
86 return reinterpret_cast<ResTable_type*>(data); in createTypeTable()
106 ResTable_type* data = createTypeTable(values, compact_entry, short_offsets); in TEST()
DLoadedArsc_test.cpp405 ASSERT_EQ(type_entry_default->type->flags & ResTable_type::FLAG_SPARSE, 0); in TEST_P()
416 ASSERT_NE(type_entry_land->type->flags & ResTable_type::FLAG_SPARSE, 0); in TEST_P()
/frameworks/base/libs/androidfw/include/androidfw/
DTypeWrappers.h26 explicit TypeVariant(const ResTable_type* data);
77 const ResTable_type* data;
DLoadedArsc.h52 incfs::verified_map_ptr<ResTable_type> type;
176 GetEntry(incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index);
179 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index);
182 GetEntryFromOffset(incfs::verified_map_ptr<ResTable_type> type_chunk, uint32_t offset);
DResourceTypes.h1451 struct ResTable_type struct
1492 return dtohs(off16) == 0xffffu ? ResTable_type::NO_ENTRY : dtohs(off16) * 4u; in offset_from16() argument
1497 sizeof(ResTable_type) - sizeof(ResTable_config) + sizeof(ResTable_config::size);
1501 static_assert(sizeof(ResTable_type) == offsetof(ResTable_type, config) + sizeof(ResTable_config),
2311 Vector<std::shared_ptr<Vector<const ResTable_type*>>> filteredConfigs;
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener.cpp175 ResTable_type* type_header = type_writer.StartChunk<ResTable_type>(RES_TABLE_TYPE_TYPE); in FlattenConfig()
218 type_header->flags |= ResTable_type::FLAG_SPARSE; in FlattenConfig()
222 if (offsets[i] != ResTable_type::NO_ENTRY) { in FlattenConfig()
233 type_header->flags |= ResTable_type::FLAG_OFFSET16; in FlattenConfig()
DBinaryResourceParser.cpp357 const ResTable_type* type = ConvertTo<ResTable_type, kResTableTypeMinSize>(chunk); in ParseType()
DTableFlattener_test.cpp283 TypeVariant typeVariant((const ResTable_type*) type_chunk); in TEST_F()
/frameworks/base/tools/aapt2/
DDebug.cpp672 bool PrintTableType(const ResTable_type* chunk) { in PrintTableType()
824 PrintTableType(reinterpret_cast<const ResTable_type*>(chunk)); in PrintChunk()
/frameworks/base/tools/aapt/
DResourceTable.cpp3145 const size_t typeSize = sizeof(ResTable_type) + sizeof(uint32_t)*N; in flatten()
3182 ResTable_type* tHeader = (ResTable_type*) in flatten()
3233 + typeStart + sizeof(ResTable_type)); in flatten()
3244 index[ei] = htodl(ResTable_type::NO_ENTRY); in flatten()
3249 tHeader = (ResTable_type*) in flatten()