• Home
  • Raw
  • Download

Lines Matching refs:light

278     for (const auto& [lightId, light] : mLights) {  in populateDeviceInfo()
280 InputDeviceLightInfo lightInfo(light->name, light->id, light->type, light->capabilityFlags, in populateDeviceInfo()
281 /*ordinal=*/1, getPreferredBrightnessLevels(light.get())); in populateDeviceInfo()
290 const Light* light) const { in getPreferredBrightnessLevels()
293 light->type != InputDeviceLightType::KEYBOARD_BACKLIGHT) { in getPreferredBrightnessLevels()
322 for (const auto& [lightId, light] : mLights) { in dump()
324 dump += StringPrintf(INDENT4 "Name: %s", light->name.c_str()); in dump()
325 dump += StringPrintf(INDENT4 "Type: %s", ftl::enum_string(light->type).c_str()); in dump()
327 light->capabilityFlags.string().c_str()); in dump()
328 light->dump(dump); in dump()
469 std::unique_ptr<Light> light = in configureLights() local
472 mLights.insert_or_assign(light->id, std::move(light)); in configureLights()
494 std::unique_ptr<Light> light = in configureLights() local
500 mLights.insert_or_assign(light->id, std::move(light)); in configureLights()
527 std::unique_ptr<Light> light = in configureLights() local
530 mLights.insert_or_assign(light->id, std::move(light)); in configureLights()
537 std::unique_ptr<Light> light = std::make_unique<MonoLight>(getDeviceContext(), rawInfo.name, in configureLights() local
540 mLights.insert_or_assign(light->id, std::move(light)); in configureLights()
557 auto& light = it->second; in setLightColor() local
560 ftl::enum_string(light->type).c_str(), color); in setLightColor()
562 return light->setLightColor(color); in setLightColor()
570 auto& light = it->second; in getLightColor() local
571 std::optional<int32_t> color = light->getLightColor(); in getLightColor()
574 ftl::enum_string(light->type).c_str(), color.value_or(0)); in getLightColor()
584 auto& light = it->second; in setLightPlayerId() local
585 return light->setLightPlayerId(playerId); in setLightPlayerId()
593 auto& light = it->second; in getLightPlayerId() local
594 return light->getLightPlayerId(); in getLightPlayerId()