Android-cuttlefish cvd tool
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cuttlefish::sensors::SensorsHalProxy Class Reference

#include <sensors_hal_proxy.h>

Collaboration diagram for cuttlefish::sensors::SensorsHalProxy:
Collaboration graph
[legend]

Public Member Functions

 SensorsHalProxy (SharedFD control_from_guest_fd, SharedFD control_to_guest_fd, SharedFD data_from_guest_fd, SharedFD data_to_guest_fd, SharedFD kernel_events_fd, SensorsSimulator &sensors_simulator, DeviceType device_type)
 

Private Member Functions

void ReportToGuest (SensorsMask mask)
 

Private Attributes

std::thread req_responder_thread_
 
std::thread data_reporter_thread_
 
std::thread reboot_monitor_thread_
 
transport::SharedFdChannel control_channel_
 
transport::SharedFdChannel data_channel_
 
SharedFD kernel_events_fd_
 
SensorsSimulatorsensors_simulator_
 
std::atomic< bool > hal_activated_ = false
 
std::atomic< bool > running_ = true
 
std::mutex report_mtx_
 

Constructor & Destructor Documentation

◆ SensorsHalProxy()

cuttlefish::sensors::SensorsHalProxy::SensorsHalProxy ( SharedFD  control_from_guest_fd,
SharedFD  control_to_guest_fd,
SharedFD  data_from_guest_fd,
SharedFD  data_to_guest_fd,
SharedFD  kernel_events_fd,
SensorsSimulator sensors_simulator,
DeviceType  device_type 
)

Member Function Documentation

◆ ReportToGuest()

void cuttlefish::sensors::SensorsHalProxy::ReportToGuest ( SensorsMask  mask)
private

Member Data Documentation

◆ control_channel_

transport::SharedFdChannel cuttlefish::sensors::SensorsHalProxy::control_channel_
private

◆ data_channel_

transport::SharedFdChannel cuttlefish::sensors::SensorsHalProxy::data_channel_
private

◆ data_reporter_thread_

std::thread cuttlefish::sensors::SensorsHalProxy::data_reporter_thread_
private

◆ hal_activated_

std::atomic<bool> cuttlefish::sensors::SensorsHalProxy::hal_activated_ = false
private

◆ kernel_events_fd_

SharedFD cuttlefish::sensors::SensorsHalProxy::kernel_events_fd_
private

◆ reboot_monitor_thread_

std::thread cuttlefish::sensors::SensorsHalProxy::reboot_monitor_thread_
private

◆ report_mtx_

std::mutex cuttlefish::sensors::SensorsHalProxy::report_mtx_
private

◆ req_responder_thread_

std::thread cuttlefish::sensors::SensorsHalProxy::req_responder_thread_
private

◆ running_

std::atomic<bool> cuttlefish::sensors::SensorsHalProxy::running_ = true
private

◆ sensors_simulator_

SensorsSimulator& cuttlefish::sensors::SensorsHalProxy::sensors_simulator_
private

The documentation for this class was generated from the following files: