Add Settings key for UWB State

Test: Manual
Bug: 191608501
Change-Id: I7656f78f47183e9e61d98a3ccbac94690570df20
This commit is contained in:
Joy Babafemi
2021-08-31 21:11:35 +00:00
parent 00125c388b
commit 760255d894
4 changed files with 13 additions and 1 deletions

View File

@@ -11974,6 +11974,13 @@ public final class Settings {
@Readable
public static final String WIFI_MIGRATION_COMPLETED = "wifi_migration_completed";
/**
* Whether UWB should be enabled.
* @hide
*/
@Readable
public static final String UWB_ENABLED = "uwb_enabled";
/**
* Value to specify whether network quality scores and badging should be shown in the UI.
*

View File

@@ -972,6 +972,7 @@ message GlobalSettingsProto {
optional SettingProto usb_mass_storage_enabled = 127 [ (android.privacy).dest = DEST_AUTOMATIC ];
optional SettingProto use_google_mail = 128 [ (android.privacy).dest = DEST_AUTOMATIC ];
optional SettingProto use_open_wifi_package = 129 [ (android.privacy).dest = DEST_AUTOMATIC ];
optional SettingProto uwb_enabled = 155 [ (android.privacy).dest = DEST_AUTOMATIC ];
optional SettingProto vt_ims_enabled = 130 [ (android.privacy).dest = DEST_AUTOMATIC ];
optional SettingProto wait_for_debugger = 131 [ (android.privacy).dest = DEST_AUTOMATIC ];
@@ -1065,5 +1066,5 @@ message GlobalSettingsProto {
// Please insert fields in alphabetical order and group them into messages
// if possible (to avoid reaching the method limit).
// Next tag = 155;
// Next tag = 156;
}

View File

@@ -1475,6 +1475,9 @@ class SettingsProtoDumpUtil {
dumpSetting(s, p,
Settings.Global.USE_OPEN_WIFI_PACKAGE,
GlobalSettingsProto.USE_OPEN_WIFI_PACKAGE);
dumpSetting(s, p,
Settings.Global.UWB_ENABLED,
GlobalSettingsProto.UWB_ENABLED);
dumpSetting(s, p,
Settings.Global.VT_IMS_ENABLED,
GlobalSettingsProto.VT_IMS_ENABLED);

View File

@@ -524,6 +524,7 @@ public class SettingsBackupTest {
Settings.Global.UPDATABLE_DRIVER_PRODUCTION_DENYLIST,
Settings.Global.UPDATABLE_DRIVER_PRODUCTION_ALLOWLIST,
Settings.Global.UPDATABLE_DRIVER_SPHAL_LIBRARIES,
Settings.Global.UWB_ENABLED,
Settings.Global.SHOW_ANGLE_IN_USE_DIALOG_BOX,
Settings.Global.GPU_DEBUG_LAYER_APP,
Settings.Global.ENABLE_GNSS_RAW_MEAS_FULL_TRACKING,