Properly distinguish origin of Zen Changes
Add entry points to NotificationManager and INotificationManager so that Settings and SystemUI can tag Zen operations as "fromUser" (apps cannot do this, except for setAutomaticZenRulke via the Condition.source field). Also update SystemUI callers to provide "fromUser == true" where it makes sense (which is almost everywhere). This effectively separates the "System" and "User" origins (the former being reserved to changes that are not originated from the user, such as schedule-based rules starting or ending). Bug: 308670715 Flag: ACONFIG android.app.modes_api DEVELOPMENT Test: atest NotificationManagerServiceTest ZenModeHelperTest DefaultDeviceEffectsApplierTest Change-Id: If1e74e7989697c3126fd50636347488bfe3cda51
Loading
Please register or sign in to comment