Home
last modified time | relevance | path

Searched refs:Service (Results 1 – 25 of 60) sorted by relevance

123

/system/tools/hidl/test/hidl_test/
Dhidl_test.h32 template <template <typename Type> class Service>
46 Service<IMemoryTest>::run("memory"); in runOnEachServer()
47 Service<IChild>::run("child"); in runOnEachServer()
48 Service<IParent>::run("parent"); in runOnEachServer()
49 Service<IFetcher>::run("fetcher"); in runOnEachServer()
50 Service<IBaz>::run("baz"); in runOnEachServer()
51 Service<IBar>::run("foo"); in runOnEachServer()
52 Service<IHash>::run("default"); in runOnEachServer()
53 Service<IMultithread>::run("multithread"); in runOnEachServer()
54 Service<ITrie>::run("trie"); in runOnEachServer()
[all …]
/system/core/init/
Dservice_list.h39 void AddService(std::unique_ptr<Service> service);
40 void RemoveService(const Service& svc);
47 template <typename T, typename F = decltype(&Service::name)>
48 Service* FindService(T value, F function = &Service::name) const {
50 [&function, &value](const std::unique_ptr<Service>& s) {
59 std::vector<Service*> FindServicesByApexName(const std::string& apex_name) const { in FindServicesByApexName()
61 std::vector<Service*> matches; in FindServicesByApexName()
70 Service* FindInterface(const std::string& interface_name) { in FindInterface()
84 const std::vector<Service*> services_in_shutdown_order() const;
88 void DelayService(const Service& service);
[all …]
Dservice_list.cpp39 void ServiceList::AddService(std::unique_ptr<Service> service) { in AddService()
44 const std::vector<Service*> ServiceList::services_in_shutdown_order() const { in services_in_shutdown_order()
45 std::vector<Service*> shutdown_services; in services_in_shutdown_order()
54 void ServiceList::RemoveService(const Service& svc) { in RemoveService()
57 [&svc](const std::unique_ptr<Service>& s) { return svc.name() == s->name(); }); in RemoveService()
81 Service* service = FindService(name); in StartDelayedServices()
93 void ServiceList::DelayService(const Service& service) { in DelayService()
Dservice.cpp139 unsigned long Service::next_start_order_ = 1;
140 bool Service::is_exec_service_running_ = false;
142 Service::Service(const std::string& name, Subcontext* subcontext_for_restart_commands, in Service() function in android::init::Service
144 : Service(name, 0, std::nullopt, 0, {}, 0, "", subcontext_for_restart_commands, filename, in Service()
147 Service::Service(const std::string& name, unsigned flags, std::optional<uid_t> uid, gid_t gid, in Service() function in android::init::Service
172 void Service::NotifyStateChange(const std::string& new_state) const { in NotifyStateChange()
199 void Service::KillProcessGroup(int signal) { in KillProcessGroup()
223 void Service::SetProcessAttributesAndCaps(InterprocessFifo setsid_finished) { in SetProcessAttributesAndCaps()
260 void Service::Reap(const siginfo_t& siginfo) { in Reap()
412 void Service::DumpState() const { in DumpState()
[all …]
Dservice_test.cpp60 constexpr auto memory_size = sizeof(Service); in TEST()
61 alignas(alignof(Service)) unsigned char old_memory[memory_size]; in TEST()
68 Service* service_in_old_memory = in TEST()
69 new (old_memory) Service("test_old_memory", nullptr, /*filename=*/"", dummy_args); in TEST()
87 Service* service_in_old_memory2 = new (old_memory) Service( in TEST()
107 ASSERT_FALSE(Service::MakeTemporaryOneshotService(args).ok()); in TEST()
111 ASSERT_FALSE(Service::MakeTemporaryOneshotService(args).ok()); in TEST()
115 ASSERT_FALSE(Service::MakeTemporaryOneshotService(args).ok()); in TEST()
129 ASSERT_FALSE(Service::MakeTemporaryOneshotService(args).ok()); in TEST()
154 auto service_ret = Service::MakeTemporaryOneshotService(args); in Test_make_temporary_oneshot_service()
[all …]
Dservice.h68 class Service {
72 Service(const std::string& name, Subcontext* subcontext_for_restart_commands,
75 Service(const std::string& name, unsigned flags, std::optional<uid_t> uid, gid_t gid,
79 Service(const Service&) = delete;
80 void operator=(const Service&) = delete;
82 static Result<std::unique_ptr<Service>> MakeTemporaryOneshotService(
Dreboot_test.cpp134 std::unique_ptr<Service> oneshot_service; in TEST_F()
136 auto result = Service::MakeTemporaryOneshotService( in TEST_F()
174 std::unique_ptr<Service> oneshot_service; in TEST_F()
176 auto result = Service::MakeTemporaryOneshotService( in TEST_F()
Dbuiltins.cpp184 ForEachServiceInClass(args[1], &Service::Stop); in do_class_stop()
189 ForEachServiceInClass(args[1], &Service::Reset); in do_class_reset()
233 Service* svc = ServiceList::GetInstance().FindService(args[1]); in do_enable()
244 auto service = Service::MakeTemporaryOneshotService(args.args); in do_exec()
257 auto service = Service::MakeTemporaryOneshotService(args.args); in do_exec_background()
270 Service* service = ServiceList::GetInstance().FindService(args[1]); in do_exec_start()
371 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_restart()
378 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_start()
387 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_stop()
742 Service* svc = ServiceList::GetInstance().FindService(args[1]); in do_start()
[all …]
Dinit.cpp412 static Result<void> DoControlStart(Service* service) { in DoControlStart()
416 static Result<void> DoControlStop(Service* service) { in DoControlStop()
421 static Result<void> DoControlRestart(Service* service) { in DoControlRestart()
454 ServiceList::GetInstance().RemoveServiceIf([&](const std::unique_ptr<Service>& s) -> bool { in RemoveServiceAndActionFromApex()
506 using ControlMessageFunction = std::function<Result<void>(Service*)>;
559 Service* service = nullptr; in HandleControlMessage()
718 const int signal_fd = signal == SIGCHLD ? Service::GetSigchldFd() : sigterm_fd; in HandleSignalFd()
786 Result<void> cs_result = RegisterSignalFd(epoll, SIGCHLD, Service::GetSigchldFd()); in InstallSignalFdHandler()
1117 if (!(prop_waiter_state.MightBeWaiting() || Service::is_exec_service_running())) { in SecondStageMain()
Dsigchld_handler.cpp74 Service* service = nullptr; in ReapOneProcess()
79 service = ServiceList::GetInstance().FindService(pid, &Service::pid); in ReapOneProcess()
/system/libhidl/transport/
DHidlLazyUtils.cpp49 struct Service { struct in android::hardware::details::ClientCounterCallback
61 Service& assertRegisteredServiceLocked(const sp<IBase>& service);
82 std::vector<Service> mRegisteredServices;
121 ClientCounterCallback::Service& ClientCounterCallback::assertRegisteredServiceLocked( in assertRegisteredServiceLocked()
123 for (Service& registered : mRegisteredServices) { in assertRegisteredServiceLocked()
158 Service& registered = assertRegisteredServiceLocked(service); in onClients()
167 for (const Service& registered : mRegisteredServices) { in onClients()
197 for (Service& entry : mRegisteredServices) { in tryUnregisterLocked()
214 for (Service& entry : mRegisteredServices) { in reRegisterLocked()
/system/chre/java/test/utils/src/com/google/android/utils/chre/
DChreApiTestUtil.java48 import dev.pigweed.pw_rpc.Service;
478 public static Service getChreApiService() { in getChreApiService()
479 return new Service("chre.rpc.ChreApiTestService", in getChreApiService()
480 Service.unaryMethod( in getChreApiService()
484 Service.unaryMethod( in getChreApiService()
488 Service.serverStreamingMethod( in getChreApiService()
492 Service.serverStreamingMethod( in getChreApiService()
496 Service.unaryMethod( in getChreApiService()
500 Service.unaryMethod( in getChreApiService()
504 Service.unaryMethod( in getChreApiService()
[all …]
/system/chre/util/include/chre/util/pigweed/
Drpc_server.h44 struct Service { struct
46 pw::rpc::Service &service; argument
75 bool registerServices(size_t numServices, Service *services);
/system/sepolicy/private/
Ddevice_as_webcam.te1 # Domain for DeviceAsWebcam Service
11 # Allow DeviceAsWebcam Service needs to access ro.usb.uvc.enabled property to
19 # be accessed by the DeviceAsWebcam Service.
/system/extras/simpleperf/demo/SimpleperfExampleJava/app/src/main/java/simpleperf/example/java/
DMultiProcessService.java3 import android.app.Service;
11 public class MultiProcessService extends Service {
/system/chre/java/utils/pigweed/src/com/google/android/chre/utils/pigweed/
DChreRpcClient.java32 import dev.pigweed.pw_rpc.Service;
65 long serverNanoappId, List<Service> services, in ChreRpcClient()
91 List<Service> services) { in ChreRpcClient()
/system/chre/java/test/rpc_service/src/com/google/android/chre/test/rpc_service/
DContextHubRpcServiceTestExecutor.java44 import dev.pigweed.pw_rpc.Service;
64 private final Service mEchoService;
75 mEchoService = new Service("pw.rpc.EchoService", in ContextHubRpcServiceTestExecutor()
76 Service.unaryMethod("Echo", Echo.EchoMessage.parser(), in ContextHubRpcServiceTestExecutor()
/system/chre/
Dchre_flags.aconfig88 description: "Enable duplicate detection for reliable messages in the Context Hub Service"
95 description: "Enable retries for reliable messages in the Context Hub Service"
102 description: "Enables test mode behaviors in the Context Hub Service for reliable messages"
/system/memory/libmemunreachable/tests/
DBinder_test.cpp74 _exit(Service()); in Run()
98 int Service() { in Service() function in android::ServiceProcess
/system/extras/boottime_tools/bootanalyze/stressfs/
Dproguard.flags3 -keep public class * extends android.app.Service
/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
DContextHubChreApiTestExecutor.java38 import dev.pigweed.pw_rpc.Service;
66 Service chreApiService = ChreApiTestUtil.getChreApiService(); in ContextHubChreApiTestExecutor()
/system/chre/apps/test/common/rpc_service_test/inc/
Drpc_service_manager.h34 : public pw::rpc::pw_rpc::nanopb::EchoService::Service<EchoService> {
/system/extras/boottime_tools/bootanalyze/stressfs/src/com/android/car/test/stressfs/
DWritingService.java18 import android.app.Service;
60 public class WritingService extends Service {
/system/chre/test/simulation/inc/
Drpc_test.h36 : public chre::rpc::pw_rpc::nanopb::RpcTestService::Service<
/system/chre/util/pigweed/
Drpc_server.cc33 RpcServer::Service *services) { in registerServices()
45 const Service &service = services[i]; in registerServices()

123