From 61c41c9ef344b4b1b254160e074fe5ad6380ef3d Mon Sep 17 00:00:00 2001 From: chelseahao Date: Thu, 6 Mar 2025 14:51:58 +0800 Subject: [PATCH] [Audiosharing] Disable flag in test. Test: atest Flag: com.android.settingslib.flags.enable_temporary_bond_devices_ui Bug: 400879282 Change-Id: I0f1aeef5419afc0a23564f726e67d36563a91333 --- .../settings/bluetooth/BluetoothDevicePreferenceTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/robotests/src/com/android/settings/bluetooth/BluetoothDevicePreferenceTest.java b/tests/robotests/src/com/android/settings/bluetooth/BluetoothDevicePreferenceTest.java index 6a72c7d2e0c..d318e061656 100644 --- a/tests/robotests/src/com/android/settings/bluetooth/BluetoothDevicePreferenceTest.java +++ b/tests/robotests/src/com/android/settings/bluetooth/BluetoothDevicePreferenceTest.java @@ -34,6 +34,7 @@ import android.content.Context; import android.graphics.drawable.Drawable; import android.os.Looper; import android.os.UserManager; +import android.platform.test.annotations.DisableFlags; import android.platform.test.annotations.EnableFlags; import android.platform.test.flag.junit.SetFlagsRule; import android.util.Pair; @@ -175,6 +176,7 @@ public class BluetoothDevicePreferenceTest { } @Test + @DisableFlags(Flags.FLAG_ENABLE_TEMPORARY_BOND_DEVICES_UI) public void onClicked_deviceNotBonded_shouldLogBluetoothPairEvent() { when(mCachedBluetoothDevice.isConnected()).thenReturn(false); when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); @@ -192,6 +194,7 @@ public class BluetoothDevicePreferenceTest { } @Test + @DisableFlags(Flags.FLAG_ENABLE_TEMPORARY_BOND_DEVICES_UI) public void onClicked_deviceNotBonded_shouldLogBluetoothPairEventAndPairWithoutNameEvent() { when(mCachedBluetoothDevice.isConnected()).thenReturn(false); when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE);