Home
last modified time | relevance | path

Searched refs:AdbMode (Results 1 – 7 of 7) sorted by relevance

/device/google/cuttlefish/host/libs/config/adb/
Dstrings.cpp23 AdbMode StringToAdbMode(const std::string& mode_cased) { in StringToAdbMode()
27 return AdbMode::VsockTunnel; in StringToAdbMode()
29 return AdbMode::VsockHalfTunnel; in StringToAdbMode()
31 return AdbMode::NativeVsock; in StringToAdbMode()
33 return AdbMode::Unknown; in StringToAdbMode()
37 std::string AdbModeToString(AdbMode mode) { in AdbModeToString()
39 case AdbMode::VsockTunnel: in AdbModeToString()
41 case AdbMode::VsockHalfTunnel: in AdbModeToString()
43 case AdbMode::NativeVsock: in AdbModeToString()
45 case AdbMode::Unknown: // fall through in AdbModeToString()
Dtest.cpp55 std::set<AdbMode> modes = {AdbMode::VsockTunnel, AdbMode::VsockHalfTunnel, in TEST()
56 AdbMode::NativeVsock, AdbMode::Unknown}; in TEST()
65 data1.config.SetModes({AdbMode::VsockTunnel, AdbMode::VsockHalfTunnel, in TEST()
66 AdbMode::NativeVsock, AdbMode::Unknown})); in TEST()
Dadb.h30 enum class AdbMode { enum
37 AdbMode StringToAdbMode(const std::string& mode);
38 std::string AdbModeToString(AdbMode mode);
43 virtual const std::set<AdbMode>& Modes() const = 0;
44 virtual bool SetModes(const std::set<AdbMode>&) = 0;
45 virtual bool SetModes(std::set<AdbMode>&&) = 0;
Ddata.cpp28 const std::set<AdbMode>& Modes() const override { return modes_; } in Modes()
29 bool SetModes(const std::set<AdbMode>& modes) override { in SetModes()
33 bool SetModes(std::set<AdbMode>&& modes) override { in SetModes()
45 std::set<AdbMode> modes_;
Dlaunch.cpp41 bool ModeEnabled(const AdbMode& mode) const { in ModeEnabled()
54 return instance_.vsock_guest_cid() > 2 && ModeEnabled(AdbMode::VsockTunnel); in VsockTunnelEnabled()
59 ModeEnabled(AdbMode::VsockHalfTunnel); in VsockHalfTunnelEnabled()
69 return config_.RunConnector() && ModeEnabled(AdbMode::NativeVsock); in VsockConnectorEnabled()
Dflags.cpp41 std::set<AdbMode> modes; in INJECT()
58 config_.SetModes({AdbMode::VsockHalfTunnel}); in Process()
66 adb_modes_check.erase(AdbMode::Unknown); in Process()
Dconfig.cpp47 std::set<AdbMode> modes; in Deserialize()