Home
last modified time | relevance | path

Searched refs:ledState (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/services/inputflinger/reader/mapper/
DKeyboardInputMapper.cpp410 void KeyboardInputMapper::initializeLedState(LedState& ledState, int32_t led) { in initializeLedState() argument
411 ledState.avail = getDeviceContext().hasLed(led); in initializeLedState()
412 ledState.on = false; in initializeLedState()
421 void KeyboardInputMapper::updateLedStateForModifier(LedState& ledState, int32_t led, in updateLedStateForModifier() argument
423 if (ledState.avail) { in updateLedStateForModifier()
425 if (reset || ledState.on != desiredState) { in updateLedStateForModifier()
427 ledState.on = desiredState; in updateLedStateForModifier()
DKeyboardInputMapper.h95 void initializeLedState(LedState& ledState, int32_t led);
97 void updateLedStateForModifier(LedState& ledState, int32_t led, int32_t modifier, bool reset);