aboutsummaryrefslogtreecommitdiff
path: root/en/devices/tech/power/device.html
diff options
context:
space:
mode:
authorAndroid Partner Docs <noreply@android.com>2017-06-21 01:15:52 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-06-21 01:15:52 +0000
commit833d7d4b817ec004eaac51cd628ec36ca3710b76 (patch)
treeb528f70cbfa22decfea5899870efc1a42e7b7778 /en/devices/tech/power/device.html
parent568cd2717845bffb1ae7726935f3f1f163188d67 (diff)
parent14605d77b5e0aabc741b2b69d53e9e772f010b23 (diff)
downloadsource.android.com-833d7d4b817ec004eaac51cd628ec36ca3710b76.tar.gz
Merge "Docs: Changes to source.android.com"
am: 14605d77b5 Change-Id: I9c5d7f30bfcca332e2522111e53e4fdf24deada3
Diffstat (limited to 'en/devices/tech/power/device.html')
-rw-r--r--en/devices/tech/power/device.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/en/devices/tech/power/device.html b/en/devices/tech/power/device.html
index 160cbb18..88443663 100644
--- a/en/devices/tech/power/device.html
+++ b/en/devices/tech/power/device.html
@@ -45,7 +45,7 @@ consumption between configurations.</p>
<p>To read power consumption data, insert calls to the API in your testing code.</p>
-<pre>
+<pre class="prettyprint">
import android.os.BatteryManager;
import android.content.Context;
BatteryManager mBatteryManager =
@@ -59,7 +59,7 @@ Slog.i(TAG, "Remaining energy = " + energy + "nWh");
<p>Android supports the following battery fuel gauge properties:</p>
-<pre>
+<pre class="devsite-click-to-copy">
BATTERY_PROPERTY_CHARGE_COUNTER Remaining battery capacity in microampere-hours
BATTERY_PROPERTY_CURRENT_NOW Instantaneous battery current in microamperes
BATTERY_PROPERTY_CURRENT_AVERAGE Average battery current in microamperes