Home
last modified time | relevance | path

Searched refs:IsRunning (Results 1 – 5 of 5) sorted by relevance

/aosp14/system/core/init/
H A Dreboot_test.cpp130 ASSERT_TRUE(service_a->IsRunning()); in TEST_F()
132 ASSERT_TRUE(service_b->IsRunning()); in TEST_F()
143 ASSERT_TRUE(oneshot_service->IsRunning()); in TEST_F()
148 EXPECT_FALSE(service_a->IsRunning()); in TEST_F()
149 EXPECT_FALSE(service_b->IsRunning()); in TEST_F()
170 ASSERT_TRUE(service_a->IsRunning()); in TEST_F()
172 ASSERT_TRUE(service_b->IsRunning()); in TEST_F()
183 ASSERT_TRUE(oneshot_service->IsRunning()); in TEST_F()
188 EXPECT_FALSE(service_a->IsRunning()); in TEST_F()
189 EXPECT_FALSE(service_b->IsRunning()); in TEST_F()
H A Dreboot.cpp580 if (s->IsRunning() && services.count(s->name())) { in StopServicesAndLogViolations()
703 if (boot_anim != nullptr && surface_flinger != nullptr && surface_flinger->IsRunning()) { in DoReboot()
745 if (vold_service != nullptr && vold_service->IsRunning()) { in DoReboot()
878 if (s->IsRunning() && stop_first.count(s->name())) { in DoUserspaceReboot()
900 if (s->IsRunning() && debugging_services.count(s->name())) { in DoUserspaceReboot()
H A Dservice.h84 bool IsRunning() { return (flags_ & SVC_RUNNING) != 0; } in IsRunning() function
H A Dinit_test.cpp252 ASSERT_TRUE(service->IsRunning()); in TestStartApexServices()
270 EXPECT_EQ(expect_to_run, service->IsRunning()); in TestStopApexServices()
H A Dbuiltins.cpp791 if (only_if_running && !svc->IsRunning()) { in do_restart()