Lines Matching refs:command
296 auto command = evt["command"].asString(); in OnControlMessage() local
298 if (command == "device_state") { in OnControlMessage()
309 } else if (command.rfind("camera_", 0) == 0 && camera_controller_) { in OnControlMessage()
316 LOG(VERBOSE) << "Control command: " << command << " (" << button_state in OnControlMessage()
318 if (command == "power") { in OnControlMessage()
320 } else if (command == "home") { in OnControlMessage()
322 } else if (command == "menu") { in OnControlMessage()
324 } else if (command == "volumedown") { in OnControlMessage()
326 } else if (command == "volumeup") { in OnControlMessage()
328 } else if (commands_to_custom_action_servers_.find(command) != in OnControlMessage()
334 std::string action_server_message = command + ":" + button_state; in OnControlMessage()
335 cuttlefish::WriteAll(commands_to_custom_action_servers_[command], in OnControlMessage()
338 LOG(WARNING) << "Unsupported control command: " << command << " (" in OnControlMessage()
396 for (const std::string& command : commands) { in AddCustomActionServer() local
397 LOG(DEBUG) << "Action server is listening to command: " << command; in AddCustomActionServer()
398 commands_to_custom_action_servers_[command] = custom_action_server_fd; in AddCustomActionServer()