OSDN Git Service

Fix rssi handling as one of property change event
authorMatthew Xie <mattx@google.com>
Fri, 24 May 2013 20:01:21 +0000 (13:01 -0700)
committerMatthew Xie <mattx@google.com>
Fri, 24 May 2013 20:25:12 +0000 (13:25 -0700)
commit3cedf3d57aff20e1876a5b450f41b05e975cb8e0
treec5fa34875840792332df7f7b6616c236567247e1
parent0eea1282dcb425c1ea9dc6aa08d323884a9a1655
Fix rssi handling as one of property change event

The rssi is encoded in one byte as int8_t in the stack.
JNI code copied in high byte without proper masking.
The converting is not needed. I am removing the uncessary converting.
bug 9110215

Change-Id: I50628b3a3c0bcf4a33775c6b62e9febd35bdc78d
jni/com_android_bluetooth_btservice_AdapterService.cpp
src/com/android/bluetooth/btservice/RemoteDevices.java