Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/reader/controller/
DPeripheralController.cpp134 setRawLightBrightness(rawRgbIds.at(LightColor::RED), red); in setLightColor()
135 setRawLightBrightness(rawRgbIds.at(LightColor::GREEN), green); in setLightColor()
136 setRawLightBrightness(rawRgbIds.at(LightColor::BLUE), blue); in setLightColor()
145 std::unordered_map<LightColor, int32_t> intensities; in setLightColor()
146 intensities.emplace(LightColor::RED, getRed(color)); in setLightColor()
147 intensities.emplace(LightColor::GREEN, getGreen(color)); in setLightColor()
148 intensities.emplace(LightColor::BLUE, getBlue(color)); in setLightColor()
172 std::optional<int32_t> redOr = getRawLightBrightness(rawRgbIds.at(LightColor::RED)); in getLightColor()
173 std::optional<int32_t> greenOr = getRawLightBrightness(rawRgbIds.at(LightColor::GREEN)); in getLightColor()
174 std::optional<int32_t> blueOr = getRawLightBrightness(rawRgbIds.at(LightColor::BLUE)); in getLightColor()
[all …]
DPeripheralController.h99 const std::unordered_map<LightColor, int32_t>& rawRgbIds, in RgbLight()
109 std::unordered_map<LightColor, int32_t /* rawLightId */> rawRgbIds;
/frameworks/native/services/inputflinger/tests/
DFakeEventHub.h95 std::unordered_map<int32_t /* lightId */, std::unordered_map<LightColor, int32_t>>
146 const std::unordered_map<LightColor, int32_t> intensities);
219 std::unordered_map<LightColor, int32_t> intensities) override;
221 std::optional<std::unordered_map<LightColor, int32_t>> getLightIntensities(
DInterfaceMocks.h121 MOCK_METHOD((std::optional<std::unordered_map<LightColor, int32_t>>), getLightIntensities,
125 (std::unordered_map<LightColor, int32_t>)intensities),
DFakeEventHub.cpp189 const std::unordered_map<LightColor, int32_t> intensities) { in fakeLightIntensities() argument
608 std::unordered_map<LightColor, int32_t> intensities) { in setLightIntensities() argument
620 std::optional<std::unordered_map<LightColor, int32_t>> FakeEventHub::getLightIntensities( in getLightIntensities()
DInputReader_test.cpp113 const std::unordered_map<std::string, LightColor> LIGHT_COLORS = {{"red", LightColor::RED},
114 {"green", LightColor::GREEN},
115 {"blue", LightColor::BLUE}};
/frameworks/native/services/inputflinger/reader/include/
DEventHub.h158 enum class LightColor : uint32_t { enum
332 virtual std::optional<std::unordered_map<LightColor, int32_t>> getLightIntensities(
335 std::unordered_map<LightColor, int32_t> intensities) = 0;
548 std::optional<std::unordered_map<LightColor, int32_t>> getLightIntensities(
551 std::unordered_map<LightColor, int32_t> intensities) override final;
DInputDevice.h361 inline std::optional<std::unordered_map<LightColor, int32_t>> getLightIntensities( in getLightIntensities()
367 std::unordered_map<LightColor, int32_t> intensities) { in setLightIntensities() argument
/frameworks/native/services/inputflinger/reader/
DEventHub.cpp137 const std::unordered_map<std::string, LightColor> LIGHT_COLORS = {{"red", LightColor::RED},
138 {"green", LightColor::GREEN},
139 {"blue", LightColor::BLUE}};
322 static std::optional<std::array<LightColor, COLOR_NUM>> getColorIndexArray( in getColorIndexArray()
333 std::array<LightColor, COLOR_NUM> colors; in getColorIndexArray()
1357 std::optional<std::unordered_map<LightColor, int32_t>> EventHub::getLightIntensities( in getLightIntensities()
1373 std::array<LightColor, COLOR_NUM> colors = ret.value(); in getLightIntensities()
1389 std::unordered_map<LightColor, int32_t> intensities; in getLightIntensities()
1415 std::unordered_map<LightColor, int32_t> intensities) { in setLightIntensities() argument
1431 std::array<LightColor, COLOR_NUM> colors = ret.value(); in setLightIntensities()
/frameworks/native/services/inputflinger/tests/fuzzers/
DMapperHelpers.h176 std::optional<std::unordered_map<LightColor, int32_t>> getLightIntensities( in getLightIntensities()
181 std::unordered_map<LightColor, int32_t> intensities) override{}; in setLightIntensities() argument