Lines Matching refs:apex_name
426 int StopServicesFromApex(const std::string& apex_name) { in StopServicesFromApex() argument
427 auto services = ServiceList::GetInstance().FindServicesByApexName(apex_name); in StopServicesFromApex()
429 LOG(INFO) << "No service found for APEX: " << apex_name; in StopServicesFromApex()
446 void RemoveServiceAndActionFromApex(const std::string& apex_name) { in RemoveServiceAndActionFromApex() argument
449 if (GetApexNameFromFileName(action->filename()) == apex_name) { in RemoveServiceAndActionFromApex()
455 if (GetApexNameFromFileName(s->filename()) == apex_name) { in RemoveServiceAndActionFromApex()
462 static Result<void> DoUnloadApex(const std::string& apex_name) { in DoUnloadApex() argument
463 if (StopServicesFromApex(apex_name) > 0) { in DoUnloadApex()
464 return Error() << "Unable to stop all service from " << apex_name; in DoUnloadApex()
466 RemoveServiceAndActionFromApex(apex_name); in DoUnloadApex()
470 static Result<void> UpdateApexLinkerConfig(const std::string& apex_name) { in UpdateApexLinkerConfig() argument
472 const std::string bin_path = "/apex/" + apex_name + "/bin"; in UpdateApexLinkerConfig()
479 apex_name.c_str(), "--strict"}; in UpdateApexLinkerConfig()
485 LOG(INFO) << "Generated linker configuration for " << apex_name; in UpdateApexLinkerConfig()
489 static Result<void> DoLoadApex(const std::string& apex_name) { in DoLoadApex() argument
490 if (auto result = ParseApexConfigs(apex_name); !result.ok()) { in DoLoadApex()
494 if (auto result = UpdateApexLinkerConfig(apex_name); !result.ok()) { in DoLoadApex()