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

Issue 1040473002: [android] Create Battery Utils to seperate power functionality (Closed)

Created:
5 years, 9 months ago by rnephew (Reviews Here)
Modified:
5 years, 8 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[android] Create Battery Utils to seperate power functionality Move charging commands from device_utils to batter_utils. Add GetPowerData() and GetPackagePowerData(package) BUG= Committed: https://crrev.com/9c524f0c7fdc20bec3fec8a2e3a779423e091782 Cr-Commit-Position: refs/heads/master@{#323099}

Patch Set 1 #

Total comments: 26

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -3 lines) Patch
M build/android/PRESUBMIT.py View 1 chunk +1 line, -0 lines 0 comments Download
A build/android/pylib/device/battery_utils.py View 1 2 3 4 5 1 chunk +248 lines, -0 lines 0 comments Download
A build/android/pylib/device/battery_utils_test.py View 1 1 chunk +146 lines, -0 lines 0 comments Download
M build/android/pylib/device/device_errors.py View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M build/android/pylib/device/device_utils.py View 1 2 3 4 5 9 chunks +20 lines, -3 lines 0 comments Download
M build/android/pylib/device/device_utils_test.py View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (3 generated)
rnephew (Wrong account)
5 years, 9 months ago (2015-03-26 22:04:59 UTC) #2
perezju
On 2015/03/26 22:04:59, rnephew wrote: Is this duplicating the implementation code from device_utils in battery_utils? ...
5 years, 9 months ago (2015-03-27 10:13:04 UTC) #3
rnephew (Wrong account)
On 2015/03/27 10:13:04, perezju wrote: > On 2015/03/26 22:04:59, rnephew wrote: > > Is this ...
5 years, 9 months ago (2015-03-27 12:57:54 UTC) #4
jbudorick
On 2015/03/27 12:57:54, rnephew wrote: > On 2015/03/27 10:13:04, perezju wrote: > > On 2015/03/26 ...
5 years, 9 months ago (2015-03-27 12:58:51 UTC) #5
jbudorick
https://codereview.chromium.org/1040473002/diff/1/build/android/pylib/device/battery_utils.py File build/android/pylib/device/battery_utils.py (right): https://codereview.chromium.org/1040473002/diff/1/build/android/pylib/device/battery_utils.py#newcode85 build/android/pylib/device/battery_utils.py:85: raise TypeError('Must be initialized with device utils object.') s/device ...
5 years, 9 months ago (2015-03-27 13:26:36 UTC) #6
perezju
On 2015/03/27 12:57:54, rnephew wrote: > On 2015/03/27 10:13:04, perezju wrote: > > On 2015/03/26 ...
5 years, 9 months ago (2015-03-27 13:33:40 UTC) #7
jbudorick
On 2015/03/27 13:33:40, perezju wrote: > On 2015/03/27 12:57:54, rnephew wrote: > > On 2015/03/27 ...
5 years, 9 months ago (2015-03-27 13:35:57 UTC) #8
jbudorick
On 2015/03/27 13:35:57, jbudorick wrote: > On 2015/03/27 13:33:40, perezju wrote: > > On 2015/03/27 ...
5 years, 9 months ago (2015-03-27 13:37:31 UTC) #9
perezju
On 2015/03/27 13:37:31, jbudorick wrote: > On 2015/03/27 13:35:57, jbudorick wrote: > > On 2015/03/27 ...
5 years, 9 months ago (2015-03-27 13:39:22 UTC) #10
rnephew (Wrong account)
https://codereview.chromium.org/1040473002/diff/1/build/android/pylib/device/battery_utils.py File build/android/pylib/device/battery_utils.py (right): https://codereview.chromium.org/1040473002/diff/1/build/android/pylib/device/battery_utils.py#newcode85 build/android/pylib/device/battery_utils.py:85: raise TypeError('Must be initialized with device utils object.') On ...
5 years, 9 months ago (2015-03-27 22:17:02 UTC) #11
perezju
https://codereview.chromium.org/1040473002/diff/20001/build/android/pylib/device/battery_utils.py File build/android/pylib/device/battery_utils.py (right): https://codereview.chromium.org/1040473002/diff/20001/build/android/pylib/device/battery_utils.py#newcode130 build/android/pylib/device/battery_utils.py:130: out_dict = {} maybe something like this would be ...
5 years, 8 months ago (2015-03-30 11:05:23 UTC) #12
jbudorick
https://codereview.chromium.org/1040473002/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1040473002/diff/20001/build/android/pylib/device/device_utils.py#newcode1657 build/android/pylib/device/device_utils.py:1657: def GetCacheEntry(self, key): On 2015/03/30 11:05:23, perezju wrote: > ...
5 years, 8 months ago (2015-03-30 13:35:04 UTC) #13
perezju
On 2015/03/30 13:35:04, jbudorick wrote: > https://codereview.chromium.org/1040473002/diff/20001/build/android/pylib/device/device_utils.py > File build/android/pylib/device/device_utils.py (right): > > https://codereview.chromium.org/1040473002/diff/20001/build/android/pylib/device/device_utils.py#newcode1657 > ...
5 years, 8 months ago (2015-03-30 14:12:10 UTC) #14
perezju
On 2015/03/30 14:12:10, perezju wrote: > On 2015/03/30 13:35:04, jbudorick wrote: > > > https://codereview.chromium.org/1040473002/diff/20001/build/android/pylib/device/device_utils.py ...
5 years, 8 months ago (2015-03-30 14:14:47 UTC) #15
jbudorick
On 2015/03/30 14:14:47, perezju wrote: > On 2015/03/30 14:12:10, perezju wrote: > > On 2015/03/30 ...
5 years, 8 months ago (2015-03-30 14:18:19 UTC) #16
perezju
On 2015/03/30 14:18:19, jbudorick wrote: > Yeah, I don't think DeviceUtils should know who needs ...
5 years, 8 months ago (2015-03-30 14:28:26 UTC) #17
jbudorick
On 2015/03/30 14:28:26, perezju wrote: > On 2015/03/30 14:18:19, jbudorick wrote: > > Yeah, I ...
5 years, 8 months ago (2015-03-30 14:30:26 UTC) #18
perezju
On 2015/03/30 14:30:26, jbudorick wrote: > On 2015/03/30 14:28:26, perezju wrote: > > On 2015/03/30 ...
5 years, 8 months ago (2015-03-30 14:32:19 UTC) #19
rnephew (Wrong account)
https://codereview.chromium.org/1040473002/diff/20001/build/android/pylib/device/battery_utils.py File build/android/pylib/device/battery_utils.py (right): https://codereview.chromium.org/1040473002/diff/20001/build/android/pylib/device/battery_utils.py#newcode130 build/android/pylib/device/battery_utils.py:130: out_dict = {} On 2015/03/30 11:05:23, perezju wrote: > ...
5 years, 8 months ago (2015-03-30 17:50:29 UTC) #20
perezju
thanks! lgtm with an optional nit https://codereview.chromium.org/1040473002/diff/60001/build/android/pylib/device/battery_utils.py File build/android/pylib/device/battery_utils.py (right): https://codereview.chromium.org/1040473002/diff/60001/build/android/pylib/device/battery_utils.py#newcode132 build/android/pylib/device/battery_utils.py:132: 'data': pwi_entries[uid]} for ...
5 years, 8 months ago (2015-03-31 08:33:25 UTC) #21
jbudorick
lgtm w/ nits https://codereview.chromium.org/1040473002/diff/80001/build/android/pylib/device/battery_utils.py File build/android/pylib/device/battery_utils.py (right): https://codereview.chromium.org/1040473002/diff/80001/build/android/pylib/device/battery_utils.py#newcode243 build/android/pylib/device/battery_utils.py:243: raise device_errors.CommandFailedError('Device must be L or ...
5 years, 8 months ago (2015-03-31 18:30:19 UTC) #22
rnephew (Wrong account)
https://codereview.chromium.org/1040473002/diff/60001/build/android/pylib/device/battery_utils.py File build/android/pylib/device/battery_utils.py (right): https://codereview.chromium.org/1040473002/diff/60001/build/android/pylib/device/battery_utils.py#newcode132 build/android/pylib/device/battery_utils.py:132: 'data': pwi_entries[uid]} for p, uid in uid_entries.iteritems()} On 2015/03/31 ...
5 years, 8 months ago (2015-03-31 19:36:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1040473002/100001
5 years, 8 months ago (2015-03-31 19:38:17 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 8 months ago (2015-03-31 20:42:41 UTC) #27
commit-bot: I haz the power
5 years, 8 months ago (2015-03-31 20:43:25 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9c524f0c7fdc20bec3fec8a2e3a779423e091782
Cr-Commit-Position: refs/heads/master@{#323099}

Powered by Google App Engine
This is Rietveld 408576698