Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/bluetooth/
DIBluetoothAvrcpController.aidl33 void sendPassThroughCmd(in BluetoothDevice device, int keyCode, int keyState); in sendPassThroughCmd() argument
38 void sendGroupNavigationCmd(in BluetoothDevice device, int keyCode, int keyState); in sendGroupNavigationCmd() argument
DBluetoothAvrcpController.java270 public void sendPassThroughCmd(BluetoothDevice device, int keyCode, int keyState) { in sendPassThroughCmd() argument
274 mService.sendPassThroughCmd(device, keyCode, keyState); in sendPassThroughCmd()
368 public void sendGroupNavigationCmd(BluetoothDevice device, int keyCode, int keyState) { in sendGroupNavigationCmd() argument
369 … Log.d(TAG, "sendGroupNavigationCmd dev = " + device + " key " + keyCode + " State = " + keyState); in sendGroupNavigationCmd()
372 mService.sendGroupNavigationCmd(device, keyCode, keyState); in sendGroupNavigationCmd()
/frameworks/native/services/inputflinger/
DEventHub.cpp341 uint8_t keyState[sizeof_bit_array(KEY_MAX + 1)]; in getScanCodeState() local
342 memset(keyState, 0, sizeof(keyState)); in getScanCodeState()
343 if (ioctl(device->fd, EVIOCGKEY(sizeof(keyState)), keyState) >= 0) { in getScanCodeState()
344 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
359 uint8_t keyState[sizeof_bit_array(KEY_MAX + 1)]; in getKeyCodeState() local
360 memset(keyState, 0, sizeof(keyState)); in getKeyCodeState()
361 if (ioctl(device->fd, EVIOCGKEY(sizeof(keyState)), keyState) >= 0) { in getKeyCodeState()
364 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, keyState)) { in getKeyCodeState()