Loading framework/tests/util/src/android/bluetooth/cts/TestUtils.java +6 −2 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ package android.bluetooth.cts; import static com.android.bluetooth.flags.Flags.leaudioBroadcastFeatureSupport; import static com.android.modules.utils.build.SdkLevel.isAtLeastV; import static com.google.common.truth.Truth.assertThat; import android.bluetooth.BluetoothAdapter; Loading Loading @@ -96,11 +98,13 @@ public class TestUtils extends android.bluetooth.test_utils.TestUtils { return BluetoothProperties.isProfileBapUnicastClientEnabled().orElse(false); } case BluetoothProfile.LE_AUDIO_BROADCAST -> { return leaudioBroadcastFeatureSupport() return isAtLeastV() && leaudioBroadcastFeatureSupport() && BluetoothProperties.isProfileBapBroadcastSourceEnabled().orElse(false); } case BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT -> { return leaudioBroadcastFeatureSupport() return isAtLeastV() && leaudioBroadcastFeatureSupport() && BluetoothProperties.isProfileBapBroadcastAssistEnabled().orElse(false); } // Hidden profile Loading Loading
framework/tests/util/src/android/bluetooth/cts/TestUtils.java +6 −2 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ package android.bluetooth.cts; import static com.android.bluetooth.flags.Flags.leaudioBroadcastFeatureSupport; import static com.android.modules.utils.build.SdkLevel.isAtLeastV; import static com.google.common.truth.Truth.assertThat; import android.bluetooth.BluetoothAdapter; Loading Loading @@ -96,11 +98,13 @@ public class TestUtils extends android.bluetooth.test_utils.TestUtils { return BluetoothProperties.isProfileBapUnicastClientEnabled().orElse(false); } case BluetoothProfile.LE_AUDIO_BROADCAST -> { return leaudioBroadcastFeatureSupport() return isAtLeastV() && leaudioBroadcastFeatureSupport() && BluetoothProperties.isProfileBapBroadcastSourceEnabled().orElse(false); } case BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT -> { return leaudioBroadcastFeatureSupport() return isAtLeastV() && leaudioBroadcastFeatureSupport() && BluetoothProperties.isProfileBapBroadcastAssistEnabled().orElse(false); } // Hidden profile Loading