Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08ffdf81 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Prevent checking flag in CTS for device before V" into main

parents 15298d7a 579a19bf
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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;
@@ -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