Home
last modified time | relevance | path

Searched refs:lightInterface (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/drivers/peripheral/light/hdi_impl/
H A Dlight_interface_impl.cpp32 const struct LightInterface *lightInterface = NewLightInterfaceInstance(); in Init() local
33 if (lightInterface == nullptr || lightInterface->GetLightInfo == nullptr) { in Init()
45 const struct LightInterface *lightInterface = NewLightInterfaceInstance(); in GetLightInfo() local
46 if (lightInterface == nullptr || lightInterface->GetLightInfo == nullptr) { in GetLightInfo()
53 int32_t ret = lightInterface->GetLightInfo(&lightInfo, &count); in GetLightInfo()
78 const struct LightInterface *lightInterface = NewLightInterfaceInstance(); in TurnOnLight() local
79 if (lightInterface == nullptr || lightInterface->TurnOnLight == nullptr) { in TurnOnLight()
95 int32_t ret = lightInterface->TurnOnLight(lightId, &lightEffect); in TurnOnLight()
107 if (lightInterface == nullptr || lightInterface->TurnOnMultiLights == nullptr) { in TurnOnMultiLights()
137 if (lightInterface == nullptr || lightInterface->TurnOffLight == nullptr) { in TurnOffLight()
[all …]
/ohos5.0/drivers/peripheral/light/test/fuzztest/light_fuzzer/
H A Dlight_fuzzer.cpp68 sptr<LightInterfaceStub> lightInterface = new LightInterfaceStub(g_lightInterface); in DoSomethingInterestingWithMyAPI() local
69 if (lightInterface == nullptr) { in DoSomethingInterestingWithMyAPI()
73 lightInterface->OnRemoteRequest(code, data, reply, option); in DoSomethingInterestingWithMyAPI()
/ohos5.0/drivers/peripheral/light/test/unittest/hdi/
H A Dhdf_light_hdi_test.cpp421 const struct LightInterface *lightInterface = NewLightInterfaceInstance(); variable
422 ASSERT_NE(nullptr, lightInterface);