Add a flag byForegroundService to enqueueNotification() call.
This flag is passed to NotificationManagerService, the CallStyle check
will treat byForegroundService flag same as isFgs flag.
Only the ServiceRecord.postNotification() call at startForeground() call has
byForegroundService flag set to true.
Add a test case NotificationManagerServiceTest.java#checkCallStyleNotification_allowedForByForegroundService
Bug: 280003654
Test: atest NotificationManagerServiceTest.java#checkCallStyleNotification_allowedForByForegroundService
Change-Id: Ibe30526ac0ff52e2e4fe9bc846576509cdf78236
Merged-In: Ibe30526ac0ff52e2e4fe9bc846576509cdf78236
5 files changed