Home
last modified time | relevance | path

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

/aosp14/system/core/init/
H A Dapex_init_util.cpp37 static Result<std::vector<std::string>> CollectApexConfigs(const std::string& apex_name) { in CollectApexConfigs() argument
39 std::string glob_pattern = apex_name.empty() ? in CollectApexConfigs()
40 "/apex/*/etc/*rc" : "/apex/" + apex_name + "/etc/*rc"; in CollectApexConfigs()
84 Result<void> ParseApexConfigs(const std::string& apex_name) { in ParseApexConfigs() argument
85 auto configs = OR_RETURN(CollectApexConfigs(apex_name)); in ParseApexConfigs()
H A Dinit.cpp426 int StopServicesFromApex(const std::string& apex_name) { in StopServicesFromApex() argument
429 LOG(INFO) << "No service found for APEX: " << apex_name; in StopServicesFromApex()
446 void RemoveServiceAndActionFromApex(const std::string& apex_name) { in RemoveServiceAndActionFromApex() argument
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()
466 RemoveServiceAndActionFromApex(apex_name); in DoUnloadApex()
472 const std::string bin_path = "/apex/" + apex_name + "/bin"; in UpdateApexLinkerConfig()
479 apex_name.c_str(), "--strict"}; in UpdateApexLinkerConfig()
489 static Result<void> DoLoadApex(const std::string& apex_name) { in DoLoadApex() argument
[all …]
H A Dservice_list.h59 std::vector<Service*> FindServicesByApexName(const std::string& apex_name) const { in FindServicesByApexName() argument
60 CHECK(!apex_name.empty()) << "APEX name cannot be empty"; in FindServicesByApexName()
63 if (GetApexNameFromFileName(svc->filename()) == apex_name) { in FindServicesByApexName()
H A Dinit.h47 int StopServicesFromApex(const std::string& apex_name);
49 void RemoveServiceAndActionFromApex(const std::string& apex_name);
H A Dapex_init_util.h29 Result<void> ParseApexConfigs(const std::string& apex_name);
H A Dsubcontext.cpp254 auto apex_name = GetApexNameFromFileName(path); in PathMatchesSubcontext() local
255 if (!apex_name.empty()) { in PathMatchesSubcontext()
256 return std::find(apex_list_.begin(), apex_list_.end(), apex_name) != apex_list_.end(); in PathMatchesSubcontext()
H A Dinit_test.cpp247 const std::string& apex_name) { in TestStartApexServices() argument
254 if (!apex_name.empty()) { in TestStartApexServices()
255 service->set_filename("/apex/" + apex_name + "/init_test.rc"); in TestStartApexServices()
260 if (!apex_name.empty()) { in TestStartApexServices()
261 auto apex_services = ServiceList::GetInstance().FindServicesByApexName(apex_name); in TestStartApexServices()