Home
last modified time | relevance | path

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

/base/powermgr/battery_manager/services/native/test/unittest/src/
Dbattery_light_test.cpp54 EXPECT_TRUE(g_light.GetLightColor() == 0U);
67 EXPECT_TRUE(g_light.GetLightColor() == color);
80 EXPECT_EQ(g_light.GetLightColor(), BatteryConfigTest::RED_LIGHT);
93 EXPECT_TRUE(g_light.GetLightColor() == color);
104 GTEST_LOG_(INFO) << "initial:" << g_light.GetLightColor();
105 EXPECT_EQ(g_light.GetLightColor(), BatteryConfigTest::LIGHT_OFF);
108 …GTEST_LOG_(INFO) << "actual:" << g_light.GetLightColor() << "=expect:" << BatteryConfigTest::YELLO…
109 EXPECT_EQ(g_light.GetLightColor(), BatteryConfigTest::YELLOW_LIGHT);
112 …GTEST_LOG_(INFO) << "actual:" << g_light.GetLightColor() << "=expect:" << BatteryConfigTest::LIGHT…
113 EXPECT_EQ(g_light.GetLightColor(), BatteryConfigTest::LIGHT_OFF);
[all …]
/base/sensors/miscdevice/interfaces/native/light/test/unittest/
Dlight_agent_test.cpp78 bool GetLightColor(LightColor &color, int32_t lightType) in GetLightColor() function
121 bool ret = GetLightColor(color, lightType_);
145 bool ret = GetLightColor(color, lightType_);
168 bool ret = GetLightColor(color, lightType_);
191 bool ret = GetLightColor(color, lightType_);
214 bool ret = GetLightColor(color, lightType_);
237 bool ret = GetLightColor(color, lightType_);
261 bool ret = GetLightColor(color, lightType_);
/base/powermgr/battery_manager/services/native/include/
Dbattery_light.h33 uint32_t GetLightColor() const;
/base/powermgr/battery_manager/services/native/src/
Dbattery_light.cpp115 uint32_t BatteryLight::GetLightColor() const in GetLightColor() function in OHOS::PowerMgr::BatteryLight