OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Daemon
(Results
1 - 25
of
51
) sorted by null
1
2
3
/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.cpp
17
#include "service/
daemon
.h"
33
// The global
Daemon
instance.
34
Daemon
* g_daemon = nullptr;
36
class DaemonImpl : public
Daemon
{
129
LOG(INFO) << "
Daemon
initialized";
146
bool
Daemon
::Initialize() {
153
LOG(ERROR) << "Failed to initialize the
Daemon
object";
162
void
Daemon
::ShutDown() {
169
void
Daemon
::InitializeForTesting(
Daemon
* test_daemon)
[
all
...]
main.cpp
32
#include "service/
daemon
.h"
78
if (!bluetooth::
Daemon
::Initialize()) {
79
LOG(ERROR) << "Failed to initialize
Daemon
";
84
bluetooth::
Daemon
::Get()->StartMainLoop();
86
// The main message loop has exited; clean up the
Daemon
.
87
bluetooth::
Daemon
::Get()->ShutDown();
/system/connectivity/apmanager/
daemon.cc
17
#include "apmanager/
daemon
.h"
29
const char
Daemon
::kAPManagerGroupName[] = "apmanager";
30
const char
Daemon
::kAPManagerUserName[] = "apmanager";
32
const char
Daemon
::kAPManagerGroupName[] = "system";
33
const char
Daemon
::kAPManagerUserName[] = "system";
36
Daemon
::
Daemon
(const base::Closure& startup_callback)
40
int
Daemon
::OnInit() {
41
int return_code = brillo::
Daemon
::OnInit();
57
void
Daemon
::OnShutdown(int* return_code)
[
all
...]
daemon.h
21
#include <brillo/daemons/
daemon
.h>
27
class
Daemon
: public brillo::
Daemon
{
33
explicit
Daemon
(const base::Closure& startup_callback);
34
~
Daemon
() = default;
46
DISALLOW_COPY_AND_ASSIGN(
Daemon
);
main.cc
25
#include "apmanager/
daemon
.h"
33
// Don't
daemon
()ize; run in foreground.
42
" Don\'t
daemon
()ize; run in foreground.\n";
80
logger_command_line.push_back(const_cast<char*>("
daemon
.err"));
108
minijail->DropRoot(jail, apmanager::
Daemon
::kAPManagerUserName,
109
apmanager::
Daemon
::kAPManagerGroupName);
110
// Permissions needed for the
daemon
and its child processes for managing
131
// Now that the
daemon
has all the resources it needs to run, we can drop
146
apmanager::
Daemon
daemon
(base::Bind(&OnStartup, argv[0], cl))
[
all
...]
/system/connectivity/dhcp_client/
daemon.cc
17
#include "dhcp_client/
daemon
.h"
26
Daemon
::
Daemon
(const base::Closure& startup_callback)
30
int
Daemon
::OnInit() {
31
int return_code = brillo::
Daemon
::OnInit();
41
void
Daemon
::OnShutdown(int* return_code) {
daemon.h
25
class
Daemon
: public brillo::
Daemon
{
27
explicit
Daemon
(const base::Closure& startup_callback);
28
~
Daemon
() = default;
37
DISALLOW_COPY_AND_ASSIGN(
Daemon
);
main.cc
21
#include "dhcp_client/
daemon
.h"
29
// Don't
daemon
()ize; run in foreground.
68
dhcp_client::
Daemon
daemon
(base::Bind(&OnStartup, argv[0], cl));
70
daemon
.Run();
/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.
/system/bt/service/test/
mock_daemon.h
21
#include "service/
daemon
.h"
26
class MockDaemon : public
Daemon
{
/system/connectivity/shill/
shill_daemon.cc
37
int return_code = brillo::
Daemon
::OnInit();
55
// brillo::
Daemon
. This loop will run until we explicitly
57
// brillo::
Daemon
will run until no more tasks are posted on the
63
brillo::
Daemon
::OnShutdown(return_code);
shill_daemon.h
23
#include <brillo/daemons/
daemon
.h>
31
// ShillDaemon is the
daemon
that will be initialized in shill_main.cc. It
32
// inherits the logic of
daemon
-related tasks (e.g. init/shutdown, start/stop)
33
// from DaemonTask, and additionally overrides methods of brillo::
Daemon
.
34
class ShillDaemon : public DaemonTask, public brillo::
Daemon
{
41
// Implementation of brillo::
Daemon
.
/system/nativepower/daemon/
main.cc
23
#include <brillo/daemons/
daemon
.h>
30
class PowerManagerDaemon : public brillo::
Daemon
{
36
// brillo::
Daemon
:
38
int result = brillo::
Daemon
::OnInit();
62
brillo::FlagHelper::Init(argc, argv, "Power management
daemon
");
/system/weaved/buffet/
main.cc
42
class
Daemon
final : public DBusServiceDaemon {
44
explicit
Daemon
(const Manager::Options& options)
71
DISALLOW_COPY_AND_ASSIGN(
Daemon
);
103
brillo::FlagHelper::Init(argc, argv, "Privet protocol handler
daemon
");
134
buffet::
Daemon
daemon
{options};
135
return
daemon
.Run();
/system/webservd/webservd/
main.cc
56
class
Daemon
final : public brillo::DBusServiceDaemon {
58
explicit
Daemon
(webservd::Config config)
80
DISALLOW_COPY_AND_ASSIGN(
Daemon
);
92
brillo::FlagHelper::Init(argc, argv, "Brillo web server
daemon
");
140
Daemon
daemon
{std::move(config)};
144
// Drop privileges and use 'webservd' user. We need to do this after
Daemon
150
// Permissions needed for the
daemon
to allow it to bind to ports like TCP
157
return
daemon
.Run();
/system/media/brillo/audio/audioservice/
audio_daemon.h
27
#include <brillo/daemons/
daemon
.h>
34
class AudioDaemon : public
Daemon
{
/system/update_engine/
daemon.h
26
#include <brillo/daemons/
daemon
.h>
46
class UpdateEngineDaemon : public brillo::
Daemon
{
82
// The
daemon
state with all the required
daemon
classes for the configured
/libcore/libart/src/main/java/java/lang/
Daemons.java
61
private static abstract class
Daemon
implements Runnable {
65
protected
Daemon
(String name) {
137
private static class ReferenceQueueDaemon extends
Daemon
{
165
private static class FinalizerDaemon extends
Daemon
{
238
private static class FinalizerWatchdogDaemon extends
Daemon
{
250
// We have been interrupted, need to see if this
daemon
has been stopped.
271
//
Daemon
.stop may have interrupted us.
281
* Notify
daemon
that it's OK to sleep until notified that something is ready to be
289
* Notify
daemon
that there is something ready to be finalized.
410
private static class HeapTaskDaemon extends
Daemon
{
[
all
...]
/external/libweave/examples/daemon/ledflasher/
ledflasher.cc
5
#include "examples/
daemon
/common/
daemon
.h"
149
Daemon
::Options opts;
151
Daemon
::Options::ShowUsage(argv[0]);
154
Daemon
daemon
{opts};
156
handler.Register(
daemon
.GetDevice());
157
daemon
.Run();
/external/libweave/examples/daemon/lock/
lock.cc
5
#include "examples/
daemon
/common/
daemon
.h"
136
Daemon
::Options opts;
139
Daemon
::Options::ShowUsage(argv[0]);
142
Daemon
daemon
{opts};
144
handler.Register(
daemon
.GetDevice());
145
daemon
.Run();
/external/libweave/examples/daemon/sample/
sample.cc
5
#include "examples/
daemon
/common/
daemon
.h"
164
Daemon
::Options opts;
166
Daemon
::Options::ShowUsage(argv[0]);
169
Daemon
daemon
{opts};
170
SampleHandler handler{
daemon
.GetTaskRunner()};
171
handler.Register(
daemon
.GetDevice());
172
daemon
.Run();
/external/libweave/examples/daemon/speaker/
speaker.cc
5
#include "examples/
daemon
/common/
daemon
.h"
168
Daemon
::Options opts;
170
Daemon
::Options::ShowUsage(argv[0]);
173
Daemon
daemon
{opts};
175
speaker.Register(
daemon
.GetDevice());
176
daemon
.Run();
Completed in 913 milliseconds
1
2
3