Lines Matching defs:type
236 // Serialize the types. We do this now so that our type and key strings
302 bool flattenConfig(const ResourceTableType* type, const ConfigDescription& config,
306 typeHeader->id = type->id.value();
316 std::accumulate(type->entries.begin(), type->entries.end(), 0, maxAccum) + 1;
334 << ResourceNameRef(mPackage->name, type->type, flatEntry.entry->name)
345 for (auto& type : mPackage->types) {
346 if (type->type == ResourceType::kStyleable) {
352 assert(type->id && "type must have an ID set");
354 sortedTypes.push_back(type.get());
360 std::vector<ResourceEntry*> collectAndSortEntries(ResourceTableType* type) {
363 for (auto& entry : type->entries) {
371 bool flattenTypeSpec(ResourceTableType* type, std::vector<ResourceEntry*>* sortedEntries,
376 specHeader->id = type->id.value();
389 // Reserve space for the masks of each resource in this type. These
422 for (ResourceTableType* type : sortedTypes) {
423 // If there is a gap in the type IDs, fill in the StringPool
425 while (type->id.value() > expectedTypeId) {
432 mTypePool.makeRef(toString(type->type));
434 std::vector<ResourceEntry*> sortedEntries = collectAndSortEntries(type);
436 if (!flattenTypeSpec(type, &sortedEntries, buffer)) {
456 if (!flattenConfig(type, entry.first, &entry.second, buffer)) {