Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/bluetooth/
DBluetoothAvrcpController.java217 public void sendGroupNavigationCmd(BluetoothDevice device, int keyCode, int keyState) { in sendGroupNavigationCmd() argument
219 + keyState); in sendGroupNavigationCmd()
224 service.sendGroupNavigationCmd(device, keyCode, keyState); in sendGroupNavigationCmd()
/frameworks/native/services/inputflinger/reader/
DEventHub.cpp446 uint8_t keyState[sizeof_bit_array(KEY_MAX + 1)]; in getScanCodeState() local
447 memset(keyState, 0, sizeof(keyState)); in getScanCodeState()
448 if (ioctl(device->fd, EVIOCGKEY(sizeof(keyState)), keyState) >= 0) { in getScanCodeState()
449 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
464 uint8_t keyState[sizeof_bit_array(KEY_MAX + 1)]; in getKeyCodeState() local
465 memset(keyState, 0, sizeof(keyState)); in getKeyCodeState()
466 if (ioctl(device->fd, EVIOCGKEY(sizeof(keyState)), keyState) >= 0) { in getKeyCodeState()
469 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, keyState)) { in getKeyCodeState()