Home
last modified time | relevance | path

Searched refs:ServiceDescriptor (Results 1 – 12 of 12) sorted by relevance

/device/google/trout/hal/dumpstate/1.1/
DDumpstateServer.h29 ServiceDescriptor::Error GetSystemLogs(ServiceDescriptor::OutputConsumer* out);
33 ServiceDescriptor::Error GetServiceLogs(const std::string& svc,
34 ServiceDescriptor::OutputConsumer* out);
37 std::optional<ServiceDescriptor> mSystemLogsService;
38 std::unordered_map<std::string, ServiceDescriptor> mServices;
Dserver_main.cpp26 static ServiceDescriptor kDmesgService("dmesg", "/bin/dmesg -kuPT");
28 static ServiceDescriptor SystemdService(const std::string& name) { in SystemdService()
29 return ServiceDescriptor{name, std::string("/bin/journalctl --no-pager -t ") + name}; in SystemdService()
33 static const std::vector<ServiceDescriptor> kAvailableServices {
53 std::optional<ServiceDescriptor> GetSystemLogsService() const override { return kDmesgService; } in GetSystemLogsService()
55 std::vector<ServiceDescriptor> GetServices() const override { return kAvailableServices; } in GetServices()
DDumpstateServer.cpp30 ServiceDescriptor::Error DumpstateServer::GetSystemLogs(ServiceDescriptor::OutputConsumer* out) { in GetSystemLogs()
47 ServiceDescriptor::Error DumpstateServer::GetServiceLogs(const std::string& svc, in GetServiceLogs()
48 ServiceDescriptor::OutputConsumer* out) { in GetServiceLogs()
DServiceDescriptor.cpp26 ServiceDescriptor::ServiceDescriptor(std::string name, std::string cmd) in ServiceDescriptor() function in ServiceDescriptor
29 std::optional<std::string> ServiceDescriptor::GetOutput(OutputConsumer* consumer) const { in GetOutput()
DServiceSupplier.h26 virtual std::optional<ServiceDescriptor> GetSystemLogsService() const;
27 virtual std::vector<ServiceDescriptor> GetServices() const;
DServiceSupplier.cpp19 std::optional<ServiceDescriptor> ServiceSupplier::GetSystemLogsService() const { in GetSystemLogsService()
23 std::vector<ServiceDescriptor> ServiceSupplier::GetServices() const { in GetServices()
DServiceDescriptor.h22 class ServiceDescriptor {
24 ServiceDescriptor(std::string name, std::string cmd);
DDumpstateGrpcServer.cpp26 struct GrpcServiceOutputConsumer : public ServiceDescriptor::OutputConsumer {
45 static ::grpc::Status toGRpcStatus(const ServiceDescriptor::Error& err) { in toGRpcStatus()
/device/google/trout/hal/dumpstate/1.1/config/
DXmlServiceSupplier.h29 std::optional<ServiceDescriptor> GetSystemLogsService() const override;
30 std::vector<ServiceDescriptor> GetServices() const override;
35 std::optional<ServiceDescriptor> mSystemLogs;
36 std::vector<ServiceDescriptor> mServices;
DXmlServiceSupplier.cpp22 static std::optional<ServiceDescriptor> serviceFromXml(const Service& svc) { in serviceFromXml()
24 return ServiceDescriptor{svc.getName(), svc.getCommand()}; in serviceFromXml()
66 std::optional<ServiceDescriptor> XmlServiceSupplier::GetSystemLogsService() const { in GetSystemLogsService()
70 std::vector<ServiceDescriptor> XmlServiceSupplier::GetServices() const { in GetServices()
/device/google/trout/hal/dumpstate/1.1/tests/
Dtests.cpp28 static ServiceDescriptor MakePrinterService(const std::string& msg) { in MakePrinterService()
29 return ServiceDescriptor{msg, "/bin/echo -n \"" + msg + "\""}; in MakePrinterService()
32 class AccumulatorConsumer : public ServiceDescriptor::OutputConsumer {
/device/google/trout/hal/dumpstate/1.1/agl_build/
DCMakeLists.txt38 ${dumpstate_SRC_ROOT}/ServiceDescriptor.cpp