Home
last modified time | relevance | path

Searched refs:maxReportDelayNs (Results 1 – 25 of 36) sorted by relevance

12

/ohos5.0/base/sensors/medical_sensor/services/medical_sensor/test/unittest/phone/
H A Dmedical_proxy_test.cpp121 int64_t maxReportDelayNs = 0L; variable
127 maxReportDelayNs = 0L;
128 ret = afeProxy_->EnableSensor(afeId_, samplingPeriodNs, maxReportDelayNs);
132 maxReportDelayNs = 0L;
133 ret = afeProxy_->EnableSensor(afeId_, samplingPeriodNs, maxReportDelayNs);
136 maxReportDelayNs = 0L;
137 ret = afeProxy_->EnableSensor(afeId_, samplingPeriodNs, maxReportDelayNs);
141 maxReportDelayNs = 0L;
142 ret = afeProxy_->EnableSensor(afeId_, samplingPeriodNs, maxReportDelayNs);
156 const int64_t maxReportDelayNs = 0; variable
[all …]
/ohos5.0/base/sensors/sensor/utils/common/src/
H A Dactive_info.cpp27 …Info::ActiveInfo(int32_t pid, int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) in ActiveInfo() argument
28 …pid), sensorId_(sensorId), samplingPeriodNs_(samplingPeriodNs), maxReportDelayNs_(maxReportDelayNs) in ActiveInfo()
66 void ActiveInfo::SetMaxReportDelayNs(int64_t maxReportDelayNs) in SetMaxReportDelayNs() argument
68 maxReportDelayNs_ = maxReportDelayNs; in SetMaxReportDelayNs()
97 int64_t maxReportDelayNs = -1; in Unmarshalling() local
99 parcel.ReadInt64(samplingPeriodNs) && parcel.ReadInt64(maxReportDelayNs))) { in Unmarshalling()
107 activeInfo->SetMaxReportDelayNs(maxReportDelayNs); in Unmarshalling()
H A Dsensor_basic_info.cpp38 void SensorBasicInfo::SetMaxReportDelayNs(int64_t maxReportDelayNs) in SetMaxReportDelayNs() argument
40 maxReportDelayNs_ = maxReportDelayNs; in SetMaxReportDelayNs()
/ohos5.0/base/sensors/sensor/services/src/
H A Dsensor_manager.cpp51 …rManager::SetBestSensorParams(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) in SetBestSensorParams() argument
61 if ((samplingPeriodNs > bestSamplingPeriodNs) && (maxReportDelayNs > bestReportDelayNs)) { in SetBestSensorParams()
66 … bestReportDelayNs = (maxReportDelayNs < bestReportDelayNs) ? maxReportDelayNs : bestReportDelayNs; in SetBestSensorParams()
114 int64_t maxReportDelayNs) in SaveSubscriber() argument
117 SensorBasicInfo sensorInfo = GetSensorInfo(sensorId, samplingPeriodNs, maxReportDelayNs); in SaveSubscriber()
126 … SensorManager::GetSensorInfo(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) in GetSensorInfo() argument
134 sensorInfo.SetMaxReportDelayNs(maxReportDelayNs); in GetSensorInfo()
147 int64_t curReportDelayNs = (maxReportDelayNs > supportDelay) ? supportDelay : maxReportDelayNs; in GetSensorInfo()
H A Dsensor_power_policy.cpp118 int64_t maxReportDelayNs = sensorIt->second.GetMaxReportDelayNs(); in ResumeSensors() local
119 if (!Resume(pid, sensorId, samplingPeriodNs, maxReportDelayNs)) { in ResumeSensors()
137 int64_t maxReportDelayNs) in Resume() argument
141 ((samplingPeriodNs != 0L) && (maxReportDelayNs / samplingPeriodNs > MAX_EVENT_COUNT))) { in Resume()
147 auto ret = RestoreSensorInfo(pid, sensorId, samplingPeriodNs, maxReportDelayNs); in Resume()
154 auto ret = RestoreSensorInfo(pid, sensorId, samplingPeriodNs, maxReportDelayNs); in Resume()
171 int64_t maxReportDelayNs) in RestoreSensorInfo() argument
174 if (!sensorManager_.SaveSubscriber(sensorId, pid, samplingPeriodNs, maxReportDelayNs)) { in RestoreSensorInfo()
180 if (!sensorManager_.SetBestSensorParams(sensorId, samplingPeriodNs, maxReportDelayNs)) { in RestoreSensorInfo()
H A Dsensor_service.cpp204 int64_t maxReportDelayNs) in ReportSensorSysEvent() argument
216 sensorId, pid, samplingPeriodNs, maxReportDelayNs); in ReportSensorSysEvent()
255 …f (!sensorManager_.SaveSubscriber(sensorId, GetCallingPid(), samplingPeriodNs, maxReportDelayNs)) { in SaveSubscriber()
284 …SensorService::CheckParameter(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) in CheckParameter() argument
287 ((samplingPeriodNs != 0L) && ((maxReportDelayNs / samplingPeriodNs) > MAX_EVENT_COUNT))) { in CheckParameter()
294 …e SensorService::EnableSensor(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) in EnableSensor() argument
297 if (!CheckParameter(sensorId, samplingPeriodNs, maxReportDelayNs)) { in EnableSensor()
305 auto ret = SaveSubscriber(sensorId, samplingPeriodNs, maxReportDelayNs); in EnableSensor()
310 ReportSensorSysEvent(sensorId, true, pid, samplingPeriodNs, maxReportDelayNs); in EnableSensor()
322 auto ret = SaveSubscriber(sensorId, samplingPeriodNs, maxReportDelayNs); in EnableSensor()
[all …]
H A Dsensor_service_stub.cpp145 int64_t maxReportDelayNs; in SensorEnableInner() local
147 READINT64(data, maxReportDelayNs, READ_PARCEL_ERR); in SensorEnableInner()
148 return EnableSensor(sensorId, samplingPeriodNs, maxReportDelayNs); in SensorEnableInner()
/ohos5.0/base/sensors/medical_sensor/services/medical_sensor/src/
H A Dmedical_manager.cpp54 …Manager::SetBestSensorParams(uint32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) in SetBestSensorParams() argument
65 if ((samplingPeriodNs > bestSamplingPeriodNs) && (maxReportDelayNs > bestReportDelayNs)) { in SetBestSensorParams()
70 … bestReportDelayNs = (maxReportDelayNs < bestReportDelayNs) ? maxReportDelayNs : bestReportDelayNs; in SetBestSensorParams()
100 int64_t samplingPeriodNs, int64_t maxReportDelayNs) in GetSensorInfo() argument
108 sensorInfo.SetMaxReportDelayNs(maxReportDelayNs); in GetSensorInfo()
125 int64_t curReportDelayNs = (maxReportDelayNs > supportDelay) ? supportDelay : maxReportDelayNs; in GetSensorInfo()
134 int64_t maxReportDelayNs) in SaveSubscriber() argument
136 MedicalSensorBasicInfo sensorInfo = GetSensorInfo(sensorId, samplingPeriodNs, maxReportDelayNs); in SaveSubscriber()
H A Dmedical_service.cpp218 …ensorService::SaveSubscriber(uint32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) in SaveSubscriber() argument
220 …sensorManager_.SaveSubscriber(sensorId, this->GetCallingPid(), samplingPeriodNs, maxReportDelayNs); in SaveSubscriber()
227 if (!sensorManager_.SetBestSensorParams(sensorId, samplingPeriodNs, maxReportDelayNs)) { in SaveSubscriber()
235 …lSensorService::EnableSensor(uint32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) in EnableSensor() argument
240 ((samplingPeriodNs != 0L) && ((maxReportDelayNs / samplingPeriodNs) > MAX_EVENT_COUNT))) { in EnableSensor()
248 auto ret = SaveSubscriber(sensorId, samplingPeriodNs, maxReportDelayNs); in EnableSensor()
262 auto ret = SaveSubscriber(sensorId, samplingPeriodNs, maxReportDelayNs); in EnableSensor()
/ohos5.0/base/sensors/medical_sensor/services/medical_sensor/test/unittest/common/
H A Dclient_info_test.cpp65 int64_t maxReportDelayNs = 0; variable
68 sensorInfo.SetMaxReportDelayNs(maxReportDelayNs);
85 int64_t maxReportDelayNs = 0; variable
88 sensorInfo.SetMaxReportDelayNs(maxReportDelayNs);
105 int64_t maxReportDelayNs = 0; variable
108 sensorInfo.SetMaxReportDelayNs(maxReportDelayNs);
125 int64_t maxReportDelayNs = 0; variable
128 sensorInfo.SetMaxReportDelayNs(maxReportDelayNs);
145 int64_t maxReportDelayNs = 0; variable
148 sensorInfo.SetMaxReportDelayNs(maxReportDelayNs);
[all …]
/ohos5.0/base/sensors/medical_sensor/services/medical_sensor/include/
H A Dmedical_sensor_manager.h33 bool SetBestSensorParams(uint32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs);
35 …aveSubscriber(uint32_t sensorId, uint32_t pid, int64_t samplingPeriodNs, int64_t maxReportDelayNs);
37 …nsorBasicInfo GetSensorInfo(uint32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs);
H A Dmedical_sensor_service.h54 …ErrCode EnableSensor(uint32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) overri…
97 ErrCode SaveSubscriber(uint32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs);
/ohos5.0/base/sensors/sensor/services/include/
H A Dsensor_manager.h40 bool SetBestSensorParams(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs);
46 …SaveSubscriber(int32_t sensorId, uint32_t pid, int64_t samplingPeriodNs, int64_t maxReportDelayNs);
47 …ensorBasicInfo GetSensorInfo(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs);
H A Dsensor_service.h54 …ErrCode EnableSensor(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) overrid…
74 bool CheckParameter(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs);
91 int64_t maxReportDelayNs = 0);
118 ErrCode SaveSubscriber(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs);
H A Dsensor_power_policy.h48 bool Resume(int32_t pid, int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs);
49 …storeSensorInfo(int32_t pid, int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs);
H A Dsensor_service_proxy.h32 …ErrCode EnableSensor(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) overrid…
/ohos5.0/base/sensors/medical_sensor/utils/src/
H A Dmedical_basic_info.cpp39 void MedicalSensorBasicInfo::SetMaxReportDelayNs(int64_t maxReportDelayNs) in SetMaxReportDelayNs() argument
41 maxReportDelayNs_ = maxReportDelayNs; in SetMaxReportDelayNs()
/ohos5.0/base/sensors/sensor/utils/common/include/
H A Dactive_info.h26 ActiveInfo(int32_t pid, int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs);
35 void SetMaxReportDelayNs(int64_t maxReportDelayNs);
H A Dsensor_basic_info.h30 void SetMaxReportDelayNs(int64_t maxReportDelayNs);
/ohos5.0/base/sensors/medical_sensor/utils/include/
H A Dmedical_sensor_basic_info.h36 void SetMaxReportDelayNs(int64_t maxReportDelayNs);
/ohos5.0/base/sensors/sensor/test/unittest/interfaces/inner_api/
H A Dsensor_power_test.cpp110 sensorActiveInfo.samplingPeriodNs, sensorActiveInfo.maxReportDelayNs); in SensorActiveInfoCBImpl()
117 sensorActiveInfo.samplingPeriodNs, sensorActiveInfo.maxReportDelayNs); in SensorActiveInfoCBImpl2()
208 curSensorActiveInfo->samplingPeriodNs, curSensorActiveInfo->maxReportDelayNs);
/ohos5.0/base/sensors/medical_sensor/frameworks/native/medical_sensor/include/
H A Di_medical_sensor_service.h38 int64_t maxReportDelayNs) = 0;
H A Dmedical_sensor_service_proxy.h31 …ErrCode EnableSensor(uint32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) overri…
/ohos5.0/base/sensors/sensor/frameworks/native/include/
H A Di_sensor_service.h38 int64_t maxReportDelayNs) = 0;
H A Dsensor_service_proxy.h32 …ErrCode EnableSensor(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) overrid…

12