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

Issue 2744373003: [devil] Provide device.GetApplicationPids() (Closed)

Created:
3 years, 9 months ago by perezju
Modified:
3 years, 9 months ago
CC:
catapult-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[devil] Provide device.GetApplicationPids() A convenient method for clients to get PIDs when they know the exact application (package) name of the process they want to get, without having to inspect and validate the return value of GetPids(). Also provides an |at_most_one| option to raise an exception if many PIDs are found but at most one was expected. BUG=catapult:#3378 Review-Url: https://codereview.chromium.org/2744373003 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/7da88470e422e865aded98d9d5ff41baeb290af7

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -26 lines) Patch
M devil/devil/android/device_utils.py View 3 chunks +44 lines, -6 lines 5 comments Download
M devil/devil/android/device_utils_test.py View 5 chunks +92 lines, -20 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
perezju
Let me know what you think. https://codereview.chromium.org/2744373003/diff/1/devil/devil/android/device_utils.py File devil/devil/android/device_utils.py (right): https://codereview.chromium.org/2744373003/diff/1/devil/devil/android/device_utils.py#newcode2144 devil/devil/android/device_utils.py:2144: def GetPids(self, process_name=None, ...
3 years, 9 months ago (2017-03-14 13:37:49 UTC) #2
perezju
3 years, 9 months ago (2017-03-17 10:51:49 UTC) #4
jbudorick
The changes to GetPids seem reasonable. https://codereview.chromium.org/2744373003/diff/1/devil/devil/android/device_utils.py File devil/devil/android/device_utils.py (right): https://codereview.chromium.org/2744373003/diff/1/devil/devil/android/device_utils.py#newcode2195 devil/devil/android/device_utils.py:2195: def GetApplicationPids(self, process_name, ...
3 years, 9 months ago (2017-03-17 15:50:30 UTC) #5
perezju
https://codereview.chromium.org/2744373003/diff/1/devil/devil/android/device_utils.py File devil/devil/android/device_utils.py (right): https://codereview.chromium.org/2744373003/diff/1/devil/devil/android/device_utils.py#newcode2195 devil/devil/android/device_utils.py:2195: def GetApplicationPids(self, process_name, at_most_one=False, **kwargs): On 2017/03/17 15:50:30, jbudorick ...
3 years, 9 months ago (2017-03-17 16:03:08 UTC) #6
jbudorick
lgtm https://codereview.chromium.org/2744373003/diff/1/devil/devil/android/device_utils.py File devil/devil/android/device_utils.py (right): https://codereview.chromium.org/2744373003/diff/1/devil/devil/android/device_utils.py#newcode2195 devil/devil/android/device_utils.py:2195: def GetApplicationPids(self, process_name, at_most_one=False, **kwargs): On 2017/03/17 16:03:08, ...
3 years, 9 months ago (2017-03-17 16:14:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2744373003/1
3 years, 9 months ago (2017-03-17 16:24:16 UTC) #9
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 16:47:07 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698