Android-cuttlefish cvd tool
Classes | Namespaces | Functions | Variables
common.h File Reference
#include <sys/types.h>
#include <sstream>
#include <string>
#include <string_view>
#include <android-base/logging.h>
#include "cuttlefish/common/libs/utils/result.h"
#include "cuttlefish/host/commands/cvd/cli/types.h"
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cuttlefish::Overload< Ts >
 

Namespaces

namespace  cuttlefish
 

Functions

template<typename... Ts>
 cuttlefish::Overload (Ts...) -> Overload< Ts... >
 
template<typename Ostream , typename... Args>
Ostream & cuttlefish::ConcatToStream (Ostream &out, Args &&... args)
 
template<typename... Args>
std::string cuttlefish::ConcatToString (Args &&... args)
 
Result< android::base::LogSeveritycuttlefish::EncodeVerbosity (const std::string &verbosity)
 
Result< std::string > cuttlefish::VerbosityToString (const android::base::LogSeverity verbosity)
 
android::base::LogSeverity cuttlefish::SetMinimumVerbosity (const android::base::LogSeverity severity)
 
Result< android::base::LogSeveritycuttlefish::SetMinimumVerbosity (const std::string &severity)
 
android::base::LogSeverity cuttlefish::GetMinimumVerbosity ()
 
std::string cuttlefish::CvdDir ()
 
std::string cuttlefish::PerUserDir ()
 
std::string cuttlefish::PerUserCacheDir ()
 
std::string cuttlefish::InstanceDatabasePath ()
 
std::string cuttlefish::InstanceLocksPath ()
 
std::string cuttlefish::DefaultBaseDir ()
 
Result< std::string > cuttlefish::GroupDirFromHome (std::string_view dir)
 
std::string cuttlefish::AssemblyDirFromHome (const std::string &group_home_dir)
 
Result< std::string > cuttlefish::AndroidHostPath (const cvd_common::Envs &envs)
 

Variables

static constexpr char cuttlefish::kCvdMarkEnv [] = "_STARTED_BY_CVD_SERVER_"
 
constexpr char cuttlefish::kServerExecPath [] = "/proc/self/exe"
 
constexpr char cuttlefish::kAndroidHostOut [] = "ANDROID_HOST_OUT"
 
constexpr char cuttlefish::kAndroidSoongHostOut [] = "ANDROID_SOONG_HOST_OUT"
 
constexpr char cuttlefish::kAndroidProductOut [] = "ANDROID_PRODUCT_OUT"
 
constexpr char cuttlefish::kLaunchedByAcloud [] = "LAUNCHED_BY_ACLOUD"
 
constexpr android::base::LogSeverity cuttlefish::kCvdDefaultVerbosity = android::base::INFO