|
| ConnectionObserverImpl (std::unique_ptr< InputConnector::EventSink > input_events_sink, KernelLogEventsHandler &kernel_log_events_handler, std::map< std::string, SharedFD > commands_to_custom_action_servers, std::weak_ptr< DisplayHandler > display_handler, CameraController *camera_controller, webrtc_streaming::SensorsHandler &sensors_handler, std::shared_ptr< webrtc_streaming::LightsObserver > lights_observer) |
|
virtual | ~ConnectionObserverImpl () |
|
void | OnConnected () override |
|
Result< void > | OnMouseMoveEvent (int x, int y) override |
|
Result< void > | OnMouseButtonEvent (int button, bool down) override |
|
Result< void > | OnMouseWheelEvent (int pixels) override |
|
Result< void > | OnGamepadKeyEvent (int button, bool down) override |
|
Result< void > | OnGamepadMotionEvent (int code, int value) override |
|
Result< void > | OnTouchEvent (const std::string &device_label, int x, int y, bool down) override |
|
Result< void > | OnMultiTouchEvent (const std::string &device_label, Json::Value id, Json::Value x, Json::Value y, bool down, int size) override |
|
Result< void > | OnKeyboardEvent (uint16_t code, bool down) override |
|
Result< void > | OnRotaryWheelEvent (int pixels) override |
|
Result< void > | OnSwitchEvent (uint16_t code, bool state) |
|
void | OnAdbChannelOpen (std::function< bool(const uint8_t *, size_t)> adb_message_sender) override |
|
void | OnAdbMessage (const uint8_t *msg, size_t size) override |
|
void | OnControlChannelOpen (std::function< bool(const Json::Value)> control_message_sender) override |
|
Result< void > | OnLidStateChange (bool lid_open) override |
|
void | OnHingeAngleChange (int) override |
|
Result< void > | OnPowerButton (bool button_down) override |
|
Result< void > | OnBackButton (bool button_down) override |
|
Result< void > | OnHomeButton (bool button_down) override |
|
Result< void > | OnMenuButton (bool button_down) override |
|
Result< void > | OnVolumeDownButton (bool button_down) override |
|
Result< void > | OnVolumeUpButton (bool button_down) override |
|
void | OnCustomActionButton (const std::string &command, const std::string &button_state) override |
|
void | OnBluetoothChannelOpen (std::function< bool(const uint8_t *, size_t)> bluetooth_message_sender) override |
|
void | OnBluetoothMessage (const uint8_t *msg, size_t size) override |
|
void | OnSensorsChannelOpen (std::function< bool(const uint8_t *, size_t)> sensors_message_sender) override |
|
void | OnSensorsChannelClosed () override |
|
void | OnSensorsMessage (const uint8_t *msg, size_t size) override |
|
void | OnLightsChannelOpen (std::function< bool(const Json::Value &)> lights_message_sender) override |
|
void | OnLightsChannelClosed () override |
|
void | OnLocationChannelOpen (std::function< bool(const uint8_t *, size_t)> location_message_sender) override |
|
void | OnLocationMessage (const uint8_t *msg, size_t size) override |
|
void | OnKmlLocationsChannelOpen (std::function< bool(const uint8_t *, size_t)> kml_locations_message_sender) override |
|
void | OnKmlLocationsMessage (const uint8_t *msg, size_t size) override |
|
void | OnGpxLocationsChannelOpen (std::function< bool(const uint8_t *, size_t)> gpx_locations_message_sender) override |
|
void | OnGpxLocationsMessage (const uint8_t *msg, size_t size) override |
|
void | OnCameraControlMsg (const Json::Value &msg) override |
|
void | OnDisplayControlMsg (const Json::Value &msg) override |
|
void | OnDisplayAddMsg (const Json::Value &msg) override |
|
Result< void > | HandleDisplayAddMessage (const Json::Value &msg) |
|
void | OnDisplayRemoveMsg (const Json::Value &msg) override |
|
Result< void > | HandleDisplayRemoveMessage (const Json::Value &msg) |
|
void | OnCameraData (const std::vector< char > &data) override |
|
| ConnectionObserver ()=default |
|
virtual | ~ConnectionObserver ()=default |
|
virtual void | OnConnected ()=0 |
|
virtual Result< void > | OnMouseMoveEvent (int x, int y)=0 |
|
virtual Result< void > | OnMouseButtonEvent (int button, bool down)=0 |
|
virtual Result< void > | OnMouseWheelEvent (int pixels)=0 |
|
virtual Result< void > | OnGamepadKeyEvent (int button, bool down)=0 |
|
virtual Result< void > | OnGamepadMotionEvent (int code, int value)=0 |
|
virtual Result< void > | OnTouchEvent (const std::string &device_label, int x, int y, bool down)=0 |
|
virtual Result< void > | OnMultiTouchEvent (const std::string &label, Json::Value id, Json::Value x, Json::Value y, bool down, int size)=0 |
|
virtual Result< void > | OnKeyboardEvent (uint16_t keycode, bool down)=0 |
|
virtual Result< void > | OnRotaryWheelEvent (int pixels)=0 |
|
virtual void | OnAdbChannelOpen (std::function< bool(const uint8_t *, size_t)> adb_message_sender)=0 |
|
virtual void | OnAdbMessage (const uint8_t *msg, size_t size)=0 |
|
virtual void | OnControlChannelOpen (std::function< bool(const Json::Value)> control_message_sender)=0 |
|
virtual Result< void > | OnLidStateChange (bool lid_open)=0 |
|
virtual void | OnHingeAngleChange (int hinge_angle)=0 |
|
virtual Result< void > | OnPowerButton (bool button_down)=0 |
|
virtual Result< void > | OnBackButton (bool button_down)=0 |
|
virtual Result< void > | OnHomeButton (bool button_down)=0 |
|
virtual Result< void > | OnMenuButton (bool button_down)=0 |
|
virtual Result< void > | OnVolumeDownButton (bool button_down)=0 |
|
virtual Result< void > | OnVolumeUpButton (bool button_down)=0 |
|
virtual void | OnCustomActionButton (const std::string &command, const std::string &button_state)=0 |
|
virtual void | OnCameraControlMsg (const Json::Value &msg)=0 |
|
virtual void | OnDisplayControlMsg (const Json::Value &msg)=0 |
|
virtual void | OnDisplayAddMsg (const Json::Value &msg)=0 |
|
virtual void | OnDisplayRemoveMsg (const Json::Value &msg)=0 |
|
virtual void | OnBluetoothChannelOpen (std::function< bool(const uint8_t *, size_t)> bluetooth_message_sender)=0 |
|
virtual void | OnBluetoothMessage (const uint8_t *msg, size_t size)=0 |
|
virtual void | OnSensorsChannelOpen (std::function< bool(const uint8_t *, size_t)> sensors_message_sender)=0 |
|
virtual void | OnSensorsMessage (const uint8_t *msg, size_t size)=0 |
|
virtual void | OnSensorsChannelClosed ()=0 |
|
virtual void | OnLightsChannelOpen (std::function< bool(const Json::Value &)> lights_message_sender)=0 |
|
virtual void | OnLightsChannelClosed ()=0 |
|
virtual void | OnLocationChannelOpen (std::function< bool(const uint8_t *, size_t)> location_message_sender)=0 |
|
virtual void | OnLocationMessage (const uint8_t *msg, size_t size)=0 |
|
virtual void | OnKmlLocationsChannelOpen (std::function< bool(const uint8_t *, size_t)> kml_locations_message_sender)=0 |
|
virtual void | OnGpxLocationsChannelOpen (std::function< bool(const uint8_t *, size_t)> gpx_locations_message_sender)=0 |
|
virtual void | OnKmlLocationsMessage (const uint8_t *msg, size_t size)=0 |
|
virtual void | OnGpxLocationsMessage (const uint8_t *msg, size_t size)=0 |
|
virtual void | OnCameraData (const std::vector< char > &data)=0 |
|
connection observer implementation for regular android mode. i.e. when it is not in the confirmation UI mode (or TEE), the control flow will fall back to this ConnectionObserverForAndroid