aboutsummaryrefslogtreecommitdiffstats
path: root/ddms
Commit message (Collapse)AuthorAgeFilesLines
* parse instrumentation result bundlesGuang Zhu2010-07-164-23/+84
| | | | | | | | | | | 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
* Add new exceptions to ddmlib.Xavier Ducrohet2010-07-1510-156/+359
| | | | | | | | | | | | | | | | | | | | - 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
* Add support for specifying adb timeout in ddms testrunner.Brett Chabot2010-07-142-1/+21
| | | | | | Also handle TimeoutException in ADT test runner. Change-Id: I585c2818f1c77ec80222bad282ae10b3ee8f5e1c
* Fix some javadocs regarding the timeout API change.Xavier Ducrohet2010-07-132-4/+10
| | | | Change-Id: I7e96c253aa07b124bceab99b6f5ce11e17f7b950
* Merge "Fix a possible deadlock in Eclipse/ADT."Xavier Ducrohet2010-07-1313-281/+415
|\
| * Fix a possible deadlock in Eclipse/ADT.Xavier Ducrohet2010-07-1313-281/+415
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Add hours to ddms log timestamp.Brett Chabot2010-07-121-5/+4
|/ | | | Change-Id: I293b049e73e4776d969706b28ae7533ed581dfcd
* Fix ddms projects in Eclipse for Windows/Cygwin.Raphael Moll2010-06-281-2/+5
| | | | Change-Id: Ie68b8c0dd9eecbc14a2bb86247b767ea47c6842c
* Make ddmlib/ddmuilib jar files inside the ddms plug-in instead of symlinks.Xavier Ducrohet2010-06-2415-327/+336
| | | | | | | Also cleaned up the abstraction layer to load images from ddmuilib since its image are now always located inside ddmuilib jar. Change-Id: Id9d283df18a05b7b5593e4593e90dac6e5548b94
* Fix a crash in DDMS when parsing an unexpected sync event format due to a ↵Xavier Ducrohet2010-06-231-0/+3
| | | | | | change in froyo. Change-Id: I878911b3167ff12b48fa3ea3a7bfb9129466b9bd
* Merge "Add a 'removeInstrumentationArg' method to ddms testrunner."Brett Chabot2010-06-102-0/+17
|\
| * Add a 'removeInstrumentationArg' method to ddms testrunner.Brett Chabot2010-06-102-0/+17
| | | | | | | | Change-Id: I85ba17eefbc5550dc2712b28b5d870e233c85058
* | Properly handle float/double in loc control when locale is not en.Xavier Ducrohet2010-06-092-59/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Enforce english formatting for the geo string sent to the emulator.Xavier Ducrohet2010-06-081-2/+6
|/ | | | Change-Id: I1fc90e332fff41e40d2fce740bce8e07d88586ce
* Add a reboot command to IDevice to allow ddmlib users to reboot devices.Bill Napier2010-05-174-0/+50
| | | | Change-Id: I8f8b792c68ec869980805c06aecf249558c6dc3f
* Fix a typo.Xavier Ducrohet2010-05-141-1/+1
| | | | Change-Id: I699ee939436964e0c88b7b8423b5ed6fef84add1
* Merge "Add Eclipse project files for ddmlib-tests."Brett Chabot2010-05-112-0/+25
|\
| * Add Eclipse project files for ddmlib-tests.Brett Chabot2010-05-112-0/+25
| | | | | | | | Change-Id: I683a47d38d9e87461d53e691c438ffeb2c3f8afa
* | Small mask calculation optimizationKenny Root2010-05-051-7/+2
|/ | | | | | Get rid of loop to calculate bitmask where 2^n-1 will suffice. Change-Id: I1d77a5c3753207663531efb407f6114ccabb1220
* Fix RemoteAndroidTestRunnerTest.Brett Chabot2010-04-221-1/+1
| | | | | | Change the test device mock to return a String for getSerialNumber. Change-Id: I83647927160c666330ddfb5394afe837577422d7
* Merge "Supporting configurable ADB port in ddms and ddmlib."Xavier Ducrohet2010-04-213-21/+89
|\
| * Supporting configurable ADB port in ddms and ddmlib.Stefan Hilzinger2010-04-213-21/+89
| | | | | | | | | | | | | | - Moving instantiation of sSocketAddr out of static initializer block into init(). Change-Id: Ibf3b81492802859673a0e77b4701be9d004509fa
* | Merge "Make test runner parser detect runs with no tests."Brett Chabot2010-04-192-13/+46
|\ \
| * | Make test runner parser detect runs with no tests.Brett Chabot2010-04-192-13/+46
| |/ | | | | | | | | | | | | | | | | 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
* | Merge "Filter out new leak_memalign method in native heap UI"Xavier Ducrohet2010-04-191-8/+9
|\ \ | |/ |/|
| * Filter out new leak_memalign method in native heap UIXavier Ducrohet2010-04-191-8/+9
| | | | | | | | Change-Id: I39f1b7d726a0b5d26e736b404693183003ea391e
* | Merge "Moved log formatting string into separate function so it can be ↵Neal Nguyen2010-04-161-3/+11
|\ \ | |/ |/| | | resued by others."
| * Moved log formatting string into separate function so it can be resued by ↵Neal Nguyen2010-04-051-3/+11
| | | | | | | | | | | | others. Change-Id: I4e97d950587822c3a3e24c1c3d1a89ab19419f14
* | Add setTestSize to ddms test runner.Brett Chabot2010-04-063-4/+65
| | | | | | | | | | | | Also cleanup some log messages. Change-Id: Iea292c620c65e63642ef57d3082a54a1613b15bd
* | Change ddms testrunner to raise IOException to callers.Brett Chabot2010-03-263-17/+13
|/ | | | | | | 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
* Handle invalid syntax response in DDMS testrunner parser.Brett Chabot2010-03-162-7/+45
| | | | | | Bug 1713395 Change-Id: Id614ddd6c74fa02b5fba6a6fb9e994bae4809bf4
* Merge "Handle new sdcard mount point in DDMS."Xavier Ducrohet2010-03-155-2/+55
|\
| * Handle new sdcard mount point in DDMS.Xavier Ducrohet2010-03-125-2/+55
| | | | | | | | | | Bug: 2482010 Change-Id: I68e7f3361bc44251b3767ffe6bcba21e649c4407
* | Fix symbol resolution for libc.Xavier Ducrohet2010-03-121-1/+1
|/ | | | | | | There's no libc_debug anymore. This prevented the resolution from working for all libc addresses. Change-Id: Id909719cd38170192b14d05f9ce5e47b640ea469
* Handle incomplete instrumentation test as a failure.Brett Chabot2010-03-102-6/+26
| | | | | | | 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
* Add support for multiple instrumentation test result listeners.Brett Chabot2010-03-103-33/+87
| | | | Change-Id: I12b273582880fadefcd233df45960811b8f16d49
* Add ability to detect incomplete test runs to InstrumentationResultParser.Brett Chabot2010-03-043-99/+146
| | | | | | And clean-up whitespace. Change-Id: Icb6bd5c8bf403fda0de436d4b9e732e7ea976267
* Extract an interface out of RemoteAndroidTestRunner so it can be mocked.Brett Chabot2010-02-272-44/+133
| | | | Change-Id: I44c6b3db304ce1203edaa7b80500eed46706e0f5
* Add support for VMs that can stream hprof data through JDWP.Xavier Ducrohet2010-01-298-106/+186
| | | | Change-Id: I0fcc8718685ddb7accd459e78821677f044135ba
* am 74d66e2d: am 5f225229: Merge "SDK Updater: Support post install script ↵Raphael Moll2010-01-291-1/+1
|\ | | | | | | | | | | | | | | | | for updating SDK Setup.exe." into eclair Merge commit '74d66e2d7f810028620f25c585a3f21e5ad1686b' * commit '74d66e2d7f810028620f25c585a3f21e5ad1686b': SDK Updater: Support post install script for updating SDK Setup.exe.
| * SDK Updater: Support post install script for updating SDK Setup.exe.Raphael2010-01-281-1/+1
| | | | | | | | | | | | | | | | | | 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
| * Display VM message on profiling error. Do not mergeXavier Ducrohet2010-01-283-14/+28
| | | | | | | | | | | | | | Integrated from master to be in SDK Tools r5. Bug: 2160407 Change-Id: Ib9cfcb68cc2c38947350b3419a96ce917db51b35
| * DDMS: Add support for profiling with VM able to send the result through ↵Xavier Ducrohet2010-01-285-16/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Strawman support for streaming method profiling. do not merge.Andy McFadden2010-01-283-4/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Strawman support for streaming hprof dumps.Andy McFadden2010-01-293-3/+50
| | | | | | | | | | | | | | | | | | | | | | 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.
* | am 176573bf: am 912fa771: Merge "Windows SDK: use find_java.bat in all batch ↵Raphael Moll2010-01-281-2/+7
|\ \ | |/ | | | | | | | | | | | | | | wrappers." into eclair Merge commit '176573bfeb4c68d877a9de7f17a2ab33ddfb343f' * commit '176573bfeb4c68d877a9de7f17a2ab33ddfb343f': Windows SDK: use find_java.bat in all batch wrappers.
| * Windows SDK: use find_java.bat in all batch wrappers.Raphael2010-01-261-2/+7
| | | | | | | | | | | | SDK Bug: 2315813 Change-Id: If026d09f927b3d0b5707dfd08e1367e4ba2da28b
* | Merge "Display VM message on profiling error"Xavier Ducrohet2010-01-283-14/+28
|\ \
| * | Display VM message on profiling errorXavier Ducrohet2010-01-283-14/+28
| | | | | | | | | | | | | | | Bug: 2160407 Change-Id: Ifcce3f12b9de8e07bc035c8b74f82911d81c490e
* | | Merge "DDMS: Add support for profiling with VM able to send the result ↵Xavier Ducrohet2010-01-285-16/+114
|\ \ \ | |/ / | | | | | | through JDWP."