The device name is reflected in three places: A Settings.Global flag which can be read by third party apps, the Bluetooth device name, and the Wi-Fi tethering hotspot name. The Bluetooth and Wi-Fi names can be changed independently of the device name, but if the user sets the device name, they are all changed in parallel. Due to the naming restrictions of Bluetooth devices and SSIDs, the SSID naming restrictions apply to the device name. Bug: 63819909 Test: Robotest Change-Id: I3a81535fc07d183557a6fa5d54baef3c7868499c
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.