Home
last modified time | relevance | path

Searched refs:ResTable_type (Results 1 – 9 of 9) 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.cpp53 const ResTable_type* type;
89 void AddType(const ResTable_type* type) { in AddType()
135 const ResTable_type* best_type = nullptr; in FindEntry()
150 if (offset != ResTable_type::NO_ENTRY) { in FindEntry()
215 const ResTable_type* header = chunk.header<ResTable_type, kResTableTypeMinSize>(); in VerifyType()
248 if (offset != ResTable_type::NO_ENTRY) { in VerifyType()
400 if (offset != ResTable_type::NO_ENTRY) { in FindEntryByName()
538 const ResTable_type* type = child_chunk.header<ResTable_type, kResTableTypeMinSize>(); in Load()
DResourceTypes.cpp3253 const ResTable_type* type;
3272 Vector<const ResTable_type*> configs;
4573 std::shared_ptr<Vector<const ResTable_type*>> newFilteredConfigs = in setParameters()
4574 std::make_shared<Vector<const ResTable_type*>>(); in setParameters()
5967 const ResTable_type* config = type->configs[m]; in forEachConfiguration()
6093 const ResTable_type* bestType = NULL; in getEntry()
6094 uint32_t bestOffset = ResTable_type::NO_ENTRY; in getEntry()
6142 const Vector<const ResTable_type*>* candidateConfigs = &typeSpec->configs; in getEntry()
6144 std::shared_ptr<Vector<const ResTable_type*>> filteredConfigs; in getEntry()
6167 const ResTable_type* const thisType = candidateConfigs->itemAt(c); in getEntry()
[all …]
/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()
/frameworks/base/libs/androidfw/include/androidfw/
DTypeWrappers.h26 TypeVariant(const ResTable_type* data);
77 const ResTable_type* data;
DResourceTypes.h1364 struct ResTable_type struct
1401 sizeof(ResTable_type) - sizeof(ResTable_config) + sizeof(ResTable_config::size);
1405 static_assert(sizeof(ResTable_type) == offsetof(ResTable_type, config) + sizeof(ResTable_config),
1976 Vector<std::shared_ptr<Vector<const ResTable_type*>>> filteredConfigs;
/frameworks/base/tools/aapt2/flatten/
DTableFlattener.cpp321 ResTable_type* type_header = in FlattenConfig()
322 type_writer.StartChunk<ResTable_type>(RES_TABLE_TYPE_TYPE); in FlattenConfig()
360 type_header->flags |= ResTable_type::FLAG_SPARSE; in FlattenConfig()
364 if (offsets[i] != ResTable_type::NO_ENTRY) { in FlattenConfig()
/frameworks/base/tools/aapt2/unflatten/
DBinaryResourceParser.cpp332 const ResTable_type* type = ConvertTo<ResTable_type, kResTableTypeMinSize>(chunk); in ParseType()
/frameworks/base/tools/aapt/
DResourceTable.cpp3155 const size_t typeSize = sizeof(ResTable_type) + sizeof(uint32_t)*N; in flatten()
3192 ResTable_type* tHeader = (ResTable_type*) in flatten()
3243 + typeStart + sizeof(ResTable_type)); in flatten()
3254 index[ei] = htodl(ResTable_type::NO_ENTRY); in flatten()
3259 tHeader = (ResTable_type*) in flatten()