• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2020 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 
17 #include "host/libs/config/known_paths.h"
18 
19 #include "host/libs/config/config_utils.h"
20 
21 namespace cuttlefish {
22 
AdbConnectorBinary()23 std::string AdbConnectorBinary() { return HostBinaryPath("adb_connector"); }
24 
AutomotiveProxyBinary()25 std::string AutomotiveProxyBinary() {
26   return HostBinaryPath("automotive_vsock_proxy");
27 }
28 
AvbToolBinary()29 std::string AvbToolBinary() { return HostBinaryPath("avbtool"); }
30 
CasimirBinary()31 std::string CasimirBinary() { return HostBinaryPath("casimir"); }
32 
CasimirControlServerBinary()33 std::string CasimirControlServerBinary() {
34   return HostBinaryPath("casimir_control_server");
35 }
36 
ConsoleForwarderBinary()37 std::string ConsoleForwarderBinary() {
38   return HostBinaryPath("console_forwarder");
39 }
40 
ControlEnvProxyServerBinary()41 std::string ControlEnvProxyServerBinary() {
42   return HostBinaryPath("control_env_proxy_server");
43 }
44 
DefaultKeyboardSpec()45 std::string DefaultKeyboardSpec() {
46   return DefaultHostArtifactsPath("etc/default_input_devices/keyboard.json");
47 }
48 
DefaultMouseSpec()49 std::string DefaultMouseSpec() {
50   return DefaultHostArtifactsPath("etc/default_input_devices/mouse.json");
51 }
52 
DefaultMultiTouchpadSpecTemplate()53 std::string DefaultMultiTouchpadSpecTemplate() {
54   return DefaultHostArtifactsPath(
55       "etc/default_input_devices/multi_touchpad_template.json");
56 }
57 
DefaultMultiTouchscreenSpecTemplate()58 std::string DefaultMultiTouchscreenSpecTemplate() {
59   return DefaultHostArtifactsPath(
60       "etc/default_input_devices/multi_touchscreen_template.json");
61 }
62 
DefaultRotaryDeviceSpec()63 std::string DefaultRotaryDeviceSpec() {
64   return DefaultHostArtifactsPath(
65       "etc/default_input_devices/rotary_wheel.json");
66 }
67 
DefaultSingleTouchpadSpecTemplate()68 std::string DefaultSingleTouchpadSpecTemplate() {
69   return DefaultHostArtifactsPath(
70       "etc/default_input_devices/single_touchpad_template.json");
71 }
72 
DefaultSingleTouchscreenSpecTemplate()73 std::string DefaultSingleTouchscreenSpecTemplate() {
74   return DefaultHostArtifactsPath(
75       "etc/default_input_devices/single_touchscreen_template.json");
76 }
77 
DefaultSwitchesSpec()78 std::string DefaultSwitchesSpec() {
79   return DefaultHostArtifactsPath("etc/default_input_devices/switches.json");
80 }
81 
EchoServerBinary()82 std::string EchoServerBinary() { return HostBinaryPath("echo_server"); }
83 
GnssGrpcProxyBinary()84 std::string GnssGrpcProxyBinary() { return HostBinaryPath("gnss_grpc_proxy"); }
85 
KernelLogMonitorBinary()86 std::string KernelLogMonitorBinary() {
87   return HostBinaryPath("kernel_log_monitor");
88 }
89 
LogcatReceiverBinary()90 std::string LogcatReceiverBinary() { return HostBinaryPath("logcat_receiver"); }
91 
MetricsBinary()92 std::string MetricsBinary() { return HostBinaryPath("metrics"); }
93 
ModemSimulatorBinary()94 std::string ModemSimulatorBinary() { return HostBinaryPath("modem_simulator"); }
95 
NetsimdBinary()96 std::string NetsimdBinary() { return HostBinaryPath("netsimd"); }
97 
OpenwrtControlServerBinary()98 std::string OpenwrtControlServerBinary() {
99   return HostBinaryPath("openwrt_control_server");
100 }
101 
PicaBinary()102 std::string PicaBinary() { return HostBinaryPath("pica"); }
103 
ProcessRestarterBinary()104 std::string ProcessRestarterBinary() {
105   return HostBinaryPath("process_restarter");
106 }
107 
RootCanalBinary()108 std::string RootCanalBinary() { return HostBinaryPath("root-canal"); }
109 
ScreenRecordingServerBinary()110 std::string ScreenRecordingServerBinary() {
111   return HostBinaryPath("screen_recording_server");
112 }
113 
SecureEnvBinary()114 std::string SecureEnvBinary() { return HostBinaryPath("secure_env"); }
115 
SensorsSimulatorBinary()116 std::string SensorsSimulatorBinary() {
117   return HostBinaryPath("sensors_simulator");
118 }
119 
SocketVsockProxyBinary()120 std::string SocketVsockProxyBinary() {
121   return HostBinaryPath("socket_vsock_proxy");
122 }
123 
StopCvdBinary()124 std::string StopCvdBinary() { return HostBinaryPath("stop_cvd"); }
125 
TcpConnectorBinary()126 std::string TcpConnectorBinary() { return HostBinaryPath("tcp_connector"); }
127 
TestKeyRsa2048()128 std::string TestKeyRsa2048() {
129   return DefaultHostArtifactsPath("etc/cvd_avb_testkey_rsa2048.pem");
130 }
131 
TestKeyRsa4096()132 std::string TestKeyRsa4096() {
133   return DefaultHostArtifactsPath("etc/cvd_avb_testkey_rsa4096.pem");
134 }
135 
TestPubKeyRsa2048()136 std::string TestPubKeyRsa2048() {
137   return DefaultHostArtifactsPath("etc/cvd_rsa2048.avbpubkey");
138 }
139 
TestPubKeyRsa4096()140 std::string TestPubKeyRsa4096() {
141   return DefaultHostArtifactsPath("etc/cvd_rsa4096.avbpubkey");
142 }
143 
TombstoneReceiverBinary()144 std::string TombstoneReceiverBinary() {
145   return HostBinaryPath("tombstone_receiver");
146 }
147 
VhalProxyServerBinary()148 std::string VhalProxyServerBinary() {
149   return HostBinaryPath("vhal_proxy_server");
150 }
151 
VhalProxyServerConfig()152 std::string VhalProxyServerConfig() {
153   return DefaultHostArtifactsPath("etc/automotive/vhalconfig");
154 }
155 
WebRtcBinary()156 std::string WebRtcBinary() { return HostBinaryPath("webRTC"); }
157 
WebRtcSigServerBinary()158 std::string WebRtcSigServerBinary() {
159   return HostBinaryPath("webrtc_operator");
160 }
161 
WebRtcSigServerProxyBinary()162 std::string WebRtcSigServerProxyBinary() {
163   return HostBinaryPath("operator_proxy");
164 }
165 
WmediumdBinary()166 std::string WmediumdBinary() { return HostBinaryPath("wmediumd"); }
167 
WmediumdGenConfigBinary()168 std::string WmediumdGenConfigBinary() {
169   return HostBinaryPath("wmediumd_gen_config");
170 }
171 
VhostUserInputBinary()172 std::string VhostUserInputBinary() {
173   return HostBinaryPath("cf_vhost_user_input");
174 }
175 
176 }  // namespace cuttlefish
177