Searched refs:ResTable_type (Results 1 - 9 of 9) 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.cpp53 const ResTable_type* type;
89 void AddType(const ResTable_type* type) {
135 const ResTable_type* best_type = nullptr;
150 if (offset != ResTable_type::NO_ENTRY) {
215 const ResTable_type* header = chunk.header<ResTable_type, kResTableTypeMinSize>();
248 if (offset != ResTable_type::NO_ENTRY) {
400 if (offset != ResTable_type::NO_ENTRY) {
538 const ResTable_type* type = child_chunk.header<ResTable_type, kResTableTypeMinSiz
[all...]
H A DResourceTypes.cpp3277 const ResTable_type* type;
3296 Vector<const ResTable_type*> configs;
4598 std::shared_ptr<Vector<const ResTable_type*>> newFilteredConfigs =
4599 std::make_shared<Vector<const ResTable_type*>>();
5992 const ResTable_type* config = type->configs[m];
6118 const ResTable_type* bestType = NULL;
6119 uint32_t bestOffset = ResTable_type::NO_ENTRY;
6149 // Particular types (ResTable_type) may be encoded with sparse entries, and so their
6167 const Vector<const ResTable_type*>* candidateConfigs = &typeSpec->configs;
6169 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();
/frameworks/base/libs/androidfw/include/androidfw/
H A DTypeWrappers.h26 TypeVariant(const ResTable_type* data);
77 const ResTable_type* data;
H A DResourceTypes.h852 * one or more ResTable_type and ResTable_typeSpec structures containing the
1364 struct ResTable_type struct in namespace:android
1399 // The minimum size required to read any version of ResTable_type.
1401 sizeof(ResTable_type) - sizeof(ResTable_config) + sizeof(ResTable_config::size);
1404 // ResTable_type in the future, as ResTable_config is variable (over different releases).
1405 static_assert(sizeof(ResTable_type) == offsetof(ResTable_type, config) + sizeof(ResTable_config),
1406 "ResTable_config must be last field in ResTable_type");
1409 * An entry in a ResTable_type with the flag `FLAG_SPARSE` set.
1418 // The offset from ResTable_type
[all...]
/frameworks/base/tools/aapt2/flatten/
H A DTableFlattener.cpp321 ResTable_type* type_header =
322 type_writer.StartChunk<ResTable_type>(RES_TABLE_TYPE_TYPE);
360 type_header->flags |= ResTable_type::FLAG_SPARSE;
364 if (offsets[i] != ResTable_type::NO_ENTRY) {
/frameworks/base/tools/aapt2/unflatten/
H A DBinaryResourceParser.cpp324 // Specify a manual size, because ResTable_type contains ResTable_config, which changes
326 const ResTable_type* type = ConvertTo<ResTable_type, kResTableTypeMinSize>(chunk);
329 << "corrupt ResTable_type chunk");
335 << "ResTable_type has invalid 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 2828 milliseconds