History log of /frameworks/base/services/core/java/com/android/server/audio/AudioService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
aa41add33b8d7d318387cc74c34e3d347d245211 07-Aug-2015 Svetoslav <svetoslavganov@google.com> Immediately kill a shared user process on a permission revocation.

1. When a permission is revoked we kill the app immediately but do
not do an immediate kill for shared uid processes. This fixes it.

2. Remove system APIs that are used only by the package installer.

bug:22984670

Change-Id: I3d4ae52ea8679f894aa7c5972941263903479183
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
fc5a4bf0e1520bf3acd75226d760b8e1d7cdd59f 04-Aug-2015 Jean-Michel Trivi <jmtrivi@google.com> Merge "AudioService: check for audio device connection success" into mnc-dev
6d00e41145a577de114f93985bf05d7eca99ccc3 04-Aug-2015 Jean-Michel Trivi <jmtrivi@google.com> AudioService: check for audio device connection success

When connecting/disconnecting and audio device, AudioService
was assuming that the call was always successful through
AudioSystem.setDeviceConnectionState(). In the case of the
connection of a wired headset (mic + headphones), this also
causes A2DP to not be used for media playback.
The connection can fail if the audio device being connected
is not supported by the platform. But if this failure is
not taken into account for DEVICE_OUT_WIRED_HEADSET or
HEADPHONES, A2DP would still be avoided even when an A2DP
device reconnects at boot.
The fix consists in executing the connection logic only when
the connection was deemed successful. Nothing is altered
on the disconnection code path, or the direct connection
of A2DP.
The javadoc is updated in AudioSystem to indicate the return
codes to take into account in setDeviceConnectionState().

Bug 22511833

Change-Id: I22f0d2c7d4ab4fb9ee1be2f248907f721596a16f
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
841ed0a0418162bab3ae63329a77e900fa840477 27-Jul-2015 Sungmin Choi <sungmin.choi@lge.com> Fix that shutter sound does not play after ringer mode changes to vibrator

Reproduce sequence:

1. Change ring volume to vibration in Settings > Sound & notification
> Ring volume using touch
2. Launch camera app
3. Capture, but cannot hear shutter sound
4. Even change ringtone to maximum, shutter sound is not played before reboot

Bug: 22589664
Change-Id: I90eb044eaf21f3b558bf050bf1d9f0b33ea4888b
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
c1cbaaba6c509a0e31cbed843f77af1eae1cb064 21-Jul-2015 Amith Yamasani <yamasani@google.com> Don't kill apps that are multi-user aware...

... when looking for background user apps that hold RECORD_AUDIO
permission.

On switching users, we kill any apps that might potentially be
recording audio. But we don't want to kill critical apps that need
to stay running because of multi-user aware services.

Bug: 22564430
Change-Id: I6d9a684d4e044cc3018f0f8181a44aa143a3baeb
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
70e0c58c2269cd29dfd6420d690da13dc03fd457 30-Jun-2015 Kenny Guy <kennyguy@google.com> Mute correct user from device policy manager.

Add per user versions of mute methods so
device policy manager can mute the correct
user.
Just persist change if the calling user
isn't the current user.
Treat calls to audio manager coming from uid
1000 as if they were coming from current user
rather than user 0 so that the correct user's
user restriction is checked.

Bug: 21782066
Bug: 21778905
Change-Id: I51469b741096d8a2ffdc520eaf5b3fd754f2c819
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
560877d498b3b142bb0d555bb2fe48ead3fa9b0f 26-Jun-2015 Jean-Michel Trivi <jmtrivi@google.com> Volume change intent carries stream alias

Define a new extra, AudioManager.EXTRA_VOLUME_STREAM_TYPE_ALIAS, to be
sent along with the volume change intent, VOLUME_CHANGED_ACTION.
When sending VOLUME_CHANGED_ACTION, attach the stream type alias.

Bug 17955277

Change-Id: I04fd279e223504e3ee1581086d7e9205344a6808
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
3a30a76e8839d36c93c2620188238b84462b3dd2 24-Jun-2015 Ricardo Garcia <rago@google.com> Fix for SafeMedia logic and CTS tests

Added audio.safemedia.bypass system property to bypass SafeMedia logic on
CTS tests which require guaranteed access to full range of volume levels.

bug: 21779099
Change-Id: I76815a995f08d426218206af7aade491c5debd9e
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
72966d6d83413dc89d3051f30bdc0941cbfc7bb1 18-Jun-2015 John Spurlock <jspurlock@google.com> AudioService: Send the right stream to the volume UI on tablet changes.

Bug: 21798314
Change-Id: Idd49eb9e1253a94e567866a38b664035aea3715b
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
98859b256ea32854e3af96d4bd6a705a6e00accf 12-Jun-2015 Eric Laurent <elaurent@google.com> audioservice: remove BT SCO device when service is disconnected

Bug: 21727956.
Change-Id: I9dd68ad83583cdbe7454724098c89daf70bee726
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
75ae23c09674bede6d3fe5ec05a6fba47142e2d5 02-Jun-2015 John Spurlock <jspurlock@google.com> Audio policy: setting explicit non-zero volume unmutes the stream.

And vice versa.

Bug: 21584884
Change-Id: I2cd6a84ab40edba4c6fc2b219693e0d4f0527d8d
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
ccffda8359aaf11a6945650dfa39a8cd13604ed2 22-May-2015 Jean-Michel Trivi <jmtrivi@google.com> Remove the 5 sec timeout logic for setVolumeControlStream

Bug 16983918

Change-Id: I65174615d882ea433105862b1ecc50c512979ef9
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
97de0c9a29f76f936e1d93f9031e178b56af514f 21-May-2015 Eric Laurent <elaurent@google.com> Merge "AudioService: indicate system ready to AudioFlinger" into mnc-dev
0867bed9ddb3bea3d7c252791f8b62ae21ad3de5 20-May-2015 Eric Laurent <elaurent@google.com> AudioService: indicate system ready to AudioFlinger

Indicate when JAVA services are ready to AudioFlinger so that
calls to power manager and scheduling service can be enabled.

Bug: 11520969.
Change-Id: Id977cab3208c34709011703d2dfdcf552e60371b
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
cae346633321e237f824f3ca10d7e6fff2307b2f 20-May-2015 Eric Laurent <elaurent@google.com> AudioFormat: more compressed formats

Add MP3 and AAC as valid AudioFormat encodings.
Only @hide for now to allow system components to manage
audio patches with those formats.

Bug: 18649264.
Change-Id: I5ef5f151783308e31d8ac5b29454589077ef62ea
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
d138e4e751b821ea6918faf870580f4f7a9b138a 16-May-2015 Eric Laurent <elaurent@google.com> AudioService: add missing audio becoming noisy intent

Add missing audio becoming noisy intent when the bluetooth
service is disconnected.

Bug: 21160886.
Change-Id: Idd96610a0ff824bd6337c37df60fa13f5bc6e54b
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
20eec5bb794d0e1333ab3dca370f8b2ad2498416 09-May-2015 Paul McLean <pmclean@google.com> Add manufacturer-provided device name for AudioPort name field for BT devices.
Change "a2dp-device" to empty string for EnumAPI.

Bug: 20880296
Change-Id: If377735b6d552bb929e5881743bcc3c9a2afb9e3
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
50ced3f3231a26ddcafbc84600d7cf3f5a2a40d5 11-May-2015 John Spurlock <jspurlock@google.com> Zen: Ringer mode integration fixes.

- Properly mute media + alarm streams in total silence.
- Allow system components to update the "ringer mode affected"
streams dynamically.
- Improve dumpsys output for ringer mode streams (include names).
- Remember last ringer mode properly when entering dnd via a
volume down (so we can restore it properly when exiting).

Bug: 20854925
Bug: 20950463
Bug: 20756527
Change-Id: I80afc1f639ff802c541020e25ade1b23e9997ef9
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
bcb6c1eb9e762455510645eb47579f7d597d6b78 11-May-2015 Fyodor Kupolov <fkupolov@google.com> Fix errors during user switching

Fix NPE in getHomeActivityForUser. Skip system processes in
killBackgroundUserProcessesWithRecordAudioPermission.

Bug: 21016983
Change-Id: I97f9ca362f4dbf0a659e3d5d7ae6cd8dbeb6404a
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
b501330a1b6ef14ff512a5727f7a01bc423d6fbb 18-Apr-2015 Fyodor Kupolov <fkupolov@google.com> Disable multi-user background recording

On user switch, kill existing processes of the background user with
android.permission.RECORD_AUDIO permission. Home activity should not be
killed to avoid an expensive restart of the home launcher, when the
user switches back.

Introduced DISALLOW_RECORD_AUDIO user restriction, which is enabled for the
background user, and removed for the foreground user.

Introduced a concept of system controlled user restriction, which can only
be set by the system, rather than device administrator.

Bug: 20346194
Change-Id: Ic942fd565e80d14424230dae612965a8e229c4ef
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
f764d219f0faf82219600761c8d0562623b8f054 30-Apr-2015 Jean-Michel Trivi <jmtrivi@google.com> Merge "AudioService receives callback for dynamic policy mix state changes" into mnc-dev
5a56109d1f5c00404c8f0e4281b9ac1392d72886 24-Apr-2015 Jean-Michel Trivi <jmtrivi@google.com> AudioService receives callback for dynamic policy mix state changes

AudioService registers a callback for dynamic policies from
AudioSystem.
AudioSystem keeps track of a single callback for dynamic policies.

Bug 20226914

Change-Id: I48899d20d1dbb47bb680e733a3bc9fd064b60f07
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
d9c75dba75ad4742dbaadc34db99d2b76cebca91 28-Apr-2015 John Spurlock <jspurlock@google.com> Volume: Simple dialog footer, DND in quick settings.

- Show DND tile by default, this is now the only
place to manage DND modes / end conditions.
- Remove super footer from volume dialog, replace with
a simplified version that displays the current mode
and allows ending DND.
- Remove obsolete text-only footer from codebase.
- Migrate remaining volume items into main resource files.
- Rename "No interruptions" to "Total silence".
- Add new user information banner for "Total silence"
- Crude media filtering for Total Silence.
(deeper muting changes will be done as a followup)
- Disable volume dialog sliders completely if muted due
to zen.
- Cleanup ZenModePanel: assume embedded mode, remove
expandable subhead
- Remember "favorite" DND mode inside the DND config panel.
- AudioService: consult ringer-mode-delegate before voluming
down into silent.
- Add new hour options to time-based exit conditions.
- Volume dialog visual updates to move closer to final visuals.
- Unify ringer=silent with DND.

Bug: 19260237
Change-Id: I05d7e001eca3b5125418ec3bc4087d0cb8866717
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
8c3dc85de5d6c2ab15a5d9a43feefe608df3cb35 24-Apr-2015 John Spurlock <jspurlock@google.com> AudioService: Fix mConnectedDevices iteration issues.

- Don't remove from the map while iterating.
- Use ArrayMap and tighten up all iterations to avoid unnecessary
allocations.

Bug: 20523001
Change-Id: I2587d0f9778b38d96afdfd0e61b00b06911837ae
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
b02c744f05b0cca05b77fcbaad4a546ad86081eb 14-Apr-2015 John Spurlock <jspurlock@google.com> Zen: Enter alarms only on volume down from vibrate.

And vice versa (when dialog is showing).

Also make alarms only the default mode when DND is switched on
via the switch.

Bug: 19260237
Change-Id: I16e4a27944bc8245bb2beed84c0421d493b0b876
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
15427f80bb9632ec34f5491f0e9ac2c4f977074e 27-Mar-2015 John Spurlock <jspurlock@google.com> Merge "AudioService: Observe changes to output devices per-stream."
0a376af22411e3592441da1688d8b134133227ba 26-Mar-2015 John Spurlock <jspurlock@google.com> AudioService: Resolve stream before sending to volume UI.

- Don't send streams that the UI cannot display.
- Add an input validation check to adjustSuggestedStreamVolume.
- Remove unused validation method.

Bug: 19949071
Change-Id: Ib7a7c9bf386a8b2d7a0fb13928d103d764ec7aa9
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
8a52c4491dfbb8354a92c0a1e6abc86848e187c6 26-Mar-2015 John Spurlock <jspurlock@google.com> AudioService: Observe changes to output devices per-stream.

- Keep track of calls to AudioSystem.getDevicesForStream.
- Report device changes for the base streams to the binary event log.
- Fire internal intent so volume UI can respond to changes.
- Update devices when new routes are reported.

Bug: 19618959
Change-Id: I7bbd497b178d9829accc19e6c951a711aef8590c
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
1a7700793db3c7b60d5e090ee026a1bcfeff91d8 19-Mar-2015 Phil Burk <philburk@google.com> AudioService: fix String cast crash when mediaserver killed

Bug: 19847028
Change-Id: I45668fbd08e87df69fe3867473a09c387589ca8a
Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
413d307c2c646bb2aa563f8167bfa78f0b59a654 19-Mar-2015 Phil Burk <philburk@google.com> AudioService: fix crash when mediaserver killed

Bug: 19847028
Change-Id: I4acacd8a6d20317d180a6994158abc0b2957280c
Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
07e72432ac4a83f428d7f9ccf1e11594c67c1993 13-Mar-2015 John Spurlock <jspurlock@google.com> VolumePolicy: Debounce adjustments from vibrate->silent.

Disallows volume adjustments (lower) from vibrate to silent
until a small period of time after an adjustment from normal
to vibrate.

This provides for enough time for the user to see the state change
to vibrate and feel the associated haptic feedback before yet
another state change to silent.

Bug: 19260237
Change-Id: I5843a1c144d56146a83db194f352832c8d85159d
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
b6e19e3e0f0170d058636101e23f964196f6f4b2 11-Mar-2015 John Spurlock <jspurlock@google.com> AudioService: Define minimum levels for volume streams.

- Set a floor of 1 for voice call + bluetooth sco, otherwise 0.
- All api calls validated to ensure a floor of the min level.
- Volume UI updated to shift the seekbar by the min value.
- Remove duplicate static max method in AudioService.
- Ensure streams with a min level > 0 are not considered muteable.

Bug: 19260237
Change-Id: I213180c9c277f51bd3897b7f777e5f88ed1db125
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
a48d779dad4c48aa2f97ad021ae3a5649c058312 03-Mar-2015 John Spurlock <jspurlock@google.com> Volume policy updates.

- Make volume policy settable by the volume UI instead
of hardcoded in AudioService.
- Add status bar icon for silent mode.
- Limit unmute-on-volume-adjust behavior to tvs.
- Ensure all changes to device volume are sent through
setIndex so no change events are missed.

Bug: 19260237
Change-Id: Iea070a7a6f90ff620e39629f2da3f33f87223d72
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
9087433753a5068819dcd3e86bdc2cce82bb8040 10-Mar-2015 John Spurlock <jspurlock@google.com> AudioService: Write base stream volume changes to the event log.

- Add a new volume_changed event, reported at the stream level.
- Only include changes to base streams (no aliases).
- Include the caller for each change. A caller is either:
- a pkg name (for external calls or known media sessions)
- a system server class's log tag (for internal calls,
disambiguates "android")

Bug: 19599935
Change-Id: Ia61b68ff1e7e2907a24972790ec052bfe099e665
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
394a8e1fa7d2aeeec3d750378c1cb5861a583eeb 03-Mar-2015 Paul McLean <pmclean@google.com> Handle simultaneous connect of devices with the same "type" (as in USB)

Change-Id: I163bf8e33ccf5aacc7ba21775916727430327f18
Bug: 19563570
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
1ff1e6edf133158351e793dd842bd0655ef6c199 09-Mar-2015 John Spurlock <jspurlock@google.com> AudioService: Fix device dump in dumpsys output.

Bug: 19653026
Change-Id: Id09a502f1507477403c49be32ee0ed0f00ab288f
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
b32fc97282aa95ceefa8601846d83fa6154163db 05-Mar-2015 John Spurlock <jspurlock@google.com> AudioService: Add current stream devices to dumpsys output.

Change-Id: I57ed785154d8d75ac0f189a479252a725e80bd5a
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
ee5ad729b90deff435f9875337cbc434be4f8fe7 03-Mar-2015 John Spurlock <jspurlock@google.com> Audio: Remove the concept of master volume.

- Remove two config resources (use master volume, and volume ramp).
- Remove master volume adjustments / getters / intents.
- Retain @hidden setMasterMute, needed for device admin
- Remove master volume logic in AudioService.
- Remove master volume logic in VolumePanel.
- Rename "getMasterStreamType" to "getUiSoundsStreamType" to avoid confusion.

Bug: 19582978
Change-Id: Id02c8fa4898cff3b913147f5ac1b4038e2e7cc24
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
6611bfdaa4dc7688d76d8ab70799c312d0c74446 03-Mar-2015 John Spurlock <jspurlock@google.com> Merge "AudioService: Fix typo/grammar in comment."
bc82b12eb74e5a218894e7ff361767303bf1f2c4 02-Mar-2015 John Spurlock <jspurlock@google.com> AudioService: Fix typo/grammar in comment.

Change-Id: I311fc5d7531464bbaeef5937c5ff2b757a8e675e
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
7b91c55b3ff4857e904a11a0a67fcc86a32868b4 02-Mar-2015 John Spurlock <jspurlock@google.com> Merge "Remove unused imports in frameworks/base."
4b69ac70a1fa7a3bd4bb8b24efdaa6cf626c6853 02-Mar-2015 John Spurlock <jspurlock@google.com> Merge "AudioService: Migrate index map to SparseIntArray."
2bb02ec6a99a08366b4a357aac3683ec5c18c184 02-Mar-2015 John Spurlock <jspurlock@google.com> AudioService: Migrate index map to SparseIntArray.

- Use SparseIntArray instead of a generic hash map.
- Avoids unnecessary boxing/unboxing.
- Avoids unnecessary allocation for iterator temp objects.
- Provides deterministic dumping (by ascending device order).

Change-Id: If5ca5edd94af90cfed65ecbbbc1f4929f50ab6e9
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
59dc9c1d19e52bcbfb05ebe78e097496532062bc 02-Mar-2015 John Spurlock <jspurlock@google.com> AudioService: Fix typo in constant.

Change-Id: I66dba8ffbbe59ab82f97c989163db04741c9a1d1
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
864908620eabc8594b178f0f970eea0066be4c83 25-Feb-2015 John Spurlock <jspurlock@google.com> AudioService: Use the foreground broadcast queue for fired intents.

Minimize delay for receivers, assume they are providing volume UI.

Change-Id: I054bac4292ad7c608cd46543409595dcea6a7731
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
7a9ba420f440319ca6c31d554c2273f81f10b16f 16-Feb-2015 Jinsuk Kim <jinsukkim@google.com> Pass old and new volume to CEC without rounding up

Unnecessary rounding up was causing volume change requests
not to be converted to CEC commands occasionally. Removed
the operation.

Bug: 19332158
Change-Id: Ia074722058ada55d46f38aea7a2b915bb5fd2a00
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
0dfc90157d6fb9d773e59dfaab08a1722417a489 19-Feb-2015 John Spurlock <jspurlock@google.com> Merge "AudioService: Fire volume-changed intents for all streams."
c16442c515f136e1f014e57dabfa878ed2441552 19-Feb-2015 John Spurlock <jspurlock@google.com> Merge "AudioService: Fire the mute-changed intent for all changes."
f63860cd8072bc9a9e5178ff3b60d262999c78fc 19-Feb-2015 John Spurlock <jspurlock@google.com> AudioService: Fire volume-changed intents for all streams.

Allow observing all stream changed events, including streams
that are bound to another stream via aliasing.

Change-Id: I2c1717ce632c4cb045c06785cb1ecc531a221ff8
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
22b9ee129817f865f69bbcd3d95151c61d2d0ef0 19-Feb-2015 John Spurlock <jspurlock@google.com> AudioService: Fire the mute-changed intent for all changes.

Not merely those coming from explicit mute adjustments.

Change-Id: I79ad7e5800eb0602fd10d966441973800a1c318b
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
5e783732b672e7dc27d89cb9fe945bdf8364c39e 19-Feb-2015 John Spurlock <jspurlock@google.com> AudioService: easier forced camera sound debugging.

- Add mCameraSoundForced to the service state dumpsys output.
- Add a sysprop to opt-in to this behavior for testing. Does
not replace the configuration check.
- Centralize the configuration read in one place.

Change-Id: I83f84394b616f0788029412233ae1412b3cdedf2
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
3ce3725b289dae8ce01ee2e4b43a84424a7c5fbe 17-Feb-2015 John Spurlock <jspurlock@google.com> Use the unresolved stream type for mute checking.

Change-Id: I2eab68727f1d1e6846ad0536ee456daf26f6699e
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
7d3cf59227a9bd8f0a5e29a4d82666d971280d92 17-Feb-2015 John Spurlock <jspurlock@google.com> Merge "Volume: Allow dialog to query "muteable" streams."
a9dfbe8b122d746cf8841fe1b13d31e7e0fc9c52 17-Feb-2015 John Spurlock <jspurlock@google.com> Volume: Allow dialog to query "muteable" streams.

Similar to the existing ability to query streams affected
by ringer mode.

Bug:19260237
Change-Id: I76eb5ab6b7c7e3a4d73ac1909289c560194d4fe8
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
7139fdc001ae78c684604419c7bb3669d2bcd839 13-Feb-2015 Eric Laurent <elaurent@google.com> Merge "AudioService: persist volume of ring stream when ringer mode changed"
cdb57aeb0e2c83a887c86da0ca2a890df7f02f41 12-Feb-2015 John Spurlock <jspurlock@google.com> 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
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
9e0d25fb875b436d9de577ecfdae50511b8aa289 13-Feb-2015 Eric Laurent <elaurent@google.com> AudioService: persist volume of ring stream when ringer mode changed

-Originally, when ringer mode changed from vibrate to normal by
adjusting volume from 0 to 1 , volume index will not be persisted.
After device rebooted, volume of ring stream will be restored to 0
-Persist volume index when ringer mode changed

Bug: 18762217

Change-Id: I75fbeaab01d80b8bcee623795f59a9e9f16b9634
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
6156017c2217d0fbbbb03434986250ec6bbd69d8 07-Feb-2015 John Spurlock <jspurlock@google.com> Move AudioService to services.

...and a few dependencies. Move remaining shared items to AudioSystem.

Change-Id: Ib9623ff867678d34977337856bb0156e8cdaeeb5
/frameworks/base/services/core/java/com/android/server/audio/AudioService.java