/ohos5.0/base/sensors/medical_sensor/services/medical_sensor/test/unittest/phone/ |
H A D | medical_proxy_test.cpp | 121 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 D | active_info.cpp | 27 …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 D | sensor_basic_info.cpp | 38 void SensorBasicInfo::SetMaxReportDelayNs(int64_t maxReportDelayNs) in SetMaxReportDelayNs() argument 40 maxReportDelayNs_ = maxReportDelayNs; in SetMaxReportDelayNs()
|
/ohos5.0/base/sensors/sensor/services/src/ |
H A D | sensor_manager.cpp | 51 …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 D | sensor_power_policy.cpp | 118 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 D | sensor_service.cpp | 204 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 D | sensor_service_stub.cpp | 145 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 D | medical_manager.cpp | 54 …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 D | medical_service.cpp | 218 …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 D | client_info_test.cpp | 65 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 D | medical_sensor_manager.h | 33 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 D | medical_sensor_service.h | 54 …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 D | sensor_manager.h | 40 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 D | sensor_service.h | 54 …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 D | sensor_power_policy.h | 48 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 D | sensor_service_proxy.h | 32 …ErrCode EnableSensor(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) overrid…
|
/ohos5.0/base/sensors/medical_sensor/utils/src/ |
H A D | medical_basic_info.cpp | 39 void MedicalSensorBasicInfo::SetMaxReportDelayNs(int64_t maxReportDelayNs) in SetMaxReportDelayNs() argument 41 maxReportDelayNs_ = maxReportDelayNs; in SetMaxReportDelayNs()
|
/ohos5.0/base/sensors/sensor/utils/common/include/ |
H A D | active_info.h | 26 ActiveInfo(int32_t pid, int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs); 35 void SetMaxReportDelayNs(int64_t maxReportDelayNs);
|
H A D | sensor_basic_info.h | 30 void SetMaxReportDelayNs(int64_t maxReportDelayNs);
|
/ohos5.0/base/sensors/medical_sensor/utils/include/ |
H A D | medical_sensor_basic_info.h | 36 void SetMaxReportDelayNs(int64_t maxReportDelayNs);
|
/ohos5.0/base/sensors/sensor/test/unittest/interfaces/inner_api/ |
H A D | sensor_power_test.cpp | 110 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 D | i_medical_sensor_service.h | 38 int64_t maxReportDelayNs) = 0;
|
H A D | medical_sensor_service_proxy.h | 31 …ErrCode EnableSensor(uint32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) overri…
|
/ohos5.0/base/sensors/sensor/frameworks/native/include/ |
H A D | i_sensor_service.h | 38 int64_t maxReportDelayNs) = 0;
|
H A D | sensor_service_proxy.h | 32 …ErrCode EnableSensor(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDelayNs) overrid…
|