Android-cuttlefish cvd tool
Functions | Variables
health.cpp File Reference
#include <stdlib.h>
#include <iostream>
#include <android-base/logging.h>
#include <gflags/gflags.h>
#include "cuttlefish/common/libs/utils/subprocess.h"
#include "cuttlefish/common/libs/utils/subprocess_managed_stdio.h"
#include "cuttlefish/host/libs/config/cuttlefish_config.h"
Include dependency graph for health.cpp:

Functions

std::string GetControlSocketPath (const cuttlefish::CuttlefishConfig &config)
 
int status ()
 
int health ()
 
int present ()
 
int capacity ()
 
int aconline ()
 
int usage ()
 
int main (int argc, char **argv)
 

Variables

static constexpr char kUsageMessage []
 

Function Documentation

◆ aconline()

int aconline ( )

◆ capacity()

int capacity ( )

◆ GetControlSocketPath()

std::string GetControlSocketPath ( const cuttlefish::CuttlefishConfig config)

◆ health()

int health ( )

◆ main()

int main ( int  argc,
char **  argv 
)

◆ present()

int present ( )

◆ status()

int status ( )

◆ usage()

int usage ( void  )

Variable Documentation

◆ kUsageMessage

constexpr char kUsageMessage[]
staticconstexpr
Initial value:
=
"<key> [value]\n"
"Excluding the value will enumerate the possible values to set\n"
"\n"
"\"status [value]\" - battery status: "
"unknown/charging/discharging/notcharging/full\n"
"\"health [value]\" - battery health\n"
"\"present [value]\" - battery present: 1 or 0\n"
"\"capacity [value]\" - battery capacity: 0 to 100\n"
"\"aconline [value]\" - battery ac online: 1 or 0\n"