/frameworks/base/tools/aapt2/ |
D | ResourceTable.cpp | 354 bool ResourceTable::AddResourceWithId(const ResourceNameRef& name, const ResourceId& res_id, in AddResourceWithId() argument 357 return AddResourceImpl(name, res_id, config, product, std::move(value), in AddResourceWithId() 388 bool ResourceTable::AddResourceImpl(const ResourceNameRef& name, const ResourceId& res_id, in AddResourceImpl() argument 403 if (res_id.is_valid_dynamic() && package->id && package->id.value() != res_id.package_id()) { in AddResourceImpl() 405 << "trying to add resource '" << name << "' with ID " << res_id in AddResourceImpl() 412 bool check_id = validate_resources_ && res_id.is_valid_dynamic(); in AddResourceImpl() 414 bool use_id = !validate_resources_ && res_id.is_valid_dynamic(); in AddResourceImpl() 416 ResourceTableType* type = package->FindOrCreateType(name.type, use_id ? res_id.type_id() in AddResourceImpl() 420 if (check_id && type->id && type->id.value() != res_id.type_id()) { in AddResourceImpl() 422 << "trying to add resource '" << name << "' with ID " << res_id in AddResourceImpl() [all …]
|
D | ResourceTable.h | 243 bool AddResourceWithId(const ResourceNameRef& name, const ResourceId& res_id, 263 const ResourceId& res_id, IDiagnostics* diag); 265 const ResourceId& res_id, IDiagnostics* diag); 325 bool AddResourceImpl(const ResourceNameRef& name, const ResourceId& res_id, 332 const ResourceId& res_id, NameValidator name_validator,
|
D | Resource.h | 147 ResourceId(uint32_t res_id); // NOLINT(google-explicit-constructor) 231 inline ResourceId::ResourceId(uint32_t res_id) : id(res_id) {} in ResourceId() argument 272 inline ::std::ostream& operator<<(::std::ostream& out, const ResourceId& res_id) { 273 return out << res_id.to_string();
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 328 ResourceId res_id = 0; in FindByName() local 341 res_id = asset_manager_.GetResourceId(real_name.to_string()); in FindByName() 342 if (res_id.is_valid() && asset_manager_.GetResourceFlags(res_id.id, &type_spec_flags)) { in FindByName() 356 s = LookupAttributeInTable(asset_manager_, res_id); in FindByName() 359 s->id = res_id; in FindByName() 360 s->is_dynamic = IsPackageDynamic(ResourceId(res_id).package_id()); in FindByName()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | BinaryResourceParser.cpp | 376 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() 492 ResourceId res_id(util::DeviceToHost32(ref_iter->ident)); in ParseOverlayable() local 493 const auto iter = id_index_.find(res_id); in ParseOverlayable() 499 << " resource " << res_id); in ParseOverlayable()
|
/frameworks/base/cmds/idmap/ |
D | inspect.cpp | 148 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/core/jni/ |
D | android_util_XmlBlock.cpp | 75 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/ |
D | XmlDom.cpp | 240 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/ |
D | DumpManifest.cpp | 189 Value* FindValueById(const ResourceTable* table, const ResourceId& res_id, in FindValueById() argument 193 if (package->id && package->id.value() == res_id.package_id()) { in FindValueById() 195 if (type->id && type->id.value() == res_id.type_id()) { in FindValueById() 197 if (entry->id && entry->id.value() == res_id.entry_id()) { in FindValueById()
|