Loading android/app/src/com/android/bluetooth/btservice/BondStateMachine.java +4 −4 Original line number Diff line number Diff line Loading @@ -202,7 +202,7 @@ final class BondStateMachine extends StateMachine { Log.e( TAG, "In stable state, received invalid newState: " + state2str(newState)); + bondStateToString(newState)); } break; case BONDED_INTENT_DELAY: Loading Loading @@ -599,9 +599,9 @@ final class BondStateMachine extends StateMachine { "Bond State Change Intent:" + device + " " + state2str(oldState) + bondStateToString(oldState) + " => " + state2str(newState)); + bondStateToString(newState)); } void bondStateChangeCallback(int status, byte[] address, int newState, int hciReason) { Loading Loading @@ -803,7 +803,7 @@ final class BondStateMachine extends StateMachine { } } private String state2str(int state) { public static String bondStateToString(int state) { if (state == BluetoothDevice.BOND_NONE) { return "BOND_NONE"; } else if (state == BluetoothDevice.BOND_BONDING) { Loading android/app/src/com/android/bluetooth/btservice/PhonePolicy.java +12 −2 Original line number Diff line number Diff line Loading @@ -1125,9 +1125,19 @@ public class PhonePolicy implements AdapterService.BluetoothStateCallback { * @param uuids are the services supported by the remote device */ void onUuidsDiscovered(BluetoothDevice device, ParcelUuid[] uuids) { debugLog("onUuidsDiscovered: discovered services for device " + device); int bondState = mAdapterService.getBondState(device); debugLog( "onUuidsDiscovered: discovered services for device " + device + " (" + BondStateMachine.bondStateToString(bondState) + ")"); if (uuids != null) { if (!Flags.unbondedProfileForbidFix() || bondState != BluetoothDevice.BOND_NONE) { processInitProfilePriorities(device, uuids); } else { debugLog("Device in BOND_NONE state, won't connect profiles" + device); } } else { warnLog("onUuidsDiscovered: uuids is null for device " + device); } Loading Loading
android/app/src/com/android/bluetooth/btservice/BondStateMachine.java +4 −4 Original line number Diff line number Diff line Loading @@ -202,7 +202,7 @@ final class BondStateMachine extends StateMachine { Log.e( TAG, "In stable state, received invalid newState: " + state2str(newState)); + bondStateToString(newState)); } break; case BONDED_INTENT_DELAY: Loading Loading @@ -599,9 +599,9 @@ final class BondStateMachine extends StateMachine { "Bond State Change Intent:" + device + " " + state2str(oldState) + bondStateToString(oldState) + " => " + state2str(newState)); + bondStateToString(newState)); } void bondStateChangeCallback(int status, byte[] address, int newState, int hciReason) { Loading Loading @@ -803,7 +803,7 @@ final class BondStateMachine extends StateMachine { } } private String state2str(int state) { public static String bondStateToString(int state) { if (state == BluetoothDevice.BOND_NONE) { return "BOND_NONE"; } else if (state == BluetoothDevice.BOND_BONDING) { Loading
android/app/src/com/android/bluetooth/btservice/PhonePolicy.java +12 −2 Original line number Diff line number Diff line Loading @@ -1125,9 +1125,19 @@ public class PhonePolicy implements AdapterService.BluetoothStateCallback { * @param uuids are the services supported by the remote device */ void onUuidsDiscovered(BluetoothDevice device, ParcelUuid[] uuids) { debugLog("onUuidsDiscovered: discovered services for device " + device); int bondState = mAdapterService.getBondState(device); debugLog( "onUuidsDiscovered: discovered services for device " + device + " (" + BondStateMachine.bondStateToString(bondState) + ")"); if (uuids != null) { if (!Flags.unbondedProfileForbidFix() || bondState != BluetoothDevice.BOND_NONE) { processInitProfilePriorities(device, uuids); } else { debugLog("Device in BOND_NONE state, won't connect profiles" + device); } } else { warnLog("onUuidsDiscovered: uuids is null for device " + device); } Loading