This CL migrates most of the remaining classes to use
BroadcastDispatcher. Some classes left are Views or created before the
BroadcastDispatcher can be injected.
Adds docs for instructions on using the BroadcastDispatcher.
Using the broadcast dispatcher, the time system_server spends
dispatching common intents to SystemUI like SCREEN_OFF and SCREEN_ON can
be seen to decrease from ~70-150ms (in a Q build) to ~2-4ms.
Additionally, once a broadcast is received by the dispatcher, time
until it is fully dispatched inside SystemUI is not impacted greatly.
Most broadcasts are fully dispatched after ~20ms with a few of them
taking ~100ms.
Test: atest SystemUITests no regressions
Test: build and boot
Test: tried some random broadcasts and they are properly dispatched
Test: BroadcastDispatch dump
Test: adb shell dumpsys activity broadcasts
Bug: 134566046
Change-Id: I26a592be66b053f25669b5481b58bf7f07bfd0da
Reconnect internet so we won't break tests that assume internet is
available.
This is a patch to fix the regression caused by ag/9648483.
Bug: 143514090
Test: atest StagedRollbackTest CtsLibcoreTestCases:DatagramChannelMulticastTest
Change-Id: Ic0ef26027388500795b3555f5a56f82bfc1b975e
am: c93fe50d62 -s ours
am skip reason: change_id I8662c210319523abe64feaf0610af19fd285c8ca with SHA1 1ec2e61e7f is in history
Change-Id: Id9818de9e184524ca613d541a81cc70d18d358da
am: 2b2d762654 -s ours
am skip reason: change_id I14555c2a641a7ad1a5ca7608d8fa05fa34bbb0f8 with SHA1 24ade16aa0 is in history
Change-Id: I0d907d776f39d6f4b523814a764081b0b5063c8b
am: f7181f3c69 -s ours
am skip reason: change_id I0d92ed3fca1fc186484ea8d3c5d17b6e332e7d22 with SHA1 d355153dcb is in history
Change-Id: Iafb75761b891f361b534617244fa0a970d790b29
GlobalScreenshot.ActionProxyReceiver was calling
getComponent(context, StatusBar.class). With this change, StatusBar is now
injected into the constructor of that class.
Bug: 143224715
Test: atest SystemUITests
Change-Id: I2f635ce98c1c0e2326784c4558b28ce51f347fa9
This removes the last call to getComponent(StatusBar.class).
Prior to this change, we would register a listener for OverlayPlugins
inside the SystemUIApp. Because they are directly related to the
StatusBar, it is safe and appropriate to have the StatusBar register
with the PluginManager itself.
Bug: 143224715
Test: atest SystemUITests
Change-Id: I5ecdf6a4dae05ba674bcbcd940b9f2655d2b1cbb
am: b5cf529724 -s ours
am skip reason: change_id Ic7ca45d5fab27469a3cc8654cd05a10bd55f7e87 with SHA1 d5a71c7bac is in history
Change-Id: I5b94c17d09d0540c9354978a65551d38992a2291
Install#commit ensures a staged session is ready before the function
returns. So we don't need to sleep to wait for disk IO to complete.
Bug: 143211397
Test: atest StagedRollbackTest
Change-Id: Ic4b53dc5aaef7a22d7d64c14ee4f77bee84c26b1
This is an effort to fix flaky StagedRollbackTest.
ag/9614192 adds support for native file path to TestApp so now we can
install network stack package using install.lib which provides better
tools for logging and synchronization than shell commands. This will
facilitate debugging flakiness.
Also move other code to device tests for the same reason.
Bug: 143211397
Test: atest StagedRollbackTest
Change-Id: I971618da3defade4693be154ab523f1cbfea5b7c