Searched defs:led (Results 1 - 6 of 6) sorted by relevance

/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.cpp869 * - android.led.transmit = defaulted ON
874 uint8_t led = entry.data.u8[i]; local
876 switch(led) {
895 * - android.led.transmit = android.permission.CAMERA_DISABLE_TRANSMIT
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp1904 * - android.led.transmit = defaulted ON
1911 uint8_t led = entry.data.u8[i]; local
1913 switch(led) {
/frameworks/native/services/inputflinger/
H A DEventHub.cpp501 bool EventHub::hasLed(int32_t deviceId, int32_t led) const {
505 if (device && mapLed(device, led, &sc) == NO_ERROR) {
513 void EventHub::setLedState(int32_t deviceId, int32_t led, bool on) { argument
516 setLedStateLocked(device, led, on);
519 void EventHub::setLedStateLocked(Device* device, int32_t led, bool on) { argument
521 if (device && !device->isVirtual() && mapLed(device, led, &sc) != NAME_NOT_FOUND) {
1494 status_t EventHub::mapLed(Device* device, int32_t led, int32_t* outScanCode) const { argument
1500 if(device->keyMap.keyLayoutMap->findScanCodeForLed(led, &scanCode) != NAME_NOT_FOUND) {
H A DInputReader.cpp2331 void KeyboardInputMapper::initializeLedState(LedState& ledState, int32_t led) { argument
2332 ledState.avail = getEventHub()->hasLed(getDeviceId(), led);
2346 int32_t led, int32_t modifier, bool reset) {
2350 getEventHub()->setLedState(getDeviceId(), led, desiredState); local
2345 updateLedStateForModifier(LedState& ledState, int32_t led, int32_t modifier, bool reset) argument
/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);
652 virtual bool hasLed(int32_t deviceId, int32_t led) const {
654 return device && device->leds.indexOfKey(led) >= 0;
657 virtual void setLedState(int32_t deviceId, int32_t led, bool on) { argument
660 ssize_t index = device->leds.indexOfKey(led);
662 device->leds.replaceValueAt(led, on);
666 "was not present. led
[all...]

Completed in 198 milliseconds