diff options
author | Xavier Ducrohet <xav@android.com> | 2010-07-14 20:17:50 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2010-07-15 16:45:10 -0700 |
commit | a6e573c897b84f21802a7bccad817552c32364e7 (patch) | |
tree | 086bfe0836fa7e9d03e0f7fd10cb83ba3b5f5293 /screenshot | |
parent | ee549ef4b9452802c1e7b47ad592a1c9875dbea2 (diff) | |
download | sdk-a6e573c897b84f21802a7bccad817552c32364e7.zip sdk-a6e573c897b84f21802a7bccad817552c32364e7.tar.gz sdk-a6e573c897b84f21802a7bccad817552c32364e7.tar.bz2 |
Add new exceptions to ddmlib.
- AdbCommandRejectedException is thrown when adb doesn't respond
to the command with OKAY. This used to throw a normal IOException
but it can be useful to throw a different type. The message
of the exception is the error string returned by adb.
- ShellCommandUnresponsiveException is the new "timeout" exception
for output received by shell command running on devices. This
makes the distinction between timeout when talking to adb and
issue with shell command not outputting anything. Also made the
javadoc for the IDevice.executeShellCommand clearer to what the
"timeout" (renamed to maxTimeToOutputResponse) does.
Also added a better timeout to the IDevice methods to install/uninstall
apps as the default 5sec timeout was likely to be too low.
Current default value is 2min.
Change-Id: I4ecb9498926295a4e801e71b33df5d611e8120b8
Diffstat (limited to 'screenshot')
0 files changed, 0 insertions, 0 deletions