Commit 67aaaa5a authored by Haiyang Pan's avatar Haiyang Pan Committed by Commit Bot

emulator: add an option "--emulator-window" for avd.py

When set, graphical window display on the emulator is enabled

Bug: 922145
Change-Id: Idabc3bfee289ce2ec505a607e825ea81fab97229
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2040612Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
Commit-Queue: Haiyang Pan <hypan@google.com>
Cr-Commit-Position: refs/heads/master@{#738785}
parent bdb6325b
......@@ -87,11 +87,19 @@ def main(raw_args):
dest='read_only',
default=True,
help='Run a modifiable emulator. Will save snapshots on exit.')
start_parser.add_argument(
'--emulator-window',
action='store_true',
default=False,
help='Enable graphical window display on the emulator.')
add_common_arguments(start_parser)
def start_cmd(args):
inst = avd.AvdConfig(args.avd_config).CreateInstance()
inst.Start(read_only=args.read_only, snapshot_save=not args.read_only)
inst.Start(
read_only=args.read_only,
snapshot_save=not args.read_only,
window=args.emulator_window)
print('%s started (pid: %d)' % (str(inst), inst._emulator_proc.pid))
return 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment