Android-cuttlefish cvd tool
Namespaces | Functions
util.cc File Reference
#include "cuttlefish/host/libs/command_util/util.h"
#include "sys/time.h"
#include "sys/types.h"
#include <optional>
#include <string>
#include "cuttlefish/common/libs/fs/shared_buf.h"
#include "cuttlefish/common/libs/fs/shared_fd.h"
#include "cuttlefish/common/libs/fs/shared_select.h"
#include "cuttlefish/common/libs/utils/result.h"
#include "cuttlefish/host/libs/command_util/runner/defs.h"
#include "cuttlefish/host/libs/command_util/runner/run_cvd.pb.h"
#include "cuttlefish/host/libs/config/cuttlefish_config.h"
Include dependency graph for util.cc:

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::anonymous_namespace{util.cc}
 

Functions

bool cuttlefish::anonymous_namespace{util.cc}::IsShortAction (const LauncherAction action)
 
template<typename T >
static Result< void > cuttlefish::anonymous_namespace{util.cc}::WriteAllBinaryResult (const SharedFD &fd, const T *t)
 
template<typename T >
static Result< bool > cuttlefish::anonymous_namespace{util.cc}::ReadExactBinaryResult (const SharedFD &fd, T *t)
 
Result< RunnerExitCodes > cuttlefish::ReadExitCode (SharedFD monitor_socket)
 
Result< SharedFD > cuttlefish::GetLauncherMonitorFromInstance (const CuttlefishConfig::InstanceSpecific &instance_config, const int timeout_seconds)
 
Result< SharedFD > cuttlefish::GetLauncherMonitor (const CuttlefishConfig &config, const int instance_num, const int timeout_seconds)
 
Result< std::optional< LauncherActionInfo > > cuttlefish::ReadLauncherActionFromFd (SharedFD monitor_socket)
 
Result< void > cuttlefish::WaitForRead (SharedFD monitor_socket, const int timeout_seconds)
 
Result< void > cuttlefish::RunLauncherAction (SharedFD monitor_socket, LauncherAction action, std::optional< int > timeout_seconds)
 
Result< void > cuttlefish::RunLauncherAction (SharedFD monitor_socket, const run_cvd::ExtendedLauncherAction &extended_action, std::optional< int > timeout_seconds)