• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #pragma once
2 
3 #include <functional>
4 
5 #include "common/libs/utils/subprocess.h"
6 #include "host/commands/launch/process_monitor.h"
7 #include "host/libs/config/cuttlefish_config.h"
8 
9 int GetHostPort();
10 bool AdbUsbEnabled(const vsoc::CuttlefishConfig& config);
11 void ValidateAdbModeFlag(const vsoc::CuttlefishConfig& config);
12 
13 cvd::Command GetIvServerCommand(const vsoc::CuttlefishConfig& config);
14 cvd::Command GetKernelLogMonitorCommand(const vsoc::CuttlefishConfig& config,
15                                         cvd::SharedFD* boot_events_pipe,
16                                         cvd::SharedFD* adbd_events_pipe);
17 void LaunchLogcatReceiverIfEnabled(const vsoc::CuttlefishConfig& config,
18                                    cvd::ProcessMonitor* process_monitor);
19 void LaunchUsbServerIfEnabled(const vsoc::CuttlefishConfig& config,
20                               cvd::ProcessMonitor* process_monitor);
21 void LaunchVNCServerIfEnabled(const vsoc::CuttlefishConfig& config,
22                               cvd::ProcessMonitor* process_monitor,
23                               std::function<bool(cvd::MonitorEntry*)> callback);
24 void LaunchStreamAudioIfEnabled(const vsoc::CuttlefishConfig& config,
25                                 cvd::ProcessMonitor* process_monitor,
26                                 std::function<bool(cvd::MonitorEntry*)> callback);
27 void LaunchAdbConnectorIfEnabled(cvd::ProcessMonitor* process_monitor,
28                                  const vsoc::CuttlefishConfig& config,
29                                  cvd::SharedFD adbd_events_pipe);
30 void LaunchSocketForwardProxyIfEnabled(cvd::ProcessMonitor* process_monitor,
31                                  const vsoc::CuttlefishConfig& config);
32 void LaunchSocketVsockProxyIfEnabled(cvd::ProcessMonitor* process_monitor,
33                                  const vsoc::CuttlefishConfig& config);
34 void LaunchIvServerIfEnabled(cvd::ProcessMonitor* process_monitor,
35                              const vsoc::CuttlefishConfig& config);
36