audio policy: apply default device volume

Make sure that we apply default device volume to
active outputs in case no specific volume for selected
device is received afterward.

Bug: 9760269.
Change-Id: I216de40396e1075e77493c97e8b192cd3a31d546
Merge tag 'android-4.3_r3.1' of https://android.googlesource.com/platform/hardware/libhardware_legacy into cm-10.2

Android 4.3 Release 3.1

Change-Id: I62617f638b495ce4345726dac81bf417ed100f7b
Audio: Add Stream Flags key to setParameters

Audio Route Manager needs to know the type of stream to take the
appropriate routing decision (eg direct Output, MP3 Offload).
It must be defined as key and filled by the policy.

Note: this patch is related to changes in:
 - hardware/libhardware
 - frameworks/av

Change-Id: Ic0d5c4880811b47b9eef15af23e6cb391ba507f8
Signed-off-by: Francois Gaffie <francois.gaffie@intel.com>
Signed-off-by: David Wagner <david.wagner@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 70126
audio policy: apply default device volume

Make sure that we apply default device volume to
active outputs in case no specific volume for selected
device is received afterward.

Bug: 9760269.
Change-Id: I216de40396e1075e77493c97e8b192cd3a31d546

Conflicts:

	audio/AudioPolicyManagerBase.cpp
Added ifndef ICS_AUDIO_BLOB around non-existent functions (2/3)

For older audio blobs where is_source_active and is_stream_active_remotely
doesn't exist, receiving a notification and dumpsys crashes the audio service.

Change-Id: I2ec4dcece3c95c9972ce78f1f7a38fe522dd7802
Merge commit '4ca951f05e2b1baf1e0b3947d64434c82f8abf5d' into jb-4.3
Merge commit '96fe9a25a782463dff6027a35e5a35ecaa59494e' into jb-4.3
fix mismerge in audio/AudioPolicyManagerBase.cpp