aboutsummaryrefslogtreecommitdiff
path: root/en/devices/tech/power/device.html
diff options
context:
space:
mode:
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