Lines Matching refs:rawId
109 setRawLightBrightness(rawId, brightness); in setLightColor()
146 context.setLightIntensities(rawId, intensities); in setLightColor()
147 setRawLightBrightness(rawId, getAlpha(color)); in setLightColor()
152 std::optional<int32_t> brightness = getRawLightBrightness(rawId); in getLightColor()
196 auto ret = context.getLightIntensities(rawId); in getLightColor()
206 std::optional<int32_t> brightness = getRawLightBrightness(rawId); in getLightColor()
217 for (const auto& [id, rawId] : rawLightIds) { in setLightPlayerId()
219 setRawLightBrightness(rawId, MAX_BRIGHTNESS); in setLightPlayerId()
221 setRawLightBrightness(rawId, 0); in setLightPlayerId()
228 for (const auto& [id, rawId] : rawLightIds) { in getLightPlayerId()
229 std::optional<int32_t> brightness = getRawLightBrightness(rawId); in getLightPlayerId()
244 for (const auto& [id, rawId] : rawLightIds) { in dump()
245 dump += StringPrintf("id %d -> %d ", id, rawId); in dump()
299 for (const auto& rawId : rawLightIds) { in dump() local
300 std::optional<RawLightInfo> rawInfo = getDeviceContext().getRawLightInfo(rawId); in dump()
304 dump += StringPrintf(INDENT4 "%d", rawId); in dump()
309 getDeviceContext().getLightBrightness(rawId).value_or(-1)); in dump()
347 for (const auto& rawId : rawBatteryIds) { in configureBattries() local
348 std::optional<RawBatteryInfo> rawInfo = getDeviceContext().getRawBatteryInfo(rawId); in configureBattries()
354 mBatteries.insert_or_assign(rawId, std::move(battery)); in configureBattries()
374 for (const auto& rawId : rawLightIds) { in configureLights() local
375 std::optional<RawLightInfo> rawInfo = getDeviceContext().getRawLightInfo(rawId); in configureLights()
379 rawInfos.insert_or_assign(rawId, rawInfo.value()); in configureLights()
388 playerIdLightIds.insert_or_assign(playerId, rawId); in configureLights()
393 playerIdLightIds.insert_or_assign(playerId, rawId); in configureLights()
400 rawRgbIds.emplace(LightColor::RED, rawId); in configureLights()
404 rawRgbIds.emplace(LightColor::GREEN, rawId); in configureLights()
408 rawRgbIds.emplace(LightColor::BLUE, rawId); in configureLights()
411 rawGlobalId = rawId; in configureLights()
427 for (const auto& [playerId, rawId] : playerIdLightIds) { in configureLights()
428 rawInfos.erase(rawId); in configureLights()
450 for (const auto& [rawId, rawInfo] : rawInfos) { in configureLights()