HomeSort by relevance Sort by last modified time
    Searched refs:Daemon (Results 1 - 25 of 29) sorted by null

1 2

  /system/bt/service/
daemon.h 31 // The Daemon class is a singleton that represents the root of the ownership
34 class Daemon {
36 // Initializes the daemon. This must be called to at the start of the
37 // application to set up the global daemon instance and everything it manages.
41 // Cleans up all the resources associated with the global Daemon object.
44 // Assigns the global Daemon instance for testing. Should only be called from
46 static void InitializeForTesting(Daemon* test_daemon);
48 // Returns the singleton Daemon instance. All classes can interact with the
49 // Daemon, obtain its resources etc using this getter.
50 static Daemon* Get()
    [all...]
daemon.cc 17 #include "service/daemon.h"
33 // The global Daemon instance.
34 Daemon* g_daemon = nullptr;
36 class DaemonImpl : public Daemon {
121 LOG(INFO) << "Daemon initialized";
138 bool Daemon::Initialize() {
144 LOG(ERROR) << "Failed to initialize the Daemon object";
153 void Daemon::ShutDown() {
160 void Daemon::InitializeForTesting(Daemon* test_daemon)
    [all...]
main.cc 23 #include "service/daemon.h"
69 if (!bluetooth::Daemon::Initialize()) {
70 LOG(ERROR) << "Failed to initialize Daemon";
75 bluetooth::Daemon::Get()->StartMainLoop();
77 // The main message loop has exited; clean up the Daemon.
78 bluetooth::Daemon::Get()->ShutDown();
  /external/libbrillo/brillo/daemons/
daemon.cc 5 #include <brillo/daemons/daemon.h>
17 Daemon::Daemon() : exit_code_{EX_OK} {
21 Daemon::~Daemon() {
24 int Daemon::Run() {
43 void Daemon::Quit() { QuitWithExitCode(EX_OK); }
45 void Daemon::QuitWithExitCode(int exit_code) {
50 void Daemon::RegisterHandler(
56 void Daemon::UnregisterHandler(int signal)
    [all...]
daemon.h 21 // Daemon is a simple base class for system daemons. It provides a lot
24 // You can use this class directly to implement your daemon or you can
26 // brillo::Daemon. Override some of the virtual methods provide to fine-tune
27 // its behavior to suit your daemon's needs.
28 class BRILLO_EXPORT Daemon : public AsynchronousSignalHandlerInterface {
30 Daemon();
31 virtual ~Daemon();
33 // Performs proper initialization of the daemon and runs the message loop.
34 // Blocks until the daemon is finished. The return value is the error
35 // code that should be returned from daemon's main(). Returns EX_OK (0) o
    [all...]
dbus_daemon.cc 22 int exit_code = Daemon::OnInit();
71 // Overload this method to export custom D-Bus objects at daemon startup.
dbus_daemon.h 14 #include <brillo/daemons/daemon.h>
25 // DBusDaemon adds D-Bus support to Daemon.
26 // Derive your daemon from this class if you want D-Bus client services in your
27 // daemon (consuming other D-Bus objects). Currently uses a SYSTEM bus.
28 class BRILLO_EXPORT DBusDaemon : public Daemon {
49 // Derive your daemon from this class if your daemon exposes D-Bus objects.
54 // Constructs the daemon.
55 // |service_name| is the name of D-Bus service provided by the daemon.
74 // daemon's service name on DBus
    [all...]
  /system/bt/service/test/
mock_daemon.h 21 #include "service/daemon.h"
26 class MockDaemon : public Daemon {
ipc_linux_unittest.cc 57 bluetooth::Daemon::InitializeForTesting(mock_daemon);
74 bluetooth::Daemon::ShutDown();
  /system/update_engine/
daemon.h 26 #include <brillo/daemons/daemon.h>
43 class UpdateEngineDaemon : public brillo::Daemon {
78 // The daemon state with all the required daemon classes for the configured
daemon.cc 17 #include "update_engine/daemon.h"
36 // Register the |subprocess_| singleton with this Daemon as the signal
40 int exit_code = Daemon::OnInit();
109 << "other update_engine daemon running?";
update_engine_client_android.cc 31 #include <brillo/daemons/daemon.h>
50 class UpdateEngineClientAndroid : public brillo::Daemon {
73 // Called whenever the UpdateEngine daemon dies.
105 int ret = Daemon::OnInit();
187 LOG(ERROR) << "Failed to bind() the UpdateEngine daemon.";
212 // When following updates status changes, exit if the update_engine daemon
232 &Daemon::QuitWithExitCode, base::Unretained(this), return_code);
update_engine_client.cc 29 #include <brillo/daemons/daemon.h>
51 // Constant to signal that we need to continue running the daemon after
55 class UpdateEngineClient : public brillo::Daemon {
64 int ret = Daemon::OnInit();
75 // of the ProcessFlags method after the Daemon initialization is done.
  /libcore/libart/src/main/java/java/lang/
Daemons.java 68 private static abstract class Daemon implements Runnable {
73 protected Daemon(String name) {
165 private static class ReferenceQueueDaemon extends Daemon {
193 private static class FinalizerDaemon extends Daemon {
266 private static class FinalizerWatchdogDaemon extends Daemon {
278 // We have been interrupted, need to see if this daemon has been stopped.
299 // Daemon.stop may have interrupted us.
309 * Notify daemon that it's OK to sleep until notified that something is ready to be
317 * Notify daemon that there is something ready to be finalized.
438 private static class HeapTaskDaemon extends Daemon {
    [all...]
  /system/media/brillo/audio/audioservice/
audio_daemon.h 28 #include <brillo/daemons/daemon.h>
37 class AudioDaemon : public Daemon {
43 // Initialize the audio daemon handlers and start pollig the files in
84 // Initialize all audio daemon handlers.
audio_daemon.cpp 41 // Start and initialize the audio daemon handlers.
138 int exit_code = Daemon::OnInit();
  /system/tpm/trunks/
trunks_binder_service.h 22 #include <brillo/daemons/daemon.h>
30 // the trunksd system daemon.
37 class TrunksBinderService : public brillo::Daemon {
trunks_binder_service.cc 70 return brillo::Daemon::OnInit();
  /system/bt/service/ipc/
ipc_handler_linux.cc 25 #include "service/daemon.h"
48 bluetooth::Daemon::Get()->GetSettings()->android_ipc_socket_suffix();
50 bluetooth::Daemon::Get()->GetSettings()->create_ipc_socket_path();
75 // assumption that the daemon runs in a sandbox but we should generally do
152 // TODO(armansito): The code below can cause the daemon to run indefinitely if
  /external/v8/tools/testrunner/server/
daemon.py 19 class Daemon(object):
21 A generic daemon class.
23 Usage: subclass the Daemon class and override the run() method
83 Start the daemon
85 # Check for a pidfile to see if the daemon already runs
94 message = "pidfile %s already exist. Daemon already running?\n"
98 # Start the daemon
104 Stop the daemon
115 message = "pidfile %s does not exist. Daemon not running?\n"
119 # Try killing the daemon proces
    [all...]
main.py 36 from . import daemon
45 class Server(daemon.Daemon):
  /system/tpm/tpm_manager/server/
binder_service.h 21 #include <brillo/daemons/daemon.h>
31 // tpm_managerd system daemon.
37 class BinderService : public brillo::Daemon {
binder_service.cc 117 return brillo::Daemon::OnInit();
  /art/test/004-ThreadStress/src/
Main.java 35 // -d X ............ number of daemon threads
417 // operations. Each daemon thread will loop over all
429 // numberOfDaemons elements are daemon threads.
451 : new Daemon(lock, t, operations, mainThread, startBarrier);
526 // The notifier thread is a daemon just loops forever to wake
542 // Create and start the daemon threads.
544 Main daemon = threadStresses[numberOfThreads + r]; local
545 Thread t = new Thread(daemon, "Daemon thread " + daemon.id)
    [all...]
  /system/tpm/tpm_manager/client/
main.cc 33 #include <brillo/daemons/daemon.h>
156 using ClientLoopBase = brillo::Daemon;

Completed in 478 milliseconds

1 2