Loading src/com/android/settings/bluetooth/BluetoothDetailsHeaderController.java +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ public class BluetoothDetailsHeaderController extends BluetoothDetailsController @Override public boolean isAvailable() { boolean hasLeAudio = mCachedDevice.getConnectableProfiles() boolean hasLeAudio = mCachedDevice.getUiAccessibleProfiles() .stream() .anyMatch(profile -> profile.getProfileId() == BluetoothProfile.LE_AUDIO); return !BluetoothUtils.isAdvancedDetailsHeader(mCachedDevice.getDevice()) && !hasLeAudio; Loading src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java +1 −1 Original line number Diff line number Diff line Loading @@ -314,7 +314,7 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll return result; } for (CachedBluetoothDevice cachedItem : mAllOfCachedDevices) { List<LocalBluetoothProfile> tmpResult = cachedItem.getConnectableProfiles(); List<LocalBluetoothProfile> tmpResult = cachedItem.getUiAccessibleProfiles(); for (LocalBluetoothProfile profile : tmpResult) { if (mProfileDeviceMap.containsKey(profile.toString())) { mProfileDeviceMap.get(profile.toString()).add(cachedItem); Loading src/com/android/settings/bluetooth/LeAudioBluetoothDetailsHeaderController.java +1 −1 Original line number Diff line number Diff line Loading @@ -107,7 +107,7 @@ public class LeAudioBluetoothDetailsHeaderController extends BasePreferenceContr if (mCachedDevice == null || mProfileManager == null) { return CONDITIONALLY_UNAVAILABLE; } boolean hasLeAudio = mCachedDevice.getConnectableProfiles() boolean hasLeAudio = mCachedDevice.getUiAccessibleProfiles() .stream() .anyMatch(profile -> profile.getProfileId() == BluetoothProfile.LE_AUDIO); Loading src/com/android/settings/connecteddevice/audiosharing/AudioSharingDevicePreferenceController.java +1 −1 Original line number Diff line number Diff line Loading @@ -437,7 +437,7 @@ public class AudioSharingDevicePreferenceController extends BasePreferenceContro } private boolean isMediaDevice(CachedBluetoothDevice cachedDevice) { return cachedDevice.getConnectableProfiles().stream() return cachedDevice.getUiAccessibleProfiles().stream() .anyMatch( profile -> profile instanceof A2dpProfile Loading tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsProfilesControllerTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -114,7 +114,7 @@ public class BluetoothDetailsProfilesControllerTest extends BluetoothDetailsCont setUpMockProfiles(); when(mCachedBluetoothDeviceManager.getCachedDevicesCopy()) .thenReturn(ImmutableList.of(mCachedDevice)); when(mCachedDevice.getConnectableProfiles()) when(mCachedDevice.getUiAccessibleProfiles()) .thenAnswer(invocation -> new ArrayList<>(mConnectableProfiles)); when(mCachedDevice.getProfiles()) .thenAnswer(invocation -> ImmutableList.of(mConnectableProfiles)); Loading Loading
src/com/android/settings/bluetooth/BluetoothDetailsHeaderController.java +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ public class BluetoothDetailsHeaderController extends BluetoothDetailsController @Override public boolean isAvailable() { boolean hasLeAudio = mCachedDevice.getConnectableProfiles() boolean hasLeAudio = mCachedDevice.getUiAccessibleProfiles() .stream() .anyMatch(profile -> profile.getProfileId() == BluetoothProfile.LE_AUDIO); return !BluetoothUtils.isAdvancedDetailsHeader(mCachedDevice.getDevice()) && !hasLeAudio; Loading
src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java +1 −1 Original line number Diff line number Diff line Loading @@ -314,7 +314,7 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll return result; } for (CachedBluetoothDevice cachedItem : mAllOfCachedDevices) { List<LocalBluetoothProfile> tmpResult = cachedItem.getConnectableProfiles(); List<LocalBluetoothProfile> tmpResult = cachedItem.getUiAccessibleProfiles(); for (LocalBluetoothProfile profile : tmpResult) { if (mProfileDeviceMap.containsKey(profile.toString())) { mProfileDeviceMap.get(profile.toString()).add(cachedItem); Loading
src/com/android/settings/bluetooth/LeAudioBluetoothDetailsHeaderController.java +1 −1 Original line number Diff line number Diff line Loading @@ -107,7 +107,7 @@ public class LeAudioBluetoothDetailsHeaderController extends BasePreferenceContr if (mCachedDevice == null || mProfileManager == null) { return CONDITIONALLY_UNAVAILABLE; } boolean hasLeAudio = mCachedDevice.getConnectableProfiles() boolean hasLeAudio = mCachedDevice.getUiAccessibleProfiles() .stream() .anyMatch(profile -> profile.getProfileId() == BluetoothProfile.LE_AUDIO); Loading
src/com/android/settings/connecteddevice/audiosharing/AudioSharingDevicePreferenceController.java +1 −1 Original line number Diff line number Diff line Loading @@ -437,7 +437,7 @@ public class AudioSharingDevicePreferenceController extends BasePreferenceContro } private boolean isMediaDevice(CachedBluetoothDevice cachedDevice) { return cachedDevice.getConnectableProfiles().stream() return cachedDevice.getUiAccessibleProfiles().stream() .anyMatch( profile -> profile instanceof A2dpProfile Loading
tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsProfilesControllerTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -114,7 +114,7 @@ public class BluetoothDetailsProfilesControllerTest extends BluetoothDetailsCont setUpMockProfiles(); when(mCachedBluetoothDeviceManager.getCachedDevicesCopy()) .thenReturn(ImmutableList.of(mCachedDevice)); when(mCachedDevice.getConnectableProfiles()) when(mCachedDevice.getUiAccessibleProfiles()) .thenAnswer(invocation -> new ArrayList<>(mConnectableProfiles)); when(mCachedDevice.getProfiles()) .thenAnswer(invocation -> ImmutableList.of(mConnectableProfiles)); Loading