Home
last modified time | relevance | path

Searched refs:sensorInterface (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/drivers/peripheral/sensor/hdi_impl/
H A Dsensor_impl.cpp100 sensorInterface = NewSensorInterfaceInstance(); in Init()
101 if (sensorInterface == nullptr) { in Init()
113 if (sensorInterface == nullptr || sensorInterface->GetAllSensors == nullptr) { in GetAllSensorInfo()
164 if (sensorInterface == nullptr || sensorInterface->Enable == nullptr) { in Enable()
182 if (sensorInterface == nullptr || sensorInterface->Disable == nullptr) { in Disable()
201 if (sensorInterface == nullptr || sensorInterface->SetBatch == nullptr) { in SetBatch()
220 if (sensorInterface == nullptr || sensorInterface->SetMode == nullptr) { in SetMode()
239 if (sensorInterface == nullptr || sensorInterface->SetOption == nullptr) { in SetOption()
257 if (sensorInterface == nullptr || sensorInterface->Register == nullptr) { in Register()
305 if (sensorInterface == nullptr || sensorInterface->Unregister == nullptr) { in Unregister()
[all …]
H A Dsensor_impl.h31 SensorImpl(): sensorInterface(NULL) {} in SensorImpl()
46 const SensorInterface *sensorInterface;
/ohos5.0/drivers/peripheral/sensor/test/fuzztest/sensorregisterandunregistercallback_fuzzer/
H A Dsensorregisterandunregistercallback_fuzzer.cpp41 sptr<ISensorInterface> sensorInterface = ISensorInterface::Get(); in SensorRegisterAndUnregisterCallbackFuzzTest() local
46 ret = sensorInterface->Register(*(int32_t *)data, registerCallback); in SensorRegisterAndUnregisterCallbackFuzzTest()
54 ret = sensorInterface->Unregister(*(int32_t *)data, registerCallback); in SensorRegisterAndUnregisterCallbackFuzzTest()
/ohos5.0/drivers/peripheral/sensor/test/fuzztest/sensor_fuzzer/
H A Dsensor_fuzzer.cpp68 sptr<SensorInterfaceStub> sensorInterface = new SensorInterfaceStub(g_sensorInterface); in DoSomethingInterestingWithMyAPI() local
69 if (sensorInterface == nullptr) { in DoSomethingInterestingWithMyAPI()
73 sensorInterface->OnRemoteRequest(code, data, reply, option); in DoSomethingInterestingWithMyAPI()