Android-cuttlefish cvd tool
Classes | Functions | Variables
cuttlefish::anonymous_namespace{custom_actions.cpp} Namespace Reference

Classes

class  CustomActionConfigImpl
 

Functions

CustomActionInstanceID GetCustomActionInstanceIDFromJson (const Json::Value &dictionary)
 
CustomShellActionConfig GetCustomShellActionConfigFromJson (const Json::Value &dictionary)
 
CustomActionServerConfig GetCustomActionServerConfigFromJson (const Json::Value &dictionary)
 
CustomDeviceStateActionConfig GetCustomDeviceStateActionConfigFromJson (const Json::Value &dictionary)
 
Json::Value ToJson (const CustomActionInstanceID &custom_action)
 
Json::Value ToJson (const CustomShellActionConfig &custom_action)
 
Json::Value ToJson (const CustomActionServerConfig &custom_action)
 
Json::Value ToJson (const CustomDeviceStateActionConfig &custom_action)
 
std::string DefaultCustomActionConfig ()
 
int get_instance_order (const std::string &id_str)
 

Variables

const char * kCustomActionInstanceID = "instance_id"
 
const char * kCustomActionShellCommand = "shell_command"
 
const char * kCustomActionServer = "server"
 
const char * kCustomActionDeviceStates = "device_states"
 
const char * kCustomActionDeviceStateLidSwitchOpen = "lid_switch_open"
 
const char * kCustomActionDeviceStateHingeAngleValue = "hinge_angle_value"
 
const char * kCustomActionButton = "button"
 
const char * kCustomActionButtons = "buttons"
 
const char * kCustomActionButtonCommand = "command"
 
const char * kCustomActionButtonTitle = "title"
 
const char * kCustomActionButtonIconName = "icon_name"
 

Function Documentation

◆ DefaultCustomActionConfig()

std::string cuttlefish::anonymous_namespace{custom_actions.cpp}::DefaultCustomActionConfig ( )

◆ get_instance_order()

int cuttlefish::anonymous_namespace{custom_actions.cpp}::get_instance_order ( const std::string &  id_str)

◆ GetCustomActionInstanceIDFromJson()

CustomActionInstanceID cuttlefish::anonymous_namespace{custom_actions.cpp}::GetCustomActionInstanceIDFromJson ( const Json::Value &  dictionary)

◆ GetCustomActionServerConfigFromJson()

CustomActionServerConfig cuttlefish::anonymous_namespace{custom_actions.cpp}::GetCustomActionServerConfigFromJson ( const Json::Value &  dictionary)

◆ GetCustomDeviceStateActionConfigFromJson()

CustomDeviceStateActionConfig cuttlefish::anonymous_namespace{custom_actions.cpp}::GetCustomDeviceStateActionConfigFromJson ( const Json::Value &  dictionary)

◆ GetCustomShellActionConfigFromJson()

CustomShellActionConfig cuttlefish::anonymous_namespace{custom_actions.cpp}::GetCustomShellActionConfigFromJson ( const Json::Value &  dictionary)

◆ ToJson() [1/4]

Json::Value cuttlefish::anonymous_namespace{custom_actions.cpp}::ToJson ( const CustomActionInstanceID custom_action)

◆ ToJson() [2/4]

Json::Value cuttlefish::anonymous_namespace{custom_actions.cpp}::ToJson ( const CustomActionServerConfig custom_action)

◆ ToJson() [3/4]

Json::Value cuttlefish::anonymous_namespace{custom_actions.cpp}::ToJson ( const CustomDeviceStateActionConfig custom_action)

◆ ToJson() [4/4]

Json::Value cuttlefish::anonymous_namespace{custom_actions.cpp}::ToJson ( const CustomShellActionConfig custom_action)

Variable Documentation

◆ kCustomActionButton

const char* cuttlefish::anonymous_namespace{custom_actions.cpp}::kCustomActionButton = "button"

◆ kCustomActionButtonCommand

const char* cuttlefish::anonymous_namespace{custom_actions.cpp}::kCustomActionButtonCommand = "command"

◆ kCustomActionButtonIconName

const char* cuttlefish::anonymous_namespace{custom_actions.cpp}::kCustomActionButtonIconName = "icon_name"

◆ kCustomActionButtons

const char* cuttlefish::anonymous_namespace{custom_actions.cpp}::kCustomActionButtons = "buttons"

◆ kCustomActionButtonTitle

const char* cuttlefish::anonymous_namespace{custom_actions.cpp}::kCustomActionButtonTitle = "title"

◆ kCustomActionDeviceStateHingeAngleValue

const char* cuttlefish::anonymous_namespace{custom_actions.cpp}::kCustomActionDeviceStateHingeAngleValue = "hinge_angle_value"

◆ kCustomActionDeviceStateLidSwitchOpen

const char* cuttlefish::anonymous_namespace{custom_actions.cpp}::kCustomActionDeviceStateLidSwitchOpen = "lid_switch_open"

◆ kCustomActionDeviceStates

const char* cuttlefish::anonymous_namespace{custom_actions.cpp}::kCustomActionDeviceStates = "device_states"

◆ kCustomActionInstanceID

const char* cuttlefish::anonymous_namespace{custom_actions.cpp}::kCustomActionInstanceID = "instance_id"

◆ kCustomActionServer

const char* cuttlefish::anonymous_namespace{custom_actions.cpp}::kCustomActionServer = "server"

◆ kCustomActionShellCommand

const char* cuttlefish::anonymous_namespace{custom_actions.cpp}::kCustomActionShellCommand = "shell_command"