Android-cuttlefish cvd tool
Namespaces | Functions | Variables
sensors_hal_proxy.cpp File Reference
#include "cuttlefish/host/commands/sensors_simulator/sensors_hal_proxy.h"
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <atomic>
#include <chrono>
#include <mutex>
#include <optional>
#include <sstream>
#include <string>
#include <thread>
#include <utility>
#include <vector>
#include "absl/log/check.h"
#include "absl/log/log.h"
#include "cuttlefish/common/libs/fs/shared_fd.h"
#include "cuttlefish/common/libs/sensors/sensors.h"
#include "cuttlefish/common/libs/transport/channel.h"
#include "cuttlefish/common/libs/utils/device_type.h"
#include "cuttlefish/host/commands/kernel_log_monitor/kernel_log_server.h"
#include "cuttlefish/host/commands/kernel_log_monitor/utils.h"
#include "cuttlefish/host/commands/sensors_simulator/sensors_simulator.h"
#include "cuttlefish/result/expect.h"
#include "cuttlefish/result/result_type.h"
Include dependency graph for sensors_hal_proxy.cpp:

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::sensors
 
namespace  cuttlefish::sensors::anonymous_namespace{sensors_hal_proxy.cpp}
 

Functions

Result< std::string > cuttlefish::sensors::anonymous_namespace{sensors_hal_proxy.cpp}::SensorIdToName (int id)
 
Result< void > cuttlefish::sensors::anonymous_namespace{sensors_hal_proxy.cpp}::SendResponseHelper (transport::Channel &channel, const std::string &msg)
 
Result< void > cuttlefish::sensors::anonymous_namespace{sensors_hal_proxy.cpp}::ProcessHalRequest (transport::Channel &channel, std::atomic< bool > &hal_activated, uint32_t mask)
 
Result< void > cuttlefish::sensors::anonymous_namespace{sensors_hal_proxy.cpp}::UpdateSensorsHal (const std::string &sensors_data, transport::Channel &channel, uint32_t mask)
 
SensorsMask cuttlefish::sensors::anonymous_namespace{sensors_hal_proxy.cpp}::HostEnabledSensors (DeviceType device_type)
 

Variables

static constexpr char cuttlefish::sensors::anonymous_namespace{sensors_hal_proxy.cpp}::END_OF_MSG = '\n'
 
static constexpr uint32_t cuttlefish::sensors::anonymous_namespace{sensors_hal_proxy.cpp}::kIntervalMs = 1000
 
static constexpr SensorsMask cuttlefish::sensors::anonymous_namespace{sensors_hal_proxy.cpp}::kContinuousModeSensors
 
static constexpr SensorsMask cuttlefish::sensors::anonymous_namespace{sensors_hal_proxy.cpp}::kOnChangeSensors = (1 << kHingeAngle0Id)