multiple batteries support
authorMounir Lamouri <mounir@lamouri.fr>
Fri, 06 Jun 2014 12:34:01 +0100
changeset 522 77dbe211ed07
parent 521 f9fb2068c558
child 523 428149f72f4a
multiple batteries support
battery/Overview.src.html
--- a/battery/Overview.src.html	Fri Jun 06 12:25:15 2014 +0100
+++ b/battery/Overview.src.html	Fri Jun 06 12:34:01 2014 +0100
@@ -352,6 +352,31 @@
         </code> events are fired is left to the implementation.
       </div>
       <section>
+        <h2>Multiple batteries</h2>
+        <p>
+          If a hosting device contains more than one battery,
+          <a>BatteryManager</a> SHOULD expose an unified view of the batteries.
+        </p>
+        <p>
+          The <code>charging</code> attribute MUST be set to true if at least
+          one battery's <code>charging</code> state as described above is true.
+          Otherwise, it MUST be set to false.
+        </p>
+        <p>
+          The <code>level</code> attribute MUST be set to the sum of the
+          individual battery's <code>level</code> attributes divided by the
+          number of batteries.
+        </p>
+        <p>
+          The <code>chargingTime</code> attribute MUST be set to the max of all
+          the individual batteries <code>chargingTime</code>.
+        </p>
+        <p>
+          The <code>dischargingTime</code> attribute MUST be set to the max of
+          all the individual batteries <code>dischargingTime</code>.
+        </p>
+      </section>
+      <section>
         <h2>Event handlers</h2>
         <p>
           The following are the <a>event handlers</a> (and their corresponding