Lines Matching refs:svc
986 Service* svc = MakeExecOneshotService(args); in Exec() local
987 if (!svc) { in Exec()
991 if (!svc->ExecStart(&exec_waiter_)) { in Exec()
993 ServiceManager::GetInstance().RemoveService(*svc); in Exec()
1000 Service* svc = FindServiceByName(name); in ExecStart() local
1001 if (!svc) { in ExecStart()
1005 if (!svc->ExecStart(&exec_waiter_)) { in ExecStart()
1075 Service* svc = svc_p.get(); in MakeExecOneshotService() local
1078 return svc; in MakeExecOneshotService()
1082 auto svc = std::find_if(services_.begin(), services_.end(), in FindServiceByName() local
1086 if (svc != services_.end()) { in FindServiceByName()
1087 return svc->get(); in FindServiceByName()
1093 auto svc = std::find_if(services_.begin(), services_.end(), in FindServiceByPid() local
1097 if (svc != services_.end()) { in FindServiceByPid()
1098 return svc->get(); in FindServiceByPid()
1104 auto svc = std::find_if(services_.begin(), services_.end(), in FindServiceByKeychord() local
1109 if (svc != services_.end()) { in FindServiceByKeychord()
1110 return svc->get(); in FindServiceByKeychord()
1122 void (*func)(Service* svc)) const { in ForEachServiceInClass()
1131 void (*func)(Service* svc)) const { in ForEachServiceWithFlags()
1139 void ServiceManager::RemoveService(const Service& svc) { in RemoveService() argument
1141 [&svc] (const std::unique_ptr<Service>& s) { in RemoveService()
1142 return svc.name() == s->name(); in RemoveService()
1179 Service* svc = FindServiceByPid(pid); in ReapOneProcess() local
1183 if (svc) { in ReapOneProcess()
1184 name = StringPrintf("Service '%s' (pid %d)", svc->name().c_str(), pid); in ReapOneProcess()
1185 if (svc->flags() & SVC_EXEC) { in ReapOneProcess()
1200 if (!svc) { in ReapOneProcess()
1204 svc->Reap(); in ReapOneProcess()
1206 if (svc->flags() & SVC_EXEC) { in ReapOneProcess()
1209 if (svc->flags() & SVC_TEMPORARY) { in ReapOneProcess()
1210 RemoveService(*svc); in ReapOneProcess()