• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright (C) 2019 The Android Open Source Project
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //      http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 
16 #pragma once
17 
18 #include <string>
19 #include <vector>
20 
21 #include <fruit/fruit.h>
22 
23 #include "common/libs/fs/shared_fd.h"
24 #include "common/libs/utils/subprocess.h"
25 #include "host/commands/run_cvd/launch/grpc_socket_creator.h"
26 #include "host/commands/run_cvd/launch/log_tee_creator.h"
27 #include "host/libs/config/command_source.h"
28 #include "host/libs/config/custom_actions.h"
29 #include "host/libs/config/cuttlefish_config.h"
30 #include "host/libs/config/feature.h"
31 #include "host/libs/config/kernel_log_pipe_provider.h"
32 #include "host/libs/vm_manager/vm_manager.h"
33 
34 namespace cuttlefish {
35 
36 fruit::Component<fruit::Required<const CuttlefishConfig,
37                                  const CuttlefishConfig::InstanceSpecific>>
38 UwbConnectorComponent();
39 
40 fruit::Component<fruit::Required<const CuttlefishConfig,
41                                  const CuttlefishConfig::InstanceSpecific>>
42 BluetoothConnectorComponent();
43 
44 fruit::Component<fruit::Required<const CuttlefishConfig::InstanceSpecific>,
45                  KernelLogPipeProvider>
46 KernelLogMonitorComponent();
47 
48 fruit::Component<fruit::Required<const CuttlefishConfig::InstanceSpecific>>
49 LogcatReceiverComponent();
50 
51 fruit::Component<fruit::Required<const CuttlefishConfig::InstanceSpecific>>
52 ConfigServerComponent();
53 
54 fruit::Component<fruit::Required<const CuttlefishConfig::InstanceSpecific>>
55 ConsoleForwarderComponent();
56 
57 fruit::Component<fruit::Required<const CuttlefishConfig::InstanceSpecific,
58                                  GrpcSocketCreator>>
59 GnssGrpcProxyServerComponent();
60 
61 fruit::Component<fruit::Required<const CuttlefishConfig>>
62 MetricsServiceComponent();
63 
64 fruit::Component<
65     fruit::Required<const CuttlefishConfig,
66                     const CuttlefishConfig::InstanceSpecific, LogTeeCreator>>
67 OpenWrtComponent();
68 
69 fruit::Component<fruit::Required<const CuttlefishConfig::InstanceSpecific,
70                                  GrpcSocketCreator>>
71 OpenwrtControlServerComponent();
72 
73 fruit::Component<
74     fruit::Required<const CuttlefishConfig,
75                     const CuttlefishConfig::InstanceSpecific, LogTeeCreator>>
76 RootCanalComponent();
77 
78 fruit::Component<
79     fruit::Required<const CuttlefishConfig,
80                     const CuttlefishConfig::InstanceSpecific, LogTeeCreator>>
81 PicaComponent();
82 
83 fruit::Component<fruit::Required<GrpcSocketCreator>> EchoServerComponent();
84 
85 fruit::Component<fruit::Required<const CuttlefishConfig,
86                                  const CuttlefishConfig::InstanceSpecific>>
87 NetsimServerComponent();
88 
89 fruit::Component<fruit::Required<const CuttlefishConfig,
90                                  const CuttlefishConfig::InstanceSpecific,
91                                  KernelLogPipeProvider>>
92 SecureEnvComponent();
93 
94 fruit::Component<fruit::Required<const CuttlefishConfig::InstanceSpecific>>
95 TombstoneReceiverComponent();
96 
97 fruit::Component<fruit::Required<const CuttlefishConfig,
98                                  const CuttlefishConfig::InstanceSpecific,
99                                  LogTeeCreator, GrpcSocketCreator>>
100 WmediumdServerComponent();
101 
102 fruit::Component<fruit::Required<const CuttlefishConfig,
103                                  const CuttlefishConfig::InstanceSpecific>>
104 launchModemComponent();
105 
106 fruit::Component<fruit::Required<const CuttlefishConfig, KernelLogPipeProvider,
107                                  const CuttlefishConfig::InstanceSpecific,
108                                  const CustomActionConfigProvider>>
109 launchStreamerComponent();
110 
111 }  // namespace cuttlefish
112