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

Issue 13543008: Fix AVD configuration and defaults based on dogfooder input. (Closed)

Created:
7 years, 8 months ago by navabi
Modified:
7 years, 8 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, frankf+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix AVD configuration and defaults based on dogfooder input. I have worked with a couple developers to dogfood the installation and running of AVD's using the build/android scripts. The following suggestions have been taken are are implemented by this change: - Use configuration of AVD for Galaxy Nexus by Google as default config - allows developers to use software keyboard - uses the Galaxy Nexus skin with Back/Home/Apps buttons at bottom - Defaults (one x86 AVD) are printed on the help page - Does not require virtualization support for ARM emulator (only x86) BUG=164911 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193281

Patch Set 1 #

Total comments: 18

Patch Set 2 : Writing ini file instead of copying it. #

Patch Set 3 : Remove the ini files that are no longer needed. #

Total comments: 2

Patch Set 4 : Use popen communicate and don't pipe stdout and stderr. #

Total comments: 2

Patch Set 5 : Fixed misleading comment. #

Total comments: 4

Patch Set 6 : Changed use of subprocess for avd create to pexpect. #

Total comments: 7

Patch Set 7 : Use cmd_helper.RunCmd when output does not matter. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -26 lines) Patch
M build/android/avd.py View 1 2 chunks +7 lines, -9 lines 0 comments Download
A build/android/avd_configs/AVD_for_Galaxy_Nexus_by_Google_arm.avd/config.ini View 1 chunk +30 lines, -0 lines 0 comments Download
A build/android/avd_configs/AVD_for_Galaxy_Nexus_by_Google_x86.avd/config.ini View 1 chunk +29 lines, -0 lines 0 comments Download
M build/android/install_emulator_deps.py View 1 2 3 4 5 3 chunks +3 lines, -1 line 0 comments Download
M build/android/pylib/utils/emulator.py View 1 2 3 4 5 6 7 chunks +49 lines, -16 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
navabi
7 years, 8 months ago (2013-04-04 23:18:09 UTC) #1
pasko-google - do not use
neat stuff! Thanks! I think it makes sense to make one small cleanup. See below. ...
7 years, 8 months ago (2013-04-05 09:41:05 UTC) #2
nyquist
https://codereview.chromium.org/13543008/diff/1/build/android/avd.py File build/android/avd.py (right): https://codereview.chromium.org/13543008/diff/1/build/android/avd.py#newcode47 build/android/avd.py:47: 'Enable in BIOS and run install_emulator_deps.py') Maybe even "Enable ...
7 years, 8 months ago (2013-04-05 20:49:35 UTC) #3
frankf
https://codereview.chromium.org/13543008/diff/1/build/android/pylib/utils/emulator.py File build/android/pylib/utils/emulator.py (right): https://codereview.chromium.org/13543008/diff/1/build/android/pylib/utils/emulator.py#newcode211 build/android/pylib/utils/emulator.py:211: avd_process.wait() This can cause a deadlock. Don't call subprocess ...
7 years, 8 months ago (2013-04-05 21:05:48 UTC) #4
navabi
https://codereview.chromium.org/13543008/diff/1/build/android/avd.py File build/android/avd.py (right): https://codereview.chromium.org/13543008/diff/1/build/android/avd.py#newcode47 build/android/avd.py:47: 'Enable in BIOS and run install_emulator_deps.py') On 2013/04/05 20:49:35, ...
7 years, 8 months ago (2013-04-08 21:41:56 UTC) #5
Isaac (away)
https://codereview.chromium.org/13543008/diff/1/build/android/pylib/utils/emulator.py File build/android/pylib/utils/emulator.py (right): https://codereview.chromium.org/13543008/diff/1/build/android/pylib/utils/emulator.py#newcode211 build/android/pylib/utils/emulator.py:211: avd_process.wait() On 2013/04/08 21:41:56, navabi wrote: > On 2013/04/05 ...
7 years, 8 months ago (2013-04-08 21:45:52 UTC) #6
navabi
https://codereview.chromium.org/13543008/diff/13001/build/android/pylib/utils/emulator.py File build/android/pylib/utils/emulator.py (right): https://codereview.chromium.org/13543008/diff/13001/build/android/pylib/utils/emulator.py#newcode175 build/android/pylib/utils/emulator.py:175: self.popen = None This requires calling subprocess directly (at ...
7 years, 8 months ago (2013-04-08 21:46:37 UTC) #7
navabi
https://codereview.chromium.org/13543008/diff/1/build/android/pylib/utils/emulator.py File build/android/pylib/utils/emulator.py (right): https://codereview.chromium.org/13543008/diff/1/build/android/pylib/utils/emulator.py#newcode211 build/android/pylib/utils/emulator.py:211: avd_process.wait() On 2013/04/08 21:45:52, Isaac wrote: > On 2013/04/08 ...
7 years, 8 months ago (2013-04-08 22:04:51 UTC) #8
cjhopman
https://codereview.chromium.org/13543008/diff/1/build/android/pylib/utils/emulator.py File build/android/pylib/utils/emulator.py (right): https://codereview.chromium.org/13543008/diff/1/build/android/pylib/utils/emulator.py#newcode211 build/android/pylib/utils/emulator.py:211: avd_process.wait() On 2013/04/08 21:45:52, Isaac wrote: > On 2013/04/08 ...
7 years, 8 months ago (2013-04-09 00:17:26 UTC) #9
pasko-google - do not use
lgtm https://codereview.chromium.org/13543008/diff/1/build/android/install_emulator_deps.py File build/android/install_emulator_deps.py (right): https://codereview.chromium.org/13543008/diff/1/build/android/install_emulator_deps.py#newcode143 build/android/install_emulator_deps.py:143: logging.info('Emulator deps for ARM emulator complete.') On 2013/04/08 ...
7 years, 8 months ago (2013-04-09 08:41:44 UTC) #10
navabi
Thanks pasko https://codereview.chromium.org/13543008/diff/16001/build/android/pylib/utils/emulator.py File build/android/pylib/utils/emulator.py (right): https://codereview.chromium.org/13543008/diff/16001/build/android/pylib/utils/emulator.py#newcode225 build/android/pylib/utils/emulator.py:225: # Remove non-standard configuration files On 2013/04/09 ...
7 years, 8 months ago (2013-04-09 16:46:50 UTC) #11
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 8 months ago (2013-04-09 16:53:12 UTC) #12
frankf
https://chromiumcodereview.appspot.com/13543008/diff/23001/build/android/install_emulator_deps.py File build/android/install_emulator_deps.py (right): https://chromiumcodereview.appspot.com/13543008/diff/23001/build/android/install_emulator_deps.py#newcode64 build/android/install_emulator_deps.py:64: except Exception, e: please avoid using general exceptions. https://chromiumcodereview.appspot.com/13543008/diff/23001/build/android/pylib/utils/emulator.py ...
7 years, 8 months ago (2013-04-09 17:16:48 UTC) #13
navabi
https://codereview.chromium.org/13543008/diff/23001/build/android/install_emulator_deps.py File build/android/install_emulator_deps.py (right): https://codereview.chromium.org/13543008/diff/23001/build/android/install_emulator_deps.py#newcode64 build/android/install_emulator_deps.py:64: except Exception, e: On 2013/04/09 17:16:48, frankf wrote: > ...
7 years, 8 months ago (2013-04-09 21:53:55 UTC) #14
frankf
lgtm https://codereview.chromium.org/13543008/diff/28001/build/android/pylib/utils/emulator.py File build/android/pylib/utils/emulator.py (right): https://codereview.chromium.org/13543008/diff/28001/build/android/pylib/utils/emulator.py#newcode19 build/android/pylib/utils/emulator.py:19: import subprocess No longer used. Please run gpylint.
7 years, 8 months ago (2013-04-09 22:32:14 UTC) #15
frankf
https://codereview.chromium.org/13543008/diff/28001/build/android/pylib/utils/emulator.py File build/android/pylib/utils/emulator.py (right): https://codereview.chromium.org/13543008/diff/28001/build/android/pylib/utils/emulator.py#newcode254 build/android/pylib/utils/emulator.py:254: cmd_helper.GetCmdOutput(avd_command) Also just do cmd_helper.RunCmd if you don't need ...
7 years, 8 months ago (2013-04-09 22:37:29 UTC) #16
navabi
https://codereview.chromium.org/13543008/diff/28001/build/android/pylib/utils/emulator.py File build/android/pylib/utils/emulator.py (right): https://codereview.chromium.org/13543008/diff/28001/build/android/pylib/utils/emulator.py#newcode19 build/android/pylib/utils/emulator.py:19: import subprocess On 2013/04/09 22:32:14, frankf wrote: > No ...
7 years, 8 months ago (2013-04-09 22:40:05 UTC) #17
navabi
https://codereview.chromium.org/13543008/diff/28001/build/android/pylib/utils/emulator.py File build/android/pylib/utils/emulator.py (right): https://codereview.chromium.org/13543008/diff/28001/build/android/pylib/utils/emulator.py#newcode254 build/android/pylib/utils/emulator.py:254: cmd_helper.GetCmdOutput(avd_command) On 2013/04/09 22:37:29, frankf wrote: > Also just ...
7 years, 8 months ago (2013-04-09 22:44:32 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/navabi@google.com/13543008/35001
7 years, 8 months ago (2013-04-09 22:50:56 UTC) #19
commit-bot: I haz the power
7 years, 8 months ago (2013-04-10 01:55:32 UTC) #20
Message was sent while issue was closed.
Change committed as 193281

Powered by Google App Engine
This is Rietveld 408576698