Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Issue 874713003: [Android L] Add (dis)chargingTime support for the Battery Status API. (Closed)

Created:
5 years, 11 months ago by timvolodine
Modified:
5 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android L] Add (dis)chargingTime support for the Battery Status API. This patch implements the estimation of (dis)chargingTime on devices running Android L (and above). Android L supports new properties in BatteryManager which can be used to provide such estimates. BUG=401553 TEST=http://jsbin.com/battery-status-test Committed: https://crrev.com/13e397e55501bee3903bfe46edfd56f2442c1f11 Cr-Commit-Position: refs/heads/master@{#317372}

Patch Set 1 #

Patch Set 2 : tweaks to computation + added tests #

Patch Set 3 : remove logging #

Patch Set 4 : make tests more robust #

Total comments: 12

Patch Set 5 : fix comments #

Patch Set 6 : rebase #

Patch Set 7 : fix compile #

Patch Set 8 : fix findbugs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -12 lines) Patch
M device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java View 1 2 3 4 5 6 3 chunks +43 lines, -10 lines 0 comments Download
M device/battery/android/javatests/src/org/chromium/device/battery/BatteryStatusManagerTest.java View 1 2 3 4 5 6 7 3 chunks +110 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
timvolodine
5 years, 10 months ago (2015-02-03 15:17:43 UTC) #2
Michael van Ouwerkerk
https://codereview.chromium.org/874713003/diff/60001/device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java File device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java (right): https://codereview.chromium.org/874713003/diff/60001/device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java#newcode45 device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java:45: // Only used in L (API level 21 and ...
5 years, 10 months ago (2015-02-03 15:37:44 UTC) #3
timvolodine
thanks for the comments Michael! https://codereview.chromium.org/874713003/diff/60001/device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java File device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java (right): https://codereview.chromium.org/874713003/diff/60001/device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java#newcode45 device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java:45: // Only used in ...
5 years, 10 months ago (2015-02-04 17:36:06 UTC) #4
Michael van Ouwerkerk
lgtm
5 years, 10 months ago (2015-02-04 17:45:48 UTC) #5
Michael van Ouwerkerk
Tim, is this ready to land then?
5 years, 10 months ago (2015-02-13 11:18:50 UTC) #6
timvolodine
On 2015/02/13 11:18:50, Michael van Ouwerkerk wrote: > Tim, is this ready to land then? ...
5 years, 10 months ago (2015-02-13 12:03:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/874713003/100001
5 years, 10 months ago (2015-02-20 15:14:38 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/61435)
5 years, 10 months ago (2015-02-20 15:41:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/874713003/100001
5 years, 10 months ago (2015-02-20 15:48:19 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/61455)
5 years, 10 months ago (2015-02-20 16:15:33 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/874713003/120001
5 years, 10 months ago (2015-02-20 17:26:16 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/49068)
5 years, 10 months ago (2015-02-20 18:58:17 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/874713003/140001
5 years, 10 months ago (2015-02-20 19:02:52 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 10 months ago (2015-02-20 19:31:10 UTC) #23
commit-bot: I haz the power
5 years, 10 months ago (2015-02-20 19:32:20 UTC) #24
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/13e397e55501bee3903bfe46edfd56f2442c1f11
Cr-Commit-Position: refs/heads/master@{#317372}

Powered by Google App Engine
This is Rietveld 408576698