Searched refs:ResTable_type (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/libs/androidfw/
H A DTypeWrappers.cpp23 TypeVariant::TypeVariant(const ResTable_type* data) : data(data), mLength(dtohl(data->entryCount)) {
24 if (data->flags & ResTable_type::FLAG_SPARSE) {
52 const ResTable_type* type = mTypeVariant->data;
68 if (type->flags & ResTable_type::FLAG_SPARSE) {
80 if (entryOffset == ResTable_type::NO_ENTRY) {
H A DLoadedArsc.cpp59 void AddType(const ResTable_type* type) {
65 using ElementType = const ResTable_type*;
84 std::vector<const ResTable_type*> types_;
94 static bool VerifyResTableType(const ResTable_type* header) {
128 static bool VerifyResTableEntry(const ResTable_type* type, uint32_t entry_offset) {
206 const ResTable_entry* LoadedPackage::GetEntry(const ResTable_type* type_chunk,
209 if (entry_offset == ResTable_type::NO_ENTRY) {
215 uint32_t LoadedPackage::GetEntryOffset(const ResTable_type* type_chunk, uint16_t entry_index) {
223 if (type_chunk->flags & ResTable_type::FLAG_SPARSE) {
237 return ResTable_type
[all...]
H A DAssetManager2.cpp343 const ResTable_type* best_type = nullptr;
393 const ResTable_type* type_chunk = filtered_group.types[i];
395 if (offset == ResTable_type::NO_ENTRY) {
423 if (offset == ResTable_type::NO_ENTRY) {
H A DResourceTypes.cpp3458 const ResTable_type* type;
3477 Vector<const ResTable_type*> configs;
4786 std::shared_ptr<Vector<const ResTable_type*>> newFilteredConfigs =
4787 std::make_shared<Vector<const ResTable_type*>>();
6180 const ResTable_type* config = type->configs[m];
6365 const ResTable_type* bestType = NULL;
6366 uint32_t bestOffset = ResTable_type::NO_ENTRY;
6396 // Particular types (ResTable_type) may be encoded with sparse entries, and so their
6414 const Vector<const ResTable_type*>* candidateConfigs = &typeSpec->configs;
6416 std::shared_ptr<Vector<const ResTable_type*>> filteredConfig
[all...]
/frameworks/base/libs/androidfw/tests/
H A DTypeWrappers_test.cpp26 ResTable_type t;
48 offsets[1] = ResTable_type::NO_ENTRY;
79 ResTable_type* data = (ResTable_type*) createTypeData();
H A DLoadedArsc_test.cpp64 const ResTable_type* type = type_spec->types[0];
88 const ResTable_type* type = type_spec->types[0];
/frameworks/base/libs/androidfw/include/androidfw/
H A DTypeWrappers.h26 TypeVariant(const ResTable_type* data);
77 const ResTable_type* data;
H A DLoadedArsc.h62 const ResTable_type* types[0];
75 // ResTable_type pointers.
94 static const ResTable_entry* GetEntry(const ResTable_type* type_chunk, uint16_t entry_index);
96 static uint32_t GetEntryOffset(const ResTable_type* type_chunk, uint16_t entry_index);
98 static const ResTable_entry* GetEntryFromOffset(const ResTable_type* type_chunk, uint32_t offset);
H A DResourceTypes.h863 * one or more ResTable_type and ResTable_typeSpec structures containing the
1388 struct ResTable_type struct
1423 // The minimum size required to read any version of ResTable_type.
1425 sizeof(ResTable_type) - sizeof(ResTable_config) + sizeof(ResTable_config::size);
1428 // ResTable_type in the future, as ResTable_config is variable (over different releases).
1429 static_assert(sizeof(ResTable_type) == offsetof(ResTable_type, config) + sizeof(ResTable_config),
1430 "ResTable_config must be last field in ResTable_type");
1433 * An entry in a ResTable_type with the flag `FLAG_SPARSE` set.
1442 // The offset from ResTable_type
[all...]
H A DAssetManager2.h287 // A collection of configurations and their associated ResTable_type that match the current
291 std::vector<const ResTable_type*> types;
/frameworks/base/cmds/idmap/
H A Dinspect.cpp287 if (data32 != ResTable_type::NO_ENTRY) {
/frameworks/base/tools/aapt2/format/binary/
H A DTableFlattener.cpp326 ResTable_type* type_header = type_writer.StartChunk<ResTable_type>(RES_TABLE_TYPE_TYPE);
364 type_header->flags |= ResTable_type::FLAG_SPARSE;
368 if (offsets[i] != ResTable_type::NO_ENTRY) {
H A DBinaryResourceParser.cpp323 // Specify a manual size, because ResTable_type contains ResTable_config, which changes
325 const ResTable_type* type = ConvertTo<ResTable_type, kResTableTypeMinSize>(chunk);
327 diag_->Error(DiagMessage(source_) << "corrupt ResTable_type chunk");
332 diag_->Error(DiagMessage(source_) << "ResTable_type has invalid id: " << (int)type->id);
/frameworks/base/tools/aapt/
H A DResourceTable.cpp3155 const size_t typeSize = sizeof(ResTable_type) + sizeof(uint32_t)*N;
3192 ResTable_type* tHeader = (ResTable_type*)
3195 fprintf(stderr, "ERROR: out of memory creating ResTable_type\n");
3243 + typeStart + sizeof(ResTable_type));
3254 index[ei] = htodl(ResTable_type::NO_ENTRY);
3259 tHeader = (ResTable_type*)

Completed in 5032 milliseconds