- getApplicationLabel is time-consuming. [Before] https://pprof.corp.google.com/?id=bade2601da25f6169b0685a3e2a3e5cc https://screenshot.googleplex.com/86R5DhMgcyQakys [After] https://pprof.corp.google.com/?id=2ccb1e88222e96db1fbcc072470a254c https://screenshot.googleplex.com/7QviDFSpgzoQcg6 Bug: 349120408 Fix: 349120408 Test: atest + pprof Flag: EXEMPT bug fix Change-Id: I1eed60cea9c5bd3f77f38993f7d04906aa811da5
Running Settings Robolectric tests
The full suite
$ croot
$ atest SettingsRoboTests
Running a single test class
With a filter
$ croot
$ atest SettingsRoboTests:com.android.settings.display.AdaptiveSleepPreferenceControllerTest
You can also run any single test class with atest (it will try to find the correct path)
$ atest AdaptiveSleepPreferenceControllerTest