Rename toggle "Enable Bluetooth LE audio" to "Disable Bluetooth LE audio"

Bug: 275388899
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothLeAudioPreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothLeAudioAllowListPreferenceControllerTest
Change-Id: Ic936eb22aa4f6efd97d3a84b23a44fab83dd09a0
This commit is contained in:
Patty Huang
2023-03-31 11:33:52 +08:00
parent ca3aa2a557
commit b79d64ee90
5 changed files with 25 additions and 38 deletions

View File

@@ -17,7 +17,7 @@
package com.android.settings.development;
import static com.android.settings.development.BluetoothLeAudioPreferenceController
.LE_AUDIO_DYNAMIC_ENABLED_PROPERTY;
.LE_AUDIO_SWITCHER_DISABLED_PROPERTY;
import static com.google.common.truth.Truth.assertThat;
@@ -75,8 +75,8 @@ public class BluetoothLeAudioPreferenceControllerTest {
mController.onRebootDialogConfirmed();
final boolean status = SystemProperties
.getBoolean(LE_AUDIO_DYNAMIC_ENABLED_PROPERTY, false);
assertThat(status).isTrue();
.getBoolean(LE_AUDIO_SWITCHER_DISABLED_PROPERTY, true);
assertThat(status).isFalse();
}
@Test
@@ -87,8 +87,8 @@ public class BluetoothLeAudioPreferenceControllerTest {
mController.onRebootDialogConfirmed();
final boolean status = SystemProperties
.getBoolean(LE_AUDIO_DYNAMIC_ENABLED_PROPERTY, false);
assertThat(status).isFalse();
.getBoolean(LE_AUDIO_SWITCHER_DISABLED_PROPERTY, true);
assertThat(status).isTrue();
}
@Test
@@ -99,7 +99,7 @@ public class BluetoothLeAudioPreferenceControllerTest {
mController.onRebootDialogCanceled();
final boolean status = SystemProperties
.getBoolean(LE_AUDIO_DYNAMIC_ENABLED_PROPERTY, false);
assertThat(status).isFalse();
.getBoolean(LE_AUDIO_SWITCHER_DISABLED_PROPERTY, true);
assertThat(status).isTrue();
}
}