[Thread] add Thread toggle in settings
Allows a user to disable or enable Thread network / radio from settings. In this commit, a toggle is added to Settings > Connected devices > Connection preferences to control Thread state. See the screenshots below: 1. Thread is on: https://screenshot.googleplex.com/7FqqbzRX6rGwvSb 2. Thread is off: https://screenshot.googleplex.com/AmfRAhzuukULAAG 3. Thread is disabled by airplane mode: https://screenshot.googleplex.com/7zcesyomrveCqFE 4. Thread is searchable: https://screenshot.googleplex.com/9yFL2jeSuEhJwrS Requirements: 1. the in-take bug: b/327098435 2. See the screenshot above 3. Test with `atest SettingsUnitTests` and manual tests 4. +2 from Yuwen 5. Flagged by "com.android.net.thread.platform.flags.Flags.thread_enabled_platform" 6. It doesn't need B&R, no preferences are added (the state is in Android framework (mainline module)) 7. Confirmed searchable 8. Code written in Kotlin Bug: 296990038 Bug: 319077562 Test: atest SettingsUnitTests Change-Id: Ifa2264b8e59a5112290fd0224cb75ad228732077
This commit is contained in:
@@ -11724,6 +11724,15 @@
|
||||
<!-- Summary for UWB preference when UWB is unavailable due to regulatory requirements. [CHAR_LIMIT=NONE]-->
|
||||
<string name="uwb_settings_summary_no_uwb_regulatory">UWB is unavailable in the current location</string>
|
||||
|
||||
<!-- Title for Thread network preference [CHAR_LIMIT=60] -->
|
||||
<string name="thread_network_settings_title">Thread</string>
|
||||
|
||||
<!-- Summary for Thread network preference. [CHAR_LIMIT=NONE]-->
|
||||
<string name="thread_network_settings_summary">Connect to compatible devices using Thread for a seamless smart home experience</string>
|
||||
|
||||
<!-- Summary for Thread network preference when airplane mode is enabled. [CHAR_LIMIT=NONE]-->
|
||||
<string name="thread_network_settings_summary_airplane_mode">Turn off airplane mode to use Thread</string>
|
||||
|
||||
<!-- Label for the camera use toggle [CHAR LIMIT=40] -->
|
||||
<string name="camera_toggle_title">Camera access</string>
|
||||
<!-- Label for the camera use toggle [CHAR LIMIT=40] -->
|
||||
|
||||
Reference in New Issue
Block a user