| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Provides an interface to start and stop Android emulator. | 6 """Provides an interface to start and stop Android emulator. |
| 7 | 7 |
| 8 Assumes system environment ANDROID_NDK_ROOT has been set. | 8 Assumes system environment ANDROID_NDK_ROOT has been set. |
| 9 | 9 |
| 10 Emulator: The class provides the methods to launch/shutdown the emulator with | 10 Emulator: The class provides the methods to launch/shutdown the emulator with |
| 11 the android virtual device named 'buildbot' . | 11 the android virtual device named 'buildbot' . |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 """Shuts down the process started by launch.""" | 75 """Shuts down the process started by launch.""" |
| 76 self.popen.terminate() | 76 self.popen.terminate() |
| 77 | 77 |
| 78 | 78 |
| 79 def main(argv): | 79 def main(argv): |
| 80 Emulator().launch() | 80 Emulator().launch() |
| 81 | 81 |
| 82 | 82 |
| 83 if __name__ == '__main__': | 83 if __name__ == '__main__': |
| 84 main(sys.argv) | 84 main(sys.argv) |
| OLD | NEW |