commit | 4a05f9ca4989366ec74b7d1b0d296fe4d41527a8 | [log] [tgz] |
---|---|---|
author | Evan Laird <evanlaird@google.com> | Wed Jul 29 13:52:23 2020 -0400 |
committer | Evan Laird <evanlaird@google.com> | Thu Aug 13 18:13:12 2020 -0400 |
tree | 781e0fa258c70688f0f41acf0a1b1ed4fdbf5aa8 | |
parent | 9ecdf744ca69d636ef1be232b8f9fdeec4e2f6ec [diff] |
Create a DemoMode controller Pull Demo Mode out of StatusBar.java and create a subscription / callback model. This reduces the number of broadcasts needed by StatusBar and also enables for demo mode: - clean state tracking (dumpsys DemoModeController) - We can fix bugs like state initialization (entering demo mode on in dev options has a different effect than entering via broadcast, etc). - We can more easily implement it as a command line interface (available for preorder today!) Bug: 163393864 Test: atest SystemUITests; manual demo mode testing Change-Id: I70535aeca3478a42b1ebb668822346e23854379f