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

/frameworks/native/services/inputflinger/
H A DEventHub.h236 virtual bool hasLed(int32_t deviceId, int32_t led) const = 0;
237 virtual void setLedState(int32_t deviceId, int32_t led, bool on) = 0;
301 virtual bool hasLed(int32_t deviceId, int32_t led) const;
302 virtual void setLedState(int32_t deviceId, int32_t led, bool on);
402 status_t mapLed(Device* device, int32_t led, int32_t* outScanCode) const;
403 void setLedStateLocked(Device* device, int32_t led, bool on);
H A DEventHub.cpp494 bool EventHub::hasLed(int32_t deviceId, int32_t led) const {
498 if (device && mapLed(device, led, &sc) == NO_ERROR) {
506 void EventHub::setLedState(int32_t deviceId, int32_t led, bool on) { argument
509 setLedStateLocked(device, led, on);
512 void EventHub::setLedStateLocked(Device* device, int32_t led, bool on) { argument
514 if (device && !device->isVirtual() && mapLed(device, led, &sc) != NAME_NOT_FOUND) {
1463 status_t EventHub::mapLed(Device* device, int32_t led, int32_t* outScanCode) const { argument
1469 if(device->keyMap.keyLayoutMap->findScanCodeForLed(led, &scanCode) != NAME_NOT_FOUND) {
H A DInputReader.h1079 bool avail; // led is available
1080 bool on; // we think the led is currently on
1104 void initializeLedState(LedState& ledState, int32_t led);
1106 void updateLedStateForModifier(LedState& ledState, int32_t led,
H A DInputReader.cpp2233 void KeyboardInputMapper::initializeLedState(LedState& ledState, int32_t led) { argument
2234 ledState.avail = getEventHub()->hasLed(getDeviceId(), led);
2248 int32_t led, int32_t modifier, bool reset) {
2252 getEventHub()->setLedState(getDeviceId(), led, desiredState); local
2247 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/api_pro/
H A DProCamera2Client.cpp400 * - android.led.transmit = defaulted ON
405 uint8_t led = entry.data.u8[i]; local
407 switch(led) {
426 * - android.led.transmit = android.permission.CAMERA_DISABLE_TRANSMIT
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp686 * - android.led.transmit = defaulted ON
691 uint8_t led = entry.data.u8[i]; local
693 switch(led) {
712 * - android.led.transmit = android.permission.CAMERA_DISABLE_TRANSMIT
/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp430 void addLed(int32_t deviceId, int32_t led, bool initialState) { argument
432 device->leds.add(led, initialState);
435 bool getLedState(int32_t deviceId, int32_t led) { argument
437 return device->leds.valueFor(led);
654 virtual bool hasLed(int32_t deviceId, int32_t led) const {
656 return device && device->leds.indexOfKey(led) >= 0;
659 virtual void setLedState(int32_t deviceId, int32_t led, bool on) { argument
662 ssize_t index = device->leds.indexOfKey(led);
664 device->leds.replaceValueAt(led, on);
668 "was not present. led
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp1875 * - android.led.transmit = defaulted ON
1882 uint8_t led = entry.data.u8[i]; local
1884 switch(led) {

Completed in 1139 milliseconds