Loading core/java/android/server/BluetoothService.java +1 −3 Original line number Diff line number Diff line Loading @@ -1340,9 +1340,7 @@ public class BluetoothService extends IBluetooth.Stub { } /*package*/ void handleInputDevicePropertyChange(String path, boolean connected) { String address = getAddressFromObjectPath(path); if (address == null) return; /*package*/ void handleInputDevicePropertyChange(String address, boolean connected) { int state = connected ? BluetoothInputDevice.STATE_CONNECTED : BluetoothInputDevice.STATE_DISCONNECTED; BluetoothDevice device = mAdapter.getRemoteDevice(address); Loading core/jni/android_server_BluetoothEventLoop.cpp +14 −0 Original line number Diff line number Diff line Loading @@ -230,6 +230,20 @@ static jboolean setUpEventLoop(native_data_t *nat) { LOG_AND_FREE_DBUS_ERROR(&err); return JNI_FALSE; } dbus_bus_add_match(nat->conn, "type='signal',interface='"BLUEZ_DBUS_BASE_IFC".Input'", &err); if (dbus_error_is_set(&err)) { LOG_AND_FREE_DBUS_ERROR(&err); return JNI_FALSE; } dbus_bus_add_match(nat->conn, "type='signal',interface='"BLUEZ_DBUS_BASE_IFC".Network'", &err); if (dbus_error_is_set(&err)) { LOG_AND_FREE_DBUS_ERROR(&err); return JNI_FALSE; } dbus_bus_add_match(nat->conn, "type='signal',interface='org.bluez.AudioSink'", &err); Loading Loading
core/java/android/server/BluetoothService.java +1 −3 Original line number Diff line number Diff line Loading @@ -1340,9 +1340,7 @@ public class BluetoothService extends IBluetooth.Stub { } /*package*/ void handleInputDevicePropertyChange(String path, boolean connected) { String address = getAddressFromObjectPath(path); if (address == null) return; /*package*/ void handleInputDevicePropertyChange(String address, boolean connected) { int state = connected ? BluetoothInputDevice.STATE_CONNECTED : BluetoothInputDevice.STATE_DISCONNECTED; BluetoothDevice device = mAdapter.getRemoteDevice(address); Loading
core/jni/android_server_BluetoothEventLoop.cpp +14 −0 Original line number Diff line number Diff line Loading @@ -230,6 +230,20 @@ static jboolean setUpEventLoop(native_data_t *nat) { LOG_AND_FREE_DBUS_ERROR(&err); return JNI_FALSE; } dbus_bus_add_match(nat->conn, "type='signal',interface='"BLUEZ_DBUS_BASE_IFC".Input'", &err); if (dbus_error_is_set(&err)) { LOG_AND_FREE_DBUS_ERROR(&err); return JNI_FALSE; } dbus_bus_add_match(nat->conn, "type='signal',interface='"BLUEZ_DBUS_BASE_IFC".Network'", &err); if (dbus_error_is_set(&err)) { LOG_AND_FREE_DBUS_ERROR(&err); return JNI_FALSE; } dbus_bus_add_match(nat->conn, "type='signal',interface='org.bluez.AudioSink'", &err); Loading