Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/bluetooth/
DIBluetoothAvrcpController.aidl30 void sendPassThroughCmd(in BluetoothDevice device, int keyCode, int keyState); in sendPassThroughCmd() argument
DBluetoothAvrcpController.java212 public void sendPassThroughCmd(BluetoothDevice device, int keyCode, int keyState) { in sendPassThroughCmd() argument
216 mService.sendPassThroughCmd(device, keyCode, keyState); in sendPassThroughCmd()
/frameworks/native/services/inputflinger/
DEventHub.cpp334 uint8_t keyState[sizeof_bit_array(KEY_MAX + 1)]; in getScanCodeState() local
335 memset(keyState, 0, sizeof(keyState)); in getScanCodeState()
336 if (ioctl(device->fd, EVIOCGKEY(sizeof(keyState)), keyState) >= 0) { in getScanCodeState()
337 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
352 uint8_t keyState[sizeof_bit_array(KEY_MAX + 1)]; in getKeyCodeState() local
353 memset(keyState, 0, sizeof(keyState)); in getKeyCodeState()
354 if (ioctl(device->fd, EVIOCGKEY(sizeof(keyState)), keyState) >= 0) { in getKeyCodeState()
357 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, keyState)) { in getKeyCodeState()