aboutsummaryrefslogtreecommitdiff
path: root/en/devices/audio/implement-policy.html
diff options
context:
space:
mode:
authorAndroid Partner Docs <noreply@android.com>2017-06-13 09:11:47 -0700
committerClay Murphy <claym@google.com>2017-06-13 10:16:58 -0700
commitddbca9044318d55bbd03e297540612de2e214fea (patch)
tree740ebc006d9de93b185781eff054136fb00cf45f /en/devices/audio/implement-policy.html
parent9e286c1def9034893e962d1c8a4a460c8bbd79e8 (diff)
downloadsource.android.com-ddbca9044318d55bbd03e297540612de2e214fea.tar.gz
Docs: Changes to source.android.com
- 158853343 Add devsite-terminal and devsite-click-to-copy to first p... by cqn <cqn@google.com> - 158853184 Add devsite-terminal and devsite-click-to-copy to remaini... by cqn <cqn@google.com> - 158853067 Add devsite-terminal and devsite-click-to-copy to devices... by cqn <cqn@google.com> - 158740747 Add note about HID application collections to usb headset... by daroberts <daroberts@google.com> - 158722461 Add AAudio and links by claym <claym@google.com> - 158561498 CDD: Update Remote Control Req for Android Television dev... by Android Partner Docs <noreply@android.com> - 158429467 Add terminal and click-to-copy to <pre> and <code> tags o... by cqn <cqn@google.com> - 158418156 Remove unnecessary intro header by daroberts <daroberts@google.com> - 158413508 Finish up devsite-terminal and devsite-click-to-copy tags... by cqn <cqn@google.com> - 158316692 Add AOSP links to the June 2017 security bulletin by daroberts <daroberts@google.com> - 158290540 Update unclear command in SELinux validation docs by daroberts <daroberts@google.com> - 158286335 Relax Android TV devices requirement for HEVC 1080P30 sup... by Android Partner Docs <noreply@android.com> - 158286269 Relax Android TV devices requirement for HEVC 1080P30 sup... by Android Partner Docs <noreply@android.com> - 158171876 Add "devsite-terminal" and "devsite-click-to-print" tags ... by cqn <cqn@google.com> - 158167343 Note restricted profiles are also available on TV by claym <claym@google.com> - 158157233 Add tag names for June Security Release. by Android Partner Docs <noreply@android.com> - 158138050 Docs: adding debug updates to home page by hvm <hvm@google.com> - 158083990 Add class="devsite-terminal" tags to <pre> and <code> blo... by cqn <cqn@google.com> - 158069098 Updated image relative path to absolute path. by cqn <cqn@google.com> PiperOrigin-RevId: 158853343 Change-Id: If05d97edad224e03f89e257d4e3ca0124147460b
Diffstat (limited to 'en/devices/audio/implement-policy.html')
-rw-r--r--en/devices/audio/implement-policy.html14
1 files changed, 6 insertions, 8 deletions
diff --git a/en/devices/audio/implement-policy.html b/en/devices/audio/implement-policy.html
index 16cd0820..a6ccf0e9 100644
--- a/en/devices/audio/implement-policy.html
+++ b/en/devices/audio/implement-policy.html
@@ -75,10 +75,9 @@ shows many of these features in use.</p>
<code>/system/etc</code>. To view a simple audio policy configuration in the new
XML file format, view the example below.</p>
-<p>
<section class="expandable">
<h4 class="showalways">Show audio policy example</h4>
-<pre>
+<pre class="devsite-click-to-copy">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;
&lt;audioPolicyConfiguration version=&quot;1.0&quot; xmlns:xi=&quot;http://www.w3.org/2001/XInclude&quot;&gt;
&lt;globalConfiguration speaker_drc_enabled=&quot;true&quot;/&gt;
@@ -139,7 +138,6 @@ XML file format, view the example below.</p>
&lt;xi:include href=&quot;default_volume_tables.xml&quot;/&gt;
&lt;/audioPolicyConfiguration&gt;
</pre></section>
-</p>
<p>The top level structure contains modules that correspond to each audio HAL
hardware module, where each module has a list of mix ports, device ports, and
@@ -160,7 +158,7 @@ overwritten.</p>
<section class="expandable">
<h4 class="showalways">Show volume table example</h4>
-<p><pre>
+<pre class="devsite-click-to-copy">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;volumes&gt;
&lt;reference name=&quot;FULL_SCALE_VOLUME_CURVE&quot;&gt;
@@ -178,11 +176,11 @@ overwritten.</p>
&lt;point&gt;100,0&lt;/point&gt;
&lt;/reference&gt;
&lt;/volumes&gt;
-</pre></p></section>
+</pre></section>
<section class="expandable">
<h4 class="showalways">Show volumes example</h4>
-<p><pre>
+<pre class="devsite-click-to-copy">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;volumes&gt;
&lt;volume stream=&quot;AUDIO_STREAM_VOICE_CALL&quot; deviceCategory=&quot;DEVICE_CATEGORY_HEADSET&quot; ref=&quot;DEFAULT_VOLUME_CURVE&quot;/&gt;
@@ -255,7 +253,7 @@ overwritten.</p>
&lt;volume stream=&quot;AUDIO_STREAM_PATCH&quot; deviceCategory=&quot;DEVICE_CATEGORY_EARPIECE&quot; ref=&quot;FULL_SCALE_VOLUME_CURVE&quot;/&gt;
&lt;volume stream=&quot;AUDIO_STREAM_PATCH&quot; deviceCategory=&quot;DEVICE_CATEGORY_EXT_MEDIA&quot; ref=&quot;FULL_SCALE_VOLUME_CURVE&quot;/&gt;
&lt;/volumes&gt;
-</pre></p></section>
+</pre></section>
<h2 id=file_inclusions>File inclusions</h2>
<p>The XML Inclusions (XInclude) method can be used to include audio policy
@@ -391,7 +389,7 @@ product. The following example from a Galaxy Nexus shows a <em>dynamic</em>
channel mask, which means the audio policy manager queries the actual channel
masks supported by the HDMI sink after connection.</p>
-<pre>
+<pre class="devsite-click-to-copy">
audio_hw_modules {
primary {
outputs {