summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/SliceBroadcastRelayHandler.java
Commit message (Collapse)AuthorAgeFilesLines
* Make CoreStartable an Interface.Dave Mankoff2022-10-131-2/+3
| | | | | | | | | Context is no longer passed in as a constructor arg. Bug: 229228871 Test: manual Change-Id: I3dd5e593f209d120eb36faf33ba629a2066ad3f5 Merged-In: I3dd5e593f209d120eb36faf33ba629a2066ad3f5
* Add unaudited exported flag to exposed runtime receiversMichael Groover2022-01-151-1/+2
| | | | | | | | | | | | | | | | | | | Android T allows apps to declare a runtime receiver as not exported by invoking registerReceiver with a new RECEIVER_NOT_EXPORTED flag; receivers registered with this flag will only receive broadcasts from the platform and the app itself. However to ensure developers can properly protect their receivers, all apps targeting T or later registering a receiver for non-system broadcasts must specify either the exported or not exported flag when invoking #registerReceiver; if one of these flags is not provided, the platform will throw a SecurityException. This commit updates all the exposed receivers with a new RECEIVER_EXPORTED_UNAUDITED flag to maintain the existing behavior of exporting the receiver while also flagging the receiver for audit before the T release. Bug: 161145287 Test: Build Change-Id: I5faa64ae0d2b22b62390bf13cb2b87fd6926e0c7
* Rename SystemUI class to CoreStartableDave Mankoff2021-11-091-1/+1
| | | | | | Bug: 205725937 Test: manual Change-Id: I045a8b4b21cae0f4a6e61502384e2b1a607bc1c6
* 6/N Move everything into SysUIComponent.Dave Mankoff2020-08-161-2/+2
| | | | | | | | | | | | | | | It is far easier to move _everything_ into SysUIComponent, and then selectively promote things back to GlobalScope and/or WMScope than it is to try to do it one at a time. With this change, though lots of files are touched, very little actually changes structurally. After this change goes in, folks should stop using @Singleton quite so freely. Most things should live in @SysuiSingleton. @Singleton is due to quickly be replaced by @GlobalScope. Bug: 162923491 Test: atest SystemUITests && manual Change-Id: Idc31d3d83b030581fb1fa869f7fafc4f2d3a8828
* Finish migrating to BroadcastDispatcherFabian Kozynski2019-11-041-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Pass context into the constructor of SystemUI objects.Dave Mankoff2019-10-101-0/+4
| | | | | | | | | The next step is to remove `components` from the SystemUI objects and replace them with Dagger injection. Bug: 138786270 Test: atest SystemUITests Change-Id: I27415a8fa8ba0378599356426d849c9cfb9879d2
* Adding null check when unregistering slice relay handlerSunny Goyal2019-04-221-1/+4
| | | | | | Bug: 130324175 Test: atest SliceBroadcastRelayHandlerTest Change-Id: I8dc923746f3ef3a3617951d85c6a6f5d11970fa2
* Pass Uri in SliceBroadcastRelayMatthew Fritze2018-05-021-0/+3
| | | | | | | | Add the Uri as an extra to the Intent broadcast in the relay. Test: runtest systemui Bug: 70622039 Change-Id: I4942ecc9780a7814e3ac436e80034f76cb7bc6db
* Add way to use sysui as a broadcast relay for slicesJason Monk2018-04-201-0/+114
Test: runtest systemui Bug: 78139069 Change-Id: I64c4d56cca005cec7204bf45215bb7b0015f4571