diff options
Diffstat (limited to 'en/devices/tv')
-rw-r--r-- | en/devices/tv/hdmi-cec.html | 12 | ||||
-rw-r--r-- | en/devices/tv/reference-tv-app.html | 32 |
2 files changed, 23 insertions, 21 deletions
diff --git a/en/devices/tv/hdmi-cec.html b/en/devices/tv/hdmi-cec.html index 942626a5..6510901d 100644 --- a/en/devices/tv/hdmi-cec.html +++ b/en/devices/tv/hdmi-cec.html @@ -70,7 +70,7 @@ specifies.</p> controller to an implementation of the simpler HDMI-CEC hardware abstraction layer (HAL).</p> -<img src="images/HDMI_Control_Service.png" alt="Diagram that shows how HDMI-CEC was implemented before and after Android 5.0"> +<img src="/devices/tv/images/HDMI_Control_Service.png" alt="Diagram that shows how HDMI-CEC was implemented before and after Android 5.0"> <p class="img-caption"><strong>Figure 1.</strong> HDMI Control Service replacement</p> @@ -79,7 +79,7 @@ layer (HAL).</p> <p>See the following diagram for a detailed view of the HDMI control service.</p> -<img src="images/HDMI_Control_Service_Flow.png" alt="Image that shows how HDMI Control service details"> +<img src="/devices/tv/images/HDMI_Control_Service_Flow.png" alt="Image that shows how HDMI Control service details"> <p class="img-caption"><strong>Figure 2.</strong> HDMI Control Service details</p> @@ -96,7 +96,7 @@ to use to implement the HAL layer.</li> <p class="note"><strong>Note</strong>: Device manufacturers should add the following line into <code>PRODUCT_COPY_FILES</code> in <code>device.mk</code>.</p> -<pre> +<pre class="devsite-click-to-copy"> PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.hdmi.cec.xml:system/etc/permissions/android.hardware.hdmi.cec.xml </pre> @@ -107,13 +107,13 @@ device manufacturers need to set <code>ro.hdmi.device_type</code> in <code>devic <p>For HDMI source devices, like Over the Top (OTT) boxes, set:</p> -<pre> +<pre class="devsite-click-to-copy"> PRODUCT_PROPERTY_OVERRIDES += ro.hdmi.device_type=<strong>4</strong> </pre> <p>For HDMI sink devices, like panel TVs, set:</p> -<pre> +<pre class="devsite-click-to-copy"> PRODUCT_PROPERTY_OVERRIDES += ro.hdmi.device_type=<strong>0</strong></pre> </p> @@ -169,7 +169,7 @@ etc.) to the upper layer through API.</p> <p>Here is an excerpt of the HDMI-CEC HAL definition regarding APIs:</p> -<pre> +<pre class="devsite-click-to-copy"> #ifndef ANDROID_INCLUDE_HARDWARE_HDMI_CEC_H #define ANDROID_INCLUDE_HARDWARE_HDMI_CEC_H diff --git a/en/devices/tv/reference-tv-app.html b/en/devices/tv/reference-tv-app.html index 1989e0df..db4b1763 100644 --- a/en/devices/tv/reference-tv-app.html +++ b/en/devices/tv/reference-tv-app.html @@ -84,10 +84,10 @@ easily select an earlier version by changing the branch from master to a different one listed in the table above.</p> -<pre> -$ mkdir live-tv && cd live-tv -$ repo init -u <a href="https://android.googlesource.com/platform/manifest">https://android.googlesource.com/platform/manifest</a> -b master -$ repo sync -j8 -c +<pre class="devsite-click-to-copy"> +<code class="devsite-terminal">mkdir live-tv && cd live-tv</code> +<code class="devsite-terminal">repo init -u <a href="https://android.googlesource.com/platform/manifest">https://android.googlesource.com/platform/manifest</a> -b master</code> +<code class="devsite-terminal">repo sync -j8 -c</code> </pre> @@ -96,10 +96,10 @@ $ repo sync -j8 -c <p>To build the Live TV code, run:</p> -<pre> -$ . build/envsetup.sh -$ tapas LiveTv x86 -$ make LiveTv +<pre class="devsite-click-to-copy"> +<code class="devsite-terminal">. build/envsetup.sh</code> +<code class="devsite-terminal">apas LiveTv x86</code> +<code class="devsite-terminal">make LiveTv</code> </pre> @@ -108,14 +108,16 @@ $ make LiveTv <p>To push Live TV to your test device:</p> -<pre> -$ adb install -r -d $OUT/system/priv-app/LiveTv/LiveTv.apk +<pre class="devsite-terminal devsite-click-to-copy"> +adb install -r -d $OUT/system/priv-app/LiveTv/LiveTv.apk </pre> <p>If the developer wants the LIVE TV app to have system permissions, the first time it is installed it needs to be pushed to /system/priv-app with:</p> -<pre>adb push $OUT/system/priv-app/LiveTv/LiveTv.apk /system/priv-app/LiveTv/</pre> +<pre class="devsite-terminal devsite-click-to-copy"> +adb push $OUT/system/priv-app/LiveTv/LiveTv.apk /system/priv-app/LiveTv/ +</pre> <h2 id=test>Test</h2> @@ -129,8 +131,8 @@ integrated. In addition to running the <a href="/compatibility/cts/index.html">C <p>There are unit and functional tests for the Live TV app. You must have a device (or emulator) connected to run the tests.</p> -<pre> -$ adb shell logcat -c +<pre class="devsite-terminal devsite-click-to-copy"> +adb shell logcat -c m LiveTv TVTestInput TVUnitTests -j20 &&\ adb install -r -d $OUT/system/priv-app/LiveTv/LiveTv.apk &&\ adb install -r -d $OUT/system/app/TVTestInput/TVTestInput.apk && \ @@ -148,7 +150,7 @@ adb shell am instrument \ <h3 id=functional_tests>Functional Tests</h3> -<pre> +<pre class="devsite-terminal devsite-click-to-copy"> $ adb shell logcat -c m LiveTv TVTestInput TVFuncTests -j20 &&\ adb install -r -d $OUT/system/priv-app/LiveTv/LiveTv.apk &&\ @@ -170,7 +172,7 @@ adb shell am instrument \ <p>The Jank tests look for dropped frames and delays in rendering.</p> -<pre> +<pre class="devsite-terminal devsite-click-to-copy"> $ adb shell logcat -c m LiveTv TVTestInput TVJankTests -j20 &&\ adb install -r -d $OUT/system/priv-app/LiveTv/LiveTv.apk &&\ |