Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/
DResourceTable.cpp311 const ResourceId& res_id, in AddResource() argument
316 return AddResourceImpl(name, res_id, config, product, std::move(value), ValidateName, in AddResource()
366 bool ResourceTable::AddResourceImpl(const ResourceNameRef& name, const ResourceId& res_id, in AddResourceImpl() argument
384 if (res_id.is_valid_dynamic() && package->id && package->id.value() != res_id.package_id()) { in AddResourceImpl()
386 << "trying to add resource '" << name << "' with ID " << res_id in AddResourceImpl()
393 if (res_id.is_valid_dynamic() && type->id && type->id.value() != res_id.type_id()) { in AddResourceImpl()
395 << "trying to add resource '" << name << "' with ID " << res_id in AddResourceImpl()
402 if (res_id.is_valid_dynamic() && entry->id && entry->id.value() != res_id.entry_id()) { in AddResourceImpl()
404 << "trying to add resource '" << name << "' with ID " << res_id in AddResourceImpl()
436 if (res_id.is_valid_dynamic()) { in AddResourceImpl()
[all …]
DResourceTable.h201 bool AddResource(const ResourceNameRef& name, const ResourceId& res_id,
227 bool SetSymbolState(const ResourceNameRef& name, const ResourceId& res_id,
230 bool SetSymbolStateAllowMangled(const ResourceNameRef& name, const ResourceId& res_id,
285 bool AddResourceImpl(const ResourceNameRef& name, const ResourceId& res_id,
294 bool SetSymbolStateImpl(const ResourceNameRef& name, const ResourceId& res_id,
DResource.h141 ResourceId(uint32_t res_id); // NOLINT(implicit)
213 inline ResourceId::ResourceId(uint32_t res_id) : id(res_id) {} in ResourceId() argument
253 const ResourceId& res_id) {
257 << res_id.id;
/frameworks/base/services/net/java/android/net/netlink/
DStructNfGenMsg.java38 final public short res_id; // N.B.: this is big endian in the kernel field in StructNfGenMsg
43 res_id = (short) 0; in StructNfGenMsg()
49 byteBuffer.putShort(res_id); in pack()
/frameworks/base/tools/aapt2/unflatten/
DBinaryResourceParser.cpp364 const ResourceId res_id(package->id.value(), type->id, in ParseType() local
382 << " (" << res_id << ") with configuration '" in ParseType()
387 if (!table_->AddResourceAllowMangled(name, res_id, config, {}, std::move(resource_value), in ParseType()
396 if (!table_->SetSymbolStateAllowMangled(name, res_id, symbol, context_->GetDiagnostics())) { in ParseType()
403 auto cache_iter = id_index_.find(res_id); in ParseType()
405 id_index_.insert({res_id, name}); in ParseType()
/frameworks/base/cmds/idmap/
Dinspect.cpp148 status_t resource_metadata(const AssetManager& am, uint32_t res_id, in resource_metadata() argument
152 if (!rt.getResourceName(res_id, false, &data)) { in resource_metadata()
153 printe("failed to get resource name id=0x%08x\n", res_id); in resource_metadata()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp296 ResourceId res_id = table.identifierForName( in FindByName() local
299 if (!res_id.is_valid()) { in FindByName()
305 s = LookupAttributeInTable(table, res_id); in FindByName()
308 s->id = res_id; in FindByName()