Lines Matching refs:lights
10284 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() local
10285 ASSERT_EQ(1U, lights.size()); in TEST_F()
10286 ASSERT_EQ(InputDeviceLightType::INPUT, lights[0].type); in TEST_F()
10287 ASSERT_TRUE(lights[0].capabilityFlags.test(InputDeviceLightCapability::BRIGHTNESS)); in TEST_F()
10289 ASSERT_TRUE(controller.setLightColor(lights[0].id, LIGHT_BRIGHTNESS)); in TEST_F()
10290 ASSERT_EQ(controller.getLightColor(lights[0].id).value_or(-1), LIGHT_BRIGHTNESS); in TEST_F()
10309 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() local
10310 ASSERT_EQ(1U, lights.size()); in TEST_F()
10311 ASSERT_EQ(InputDeviceLightType::KEYBOARD_MIC_MUTE, lights[0].type); in TEST_F()
10312 ASSERT_EQ(0U, lights[0].preferredBrightnessLevels.size()); in TEST_F()
10327 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() local
10328 ASSERT_EQ(1U, lights.size()); in TEST_F()
10329 ASSERT_EQ(InputDeviceLightType::KEYBOARD_BACKLIGHT, lights[0].type); in TEST_F()
10330 ASSERT_TRUE(lights[0].capabilityFlags.test(InputDeviceLightCapability::BRIGHTNESS)); in TEST_F()
10332 ASSERT_TRUE(controller.setLightColor(lights[0].id, LIGHT_BRIGHTNESS)); in TEST_F()
10333 ASSERT_EQ(controller.getLightColor(lights[0].id).value_or(-1), LIGHT_BRIGHTNESS); in TEST_F()
10353 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() local
10354 ASSERT_EQ(1U, lights.size()); in TEST_F()
10355 ASSERT_EQ(0U, lights[0].preferredBrightnessLevels.size()); in TEST_F()
10374 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() local
10375 ASSERT_EQ(1U, lights.size()); in TEST_F()
10376 ASSERT_EQ(0U, lights[0].preferredBrightnessLevels.size()); in TEST_F()
10397 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() local
10398 ASSERT_EQ(1U, lights.size()); in TEST_F()
10399 ASSERT_EQ(3U, lights[0].preferredBrightnessLevels.size()); in TEST_F()
10400 std::set<BrightnessLevel>::iterator it = lights[0].preferredBrightnessLevels.begin(); in TEST_F()
10426 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() local
10427 ASSERT_EQ(1U, lights.size()); in TEST_F()
10428 ASSERT_EQ(0U, lights[0].preferredBrightnessLevels.size()); in TEST_F()
10454 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() local
10455 ASSERT_EQ(1U, lights.size()); in TEST_F()
10456 ASSERT_EQ(InputDeviceLightType::INPUT, lights[0].type); in TEST_F()
10457 ASSERT_TRUE(lights[0].capabilityFlags.test(InputDeviceLightCapability::BRIGHTNESS)); in TEST_F()
10458 ASSERT_TRUE(lights[0].capabilityFlags.test(InputDeviceLightCapability::RGB)); in TEST_F()
10460 ASSERT_TRUE(controller.setLightColor(lights[0].id, LIGHT_COLOR)); in TEST_F()
10461 ASSERT_EQ(controller.getLightColor(lights[0].id).value_or(-1), LIGHT_COLOR); in TEST_F()
10490 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() local
10491 ASSERT_EQ(1U, lights.size()); in TEST_F()
10492 ASSERT_EQ(InputDeviceLightType::KEYBOARD_BACKLIGHT, lights[0].type); in TEST_F()
10493 ASSERT_TRUE(lights[0].capabilityFlags.test(InputDeviceLightCapability::BRIGHTNESS)); in TEST_F()
10494 ASSERT_TRUE(lights[0].capabilityFlags.test(InputDeviceLightCapability::RGB)); in TEST_F()
10496 ASSERT_TRUE(controller.setLightColor(lights[0].id, LIGHT_COLOR)); in TEST_F()
10497 ASSERT_EQ(controller.getLightColor(lights[0].id).value_or(-1), LIGHT_COLOR); in TEST_F()
10530 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() local
10531 ASSERT_EQ(1U, lights.size()); in TEST_F()
10532 ASSERT_EQ(InputDeviceLightType::INPUT, lights[0].type); in TEST_F()
10533 ASSERT_TRUE(lights[0].capabilityFlags.test(InputDeviceLightCapability::BRIGHTNESS)); in TEST_F()
10534 ASSERT_TRUE(lights[0].capabilityFlags.test(InputDeviceLightCapability::RGB)); in TEST_F()
10536 ASSERT_TRUE(controller.setLightColor(lights[0].id, LIGHT_COLOR)); in TEST_F()
10537 ASSERT_EQ(controller.getLightColor(lights[0].id).value_or(-1), LIGHT_COLOR); in TEST_F()
10554 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() local
10555 ASSERT_EQ(1U, lights.size()); in TEST_F()
10556 ASSERT_EQ(InputDeviceLightType::INPUT, lights[0].type); in TEST_F()
10557 ASSERT_TRUE(lights[0].capabilityFlags.test(InputDeviceLightCapability::BRIGHTNESS)); in TEST_F()
10558 ASSERT_TRUE(lights[0].capabilityFlags.test(InputDeviceLightCapability::RGB)); in TEST_F()
10560 ASSERT_TRUE(controller.setLightColor(lights[0].id, LIGHT_COLOR)); in TEST_F()
10561 ASSERT_EQ(controller.getLightColor(lights[0].id).value_or(-1), LIGHT_COLOR); in TEST_F()
10579 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() local
10580 ASSERT_EQ(1U, lights.size()); in TEST_F()
10581 ASSERT_EQ(InputDeviceLightType::KEYBOARD_BACKLIGHT, lights[0].type); in TEST_F()
10582 ASSERT_TRUE(lights[0].capabilityFlags.test(InputDeviceLightCapability::BRIGHTNESS)); in TEST_F()
10583 ASSERT_TRUE(lights[0].capabilityFlags.test(InputDeviceLightCapability::RGB)); in TEST_F()
10585 ASSERT_TRUE(controller.setLightColor(lights[0].id, LIGHT_COLOR)); in TEST_F()
10586 ASSERT_EQ(controller.getLightColor(lights[0].id).value_or(-1), LIGHT_COLOR); in TEST_F()
10618 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() local
10619 ASSERT_EQ(1U, lights.size()); in TEST_F()
10620 ASSERT_STREQ("sony", lights[0].name.c_str()); in TEST_F()
10621 ASSERT_EQ(InputDeviceLightType::PLAYER_ID, lights[0].type); in TEST_F()
10622 ASSERT_FALSE(lights[0].capabilityFlags.test(InputDeviceLightCapability::BRIGHTNESS)); in TEST_F()
10623 ASSERT_FALSE(lights[0].capabilityFlags.test(InputDeviceLightCapability::RGB)); in TEST_F()
10625 ASSERT_FALSE(controller.setLightColor(lights[0].id, LIGHT_COLOR)); in TEST_F()
10626 ASSERT_TRUE(controller.setLightPlayerId(lights[0].id, LIGHT_PLAYER_ID)); in TEST_F()
10627 ASSERT_EQ(controller.getLightPlayerId(lights[0].id).value_or(-1), LIGHT_PLAYER_ID); in TEST_F()
10628 ASSERT_STREQ("sony", lights[0].name.c_str()); in TEST_F()
10660 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() local
10661 ASSERT_EQ(1U, lights.size()); in TEST_F()
10662 ASSERT_STREQ("player", lights[0].name.c_str()); in TEST_F()
10663 ASSERT_EQ(InputDeviceLightType::PLAYER_ID, lights[0].type); in TEST_F()
10664 ASSERT_FALSE(lights[0].capabilityFlags.test(InputDeviceLightCapability::BRIGHTNESS)); in TEST_F()
10665 ASSERT_FALSE(lights[0].capabilityFlags.test(InputDeviceLightCapability::RGB)); in TEST_F()
10667 ASSERT_FALSE(controller.setLightColor(lights[0].id, LIGHT_COLOR)); in TEST_F()
10668 ASSERT_TRUE(controller.setLightPlayerId(lights[0].id, LIGHT_PLAYER_ID)); in TEST_F()
10669 ASSERT_EQ(controller.getLightPlayerId(lights[0].id).value_or(-1), LIGHT_PLAYER_ID); in TEST_F()