Home
last modified time | relevance | path

Searched refs:SensorType (Results 1 – 22 of 22) sorted by relevance

/base/powermgr/thermal_manager/services/native/src/thermal_observer/
Dthermal_observer.cpp77 typeMap_.insert(std::make_pair(SensorType::SOC, sensorType[ARG_0])); in InitSensorTypeMap()
78 typeMap_.insert(std::make_pair(SensorType::BATTERY, sensorType[ARG_1])); in InitSensorTypeMap()
79 typeMap_.insert(std::make_pair(SensorType::SHELL, sensorType[ARG_2])); in InitSensorTypeMap()
80 typeMap_.insert(std::make_pair(SensorType::SENSOR1, sensorType[ARG_3])); in InitSensorTypeMap()
81 typeMap_.insert(std::make_pair(SensorType::SENSOR2, sensorType[ARG_4])); in InitSensorTypeMap()
82 typeMap_.insert(std::make_pair(SensorType::SENSOR3, sensorType[ARG_5])); in InitSensorTypeMap()
83 typeMap_.insert(std::make_pair(SensorType::SENSOR4, sensorType[ARG_6])); in InitSensorTypeMap()
84 typeMap_.insert(std::make_pair(SensorType::SENSOR5, sensorType[ARG_7])); in InitSensorTypeMap()
85 typeMap_.insert(std::make_pair(SensorType::SENSOR6, sensorType[ARG_8])); in InitSensorTypeMap()
86 typeMap_.insert(std::make_pair(SensorType::SENSOR7, sensorType[ARG_9])); in InitSensorTypeMap()
[all …]
/base/powermgr/thermal_manager/services/native/include/thermal_observer/
Dthermal_observer.h58 bool GetThermalSrvSensorInfo(const SensorType& type, ThermalSrvSensorInfo& sensorInfo);
65 int32_t GetTemp(const SensorType& type);
66 std::map<SensorType, std::string> GetSensorType() in GetSensorType()
112 std::map<SensorType, std::string> typeMap_;
/base/powermgr/thermal_manager/test/unittest/src/
Dthermal_mock_proxy_remote_test.cpp64 SensorType sensorType = SensorType::SOC;
103 SensorType type = SensorType::SOC;
Dthermal_mock_proxy_writeinterfacetoken_test.cpp60 SensorType type = SensorType::SOC;
Dthermal_mock_proxy_writeremoteobject_test.cpp62 SensorType sensorType = SensorType::SOC;
Dthermal_observer_test.cpp129 SensorType type = SensorType::SOC;
Dthermal_mock_stub_test.cpp218 THERMAL_WRITE_PARCEL_NO_RET(g_data, Uint32, static_cast<uint32_t>(SensorType::BATTERY));
Dthermal_mgr_policy_test.cpp1617 int32_t out = thermalMgrClient.GetThermalSensorTemp(SensorType::BATTERY);
/base/sensors/medical_sensor/
DREADME_ZH.md57 | `on(type: SensorType, callback: Callback<Response>, options?: Options)` | 监听传感器数据变化。`SensorType`为…
58 | `off(type: SensorType, callback?: Callback<Response>)` | 取消订阅传感器数据。参数与`on`前两个参数一样。 |
/base/sensors/sensor/
DREADME_zh.md123 …"><a name="p18666622171316"></a><a name="p18666622171316"></a>on(type: SensorType, callback: Callb…
125 …7"><a name="p1476355071517"></a><a name="p1476355071517"></a>监听传感器数据变化。SensorType为支持订阅的传感器类型,callb…
128 …"><a name="p1490010315564"></a><a name="p1490010315564"></a>once(type: SensorType, callback: Callb…
130 …><a name="p5900163115564"></a><a name="p5900163115564"></a>监听传感器数据变化一次。SensorType为支持订阅的传感器类型,callb…
133 …><a name="p16909135319564"></a><a name="p16909135319564"></a>off(type: SensorType, callback: Callb…
135 …3"><a name="p3909165315613"></a><a name="p3909165315613"></a>取消订阅传感器数据。SensorType为支持的取消订阅的传感器类型,ca…
158 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, (data) => {
162 sensor.off(sensor.SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION);
164 sensor.once(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, (data) => {
DREADME.md123 …"><a name="p18666622171316"></a><a name="p18666622171316"></a>on(type: SensorType, callback: Callb…
125 …115423516"><a name="b14384115423516"></a><a name="b14384115423516"></a>SensorType</strong> indicat…
128 …"><a name="p1490010315564"></a><a name="p1490010315564"></a>once(type: SensorType, callback: Callb…
130 …115653114"><a name="b16369115653114"></a><a name="b16369115653114"></a>SensorType</strong> indicat…
133 …><a name="p16909135319564"></a><a name="p16909135319564"></a>off(type: SensorType, callback: Callb…
135 …753103316"><a name="b63331753103316"></a><a name="b63331753103316"></a>SensorType</strong> indicat…
158 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, (data) => {
162 sensor.off(sensor.SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION);
164 sensor.once(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, (data) => {
/base/powermgr/thermal_manager/interfaces/inner_api/native/include/
Dthermal_mgr_client.h40 int32_t GetThermalSensorTemp(const SensorType type);
60 bool GetThermalSrvSensorInfo(const SensorType& type, ThermalSrvSensorInfo& sensorInfo);
Dthermal_srv_sensor_info.h78 enum class SensorType : uint32_t { enum
Dithermal_srv.h38 …virtual bool GetThermalSrvSensorInfo(const SensorType& type, ThermalSrvSensorInfo& sensorInfo) = 0;
/base/powermgr/thermal_manager/services/zidl/include/
Dthermal_srv_proxy.h50 …virtual bool GetThermalSrvSensorInfo(const SensorType& type, ThermalSrvSensorInfo& sensorInfo) ove…
/base/powermgr/thermal_manager/frameworks/native/
Dthermal_mgr_client.cpp146 bool ThermalMgrClient::GetThermalSrvSensorInfo(const SensorType& type, ThermalSrvSensorInfo& sensor… in GetThermalSrvSensorInfo()
156 int32_t ThermalMgrClient::GetThermalSensorTemp(const SensorType type) in GetThermalSensorTemp()
/base/powermgr/thermal_manager/test/fuzztest/thermal_fuzzer/
Dthermal_fuzzer_test.cpp147 SensorType sensorType = static_cast<SensorType>(code); in TestGetSensorTemp()
/base/powermgr/thermal_manager/test/systemtest/src/
Dthermal_mgr_interface_test.cpp173 int32_t out = thermalMgrClient.GetThermalSensorTemp(SensorType::BATTERY);
194 int32_t out = thermalMgrClient.GetThermalSensorTemp(SensorType::SOC);
215 int32_t out = thermalMgrClient.GetThermalSensorTemp(SensorType::SHELL);
236 int32_t out = thermalMgrClient.GetThermalSensorTemp(SensorType::SENSOR1);
257 int32_t out = thermalMgrClient.GetThermalSensorTemp(SensorType::SENSOR2);
675 int32_t out = thermalMgrClient.GetThermalSensorTemp(SensorType::BATTERY);
/base/powermgr/thermal_manager/services/native/include/
Dthermal_service.h67 bool GetThermalSrvSensorInfo(const SensorType& type, ThermalSrvSensorInfo& sensorInfo) override;
/base/powermgr/thermal_manager/services/zidl/src/
Dthermal_srv_stub.cpp185 bool ret = GetThermalSrvSensorInfo(static_cast<SensorType>(type), sensorInfo); in GetThermalSrvSensorInfoStub()
Dthermal_srv_proxy.cpp195 bool ThermalSrvProxy::GetThermalSrvSensorInfo(const SensorType& type, ThermalSrvSensorInfo& sensorI… in GetThermalSrvSensorInfo()
/base/powermgr/thermal_manager/services/native/src/
Dthermal_service.cpp331 bool ThermalService::GetThermalSrvSensorInfo(const SensorType& type, ThermalSrvSensorInfo& sensorIn… in GetThermalSrvSensorInfo()