Home
last modified time | relevance | path

Searched refs:Sensors (Results 1 – 25 of 252) sorted by relevance

1234567891011

/base/sensors/sensor/interfaces/native/test/unittest/
Dsensor_power_test.cpp31 namespace Sensors { namespace
38 constexpr HiLogLabel LABEL = { LOG_CORE, OHOS::Sensors::SENSOR_LOG_DOMAIN, "SensorPowerTest" };
114 ASSERT_NE(ret, OHOS::Sensors::SUCCESS);
121 ASSERT_NE(ret, OHOS::Sensors::SUCCESS);
130 ASSERT_NE(ret, OHOS::Sensors::SUCCESS);
138 ASSERT_NE(ret, OHOS::Sensors::SUCCESS);
146 ASSERT_NE(ret, OHOS::Sensors::SUCCESS);
156 ASSERT_EQ(ret, OHOS::Sensors::SUCCESS);
158 ASSERT_EQ(ret, OHOS::Sensors::SUCCESS);
160 ASSERT_EQ(ret, OHOS::Sensors::SUCCESS);
[all …]
Dsensor_agent_test.cpp29 namespace Sensors { namespace
36 constexpr HiLogLabel LABEL = { LOG_CORE, OHOS::Sensors::SENSOR_LOG_DOMAIN, "SensorAgentTest" };
146 ASSERT_NE(ret, OHOS::Sensors::SUCCESS);
155 ASSERT_NE(ret, OHOS::Sensors::SUCCESS);
164 ASSERT_NE(ret, OHOS::Sensors::SUCCESS);
166 ASSERT_NE(ret, OHOS::Sensors::SUCCESS);
168 ASSERT_NE(ret, OHOS::Sensors::SUCCESS);
170 ASSERT_NE(ret, OHOS::Sensors::SUCCESS);
172 ASSERT_NE(ret, OHOS::Sensors::SUCCESS);
181 ASSERT_NE(ret, OHOS::Sensors::SUCCESS);
[all …]
Dsensor_algorithm_test.cpp23 namespace Sensors { namespace
28 constexpr HiLogLabel LABEL = { LOG_CORE, OHOS::Sensors::SENSOR_LOG_DOMAIN, "SensorAlgorithmTest" };
59 ASSERT_EQ(ret, OHOS::Sensors::SUCCESS);
73 ASSERT_EQ(ret, OHOS::Sensors::PARAMETER_ERROR);
82 ASSERT_EQ(ret, OHOS::Sensors::PARAMETER_ERROR);
91 ASSERT_EQ(ret, OHOS::Sensors::SUCCESS);
106 ASSERT_EQ(ret, OHOS::Sensors::PARAMETER_ERROR);
115 ASSERT_EQ(ret, OHOS::Sensors::PARAMETER_ERROR);
124 ASSERT_EQ(ret, OHOS::Sensors::PARAMETER_ERROR);
131 ASSERT_EQ(ret, OHOS::Sensors::SUCCESS);
[all …]
/base/sensors/medical_sensor/interfaces/native/src/
Dmedical_native_impl.cpp26 using OHOS::Sensors::MedicalSensorDataChannel;
27 using OHOS::Sensors::MedicalSensorServiceClient;
28 using OHOS::Sensors::INVALID_POINTER;
29 using OHOS::Sensors::SUCCESS;
124 return OHOS::Sensors::ERROR; in GetAllSensors()
127 std::vector<OHOS::Sensors::MedicalSensor> sensorList_ = client.GetSensorList(); in GetAllSensors()
130 return OHOS::Sensors::ERROR; in GetAllSensors()
136 return OHOS::Sensors::ERROR; in GetAllSensors()
143 return OHOS::Sensors::ERROR; in GetAllSensors()
148 return OHOS::Sensors::ERROR; in GetAllSensors()
[all …]
/base/sensors/sensor/interfaces/native/src/
Dsensor_algorithm.cpp25 static constexpr HiLogLabel LABEL = {LOG_CORE, OHOS::Sensors::SENSOR_LOG_DOMAIN, "SensorAlgorithmAP…
32 return OHOS::Sensors::PARAMETER_ERROR; in CreateQuaternion()
36 return OHOS::Sensors::PARAMETER_ERROR; in CreateQuaternion()
48 return OHOS::Sensors::SUCCESS; in CreateQuaternion()
56 return OHOS::Sensors::PARAMETER_ERROR; in TransformCoordinateSystemImpl()
60 return OHOS::Sensors::PARAMETER_ERROR; in TransformCoordinateSystemImpl()
91 return OHOS::Sensors::SUCCESS; in TransformCoordinateSystemImpl()
99 return OHOS::Sensors::PARAMETER_ERROR; in TransformCoordinateSystem()
105 return OHOS::Sensors::PARAMETER_ERROR; in TransformCoordinateSystem()
109 …ordinateSystemImpl(inRotationMatrix, axisX, axisY, tempRotationMatrix) != OHOS::Sensors::SUCCESS) { in TransformCoordinateSystem()
[all …]
Dsensor_agent.cpp23 using OHOS::Sensors::SensorAgentProxy;
24 using OHOS::Sensors::SERVICE_EXCEPTION;
25 using OHOS::Sensors::PARAMETER_ERROR;
26 using OHOS::Sensors::PERMISSION_DENIED;
28 static const HiLogLabel LABEL = {LOG_CORE, OHOS::Sensors::SENSOR_LOG_DOMAIN, "SensorNativeAPI"};
132 CHKPR(sensorActiveInfos, OHOS::Sensors::ERROR); in GetActiveSensorInfos()
133 CHKPR(count, OHOS::Sensors::ERROR); in GetActiveSensorInfos()
/base/sensors/sensor/frameworks/native/sensor/src/
Dsensor_agent_proxy.cpp26 namespace Sensors { namespace
123 CHKPR(user, OHOS::Sensors::ERROR); in ActivateSensor()
124 CHKPR(user->callback, OHOS::Sensors::ERROR); in ActivateSensor()
151 CHKPR(user, OHOS::Sensors::ERROR); in DeactivateSensor()
152 CHKPR(user->callback, OHOS::Sensors::ERROR); in DeactivateSensor()
160 return OHOS::Sensors::ERROR; in DeactivateSensor()
175 CHKPR(user, OHOS::Sensors::ERROR); in SetBatch()
182 return OHOS::Sensors::ERROR; in SetBatch()
187 return OHOS::Sensors::ERROR; in SetBatch()
191 return OHOS::Sensors::SUCCESS; in SetBatch()
[all …]
/base/sensors/sensor/test/unittest/common/src/
Dsystem_info.cpp30 namespace Sensors { namespace
34 constexpr HiLogLabel LABEL = { LOG_CORE, OHOS::Sensors::SENSOR_LOG_DOMAIN, "SYSTEM_INFO" };
104 return OHOS::Sensors::ERROR; in GetProcOccupy()
111 return OHOS::Sensors::ERROR; in GetProcOccupy()
116 return OHOS::Sensors::ERROR; in GetProcOccupy()
166 return OHOS::Sensors::ERROR; in GetSystemCpuStatInfo()
173 return OHOS::Sensors::SUCCESS; in GetSystemCpuStatInfo()
180 if (ret != OHOS::Sensors::SUCCESS) { in GetSystemCpuUsage()
187 if (ret != OHOS::Sensors::SUCCESS) { in GetSystemCpuUsage()
199 if ((ret = GetSystemCpuStatInfo(occupy)) != OHOS::Sensors::SUCCESS) { in GetSystemTotalOccupy()
[all …]
/base/sensors/sensor/services/sensor/test/fuzztest/sensoronremoterequest_fuzzer/
Dsensoronremoterequest_fuzzer.cpp28 namespace Sensors { namespace
66 if (size > OHOS::Sensors::FOO_MAX_LEN || size < OHOS::Sensors::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
83 OHOS::Sensors::OnRemoteRequestFuzzTest(ch, size); in LLVMFuzzerTestOneInput()
/base/sensors/miscdevice/interfaces/native/light/test/fuzztest/stoplight_fuzzer/
Dstoplight_fuzzer.cpp21 namespace Sensors { namespace
41 OHOS::Sensors::TurnOff(lightId); in StopLightuzzTest()
50 OHOS::Sensors::StopLightuzzTest(data, size); in LLVMFuzzerTestOneInput()
/base/sensors/miscdevice/interfaces/native/light/test/fuzztest/startlight_fuzzer/
Dstartlight_fuzzer.cpp21 namespace Sensors { namespace
45 OHOS::Sensors::TurnOn(lightId, color, animation); in StartLightFuzzTest()
54 OHOS::Sensors::StartLightFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/base/sensors/miscdevice/interfaces/native/vibrator/test/fuzztest/issupporteffect_fuzzer/
Dissupporteffect_fuzzer.cpp23 namespace Sensors { namespace
56 OHOS::Sensors::IsSupportEffect(effectId, &state); in IsSupportEffectFuzzTest()
63 OHOS::Sensors::IsSupportEffectFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/base/sensors/miscdevice/interfaces/native/vibrator/test/fuzztest/playvibratorcustom_fuzzer/
Dplayvibratorcustom_fuzzer.cpp23 namespace Sensors { namespace
54 OHOS::Sensors::PlayVibratorCustom(fd, offset, length); in PlayVibratorCustomFuzzTest()
61 OHOS::Sensors::PlayVibratorCustomFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/base/sensors/miscdevice/services/miscdevice_service/test/fuzztest/vibratoronremoterequest_fuzzer/
Dvibratoronremoterequest_fuzzer.cpp32 namespace Sensors { namespace
102 if (size > OHOS::Sensors::FOO_MAX_LEN || size < OHOS::Sensors::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
119 OHOS::Sensors::OnRemoteRequestFuzzTest(ch, size); in LLVMFuzzerTestOneInput()
/base/sensors/sensor/interfaces/native/test/fuzztest/register_fuzzer/
Dregister_fuzzer.cpp28 namespace Sensors { namespace
33 constexpr HiLogLabel LABEL = { LOG_CORE, OHOS::Sensors::SENSOR_LOG_DOMAIN, "RegisterFuzzTest" };
84 OHOS::Sensors::RegisterFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/base/sensors/sensor/interfaces/native/test/fuzztest/getactivesensorinfos_fuzzer/
Dgetactivesensorinfos_fuzzer.cpp28 namespace Sensors { namespace
33 constexpr HiLogLabel LABEL = { LOG_CORE, OHOS::Sensors::SENSOR_LOG_DOMAIN, "GetActiveSensorInfosFuz…
86 OHOS::Sensors::GetActiveSensorInfosFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/base/sensors/sensor/interfaces/native/test/fuzztest/suspendsensors_fuzzer/
Dsuspendsensors_fuzzer.cpp27 namespace Sensors { namespace
32 constexpr HiLogLabel LABEL = { LOG_CORE, OHOS::Sensors::SENSOR_LOG_DOMAIN, "SuspendSensorsFuzzTest"…
83 OHOS::Sensors::SuspendSensorsFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/base/sensors/sensor/interfaces/native/test/fuzztest/unregister_fuzzer/
Dunregister_fuzzer.cpp28 namespace Sensors { namespace
33 constexpr HiLogLabel LABEL = { LOG_CORE, OHOS::Sensors::SENSOR_LOG_DOMAIN, "UnregisterFuzzTest" };
84 OHOS::Sensors::UnregisterFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/base/sensors/sensor/interfaces/native/test/fuzztest/resumesensors_fuzzer/
Dresumesensors_fuzzer.cpp27 namespace Sensors { namespace
32 constexpr HiLogLabel LABEL = { LOG_CORE, OHOS::Sensors::SENSOR_LOG_DOMAIN, "ResumeSensorsFuzzTest" …
83 OHOS::Sensors::ResumeSensorsFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/base/sensors/sensor/utils/ipc/include/
Dnet_packet.h24 OHOS::Sensors::MessageId idMsg;
30 namespace Sensors {
/base/powermgr/battery_manager/services/native/src/
Dbattery_light.cpp39 int32_t ret = OHOS::Sensors::GetLightList(&lightInfo, count); in InitLight()
63 int32_t ret = OHOS::Sensors::TurnOff(lightId_); in TurnOff()
81 int32_t ret = OHOS::Sensors::TurnOn(lightId_, lightColor, animation); in TurnOn()
/base/sensors/miscdevice/utils/include/
Draw_file_descriptor.h22 namespace Sensors {
Dapp_thread_info.h20 namespace Sensors {
/base/sensors/miscdevice/services/miscdevice_service/custom_vibrate_decode/src/
Ddefault_vibrator_decoder_factory.cpp22 namespace Sensors { namespace
/base/sensors/miscdevice/services/miscdevice_service/custom_vibrate_decode/include/
Dvibrator_decoder_factory.h22 namespace Sensors {

1234567891011