class SensorManager
Defined at line 2239 of file fidling/gen/sdk/fidl/fuchsia.thermal/fuchsia.thermal/hlcpp/fuchsia/thermal/cpp/fidl.h
Interface that manages interactions and the working state of thermal sensors.
Public Members
static const char[] Name_
Public Methods
void ~SensorManager ()
void ListSensors (ListSensorsCallback callback)
Lists sensors that may be controlled and connected to by clients.
void SetTemperatureOverride (::std::string name, float override_temperature, SetTemperatureOverrideCallback callback)
Sets an override temperature for the sensor with `name`.
When an override temperature is set, internal thermal policies will
use the override temperature. Temperature values retrieved from
sensor connections vended by `Connect` will also receive the override
temperature.
This interaction does not affect the thermal sensor itself.
Clients who connect directly to the sensor without `Connect` will
receive the real sensor value.
If a sensor with the given `name` is not found,
`SetTemperatureOverrideError.SENSOR_NOT_FOUND` is returned.
void ClearTemperatureOverride (::std::string name, ClearTemperatureOverrideCallback callback)
Clears the temperature override set by `SetTemperatureOverride`.
If no temperature override has been set, this interaction does nothing.
If a sensor with the given `name` is not found,
`ClearTemperatureOverrideError.SENSOR_NOT_FOUND` is returned.
void Connect (::fuchsia::thermal::SensorManagerConnectRequest SensorManagerConnectRequest, ConnectCallback callback)
Connects to the thermal sensor with the given `name`.
If any required arguments are not provided,
`ConnectError.INVALID_ARGUMENTS` is returned.
If a sensor with the given `name` is not found,
`ConnectError.SENSOR_NOT_FOUND` is returned.
Protected Methods
void handle_unknown_method (uint64_t ordinal, bool method_has_response)
Friends
class SensorManager_Stub