Lines Matching refs:rawId
113 setRawLightBrightness(rawId, brightness); in setLightColor()
150 context.setLightIntensities(rawId, intensities); in setLightColor()
151 setRawLightBrightness(rawId, getAlpha(color)); in setLightColor()
156 std::optional<int32_t> brightness = getRawLightBrightness(rawId); in getLightColor()
200 auto ret = context.getLightIntensities(rawId); in getLightColor()
209 std::optional<int32_t> brightness = getRawLightBrightness(rawId); in getLightColor()
220 for (const auto& [id, rawId] : rawLightIds) { in setLightPlayerId()
222 setRawLightBrightness(rawId, MAX_BRIGHTNESS); in setLightPlayerId()
224 setRawLightBrightness(rawId, 0); in setLightPlayerId()
231 for (const auto& [id, rawId] : rawLightIds) { in getLightPlayerId()
232 std::optional<int32_t> brightness = getRawLightBrightness(rawId); in getLightPlayerId()
247 for (const auto& [id, rawId] : rawLightIds) { in dump()
248 dump += StringPrintf("id %d -> %d ", id, rawId); in dump()
337 for (const auto& rawId : rawLightIds) { in dump() local
338 std::optional<RawLightInfo> rawInfo = getDeviceContext().getRawLightInfo(rawId); in dump()
342 dump += StringPrintf(INDENT4 "%d", rawId); in dump()
347 getDeviceContext().getLightBrightness(rawId).value_or(-1)); in dump()
385 for (const auto& rawId : rawBatteryIds) { in configureBattries() local
386 std::optional<RawBatteryInfo> rawInfo = getDeviceContext().getRawBatteryInfo(rawId); in configureBattries()
392 mBatteries.insert_or_assign(rawId, std::move(battery)); in configureBattries()
414 for (const auto& rawId : rawLightIds) { in configureLights() local
415 std::optional<RawLightInfo> rawInfo = getDeviceContext().getRawLightInfo(rawId); in configureLights()
419 rawInfos.insert_or_assign(rawId, rawInfo.value()); in configureLights()
432 playerIdLightIds.insert_or_assign(playerId, rawId); in configureLights()
437 playerIdLightIds.insert_or_assign(playerId, rawId); in configureLights()
443 keyboardBacklightIds.insert(rawId); in configureLights()
448 rawRgbIds.emplace(LightColor::RED, rawId); in configureLights()
452 rawRgbIds.emplace(LightColor::GREEN, rawId); in configureLights()
456 rawRgbIds.emplace(LightColor::BLUE, rawId); in configureLights()
459 rawGlobalId = rawId; in configureLights()
475 for (const auto& [playerId, rawId] : playerIdLightIds) { in configureLights()
476 rawInfos.erase(rawId); in configureLights()
511 for (const auto& [rawId, rawInfo] : rawInfos) { in configureLights()
513 if (keyboardBacklightIds.find(rawId) != keyboardBacklightIds.end()) { in configureLights()