Home
last modified time | relevance | path

Searched refs:LightColor (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/services/inputflinger/reader/controller/
DPeripheralController.cpp130 setRawLightBrightness(rawRgbIds.at(LightColor::RED), red); in setLightColor()
131 setRawLightBrightness(rawRgbIds.at(LightColor::GREEN), green); in setLightColor()
132 setRawLightBrightness(rawRgbIds.at(LightColor::BLUE), blue); in setLightColor()
141 std::unordered_map<LightColor, int32_t> intensities; in setLightColor()
142 intensities.emplace(LightColor::RED, getRed(color)); in setLightColor()
143 intensities.emplace(LightColor::GREEN, getGreen(color)); in setLightColor()
144 intensities.emplace(LightColor::BLUE, getBlue(color)); in setLightColor()
168 std::optional<int32_t> redOr = getRawLightBrightness(rawRgbIds.at(LightColor::RED)); in getLightColor()
169 std::optional<int32_t> greenOr = getRawLightBrightness(rawRgbIds.at(LightColor::GREEN)); in getLightColor()
170 std::optional<int32_t> blueOr = getRawLightBrightness(rawRgbIds.at(LightColor::BLUE)); in getLightColor()
[all …]
DPeripheralController.h94 const std::unordered_map<LightColor, int32_t>& rawRgbIds, in RgbLight()
104 std::unordered_map<LightColor, int32_t /* rawLightId */> rawRgbIds;
/frameworks/native/services/inputflinger/reader/include/
DEventHub.h151 enum class LightColor : uint32_t { enum
295 virtual std::optional<std::unordered_map<LightColor, int32_t>> getLightIntensities(
298 std::unordered_map<LightColor, int32_t> intensities) = 0;
472 std::optional<std::unordered_map<LightColor, int32_t>> getLightIntensities(
475 std::unordered_map<LightColor, int32_t> intensities) override final;
DInputDevice.h298 inline std::optional<std::unordered_map<LightColor, int32_t>> getLightIntensities( in getLightIntensities()
304 std::unordered_map<LightColor, int32_t> intensities) { in setLightIntensities() argument
/frameworks/native/services/inputflinger/reader/
DEventHub.cpp126 const std::unordered_map<std::string, LightColor> LIGHT_COLORS = {{"red", LightColor::RED},
127 {"green", LightColor::GREEN},
128 {"blue", LightColor::BLUE}};
276 static std::optional<std::array<LightColor, COLOR_NUM>> getColorIndexArray( in getColorIndexArray()
287 std::array<LightColor, COLOR_NUM> colors; in getColorIndexArray()
1075 std::optional<std::unordered_map<LightColor, int32_t>> EventHub::getLightIntensities( in getLightIntensities()
1091 std::array<LightColor, COLOR_NUM> colors = ret.value(); in getLightIntensities()
1107 std::unordered_map<LightColor, int32_t> intensities; in getLightIntensities()
1133 std::unordered_map<LightColor, int32_t> intensities) { in setLightIntensities() argument
1149 std::array<LightColor, COLOR_NUM> colors = ret.value(); in setLightIntensities()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp93 const std::unordered_map<std::string, LightColor> LIGHT_COLORS = {{"red", LightColor::RED},
94 {"green", LightColor::GREEN},
95 {"blue", LightColor::BLUE}};
434 std::unordered_map<int32_t /* lightId */, std::unordered_map<LightColor, int32_t>>
595 const std::unordered_map<LightColor, int32_t> intensities) { in fakeLightIntensities() argument
938 std::unordered_map<LightColor, int32_t> intensities) override { in setLightIntensities() argument
950 std::optional<std::unordered_map<LightColor, int32_t>> getLightIntensities( in getLightIntensities()