OSDN Git Service

Allow sysui-managed remote volume controllers.
authorJohn Spurlock <jspurlock@google.com>
Thu, 12 Feb 2015 00:04:11 +0000 (19:04 -0500)
committerJohn Spurlock <jspurlock@google.com>
Fri, 13 Feb 2015 03:48:37 +0000 (22:48 -0500)
commitcdb57aeb0e2c83a887c86da0ca2a890df7f02f41
treecd58462862527b7eb432d1749e5752745f1b8889
parentad680d46be19cbee16d42cbed4d2ed250648ac0b
Allow sysui-managed remote volume controllers.

- Relax restriction on audio service calls that assume the volume
  ui is systemui, allow calls from a blessed component app.
- Blessed component app service saved in secure settings.
- SystemUI mediates requests to replace the volume dialog, prompts
  the user on activation.
- Show a low pri ongoing notification when the volume dialog is
  being replaced, to allow user restoration at any time.
- Replace the controller management code in VolumeUI to use a
  ServiceMonitor, backed by the new blessed app component setting.
- Add proper zen-related noman client wrappers, make avail to the
  registered volume controller.
- Everything is still @hidden, no api impact.

Bug: 19260237
Change-Id: Ie1383f57659090318a7eda737fdad5b8f88737d4
core/java/android/app/INotificationManager.aidl
core/java/android/app/NotificationManager.java
core/java/android/provider/Settings.java
media/java/android/media/AudioManagerInternal.java
packages/SystemUI/res/values/ids.xml
packages/SystemUI/res/values/strings.xml
packages/SystemUI/src/com/android/systemui/statusbar/ServiceMonitor.java
packages/SystemUI/src/com/android/systemui/statusbar/policy/ZenModeControllerImpl.java
packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
services/core/java/com/android/server/audio/AudioService.java
services/core/java/com/android/server/notification/NotificationManagerService.java