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()
402 ResourceTablePackage* package = FindOrCreatePackage(name.package); in AddResourceImpl() local
403 if (res_id.is_valid_dynamic() && package->id && package->id.value() != res_id.package_id()) { in AddResourceImpl()
406 << " but package '" << package->name << "' already has ID " in AddResourceImpl()
407 << StringPrintf("%02x", package->id.value())); in AddResourceImpl()
416 ResourceTableType* type = package->FindOrCreateType(name.type, use_id ? res_id.type_id() in AddResourceImpl()
436 << ResourceId(package->id.value(), type->id.value(), entry->id.value())); in AddResourceImpl()
469 package->id = res_id.package_id(); in AddResourceImpl()
508 ResourceTablePackage* package = FindOrCreatePackage(name.package); in SetVisibilityImpl() local
509 if (res_id.is_valid_dynamic() && package->id && package->id.value() != res_id.package_id()) { in SetVisibilityImpl()
512 << " but package '" << package->name << "' already has ID " in SetVisibilityImpl()
513 << StringPrintf("%02x", package->id.value())); in SetVisibilityImpl()
522 ResourceTableType* type = package->FindOrCreateType(name.type, use_id ? res_id.type_id() in SetVisibilityImpl()
542 << ResourceId(package->id.value(), type->id.value(), entry->id.value())); in SetVisibilityImpl()
547 package->id = res_id.package_id(); in SetVisibilityImpl()
591 ResourceTablePackage* package = FindOrCreatePackage(name.package); in SetAllowNewImpl() local
592 ResourceTableType* type = package->FindOrCreateType(name.type); in SetAllowNewImpl()
612 ResourceTablePackage* package = FindOrCreatePackage(name.package); in SetOverlayableImpl() local
613 ResourceTableType* type = package->FindOrCreateType(name.type); in SetOverlayableImpl()
629 ResourceTablePackage* package = FindPackage(name.package); in FindResource() local
630 if (package == nullptr) { in FindResource()
634 ResourceTableType* type = package->FindType(name.type); in FindResource()
643 return SearchResult{package, type, entry}; in FindResource()