Lines Matching refs:package
74 for (auto& package : packages) { in FindPackageById() local
75 if (package->id && package->id.value() == id) { in FindPackageById()
76 return package.get(); in FindPackageById()
84 ResourceTablePackage* package = FindOrCreatePackage(name); in CreatePackage() local
85 if (id && !package->id) { in CreatePackage()
86 package->id = id; in CreatePackage()
87 return package; in CreatePackage()
90 if (id && package->id && package->id.value() != id.value()) { in CreatePackage()
93 return package; in CreatePackage()
400 ResourceTablePackage* package = FindOrCreatePackage(name.package); in AddResourceImpl() local
401 if (res_id.is_valid() && package->id && package->id.value() != res_id.package_id()) { in AddResourceImpl()
404 << " but package '" << package->name << "' already has ID " in AddResourceImpl()
405 << StringPrintf("%02x", package->id.value())); in AddResourceImpl()
414 ResourceTableType* type = package->FindOrCreateType(name.type, use_id ? res_id.type_id() in AddResourceImpl()
434 << ResourceId(package->id.value(), type->id.value(), entry->id.value())); in AddResourceImpl()
467 package->id = res_id.package_id(); in AddResourceImpl()
506 ResourceTablePackage* package = FindOrCreatePackage(name.package); in SetVisibilityImpl() local
507 if (res_id.is_valid() && package->id && package->id.value() != res_id.package_id()) { in SetVisibilityImpl()
510 << " but package '" << package->name << "' already has ID " in SetVisibilityImpl()
511 << StringPrintf("%02x", package->id.value())); in SetVisibilityImpl()
520 ResourceTableType* type = package->FindOrCreateType(name.type, use_id ? res_id.type_id() in SetVisibilityImpl()
540 << ResourceId(package->id.value(), type->id.value(), entry->id.value())); in SetVisibilityImpl()
545 package->id = res_id.package_id(); in SetVisibilityImpl()
589 ResourceTablePackage* package = FindOrCreatePackage(name.package); in SetAllowNewImpl() local
590 ResourceTableType* type = package->FindOrCreateType(name.type); in SetAllowNewImpl()
610 ResourceTablePackage* package = FindOrCreatePackage(name.package); in SetOverlayableImpl() local
611 ResourceTableType* type = package->FindOrCreateType(name.type); in SetOverlayableImpl()
627 ResourceTablePackage* package = FindPackage(name.package); in FindResource() local
628 if (package == nullptr) { in FindResource()
632 ResourceTableType* type = package->FindType(name.type); in FindResource()
641 return SearchResult{package, type, entry}; in FindResource()