OLD | NEW |
1 # Copyright 2015 The Swarming Authors. All rights reserved. | 1 # Copyright 2015 The LUCI Authors. All rights reserved. |
2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed by the Apache v2.0 license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Android specific utility functions. | 5 """Android specific utility functions. |
6 | 6 |
7 This file serves as an API to bot_config.py. bot_config.py can be replaced on | 7 This file serves as an API to bot_config.py. bot_config.py can be replaced on |
8 the server to allow additional server-specific functionality. | 8 the server to allow additional server-specific functionality. |
9 """ | 9 """ |
10 | 10 |
11 import collections | 11 import collections |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 'swarming', 10000, 10000, on_error=bot.post_error if bot else None, | 110 'swarming', 10000, 10000, on_error=bot.post_error if bot else None, |
111 as_root=True) | 111 as_root=True) |
112 | 112 |
113 | 113 |
114 def close_devices(devices): | 114 def close_devices(devices): |
115 return high.CloseDevices(devices) | 115 return high.CloseDevices(devices) |
116 | 116 |
117 | 117 |
118 def kill_adb(): | 118 def kill_adb(): |
119 return adb_commands_safe.KillADB() | 119 return adb_commands_safe.KillADB() |
OLD | NEW |