Loading packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java +1 −0 Original line number Diff line number Diff line Loading @@ -398,6 +398,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> * @param id the group id from the CSIP. */ public void setGroupId(int id) { Log.d(TAG, this.getDevice().getAnonymizedAddress() + " set GroupId " + id); mGroupId = id; } Loading packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDeviceManager.java +5 −1 Original line number Diff line number Diff line Loading @@ -357,8 +357,12 @@ public class CachedBluetoothDeviceManager { * {@code false}. */ public synchronized boolean shouldPairByCsip(BluetoothDevice device, int groupId) { if (mOngoingSetMemberPair != null || device.getBondState() != BluetoothDevice.BOND_NONE boolean isOngoingSetMemberPair = mOngoingSetMemberPair != null; int bondState = device.getBondState(); if (isOngoingSetMemberPair || bondState != BluetoothDevice.BOND_NONE || !mCsipDeviceManager.isExistedGroupId(groupId)) { Log.d(TAG, "isOngoingSetMemberPair: " + isOngoingSetMemberPair + " , device.getBondState: " + bondState); return false; } Loading packages/SettingsLib/src/com/android/settingslib/bluetooth/CsipDeviceManager.java +3 −0 Original line number Diff line number Diff line Loading @@ -102,9 +102,12 @@ public class CsipDeviceManager { } private CachedBluetoothDevice getCachedDevice(int groupId) { log("getCachedDevice: groupId: " + groupId); for (int i = mCachedDevices.size() - 1; i >= 0; i--) { CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); if (cachedDevice.getGroupId() == groupId) { log("getCachedDevice: found cachedDevice with the groupId: " + cachedDevice.getDevice().getAnonymizedAddress()); return cachedDevice; } } Loading Loading
packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java +1 −0 Original line number Diff line number Diff line Loading @@ -398,6 +398,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> * @param id the group id from the CSIP. */ public void setGroupId(int id) { Log.d(TAG, this.getDevice().getAnonymizedAddress() + " set GroupId " + id); mGroupId = id; } Loading
packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDeviceManager.java +5 −1 Original line number Diff line number Diff line Loading @@ -357,8 +357,12 @@ public class CachedBluetoothDeviceManager { * {@code false}. */ public synchronized boolean shouldPairByCsip(BluetoothDevice device, int groupId) { if (mOngoingSetMemberPair != null || device.getBondState() != BluetoothDevice.BOND_NONE boolean isOngoingSetMemberPair = mOngoingSetMemberPair != null; int bondState = device.getBondState(); if (isOngoingSetMemberPair || bondState != BluetoothDevice.BOND_NONE || !mCsipDeviceManager.isExistedGroupId(groupId)) { Log.d(TAG, "isOngoingSetMemberPair: " + isOngoingSetMemberPair + " , device.getBondState: " + bondState); return false; } Loading
packages/SettingsLib/src/com/android/settingslib/bluetooth/CsipDeviceManager.java +3 −0 Original line number Diff line number Diff line Loading @@ -102,9 +102,12 @@ public class CsipDeviceManager { } private CachedBluetoothDevice getCachedDevice(int groupId) { log("getCachedDevice: groupId: " + groupId); for (int i = mCachedDevices.size() - 1; i >= 0; i--) { CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); if (cachedDevice.getGroupId() == groupId) { log("getCachedDevice: found cachedDevice with the groupId: " + cachedDevice.getDevice().getAnonymizedAddress()); return cachedDevice; } } Loading