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 communicate with the device via the adb command. | 6 """Provides an interface to communicate with the device via the adb command. |
7 | 7 |
8 Assumes adb binary is currently on system path. | 8 Assumes adb binary is currently on system path. |
9 | 9 |
10 Usage: | 10 Usage: |
11 python android_commands.py wait-for-pm | 11 python android_commands.py wait-for-pm |
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 options, args = option_parser.parse_args(argv) | 767 options, args = option_parser.parse_args(argv) |
768 | 768 |
769 commands = AndroidCommands(wait_for_pm=options.wait_for_pm) | 769 commands = AndroidCommands(wait_for_pm=options.wait_for_pm) |
770 if options.set_asserts != None: | 770 if options.set_asserts != None: |
771 if commands.SetJavaAssertsEnabled(options.set_asserts): | 771 if commands.SetJavaAssertsEnabled(options.set_asserts): |
772 commands.Reboot(full_reboot=False) | 772 commands.Reboot(full_reboot=False) |
773 | 773 |
774 | 774 |
775 if __name__ == '__main__': | 775 if __name__ == '__main__': |
776 main(sys.argv) | 776 main(sys.argv) |
OLD | NEW |