Home
last modified time | relevance | path

Searched refs:sensorType (Results 1 - 11 of 11) sorted by relevance

/base/sensors/sensor/frameworks/native/src/
H A Dnative_sensor.cpp139 int32_t OH_SensorInfo_GetType(Sensor_Info* sensor, Sensor_Type *sensorType) in OH_SensorInfo_GetType() argument
141 if (sensor == nullptr || sensorType == nullptr) { in OH_SensorInfo_GetType()
145 *sensorType = static_cast<Sensor_Type>(sensor->sensorTypeId); in OH_SensorInfo_GetType()
187 int32_t sensorType = id->sensorType; in OH_Sensor_Subscribe() local
188 int32_t ret = SubscribeSensor(sensorType, sensorUser); in OH_Sensor_Subscribe()
194 ret = SetBatch(sensorType, sensorUser, samplingInterval, samplingInterval); in OH_Sensor_Subscribe()
199 return static_cast<Sensor_Result>(ActivateSensor(sensorType, sensorUser)); in OH_Sensor_Subscribe()
210 int32_t sensorType = id->sensorType; in OH_Sensor_Unsubscribe() local
219 OH_SensorEvent_GetType(Sensor_Event* sensorEvent, Sensor_Type *sensorType) OH_SensorEvent_GetType() argument
260 OH_SensorSubscriptionId_GetType(Sensor_SubscriptionId* id, Sensor_Type *sensorType) OH_SensorSubscriptionId_GetType() argument
270 OH_SensorSubscriptionId_SetType(Sensor_SubscriptionId* id, const Sensor_Type sensorType) OH_SensorSubscriptionId_SetType() argument
[all...]
/base/msdp/device_status/libs/src/
H A Ddevicestatus_algorithm_manager.cpp40 int32_t sensorType = GetSensorTypeId(type); in StartSensor() local
41 if (sensorType == RET_ERR) { in StartSensor()
42 FI_HILOGE("Failed to get sensorType"); in StartSensor()
45 if (!CheckSensorTypeId(sensorType)) { in StartSensor()
51 if (!SENSOR_DATA_CB.RegisterCallbackSensor(sensorType)) { in StartSensor()
239 int32_t sensorType = GetSensorTypeId(type); in UnregisterSensor() local
240 if (sensorType == RET_ERR) { in UnregisterSensor()
241 FI_HILOGE("Failed to get sensorType"); in UnregisterSensor()
244 if (!SENSOR_DATA_CB.UnregisterCallbackSensor(sensorType)) { in UnregisterSensor()
/base/sensors/sensor/interfaces/kits/c/
H A Doh_sensor_type.h241 * @param sensorType - Pointer to the sensor type.
246 int32_t OH_SensorInfo_GetType(Sensor_Info* sensor, Sensor_Type *sensorType);
291 * @param sensorType - Pointer to the sensor type.
296 int32_t OH_SensorEvent_GetType(Sensor_Event* sensorEvent, Sensor_Type *sensorType);
391 * @param sensorType - Pointer to the sensor type.
396 int32_t OH_SensorSubscriptionId_GetType(Sensor_SubscriptionId* id, Sensor_Type *sensorType);
402 * @param sensorType - Sensor type to set.
407 int32_t OH_SensorSubscriptionId_SetType(Sensor_SubscriptionId* id, const Sensor_Type sensorType);
/base/powermgr/thermal_manager/services/native/src/thermal_observer/
H A Dthermal_observer.cpp53 std::vector<std::string> sensorType(TYPE_MAX_SIZE); in InitSensorTypeMap()
58 THERMAL_HILOGD(COMP_SVC, "sensorType size = %{public}zu", typeList.size()); in InitSensorTypeMap()
67 THERMAL_HILOGI(COMP_SVC, "InitSensorTypeMap id=%{public}u sensorType=%{public}s", i, typeList[i].c_str()); in InitSensorTypeMap()
68 sensorType[i] = typeList[i]; in InitSensorTypeMap()
72 typeMap_.insert(std::make_pair(SensorType::SOC, sensorType[ARG_0])); in InitSensorTypeMap()
73 typeMap_.insert(std::make_pair(SensorType::BATTERY, sensorType[ARG_1])); in InitSensorTypeMap()
74 typeMap_.insert(std::make_pair(SensorType::SHELL, sensorType[ARG_2])); in InitSensorTypeMap()
75 typeMap_.insert(std::make_pair(SensorType::SENSOR1, sensorType[ARG_3])); in InitSensorTypeMap()
76 typeMap_.insert(std::make_pair(SensorType::SENSOR2, sensorType[ARG_4])); in InitSensorTypeMap()
77 typeMap_.insert(std::make_pair(SensorType::SENSOR3, sensorType[ARG_ in InitSensorTypeMap()
[all...]
/base/sensors/sensor/test/unittest/interfaces/kits/
H A Dsensor_native_test.cpp66 Sensor_Type sensorType; in SetUpTestCase() local
67 ret = OH_SensorInfo_GetType(sensors[i], &sensorType); in SetUpTestCase()
69 if (sensorType == SENSOR_TYPE_AMBIENT_LIGHT) { in SetUpTestCase()
98 Sensor_Type sensorType; in SensorDataCallbackImpl() local
99 ret = OH_SensorEvent_GetType(event, &sensorType); in SensorDataCallbackImpl()
108 SEN_HILOGI("sensorType:%{public}d, dataLen:%{public}d, accuracy:%{public}d", sensorType, length, accuracy); in SensorDataCallbackImpl()
123 Sensor_Type *sensorType = nullptr; in SensorDataCallbackImpl1() local
124 ret = OH_SensorEvent_GetType(event, sensorType); in SensorDataCallbackImpl1()
154 Sensor_Type sensorType; in HWTEST_F() local
329 Sensor_Type *sensorType = nullptr; HWTEST_F() local
[all...]
/base/sensors/sensor/frameworks/native/include/
H A Dnative_sensor_impl.h42 int32_t sensorType = -1; member
/base/sensors/medical_sensor/utils/include/
H A Dmedical_catalog.h86 uint8_t sensorType; member
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
H A Dthermal_srv_config_parser.cpp272 std::string sensorType = auxsensors[i]; in ParseAuxSensorInfo() local
273 if (sensorType.empty()) { in ParseAuxSensorInfo()
277 THERMAL_HILOGD(COMP_SVC, "parse aux sensor [%{public}s] item:", sensorType.c_str()); in ParseAuxSensorInfo()
279 THERMAL_HILOGE(COMP_SVC, "parse aux sensor [%{public}s] sub node failed", sensorType.c_str()); in ParseAuxSensorInfo()
283 THERMAL_HILOGE(COMP_SVC, "aux sensor [%{public}s] level info is empty", sensorType.c_str()); in ParseAuxSensorInfo()
286 auxSensorLevelInfo.emplace(sensorType, auxLevelItems); in ParseAuxSensorInfo()
373 std::string sensorType = sensors.at(i); in ParseSensorInfo() local
376 THERMAL_HILOGE(COMP_SVC, "parse sensor [%{public}s] level failed", sensorType.c_str()); in ParseSensorInfo()
380 THERMAL_HILOGE(COMP_SVC, "sensor [%{public}s] level info is empty", sensorType.c_str()); in ParseSensorInfo()
383 sensorLevelInfo.emplace(std::pair(sensorType, levelItem in ParseSensorInfo()
[all...]
/base/powermgr/thermal_manager/test/unittest/src/
H A Dthermal_mock_proxy_remote_test.cpp64 SensorType sensorType = SensorType::SOC; in HWTEST_F() local
65 EXPECT_TRUE(thermalMgrClient.GetThermalSensorTemp(sensorType) == 0); in HWTEST_F()
H A Dthermal_mock_proxy_writeremoteobject_test.cpp62 SensorType sensorType = SensorType::SOC; in HWTEST_F() local
63 EXPECT_TRUE(thermalMgrClient.GetThermalSensorTemp(sensorType) == 0); in HWTEST_F()
H A Dthermal_config_file_parser.cpp341 std::string sensorType = auxSensorList[i]; in ParseAuxSensorInfo() local
345 THERMAL_HILOGD(LABEL_TEST, "aux_sensor item: %{public}s", sensorType.c_str()); in ParseAuxSensorInfo()
346 auxSensorLevelInfo.emplace(sensorType, ParseAuxSensorSubnodeInfo(cur, auxSensorList, i)); in ParseAuxSensorInfo()
363 std::string sensorType = sensors.at(i); in ParseSensorInfo() local
366 sensorLevelInfo.emplace(std::pair(sensorType, vItem)); in ParseSensorInfo()

Completed in 7 milliseconds