Home
last modified time | relevance | path

Searched refs:g_lightInterface (Results 1 – 7 of 7) sorted by relevance

/drivers/peripheral/light/test/unittest/hdi/
Dhdf_light_hdi_test.cpp35 sptr<ILightInterface> g_lightInterface = nullptr; variable
48 g_lightInterface = ILightInterface::Get(); in SetUpTestCase()
79 ASSERT_NE(nullptr, g_lightInterface);
85 int32_t ret = g_lightInterface->TurnOnLight(LIGHT_ID_BATTERY, effect);
90 ret = g_lightInterface->TurnOffLight(LIGHT_ID_BATTERY);
102 ASSERT_NE(nullptr, g_lightInterface);
108 int32_t ret = g_lightInterface->TurnOnLight(LIGHT_ID_BATTERY, effect);
113 ret = g_lightInterface->TurnOffLight(LIGHT_ID_BATTERY);
125 ASSERT_NE(nullptr, g_lightInterface);
131 int32_t ret = g_lightInterface->TurnOnLight(LIGHT_ID_BATTERY, effect);
[all …]
Dhdf_light_hdi_common_test.cpp33 sptr<ILightInterface> g_lightInterface = nullptr; variable
46 g_lightInterface = ILightInterface::Get(); in SetUpTestCase()
77 ASSERT_NE(nullptr, g_lightInterface);
88 ASSERT_NE(nullptr, g_lightInterface);
90 int32_t ret = g_lightInterface->GetLightInfo(g_info);
109 ASSERT_NE(nullptr, g_lightInterface);
115 int32_t ret = g_lightInterface->TurnOnLight(g_info[0].lightId, effect);
120 ret = g_lightInterface->TurnOffLight(g_info[0].lightId);
132 ASSERT_NE(nullptr, g_lightInterface);
138 int32_t ret = g_lightInterface->TurnOnLight(g_info[0].lightId, effect);
[all …]
/drivers/peripheral/light/test/benchmarktest/
Dhdf_light_benchmark_test.cpp43 sptr<ILightInterface> g_lightInterface = nullptr; variable
53 g_lightInterface = ILightInterface::Get(); in SetUp()
67 ASSERT_NE(nullptr, g_lightInterface); in BENCHMARK_F()
73 ret = g_lightInterface->GetLightInfo(info); in BENCHMARK_F()
93 ASSERT_NE(nullptr, g_lightInterface); in BENCHMARK_F()
98 ret = g_lightInterface->GetLightInfo(info); in BENCHMARK_F()
112 ret = g_lightInterface->TurnOnLight(iter.lightId, effect); in BENCHMARK_F()
116 ret = g_lightInterface->TurnOffLight(iter.lightId); in BENCHMARK_F()
131 ASSERT_NE(nullptr, g_lightInterface); in BENCHMARK_F()
136 ret = g_lightInterface->GetLightInfo(info); in BENCHMARK_F()
[all …]
/drivers/peripheral/light/test/performance/hdi/
Dhdf_light_hdi_performance_test.cpp35 sptr<ILightInterface> g_lightInterface = nullptr; variable
48 g_lightInterface = ILightInterface::Get(); in SetUpTestCase()
49 if (g_lightInterface == nullptr) { in SetUpTestCase()
80 int32_t ret = g_lightInterface->GetLightInfo(info);
98 int32_t ret = g_lightInterface->GetLightInfo(info);
113 ret = g_lightInterface->TurnOnLight(iter.lightId, effect);
122 ret = g_lightInterface->TurnOffLight(iter.lightId);
140 int32_t ret = g_lightInterface->GetLightInfo(info);
158 ret = g_lightInterface->TurnOnLight(iter.lightId, effect);
167 ret = g_lightInterface->TurnOffLight(iter.lightId);
/drivers/peripheral/light/test/fuzztest/turnofflight_fuzzer/
Dturnofflight_fuzzer.cpp27 sptr<ILightInterface> g_lightInterface = ILightInterface::Get(); in TurnOffLightFuzzTest() local
29 …if (!g_lightInterface->TurnOnLight(static_cast<int32_t>(*data), reinterpret_cast<const HdfLightEff… in TurnOffLightFuzzTest()
33 if (!g_lightInterface->TurnOffLight(static_cast<int32_t>(*data))) { in TurnOffLightFuzzTest()
/drivers/peripheral/light/test/fuzztest/light_fuzzer/
Dlight_fuzzer.cpp56 sptr<ILightInterface> g_lightInterface = ILightInterface::Get(false); in DoSomethingInterestingWithMyAPI() local
57 if (g_lightInterface == nullptr) { in DoSomethingInterestingWithMyAPI()
61 sptr<LightInterfaceStub> lightInterface = new LightInterfaceStub(g_lightInterface); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/light/test/fuzztest/turnonlight_fuzzer/
Dturnonlight_fuzzer.cpp27 sptr<ILightInterface> g_lightInterface = ILightInterface::Get(); in TurnOnLightFuzzTest() local
28 …if (!g_lightInterface->TurnOnLight(static_cast<int32_t>(*data), reinterpret_cast<const HdfLightEff… in TurnOnLightFuzzTest()