| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The API now throws SyncException instead of returning SyncResult.
The IDevice API to install/uninstall now returns a single
InstallException that encapsulate all the other ddmlib
exception.
Also, the recently added exceptions now don't extend IOException
anymore.
Change-Id: Ib334c4157a6add1882233dfaaa032aea1910eede
|
|
|
|
|
|
|
|
|
|
|
| |
During tests, there are per-instrumentation based results emmitted
as key-value pairs. Examples include performance tests and normal
tests in code coverage mode. Currently most of these are discarded
by InstrumentationResultParser, this change adds parsing function,
stores the key-value pairs in a map, and finally send it to
ITestRunListeners at the end of test run.
Change-Id: If04c5f8b10eeaca494a155ed6c4a25bf0d9d892c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
Also handle TimeoutException in ADT test runner.
Change-Id: I585c2818f1c77ec80222bad282ae10b3ee8f5e1c
|
|
|
|
| |
Change-Id: I7e96c253aa07b124bceab99b6f5ce11e17f7b950
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The issue is that sometimes phones will stop responding to shell
commands launched through adb.
One of these commands is executed in DeviceMonitor#queryNewDeviceForInfo
However this is done from a loop that acquires a lock that is used in
other places, including building. This basically renders eclipse
useless as Eclipse will refuse to do anything until the build is
finished.
The fix is twofold:
First, move the call to queryNewDeviceForInfo outside of the
synchronized block.
This fixes the deadlock issue but this will not fix the problem
that the device monitor will still be stuck with a shell command
that never returns.
The second part of the fix is to add a timeout to shell command
execution. Additionnaly, this patch contains a lot of clean up
of the adb API in ddmlib, especially around exceptions thrown
during timeout.
Change-Id: Ice8ef787c825e0e7b535ff0bb939bf6f25e3d7e4
|
|/
|
|
| |
Change-Id: I293b049e73e4776d969706b28ae7533ed581dfcd
|
|
|
|
| |
Change-Id: Ie68b8c0dd9eecbc14a2bb86247b767ea47c6842c
|
|
|
|
|
|
|
| |
Also cleaned up the abstraction layer to load images from ddmuilib since
its image are now always located inside ddmuilib jar.
Change-Id: Id9d283df18a05b7b5593e4593e90dac6e5548b94
|
|
|
|
|
|
| |
change in froyo.
Change-Id: I878911b3167ff12b48fa3ea3a7bfb9129466b9bd
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I85ba17eefbc5550dc2712b28b5d870e233c85058
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
String.format uses the decimal point of the current locale which
we don't want since we pass the result to the emulator which expects
decimal point to be '.'
Double.parseDouble does not use the current locale and therefore
failed to read values put in the UI that used a decimal point
that is not '.'
Also simplified the GPS command to use geo fix instead of geo nmea
Change-Id: I275018e6a967c3d4fa37f25a149a840350e40bb8
|
|/
|
|
| |
Change-Id: I1fc90e332fff41e40d2fce740bce8e07d88586ce
|
|
|
|
| |
Change-Id: I8f8b792c68ec869980805c06aecf249558c6dc3f
|
|
|
|
| |
Change-Id: I699ee939436964e0c88b7b8423b5ed6fef84add1
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I683a47d38d9e87461d53e691c438ffeb2c3f8afa
|
|/
|
|
|
|
| |
Get rid of loop to calculate bitmask where 2^n-1 will suffice.
Change-Id: I1d77a5c3753207663531efb407f6114ccabb1220
|
|
|
|
|
|
| |
Change the test device mock to return a String for getSerialNumber.
Change-Id: I83647927160c666330ddfb5394afe837577422d7
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
- Moving instantiation of sSocketAddr out of static initializer block
into init().
Change-Id: Ibf3b81492802859673a0e77b4701be9d004509fa
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
Add logic to differeniate between an incomplete test run, and a test run which
completed successfully but has no tests.
Fixes bug http://b.android.com/7830
Change-Id: I54068de73e068faae6e34779b91665f6d1dc1a47
|
|\ \
| |/
|/| |
|
| |
| |
| |
| | |
Change-Id: I39f1b7d726a0b5d26e736b404693183003ea391e
|
|\ \
| |/
|/|
| | |
resued by others."
|
| |
| |
| |
| |
| |
| | |
others.
Change-Id: I4e97d950587822c3a3e24c1c3d1a89ab19419f14
|
| |
| |
| |
| |
| |
| | |
Also cleanup some log messages.
Change-Id: Iea292c620c65e63642ef57d3082a54a1613b15bd
|
|/
|
|
|
|
|
| |
This is to fit with design decision to make ddms a relatively dumb pipe, and
have callers handle any reliability/retry scenarios.
Change-Id: I454e0f37a7d50ba194f59aeba6a4ab9d9ed3ded8
|
|
|
|
|
|
| |
Bug 1713395
Change-Id: Id614ddd6c74fa02b5fba6a6fb9e994bae4809bf4
|
|\ |
|
| |
| |
| |
| |
| | |
Bug: 2482010
Change-Id: I68e7f3361bc44251b3767ffe6bcba21e649c4407
|
|/
|
|
|
|
|
| |
There's no libc_debug anymore. This prevented the
resolution from working for all libc addresses.
Change-Id: Id909719cd38170192b14d05f9ce5e47b640ea469
|
|
|
|
|
|
|
| |
Change instrumentation result parser to record a instrumentation test that was
started, but not completed due to a run failure, as a test failure.
Change-Id: I1296a9064a13ee0ba10e8352cd2cc8b54930043e
|
|
|
|
| |
Change-Id: I12b273582880fadefcd233df45960811b8f16d49
|
|
|
|
|
|
| |
And clean-up whitespace.
Change-Id: Icb6bd5c8bf403fda0de436d4b9e732e7ea976267
|
|
|
|
| |
Change-Id: I44c6b3db304ce1203edaa7b80500eed46706e0f5
|
|
|
|
| |
Change-Id: I0fcc8718685ddb7accd459e78821677f044135ba
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
for updating SDK Setup.exe." into eclair
Merge commit '74d66e2d7f810028620f25c585a3f21e5ad1686b'
* commit '74d66e2d7f810028620f25c585a3f21e5ad1686b':
SDK Updater: Support post install script for updating SDK Setup.exe.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The new post_tools_install.bat will be found in SDK/tools/lib.
This also moves find_java.bat into the same lib folder.
SDK Bug: 2404830
Change-Id: I84e3671918931079f296500e296ec1a55931b851
|
| |
| |
| |
| |
| |
| |
| | |
Integrated from master to be in SDK Tools r5.
Bug: 2160407
Change-Id: Ib9cfcb68cc2c38947350b3419a96ce917db51b35
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
JDWP. Do not merge.
Older VMs need to write the trace file on the SD Card which requires
the appropriate permission. This new mode directly streams the trace
file from the VM to DDMS.
Integrated from master to be in SDK Tools r5.
Bug: 2160407
Change-Id: I17d3e314d6325c1bdff041564bc939b2778b563e
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This will send MPSS/MPSE packets instead of MPRS/MPRE when the client VM
supports them. At least, it would if the property check weren't
hard-wired to false, which is done because the MPSE handling in DDMS is
incomplete (currently just dumps the first 100 chars so you can see that
it really got something).
Integrated from master to be in SDK Tools r5.
For bug 2160407.
Change-Id: I92b7d43fa78e3cb3eefdcef9e7357bbc6818822b
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Send an HPDS instead of HPDU when the client VM supports it. Once
additional support is added to DDMS, this will allow grabbing an hprof
dump through DDMS even if the target app doesn't have permission to write
to /sdcard. (The down side is that the dump must be held on the native
heap while it's generated, temporarily bloating the process by a few
megabytes.)
For bug 2092855.
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
wrappers." into eclair
Merge commit '176573bfeb4c68d877a9de7f17a2ab33ddfb343f'
* commit '176573bfeb4c68d877a9de7f17a2ab33ddfb343f':
Windows SDK: use find_java.bat in all batch wrappers.
|
| |
| |
| |
| |
| |
| | |
SDK Bug: 2315813
Change-Id: If026d09f927b3d0b5707dfd08e1367e4ba2da28b
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
Bug: 2160407
Change-Id: Ifcce3f12b9de8e07bc035c8b74f82911d81c490e
|