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

Side by Side Diff: build/android/pylib/utils/emulator.py

Issue 26402002: [Android] Some clean up in pylib. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove shebang lines Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/pylib/thermal_throttle.py ('k') | build/android/pylib/utils/findbugs.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python
2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 3 # found in the LICENSE file.
6 4
7 """Provides an interface to start and stop Android emulator. 5 """Provides an interface to start and stop Android emulator.
8 6
9 Assumes system environment ANDROID_NDK_ROOT has been set. 7 Assumes system environment ANDROID_NDK_ROOT has been set.
10 8
11 Emulator: The class provides the methods to launch/shutdown the emulator with 9 Emulator: The class provides the methods to launch/shutdown the emulator with
12 the android virtual device named 'avd_armeabi' . 10 the android virtual device named 'avd_armeabi' .
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 logging.critical('emulator _ShutdownOnSignal') 359 logging.critical('emulator _ShutdownOnSignal')
362 for sig in self._SIGNALS: 360 for sig in self._SIGNALS:
363 signal.signal(sig, signal.SIG_DFL) 361 signal.signal(sig, signal.SIG_DFL)
364 self.Shutdown() 362 self.Shutdown()
365 raise KeyboardInterrupt # print a stack 363 raise KeyboardInterrupt # print a stack
366 364
367 def _InstallKillHandler(self): 365 def _InstallKillHandler(self):
368 """Install a handler to kill the emulator when we exit unexpectedly.""" 366 """Install a handler to kill the emulator when we exit unexpectedly."""
369 for sig in self._SIGNALS: 367 for sig in self._SIGNALS:
370 signal.signal(sig, self._ShutdownOnSignal) 368 signal.signal(sig, self._ShutdownOnSignal)
OLDNEW
« no previous file with comments | « build/android/pylib/thermal_throttle.py ('k') | build/android/pylib/utils/findbugs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698