Searched refs:AdbMode (Results 1 – 7 of 7) sorted by relevance
23 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()
55 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()
30 enum class AdbMode { enum37 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;
28 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_;
41 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()
41 std::set<AdbMode> modes; in INJECT()58 config_.SetModes({AdbMode::VsockHalfTunnel}); in Process()66 adb_modes_check.erase(AdbMode::Unknown); in Process()
47 std::set<AdbMode> modes; in Deserialize()