Register statusbar actions only if CentralSurfaces is available

This CL changes SystemActions to register status bar-related actions only if CentralSurfaces is available.
Because S_A_ID_NOTIFICATIONS and S_A_ID_QUICK_SETTINGS expect the CentralSurfaces instance in each handler (i.e. handleNotifications() and handleQuickSettings()), but CentralSurfaces is optional and some vendors (e.g. ARC) don’t provide it.
Therefore, these two actions shouldn’t be registered when CentralSurfaces is not provided via DI.

Bug: 255544050
Test: atest android.app.usage.cts.UsageStatsTest#testNotificationSee on ARC
Change-Id: I592ca34d8081e4d76b9b7049359b2145f22f1dad
1 file changed