Home
last modified time | relevance | path

Searched refs:res_id (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceTable.cpp352 bool ResourceTable::AddResourceWithId(const ResourceNameRef& name, const ResourceId& res_id, in AddResourceWithId() argument
355 return AddResourceImpl(name, res_id, config, product, std::move(value), in AddResourceWithId()
386 bool ResourceTable::AddResourceImpl(const ResourceNameRef& name, const ResourceId& res_id, in AddResourceImpl() argument
401 if (res_id.is_valid() && package->id && package->id.value() != res_id.package_id()) { in AddResourceImpl()
403 << "trying to add resource '" << name << "' with ID " << res_id in AddResourceImpl()
410 bool check_id = validate_resources_ && res_id.is_valid(); in AddResourceImpl()
412 bool use_id = !validate_resources_ && res_id.is_valid(); in AddResourceImpl()
414 ResourceTableType* type = package->FindOrCreateType(name.type, use_id ? res_id.type_id() in AddResourceImpl()
418 if (check_id && type->id && type->id.value() != res_id.type_id()) { in AddResourceImpl()
420 << "trying to add resource '" << name << "' with ID " << res_id in AddResourceImpl()
[all …]
DResourceTable.h217 bool AddResourceWithId(const ResourceNameRef& name, const ResourceId& res_id,
237 const ResourceId& res_id, IDiagnostics* diag);
239 const ResourceId& res_id, IDiagnostics* diag);
299 bool AddResourceImpl(const ResourceNameRef& name, const ResourceId& res_id,
306 const ResourceId& res_id, NameValidator name_validator,
DResource.h147 ResourceId(uint32_t res_id); // NOLINT(google-explicit-constructor)
232 inline ResourceId::ResourceId(uint32_t res_id) : id(res_id) {} in ResourceId() argument
273 inline ::std::ostream& operator<<(::std::ostream& out, const ResourceId& res_id) {
274 return out << res_id.to_string();
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp376 const ResourceId res_id(package->id.value(), type->id, static_cast<uint16_t>(it.index())); in ParseType() local
392 << res_id << ") with configuration '" << config << "'"); in ParseType()
396 if (!table_->AddResourceWithIdMangled(name, res_id, config, {}, std::move(resource_value), in ParseType()
404 if (!table_->SetVisibilityWithIdMangled(name, visibility, res_id, diag_)) { in ParseType()
410 entry_type_spec_flags_.erase(res_id); in ParseType()
415 auto cache_iter = id_index_.find(res_id); in ParseType()
417 id_index_.insert({res_id, name}); in ParseType()
463 ResourceId res_id(util::DeviceToHost32(ref_iter->ident)); in ParseOverlayable() local
464 const auto iter = id_index_.find(res_id); in ParseOverlayable()
470 << " resource " << res_id); in ParseOverlayable()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp330 ResourceId res_id = 0; in FindByName() local
343 res_id = asset_manager_.GetResourceId(real_name.to_string()); in FindByName()
344 if (res_id.is_valid_static() && asset_manager_.GetResourceFlags(res_id.id, &type_spec_flags)) { in FindByName()
358 s = LookupAttributeInTable(asset_manager_, res_id); in FindByName()
361 s->id = res_id; in FindByName()
362 s->is_dynamic = IsPackageDynamic(ResourceId(res_id).package_id(), real_name.package); in FindByName()
/frameworks/base/core/jni/
Dandroid_util_XmlBlock.cpp75 jlong token, jint res_id) in android_content_XmlBlock_nativeCreateParseState() argument
89 st->setSourceResourceId(res_id); in android_content_XmlBlock_nativeCreateParseState()
/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp240 uint32_t res_id = parser->getAttributeNameResID(i); in CopyAttributes() local
241 if (res_id > 0) { in CopyAttributes()
242 attr.compiled_attribute = AaptAttribute(::aapt::Attribute(), {res_id}); in CopyAttributes()
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp190 Value* FindValueById(const ResourceTable* table, const ResourceId& res_id, in FindValueById() argument
194 if (package->id && package->id.value() == res_id.package_id()) { in FindValueById()
196 if (type->id && type->id.value() == res_id.type_id()) { in FindValueById()
198 if (entry->id && entry->id.value() == res_id.entry_id()) { in FindValueById()