Searched refs:led (Results 1 - 5 of 5) sorted by relevance
/frameworks/base/services/input/ |
H A D | EventHub.h | 217 virtual bool hasLed(int32_t deviceId, int32_t led) const = 0; 218 virtual void setLedState(int32_t deviceId, int32_t led, bool on) = 0; 280 virtual bool hasLed(int32_t deviceId, int32_t led) const; 281 virtual void setLedState(int32_t deviceId, int32_t led, bool on);
|
H A D | EventHub.cpp | 501 bool EventHub::hasLed(int32_t deviceId, int32_t led) const { 504 if (device && led >= 0 && led <= LED_MAX) { 505 if (test_bit(led, device->ledBitmask)) { 512 void EventHub::setLedState(int32_t deviceId, int32_t led, bool on) { 515 if (device && !device->isVirtual() && led >= 0 && led <= LED_MAX) { 520 ev.code = led;
|
H A D | InputReader.h | 1039 bool avail; // led is available 1040 bool on; // we think the led is currently on 1063 void initializeLedState(LedState& ledState, int32_t led); 1065 void updateLedStateForModifier(LedState& ledState, int32_t led,
|
H A D | InputReader.cpp | 2205 void KeyboardInputMapper::initializeLedState(LedState& ledState, int32_t led) { argument 2206 ledState.avail = getEventHub()->hasLed(getDeviceId(), led); 2220 int32_t led, int32_t modifier, bool reset) { 2224 getEventHub()->setLedState(getDeviceId(), led, desiredState); local 2219 updateLedStateForModifier(LedState& ledState, int32_t led, int32_t modifier, bool reset) argument
|
/frameworks/base/services/input/tests/ |
H A D | InputReader_test.cpp | 420 void addLed(int32_t deviceId, int32_t led, bool initialState) { argument 422 device->leds.add(led, initialState); 425 bool getLedState(int32_t deviceId, int32_t led) { argument 427 return device->leds.valueFor(led); 640 virtual bool hasLed(int32_t deviceId, int32_t led) const { 642 return device && device->leds.indexOfKey(led) >= 0; 645 virtual void setLedState(int32_t deviceId, int32_t led, bool on) { argument 648 ssize_t index = device->leds.indexOfKey(led); 650 device->leds.replaceValueAt(led, on); 654 "was not present. led [all...] |
Completed in 867 milliseconds