Home
last modified time | relevance | path

Searched refs:sensorTypeId (Results 1 - 25 of 88) sorted by relevance

1234

/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_sensor_adapter_wrapper.cpp28 int32_t ArkSensorAdapterWrapper::IsOhosSensorSupported(int32_t sensorTypeId) in IsOhosSensorSupported() argument
30 return ctocpp_->IsOhosSensorSupported(sensorTypeId); in IsOhosSensorSupported()
33 int32_t ArkSensorAdapterWrapper::GetOhosSensorReportingMode(int32_t sensorTypeId) in GetOhosSensorReportingMode() argument
35 return ctocpp_->GetOhosSensorReportingMode(sensorTypeId); in GetOhosSensorReportingMode()
38 double ArkSensorAdapterWrapper::GetOhosSensorDefaultSupportedFrequency(int32_t sensorTypeId) in GetOhosSensorDefaultSupportedFrequency() argument
40 return ctocpp_->GetOhosSensorDefaultSupportedFrequency(sensorTypeId); in GetOhosSensorDefaultSupportedFrequency()
43 double ArkSensorAdapterWrapper::GetOhosSensorMinSupportedFrequency(int32_t sensorTypeId) in GetOhosSensorMinSupportedFrequency() argument
45 return ctocpp_->GetOhosSensorMinSupportedFrequency(sensorTypeId); in GetOhosSensorMinSupportedFrequency()
48 double ArkSensorAdapterWrapper::GetOhosSensorMaxSupportedFrequency(int32_t sensorTypeId) in GetOhosSensorMaxSupportedFrequency() argument
50 return ctocpp_->GetOhosSensorMaxSupportedFrequency(sensorTypeId); in GetOhosSensorMaxSupportedFrequency()
53 SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) SubscribeOhosSensor() argument
58 UnsubscribeOhosSensor(int32_t sensorTypeId) UnsubscribeOhosSensor() argument
63 RegistOhosSensorCallback(int32_t sensorTypeId, std::shared_ptr<NWeb::SensorCallbackAdapter> callbackAdapter) RegistOhosSensorCallback() argument
[all...]
H A Dark_sensor_adapter_wrapper.h29 int32_t IsOhosSensorSupported(int32_t sensorTypeId) override;
30 int32_t GetOhosSensorReportingMode(int32_t sensorTypeId) override;
31 double GetOhosSensorDefaultSupportedFrequency(int32_t sensorTypeId) override;
32 double GetOhosSensorMinSupportedFrequency(int32_t sensorTypeId) override;
33 double GetOhosSensorMaxSupportedFrequency(int32_t sensorTypeId) override;
34 int32_t SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) override;
35 int32_t RegistOhosSensorCallback(int32_t sensorTypeId,
37 int32_t UnsubscribeOhosSensor(int32_t sensorTypeId) override;
/base/msdp/device_status/test/unittest/libs/src/
H A Ddevice_status_datahub_test.cpp54 void SensorAccelCallbackData(int32_t sensorTypeId, AccelData* data) in SensorAccelCallbackData() argument
56 GTEST_LOG_(INFO) << sensorTypeId; in SensorAccelCallbackData()
69 int32_t sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; in HWTEST_F() local
70 bool ret = SENSOR_DATA_CB.SubscribeSensorEvent(sensorTypeId, callback); in HWTEST_F()
72 ret = SENSOR_DATA_CB.UnsubscribeSensorEvent(sensorTypeId, callback); in HWTEST_F()
84 int32_t sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; in HWTEST_F() local
85 bool ret = SENSOR_DATA_CB.RegisterCallbackSensor(sensorTypeId); in HWTEST_F()
91 ret = SENSOR_DATA_CB.PushData(sensorTypeId, reinterpret_cast<uint8_t*>(&data)); in HWTEST_F()
93 ret = SENSOR_DATA_CB.UnregisterCallbackSensor(sensorTypeId); in HWTEST_F()
141 int32_t sensorTypeId in HWTEST_F() local
158 int32_t sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; HWTEST_F() local
173 int32_t sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; HWTEST_F() local
188 int32_t sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; HWTEST_F() local
206 int32_t sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; HWTEST_F() local
224 int32_t sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; HWTEST_F() local
242 int32_t sensorTypeId = SENSOR_TYPE_ID_TEMPERATURE; HWTEST_F() local
287 int32_t sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; HWTEST_F() local
300 int32_t sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; HWTEST_F() local
321 int32_t sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; HWTEST_F() local
342 int32_t sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; HWTEST_F() local
363 int32_t sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; HWTEST_F() local
384 int32_t sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; HWTEST_F() local
405 int32_t sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; HWTEST_F() local
[all...]
/base/sensors/sensor_lite/frameworks/src/
H A Dsensor_agent.c28 int32_t ActivateSensor(int32_t sensorTypeId, SensorUser *user) in ActivateSensor() argument
33 return ActivateSensorByProxy(g_proxy, sensorTypeId, user); in ActivateSensor()
36 int32_t DeactivateSensor(int32_t sensorTypeId, SensorUser *user) in DeactivateSensor() argument
41 return DeactivateSensorByProxy(g_proxy, sensorTypeId, user); in DeactivateSensor()
44 int32_t SetBatch(int32_t sensorTypeId, SensorUser *user, int64_t samplingInterval, int64_t reportInterval) in SetBatch() argument
49 return SetBatchByProxy(g_proxy, sensorTypeId, user, samplingInterval, reportInterval); in SetBatch()
52 int32_t SubscribeSensor(int32_t sensorTypeId, SensorUser *user) in SubscribeSensor() argument
57 return SubscribeSensorByProxy(g_proxy, sensorTypeId, user); in SubscribeSensor()
60 int32_t UnsubscribeSensor(int32_t sensorTypeId, SensorUser *user) in UnsubscribeSensor() argument
65 return UnsubscribeSensorByProxy(g_proxy, sensorTypeId, use in UnsubscribeSensor()
68 SetMode(int32_t sensorTypeId, SensorUser *user, int32_t mode) SetMode() argument
76 SetOption(int32_t sensorTypeId, SensorUser *user, int32_t option) SetOption() argument
[all...]
/base/msdp/device_status/libs/src/datahub/
H A Dsensor_data_callback.cpp85 bool SensorDataCallback::SubscribeSensorEvent(int32_t sensorTypeId, SensorCallback callback) in SubscribeSensorEvent() argument
89 auto ret = algoMap_.insert(std::pair(sensorTypeId, callback)); in SubscribeSensorEvent()
97 bool SensorDataCallback::UnsubscribeSensorEvent(int32_t sensorTypeId, SensorCallback callback) in UnsubscribeSensorEvent() argument
101 auto callbackIter = algoMap_.find(sensorTypeId); in UnsubscribeSensorEvent()
103 FI_HILOGE("Erase sensorTypeId:%{public}d", sensorTypeId); in UnsubscribeSensorEvent()
109 bool SensorDataCallback::NotifyCallback(int32_t sensorTypeId, AccelData* data) in NotifyCallback() argument
114 (iter->second)(sensorTypeId, data); in NotifyCallback()
119 bool SensorDataCallback::PushData(int32_t sensorTypeId, uint8_t* data) in PushData() argument
133 FI_HILOGD("ACCEL pushData:x:%{public}f, y:%{public}f, z:%{public}f, PushData sensorTypeId in PushData()
140 PopData(int32_t sensorTypeId, AccelData& data) PopData() argument
167 RegisterCallbackSensor(int32_t sensorTypeId) RegisterCallbackSensor() argument
189 UnregisterCallbackSensor(int32_t sensorTypeId) UnregisterCallbackSensor() argument
[all...]
/base/sensors/sensor/test/fuzztest/interfaces/sensoragent_fuzzer/
H A Dsensoragent_fuzzer.cpp83 bool CheckSensorTypeId(int32_t sensorTypeId) in CheckSensorTypeId() argument
92 if ((sensorInfo + i)->sensorTypeId == sensorTypeId) { in CheckSensorTypeId()
103 int32_t sensorTypeId = 0; in SensorAgentFuzzTest() local
104 GetObject<int32_t>(sensorTypeId, data + startPos, size - startPos); in SensorAgentFuzzTest()
105 bool validSensorId = CheckSensorTypeId(sensorTypeId); in SensorAgentFuzzTest()
107 sensorTypeId = SENSOR_TYPE_ID_ACCELEROMETER; in SensorAgentFuzzTest()
111 SubscribeSensor(sensorTypeId, &user); in SensorAgentFuzzTest()
112 SetBatch(sensorTypeId, &user, g_samplingInterval, g_reportInterval); in SensorAgentFuzzTest()
113 ActivateSensor(sensorTypeId, in SensorAgentFuzzTest()
[all...]
/base/web/webview/ohos_interface/include/ohos_adapter/
H A Dsensor_adapter.h52 virtual int32_t IsOhosSensorSupported(int32_t sensorTypeId) = 0;
53 virtual int32_t GetOhosSensorReportingMode(int32_t sensorTypeId) = 0;
54 virtual double GetOhosSensorDefaultSupportedFrequency(int32_t sensorTypeId) = 0;
55 virtual double GetOhosSensorMinSupportedFrequency(int32_t sensorTypeId) = 0;
56 virtual double GetOhosSensorMaxSupportedFrequency(int32_t sensorTypeId) = 0;
57 virtual int32_t SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) = 0;
58 virtual int32_t RegistOhosSensorCallback(int32_t sensorTypeId,
60 virtual int32_t UnsubscribeOhosSensor(int32_t sensorTypeId) = 0;
/base/sensors/medical_sensor/interfaces/native/include/
H A Dmedical_native_impl.h63 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
70 int32_t SubscribeSensor(int32_t sensorTypeId, const MedicalSensorUser *user);
74 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
81 int32_t UnsubscribeSensor(int32_t sensorTypeId, const MedicalSensorUser *user);
85 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
94 int32_t SetBatch(int32_t sensorTypeId, const MedicalSensorUser *user, int64_t samplingInterval, int64_t reportInterval);
99 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
106 int32_t ActivateSensor(int32_t sensorTypeId, const MedicalSensorUser *user);
110 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
117 int32_t DeactivateSensor(int32_t sensorTypeId, cons
[all...]
/base/web/webview/test/fuzztest/ohos_adapter/sensoradapter_fuzzer/
H A Dsensoradapter_fuzz.cpp49 for (int32_t sensorTypeId : sensorTypes) { in SensorAdapterFuzzTest()
51 sensorAdapterImpl.IsOhosSensorSupported(sensorTypeId); in SensorAdapterFuzzTest()
52 sensorAdapterImpl.GetOhosSensorReportingMode(sensorTypeId); in SensorAdapterFuzzTest()
53 sensorAdapterImpl.GetOhosSensorDefaultSupportedFrequency(sensorTypeId); in SensorAdapterFuzzTest()
54 sensorAdapterImpl.GetOhosSensorMinSupportedFrequency(sensorTypeId); in SensorAdapterFuzzTest()
55 sensorAdapterImpl.GetOhosSensorMaxSupportedFrequency(sensorTypeId); in SensorAdapterFuzzTest()
56 sensorAdapterImpl.SubscribeOhosSensor(sensorTypeId, samplingInterval); in SensorAdapterFuzzTest()
58 sensorAdapterImpl.RegistOhosSensorCallback(sensorTypeId, callbackAdapter); in SensorAdapterFuzzTest()
60 event.sensorTypeId = sensorTypeId; in SensorAdapterFuzzTest()
[all...]
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_sensor_adapter_impl.h29 int32_t IsOhosSensorSupported(int32_t sensorTypeId) override;
33 double GetOhosSensorDefaultSupportedFrequency(int32_t sensorTypeId) override;
35 double GetOhosSensorMinSupportedFrequency(int32_t sensorTypeId) override;
37 double GetOhosSensorMaxSupportedFrequency(int32_t sensorTypeId) override;
39 int32_t SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) override;
41 int32_t RegistOhosSensorCallback(int32_t sensorTypeId,
44 int32_t UnsubscribeOhosSensor(int32_t sensorTypeId) override;
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/
H A Dark_sensor_adapter.h37 virtual int32_t IsOhosSensorSupported(int32_t sensorTypeId) = 0;
43 virtual double GetOhosSensorDefaultSupportedFrequency(int32_t sensorTypeId) = 0;
46 virtual double GetOhosSensorMinSupportedFrequency(int32_t sensorTypeId) = 0;
49 virtual double GetOhosSensorMaxSupportedFrequency(int32_t sensorTypeId) = 0;
52 virtual int32_t SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) = 0;
55 virtual int32_t RegistOhosSensorCallback(int32_t sensorTypeId,
59 virtual int32_t UnsubscribeOhosSensor(int32_t sensorTypeId) = 0;
/base/sensors/medical_sensor/interfaces/plugin/src/
H A Dmedical_js.cpp49 int32_t sensorTypeId = event->sensorTypeId; in DataCallbackImpl() local
54 if (g_onCallbackInfos.find(sensorTypeId) == g_onCallbackInfos.end()) { in DataCallbackImpl()
58 AsyncCallbackInfo *onCallbackInfo = g_onCallbackInfos[sensorTypeId]; in DataCallbackImpl()
59 onCallbackInfo->sensorTypeId = sensorTypeId; in DataCallbackImpl()
74 static int32_t UnsubscribeSensor(int32_t sensorTypeId) in UnsubscribeSensor() argument
77 int32_t ret = DeactivateSensor(sensorTypeId, &user); in UnsubscribeSensor()
82 ret = UnsubscribeSensor(sensorTypeId, &user); in UnsubscribeSensor()
91 static int32_t SubscribeSensor(int32_t sensorTypeId, int64_ argument
126 int32_t sensorTypeId = GetCppInt32(args[0], env); On() local
173 int32_t sensorTypeId = GetCppInt32(args[0], env); Off() local
224 int32_t sensorTypeId = GetCppInt32(args[0], env); SetOpt() local
[all...]
/base/sensors/sensor_lite/interfaces/kits/native/include/
H A Dsensor_agent.h64 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
71 int32_t SubscribeSensor(int32_t sensorTypeId, SensorUser *user);
76 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
83 int32_t UnsubscribeSensor(int32_t sensorTypeId, SensorUser *user);
88 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
97 int32_t SetBatch(int32_t sensorTypeId, SensorUser *user, int64_t samplingInterval, int64_t reportInterval);
103 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
110 int32_t ActivateSensor(int32_t sensorTypeId, SensorUser *user);
115 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
122 int32_t DeactivateSensor(int32_t sensorTypeId, SensorUse
[all...]
/base/msdp/device_status/libs/include/datahub/
H A Dsensor_data_callback.h39 bool RegisterCallbackSensor(int32_t sensorTypeId);
40 bool UnregisterCallbackSensor(int32_t sensorTypeId);
43 bool SubscribeSensorEvent(int32_t sensorTypeId, SensorCallback callback);
44 bool UnsubscribeSensorEvent(int32_t sensorTypeId, SensorCallback callback);
45 bool PushData(int32_t sensorTypeId, uint8_t* data);
48 bool PopData(int32_t sensorTypeId, AccelData& data);
51 bool NotifyCallback(int32_t sensorTypeId, AccelData* data);
/base/sensors/medical_sensor/interfaces/native/test/unittest/
H A Dmedical_native_test.cpp59 HiLog::Info(LABEL, "AfeDataCallbackImpl sensorTypeId: %{public}d, dataLen: %{public}d, data[0]: %{public}d\n", in AfeDataCallbackImpl()
60 event[0].sensorTypeId, event[0].dataLen, *(sensorData)); in AfeDataCallbackImpl()
73 int32_t sensorTypeId = 0; in HWTEST_F() local
78 int32_t ret = SubscribeSensor(sensorTypeId, &user); in HWTEST_F()
81 ret = SetBatch(sensorTypeId, &user, 100000000, 100000000); in HWTEST_F()
84 ret = ActivateSensor(sensorTypeId, &user); in HWTEST_F()
90 ret = DeactivateSensor(sensorTypeId, &user); in HWTEST_F()
93 ret = UnsubscribeSensor(sensorTypeId, &user); in HWTEST_F()
/base/sensors/sensor/interfaces/inner_api/
H A Dsensor_agent.h63 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
70 int32_t SubscribeSensor(int32_t sensorTypeId, const SensorUser *user);
74 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
81 int32_t UnsubscribeSensor(int32_t sensorTypeId, const SensorUser *user);
85 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
94 int32_t SetBatch(int32_t sensorTypeId, const SensorUser *user, int64_t samplingInterval, int64_t reportInterval);
99 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
106 int32_t ActivateSensor(int32_t sensorTypeId, const SensorUser *user);
110 * @param sensorTypeId Indicates the ID of a sensor type. For details, see {@link SensorTypeId}.
117 int32_t DeactivateSensor(int32_t sensorTypeId, cons
[all...]
/base/web/webview/ohos_adapter/sensor_adapter/src/
H A Dsensor_adapter_impl.cpp31 SensorTypeId SensorTypeToOhosSensorType(int sensorTypeId) in SensorTypeToOhosSensorType() argument
44 auto checkIter = TO_OHOS_SENSOR_TYPE_MAP.find(sensorTypeId); in SensorTypeToOhosSensorType()
51 std::string SensorTypeToSensorUserName(int sensorTypeId) in SensorTypeToSensorUserName() argument
64 auto checkIter = TO_OHOS_SENSOR_USER_NAME_MAP.find(sensorTypeId); in SensorTypeToSensorUserName()
84 int32_t SensorAdapterImpl::IsOhosSensorSupported(int32_t sensorTypeId) in IsOhosSensorSupported() argument
86 int32_t ohosSensorTypeId = SensorTypeToOhosSensorType(sensorTypeId); in IsOhosSensorSupported()
98 WVLOG_I("IsOhosSensorSupported SUCCESS, sensorTypeId = %{public}d.", sensorTypeId); in IsOhosSensorSupported()
103 WVLOG_E("IsOhosSensorSupported Error, sensorTypeId = %{public}d is invalid.", sensorTypeId); in IsOhosSensorSupported()
107 GetOhosSensorReportingMode(int32_t sensorTypeId) GetOhosSensorReportingMode() argument
128 GetOhosSensorDefaultSupportedFrequency(int32_t sensorTypeId) GetOhosSensorDefaultSupportedFrequency() argument
140 GetOhosSensorMinSupportedFrequency(int32_t sensorTypeId) GetOhosSensorMinSupportedFrequency() argument
169 GetOhosSensorMaxSupportedFrequency(int32_t sensorTypeId) GetOhosSensorMaxSupportedFrequency() argument
350 SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) SubscribeOhosSensor() argument
391 RegistOhosSensorCallback(int32_t sensorTypeId, std::shared_ptr<SensorCallbackAdapter> callbackAdapter) RegistOhosSensorCallback() argument
405 UnsubscribeOhosSensor(int32_t sensorTypeId) UnsubscribeOhosSensor() argument
[all...]
/base/sensors/sensor/frameworks/js/napi/include/
H A Dsensor_js.h26 int32_t UnsubscribeSensor(int32_t sensorTypeId);
28 int32_t SubscribeSensor(int32_t sensorTypeId, int64_t interval, RecordSensorCallback callback);
29 napi_value Subscribe(napi_env env, napi_callback_info info, int32_t sensorTypeId, CallbackDataType type);
30 napi_value Unsubscribe(napi_env env, napi_callback_info info, int32_t sensorTypeId);
/base/sensors/sensor/frameworks/js/napi/src/
H A Dsensor_js.cpp60 static bool CheckSubscribe(int32_t sensorTypeId) in CheckSubscribe() argument
63 auto iter = g_onCallbackInfos.find(sensorTypeId); in CheckSubscribe()
71 int32_t sensorTypeId = event->sensorTypeId; in copySensorData() local
72 callbackInfo->data.sensorData.sensorTypeId = sensorTypeId; in copySensorData()
82 if (sensorTypeId == SENSOR_TYPE_ID_WEAR_DETECTION && callbackInfo->type == SUBSCRIBE_CALLBACK) { in copySensorData()
97 static bool CheckSystemSubscribe(int32_t sensorTypeId) in CheckSystemSubscribe() argument
100 auto iter = g_subscribeCallbacks.find(sensorTypeId); in CheckSystemSubscribe()
110 int32_t sensorTypeId in EmitSubscribeCallback() local
128 int32_t sensorTypeId = event->sensorTypeId; EmitOnCallback() local
146 int32_t sensorTypeId = event->sensorTypeId; EmitOnceCallback() local
182 UnsubscribeSensor(int32_t sensorTypeId) UnsubscribeSensor() argument
193 SubscribeSensor(int32_t sensorTypeId, int64_t interval, RecordSensorCallback callback) SubscribeSensor() argument
209 IsOnceSubscribed(napi_env env, int32_t sensorTypeId, napi_value callback) IsOnceSubscribed() argument
232 UpdateOnceCallback(napi_env env, int32_t sensorTypeId, napi_value callback) UpdateOnceCallback() argument
264 int32_t sensorTypeId = INVALID_SENSOR_ID; Once() local
281 IsSubscribed(napi_env env, int32_t sensorTypeId, napi_value callback) IsSubscribed() argument
304 UpdateCallbackInfos(napi_env env, int32_t sensorTypeId, napi_value callback) UpdateCallbackInfos() argument
364 int32_t sensorTypeId = INVALID_SENSOR_ID; On() local
385 RemoveAllCallback(napi_env env, int32_t sensorTypeId) RemoveAllCallback() argument
407 RemoveCallback(napi_env env, int32_t sensorTypeId, napi_value callback) RemoveCallback() argument
450 int32_t sensorTypeId = INVALID_SENSOR_ID; Off() local
1048 int32_t sensorTypeId = INVALID_SENSOR_ID; GetSingleSensor() local
1103 int32_t sensorTypeId = INVALID_SENSOR_ID; GetSingleSensorSync() local
1137 Subscribe(napi_env env, napi_callback_info info, int32_t sensorTypeId, CallbackDataType type) Subscribe() argument
1189 RemoveSubscribeCallback(napi_env env, int32_t sensorTypeId) RemoveSubscribeCallback() argument
1209 Unsubscribe(napi_env env, napi_callback_info info, int32_t sensorTypeId) Unsubscribe() argument
[all...]
/base/msdp/device_status/libs/src/algorithm/
H A Dalgo_base.cpp28 void AlgoBase::Unsubscribe(int32_t sensorTypeId) in Unsubscribe() argument
32 SENSOR_DATA_CB.UnsubscribeSensorEvent(sensorTypeId, algoCallback_); in Unsubscribe()
35 bool AlgoBase::SetData(int32_t sensorTypeId, AccelData* sensorData) in SetData() argument
38 if (sensorTypeId != SENSOR_TYPE_ID_ACCELEROMETER) { in SetData()
39 FI_HILOGE("sensorTypeId:%{public}d", sensorTypeId); in SetData()
H A Dalgo_horizontal.cpp31 algoCallback_ = [this](int32_t sensorTypeId, AccelData* sensorData) { in Init()
32 return this->StartAlgorithm(sensorTypeId, sensorData); in Init()
39 bool AlgoHorizontal::StartAlgorithm(int32_t sensorTypeId, AccelData* sensorData) in StartAlgorithm() argument
42 if (!SetData(sensorTypeId, sensorData)) { in StartAlgorithm()
H A Dalgo_vertical.cpp34 algoCallback_ = [this](int32_t sensorTypeId, AccelData* sensorData) { in Init()
35 return this->StartAlgorithm(sensorTypeId, sensorData); in Init()
42 bool AlgoVertical::StartAlgorithm(int32_t sensorTypeId, AccelData* sensorData) in StartAlgorithm() argument
45 if (!SetData(sensorTypeId, sensorData)) { in StartAlgorithm()
H A Dalgo_absolute_still.cpp31 algoCallback_ = [this](int32_t sensorTypeId, AccelData* sensorData) { in Init()
32 return this->StartAlgorithm(sensorTypeId, sensorData); in Init()
42 bool AlgoAbsoluteStill::StartAlgorithm(int32_t sensorTypeId, AccelData* sensorData) in StartAlgorithm() argument
45 if (!SetData(sensorTypeId, sensorData)) { in StartAlgorithm()
/base/web/webview/ohos_adapter/sensor_adapter/include/
H A Dsensor_adapter_impl.h42 int32_t IsOhosSensorSupported(int32_t sensorTypeId) override;
43 int32_t GetOhosSensorReportingMode(int32_t sensorTypeId) override;
44 double GetOhosSensorDefaultSupportedFrequency(int32_t sensorTypeId) override;
45 double GetOhosSensorMinSupportedFrequency(int32_t sensorTypeId) override;
46 double GetOhosSensorMaxSupportedFrequency(int32_t sensorTypeId) override;
47 int32_t SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) override;
48 int32_t RegistOhosSensorCallback(int32_t sensorTypeId,
50 int32_t UnsubscribeOhosSensor(int32_t sensorTypeId) override;
/base/sensors/medical_sensor/services/medical_sensor/src/
H A Dmedical_data_processer.cpp68 uint32_t sensorId = event.sensorTypeId; in SendNoneFifoCacheData()
70 sensorId = event.sensorTypeId; in SendNoneFifoCacheData()
117 uint32_t sensorId = event.sensorTypeId; in SendFifoCacheData()
119 sensorId = event.sensorTypeId; in SendFifoCacheData()
178 uint32_t sensorId = event.sensorTypeId; in ReportData()
180 sensorId = event.sensorTypeId; in ReportData()
201 uint32_t sensorId = event.sensorTypeId; in ReportNotContinuousData()
203 sensorId = event.sensorTypeId; in ReportNotContinuousData()
234 if (!CheckSendDataPermission(channel, event[0].sensorTypeId)) { in SendRawData()
243 .sensorTypeId in SendRawData()
[all...]

Completed in 9 milliseconds

1234