Searched refs:led (Results 1 - 9 of 9) sorted by relevance

/frameworks/native/services/inputflinger/
H A DEventHub.h246 virtual bool hasLed(int32_t deviceId, int32_t led) const = 0;
247 virtual void setLedState(int32_t deviceId, int32_t led, bool on) = 0;
312 virtual bool hasLed(int32_t deviceId, int32_t led) const;
313 virtual void setLedState(int32_t deviceId, int32_t led, bool on);
414 status_t mapLed(Device* device, int32_t led, int32_t* outScanCode) const;
415 void setLedStateLocked(Device* device, int32_t led, bool on);
H A DEventHub.cpp515 bool EventHub::hasLed(int32_t deviceId, int32_t led) const {
519 if (device && mapLed(device, led, &sc) == NO_ERROR) {
527 void EventHub::setLedState(int32_t deviceId, int32_t led, bool on) { argument
530 setLedStateLocked(device, led, on);
533 void EventHub::setLedStateLocked(Device* device, int32_t led, bool on) { argument
535 if (device && !device->isVirtual() && mapLed(device, led, &sc) != NAME_NOT_FOUND) {
1517 status_t EventHub::mapLed(Device* device, int32_t led, int32_t* outScanCode) const { argument
1523 if(device->keyMap.keyLayoutMap->findScanCodeForLed(led, &scanCode) != NAME_NOT_FOUND) {
H A DInputReader.h1146 bool avail; // led is available
1147 bool on; // we think the led is currently on
1172 void initializeLedState(LedState& ledState, int32_t led);
1174 void updateLedStateForModifier(LedState& ledState, int32_t led,
H A DInputReader.cpp2379 void KeyboardInputMapper::initializeLedState(LedState& ledState, int32_t led) { argument
2380 ledState.avail = getEventHub()->hasLed(getDeviceId(), led);
2394 int32_t led, int32_t modifier, bool reset) {
2398 getEventHub()->setLedState(getDeviceId(), led, desiredState); local
2393 updateLedStateForModifier(LedState& ledState, int32_t led, int32_t modifier, bool reset) argument
/frameworks/native/include/input/
H A DInputEventLabels.h25 #define DEFINE_LED(led) { #led, ALED_##led }
/frameworks/native/libs/input/
H A DKeyLayoutMap.cpp217 } else if (keywordToken == "led") {
416 ALOGE("%s: Expected led %s number, got '%s'.", mTokenizer->getLocation().string(),
423 ALOGE("%s: Duplicate entry for led %s '%s'.", mTokenizer->getLocation().string(),
438 ALOGD("Parsed led %s: code=%d, ledCode=%d.",
442 Led led; local
443 led.ledCode = ledCode;
444 map.add(code, led);
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp1080 * - android.led.transmit = defaulted ON
1085 uint8_t led = entry.data.u8[i]; local
1087 switch(led) {
1106 * - android.led.transmit = android.permission.CAMERA_DISABLE_TRANSMIT
/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp429 void addLed(int32_t deviceId, int32_t led, bool initialState) { argument
431 device->leds.add(led, initialState);
434 bool getLedState(int32_t deviceId, int32_t led) { argument
436 return device->leds.valueFor(led);
656 virtual bool hasLed(int32_t deviceId, int32_t led) const {
658 return device && device->leds.indexOfKey(led) >= 0;
661 virtual void setLedState(int32_t deviceId, int32_t led, bool on) { argument
664 ssize_t index = device->leds.indexOfKey(led);
666 device->leds.replaceValueAt(led, on);
670 "was not present. led
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp1900 * - android.led.transmit = defaulted ON
1907 uint8_t led = entry.data.u8[i]; local
1909 switch(led) {

Completed in 165 milliseconds