| OLD | NEW |
| 1 #!/usr/bin/python2.4 | 1 #!/usr/bin/python2.4 |
| 2 # | 2 # |
| 3 # | 3 # |
| 4 # Copyright 2008, The Android Open Source Project | 4 # Copyright 2008, The Android Open Source Project |
| 5 # | 5 # |
| 6 # Licensed under the Apache License, Version 2.0 (the "License"); | 6 # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 # you may not use this file except in compliance with the License. | 7 # you may not use this file except in compliance with the License. |
| 8 # You may obtain a copy of the License at | 8 # You may obtain a copy of the License at |
| 9 # | 9 # |
| 10 # http://www.apache.org/licenses/LICENSE-2.0 | 10 # http://www.apache.org/licenses/LICENSE-2.0 |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 # press the MENU key, this will disable key guard if runtime is started | 498 # press the MENU key, this will disable key guard if runtime is started |
| 499 # with ro.monkey set to 1 | 499 # with ro.monkey set to 1 |
| 500 self.SendShellCommand("input keyevent 82", retry_count=retry_count) | 500 self.SendShellCommand("input keyevent 82", retry_count=retry_count) |
| 501 else: | 501 else: |
| 502 self.WaitForDevicePm() | 502 self.WaitForDevicePm() |
| 503 return output | 503 return output |
| 504 | 504 |
| 505 def GetSerialNumber(self): | 505 def GetSerialNumber(self): |
| 506 """Returns the serial number of the targeted device.""" | 506 """Returns the serial number of the targeted device.""" |
| 507 return self.SendCommand("get-serialno").strip() | 507 return self.SendCommand("get-serialno").strip() |
| OLD | NEW |