aboutsummaryrefslogtreecommitdiff
path: root/en/devices/tech/power/mgmt.html
diff options
context:
space:
mode:
authorAndroid Partner Docs <noreply@android.com>2017-06-21 01:32:24 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-06-21 01:32:24 +0000
commitd9c0a94dd500fc616309192152fa737a83c185d8 (patch)
tree9d32c0a36693b9ce3d89bd10152cd3a2564f486e /en/devices/tech/power/mgmt.html
parent0d061a7f4d62ccb9174916e0abbe96d84646df45 (diff)
parentbb57032f17abb0cfb5ebe780451d58a97779c5b6 (diff)
downloadsource.android.com-d9c0a94dd500fc616309192152fa737a83c185d8.tar.gz
Merge "Docs: Changes to source.android.com" am: 14605d77b5 am: 833d7d4b81 am: f51ce41011
am: bb57032f17 Change-Id: I7c8bcc0487be283a76b1703188455ef18b255661
Diffstat (limited to 'en/devices/tech/power/mgmt.html')
-rw-r--r--en/devices/tech/power/mgmt.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/en/devices/tech/power/mgmt.html b/en/devices/tech/power/mgmt.html
index 21086893..7dd0862b 100644
--- a/en/devices/tech/power/mgmt.html
+++ b/en/devices/tech/power/mgmt.html
@@ -97,11 +97,11 @@ a period of time.
<h3 id=testing_app_standby>Testing App Standby</h3>
<p>You can manually test App Standby using the following <code>adb</code> commands:</p>
-<pre>
-$ adb shell dumpsys battery unplug
-$ adb shell am set-idle packageName true
-$ adb shell am set-idle packageName false
-$ adb shell am get-idle packageName
+<pre class="devsite-click-to-copy">
+<code class="devsite-terminal">adb shell dumpsys battery unplug</code>
+<code class="devsite-terminal">adb shell am set-idle packageName true</code>
+<code class="devsite-terminal">adb shell am set-idle packageName false</code>
+<code class="devsite-terminal">adb shell am get-idle packageName</code>
</pre>
<h2 id="doze">Doze</h2>
@@ -195,7 +195,7 @@ they can complete their processing.</li>
<p>Android 7.0 and later extends Doze by enabling a lightweight sleep mode during screen
off, before the device is idle.</p>
-<p><img src="../images/doze_lightweight.png"></p>
+<p><img src="/devices/tech/images/doze_lightweight.png"></p>
<p class="img-caption">Figure 1. Doze modes for non-stationary and stationary
devices.</p>
@@ -258,10 +258,10 @@ configuration is necessary.</p>
<li>In the device overlay config file
<code>overlay/frameworks/base/core/res/res/values/config.xml</code>, set
<code>config_enableAutoPowerModes</code> to <strong>true</strong>:
-<pre>
-bool name="config_enableAutoPowerModes"&gt;true&lt;/bool&gt;
+<pre class="devsite-click-to-copy">
+&lt;bool name="config_enableAutoPowerModes"&gt;true&lt;/bool&gt;
</pre>
-<br>In AOSP, this parameter is set to false (Doze disabled) by default.<br>
+In AOSP, this parameter is set to false (Doze disabled) by default.<br>
</li>
<li>Confirm that preloaded apps and services:
<ul>