/base/sensors/sensor/interfaces/native/test/unittest/ |
D | sensor_power_test.cpp | 31 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 …]
|
D | sensor_agent_test.cpp | 29 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 …]
|
D | sensor_algorithm_test.cpp | 23 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/ |
D | medical_native_impl.cpp | 26 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/ |
D | sensor_algorithm.cpp | 25 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 …]
|
D | sensor_agent.cpp | 23 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/ |
D | sensor_agent_proxy.cpp | 26 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/ |
D | system_info.cpp | 30 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/ |
D | sensoronremoterequest_fuzzer.cpp | 28 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/ |
D | stoplight_fuzzer.cpp | 21 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/ |
D | startlight_fuzzer.cpp | 21 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/ |
D | issupporteffect_fuzzer.cpp | 23 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/ |
D | playvibratorcustom_fuzzer.cpp | 23 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/ |
D | vibratoronremoterequest_fuzzer.cpp | 32 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/ |
D | register_fuzzer.cpp | 28 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/ |
D | getactivesensorinfos_fuzzer.cpp | 28 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/ |
D | suspendsensors_fuzzer.cpp | 27 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/ |
D | unregister_fuzzer.cpp | 28 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/ |
D | resumesensors_fuzzer.cpp | 27 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/ |
D | net_packet.h | 24 OHOS::Sensors::MessageId idMsg; 30 namespace Sensors {
|
/base/powermgr/battery_manager/services/native/src/ |
D | battery_light.cpp | 39 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/ |
D | raw_file_descriptor.h | 22 namespace Sensors {
|
D | app_thread_info.h | 20 namespace Sensors {
|
/base/sensors/miscdevice/services/miscdevice_service/custom_vibrate_decode/src/ |
D | default_vibrator_decoder_factory.cpp | 22 namespace Sensors { namespace
|
/base/sensors/miscdevice/services/miscdevice_service/custom_vibrate_decode/include/ |
D | vibrator_decoder_factory.h | 22 namespace Sensors {
|