Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/BluetoothControllerImpl.java +9 −0 Original line number Original line Diff line number Diff line Loading @@ -157,6 +157,7 @@ public class BluetoothControllerImpl implements BluetoothController, BluetoothCa private String getDeviceString(CachedBluetoothDevice device) { private String getDeviceString(CachedBluetoothDevice device) { return device.getName() return device.getName() + " profiles=" + getDeviceProfilesString(device) + " connected=" + device.isConnected() + " connected=" + device.isConnected() + " active[A2DP]=" + device.isActiveDevice(BluetoothProfile.A2DP) + " active[A2DP]=" + device.isActiveDevice(BluetoothProfile.A2DP) + " active[HEADSET]=" + device.isActiveDevice(BluetoothProfile.HEADSET) + " active[HEADSET]=" + device.isActiveDevice(BluetoothProfile.HEADSET) Loading @@ -164,6 +165,14 @@ public class BluetoothControllerImpl implements BluetoothController, BluetoothCa + " active[LE_AUDIO]=" + device.isActiveDevice(BluetoothProfile.LE_AUDIO); + " active[LE_AUDIO]=" + device.isActiveDevice(BluetoothProfile.LE_AUDIO); } } private String getDeviceProfilesString(CachedBluetoothDevice device) { List<String> profileIds = new ArrayList<>(); for (LocalBluetoothProfile profile : device.getProfiles()) { profileIds.add(String.valueOf(profile.getProfileId())); } return "[" + String.join(",", profileIds) + "]"; } @Override @Override public List<CachedBluetoothDevice> getConnectedDevices() { public List<CachedBluetoothDevice> getConnectedDevices() { List<CachedBluetoothDevice> out; List<CachedBluetoothDevice> out; Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/BluetoothControllerImpl.java +9 −0 Original line number Original line Diff line number Diff line Loading @@ -157,6 +157,7 @@ public class BluetoothControllerImpl implements BluetoothController, BluetoothCa private String getDeviceString(CachedBluetoothDevice device) { private String getDeviceString(CachedBluetoothDevice device) { return device.getName() return device.getName() + " profiles=" + getDeviceProfilesString(device) + " connected=" + device.isConnected() + " connected=" + device.isConnected() + " active[A2DP]=" + device.isActiveDevice(BluetoothProfile.A2DP) + " active[A2DP]=" + device.isActiveDevice(BluetoothProfile.A2DP) + " active[HEADSET]=" + device.isActiveDevice(BluetoothProfile.HEADSET) + " active[HEADSET]=" + device.isActiveDevice(BluetoothProfile.HEADSET) Loading @@ -164,6 +165,14 @@ public class BluetoothControllerImpl implements BluetoothController, BluetoothCa + " active[LE_AUDIO]=" + device.isActiveDevice(BluetoothProfile.LE_AUDIO); + " active[LE_AUDIO]=" + device.isActiveDevice(BluetoothProfile.LE_AUDIO); } } private String getDeviceProfilesString(CachedBluetoothDevice device) { List<String> profileIds = new ArrayList<>(); for (LocalBluetoothProfile profile : device.getProfiles()) { profileIds.add(String.valueOf(profile.getProfileId())); } return "[" + String.join(",", profileIds) + "]"; } @Override @Override public List<CachedBluetoothDevice> getConnectedDevices() { public List<CachedBluetoothDevice> getConnectedDevices() { List<CachedBluetoothDevice> out; List<CachedBluetoothDevice> out; Loading