aboutsummaryrefslogtreecommitdiffstats
path: root/ddms/app
Commit message (Collapse)AuthorAgeFilesLines
* Switch libraries from Eclipse 3.4 to Eclipse 3.6.2Tor Norbye2012-04-023-5/+5
| | | | | | | | | | | This updates the org.eclipse.core.command, org.eclipse.jface and org.eclipse.equinox libraries from Eclipse 3.4 to Eclipse 3.6.2. It also updates SWT from 3.4 to 3.6.2 (and this drops the Carbon support from the SwtMenuBar library since SWT 3.5 switched to Cocoa by default.) Change-Id: I7e8a6e3b8cb473f90eca3b90e3f3dc5fa5099b71
* Show detailed network statistics from xt_qtaguid.Jeff Sharkey2012-02-011-3/+8
| | | | | | | | | | | | | New panel that shows live network statistics by reading xt_qtaguid proc file across adb. Shows all tags for selected UID on a chart with 30 seconds of history. Each tag is presented as unique series, with the overall usage in grey. Table below the chart shows running totals of known tags. Includes options to pause, reset, and change polling frequency. Bug: 5194997 Change-Id: I72d43ab51aaf93ecfd6d45fcd452c7230cdee5b7
* Add @NonNull annotation and configure Eclipse settingsTor Norbye2011-12-221-1/+13
| | | | | | | | | | | | | | This changeset adds a new @NonNull annotation, to match our existing @Nullable annotation, and it adds configuration settings for Eclipse 3.8 / Eclipse 4.2 which configures the new null analysis there to use our own annotations. Note that the annotations only have source retention so there is no extra size or class-loading overhead. (To use findbugs you'll need to temporarily change retention to class-level.) In upcoming CL's I'll use these annotations to clarify the Lint API and other APIs. Change-Id: I99096d8b8a7e25ef002624d592da7700195a5872
* Update SDK codebase to JDK 6Tor Norbye2011-12-218-9/+65
| | | | | | | | | | | | | | | | | | | | | This changeset makes the SDK codebase compile with source=1.6 (which means it also requires JDK 6). This means that methods implementing an interface requires @Override's. It also means we can start using APIs like the ArrayDeque class and methods like String#isEmpty(). This changeset looks big but the change is trivial: it's basically adding @Override in all the places that need it, along with some other automatic Eclipse cleanup in certain files (such as reordering imports where they were incorrectly ordered (because older versions of Eclipse didn't always handle inner classes right)), as well as cleaning up trailing whitespace and removing some $NON-NLS-1$ markers on lines where there aren't any string literals anymore. This changeset also sets the source and target JDK level to 6 in the Eclipse compiler .settings file, and synchronizes this file to all the other Eclipse SDK projects. Change-Id: I6a9585aa44c3dee9a5c00739ab22fbdbcb9f8275
* Code cleanup: make sure FileInputStreams are closed.Raphael2011-10-131-1/+13
| | | | | | | | | | | | | | | | Various places of the code construct a new FileInputStream on the fly and give it to another method. One many occasions the stream is never properly closed, which can lock files on Windows. 2 specific cases: - Properties.load() doesn't seem to close its input (when looking at the source bundled with the JRE). - The doc of InputSource (used by various XML parsers like the pull parser) indicates the caller should in general not close the stream and the parser itself should do it. Change-Id: I622b54a22f97ed2c9c8fdc56ccde331207d9d212
* DDMS: Fix menu to not say "SWT"Raphael2011-10-132-3/+7
| | | | | | SDK Bug: 20615 Change-Id: Id59b96bb8b1beb92c3887b1581bd7969cae4262f
* Make the new heap panel to be the default.Siva Velusamy2011-10-091-3/+3
| | | | | | | The old implementation can be used via the env var ANDROID_DDMS_OLD_HEAP_PANEL=1 Change-Id: Iaf6320d3af73d94d0712e476f8a33d07349f415a
* Update default addr2line to use.Siva Velusamy2011-09-271-1/+1
| | | | Change-Id: I17a1b29039e50e0256f37519b3fd8781b88f5e39
* Extract DDMS PreferenceStore.Raphael2011-09-222-77/+83
| | | | | | | | | | | | Splits DDMS PreferenceStore management in a separate class and add the methods we need for ADT first-time wizard. Various pieces of DDMS access the pref store via the PrefsDialog. This could use a cleanup eventually later. Change-Id: Ie1e90b9a4d7e4c9b057b506eae239ba7e8ece37d
* New implementation of native heap - layout only.Siva Velusamy2011-09-201-3/+9
| | | | Address resolution to symbols to come in future CL's.
* Update year in copyright notices to 2011.Siva Velusamy2011-09-161-1/+1
| | | | Change-Id: Ibe1042437e4f320a034be176b0b8efc7d205f79b
* Move creation of LogCatReceiver to a separate factory.Siva Velusamy2011-09-011-2/+1
| | | | | | | | | | | | | | | | | Until now there was only one instance of LogCatReceiver. This instance would listen to the logcat output from the currently selected device. This patch modifies this behavior to make one LogCatReceiver responsible for listening to only one device. If there are multiple devices, then multiple instances of LogCatReceivers are instantiated. The instantiation is also moved to a separate factory. This modification allows for the scenario where the LogCatReceiver's can be instantiated independent of the UI, and are reused by the UI whenever needed. Change-Id: I46008cbd5ee41880372a62e7e09634ce2d2fc122
* Make the logcat fifo size user configurable.Siva Velusamy2011-08-232-1/+10
| | | | | | | Add a preference where users can set the size of the message list. Defaults to 1000. Change-Id: Ia888c3802f07607274bfbdca0ade8fbda009ba55
* Use SWT Label's instead of Link's for proper wrap behavior.Siva Velusamy2011-08-231-2/+5
| | | | | | | | | On Mac, Link widgets to not enforce SWT.WRAP style. As a result, text is just clipped instead of being wrapped. Split the privacy policy text into two separate components - one with the text, and one with the link, and use Label's for the longer text content. Change-Id: Ic667b9ec62c0ce26c43611b97e0bbdc89dbc68d6
* Open SDK stats dialog from an existing shell.Siva Velusamy2011-08-223-7/+17
| | | | | | | | | | | | | | This patch addresses Issue #15267. The primary issue is that the SDK stats permission dialog was opened from a separate Job, and this dialog shows up when the user opens the preference page for the first time. Since both of them happen to be modal dialogs, the behavior is inconsistent, and many times results in a blocked UI. The patch fixes this issue by opening up the stats dialog as a child of the preference page dialog within ADT, and as a child of a new shell within DDMS. Change-Id: I8c9ed9e9bbfac855435690f287b4f60975f336fb
* Change way we report Eclipse version in stat ping.Raphael Moll2011-08-191-2/+2
| | | | | | | | | | | | This reverts the way Change I14dba0dd was sending the Eclipse version. Instead of passing a new attribute, we reuse the existing "app=>version" format, with a specific app name of "eclipse". Since versions are reformated in 4 parts, it will report something like "3.5.0.0" (only major+minor and 2 zero sub parts). We don't send more details than that (e.g. Milestones). Change-Id: Id01e3ed6b96ea4ce4e1b4f643d08a050291a6e7b
* Add support for Select All and Copy to Clipboard actions.Siva Velusamy2011-08-181-5/+7
| | | | Change-Id: Idbf3bc093f2a049b5e0e0cd9605a6f8bdc8f7723
* Make new logcat view to be the default in DDMS.Siva Velusamy2011-08-171-3/+3
| | | | | | | The old view can be activated by setting the env variable ANDROID_USE_OLD_LOGCAT_VIEW. Change-Id: I006aaba26f323b12b6da70f22f8584ad76fb5041
* Use fonts as specified in preferences.Siva Velusamy2011-08-112-14/+23
| | | | | | | | | Update DDMS preference dialog to show only font preference when using the new logcat view. The font preference key is obtained from LogCatPanel in the new view so that the Eclipse ddms plugin can also reuse most of the code. Change-Id: I61afba27cde45ff8214e83b6fadfe488f6c954bb
* Save/Restore the width of all columns in the LogCatPanel table.Siva Velusamy2011-08-091-1/+2
| | | | | | | | Create all columns using TableHelper.createTableColumn which adds listeners that save the column width whenever they are resized by the user, and restores them on subsequent creations. Change-Id: I35d09a981b94aa086899e3bf74f2243029c60b2b
* Merge "Add eclipse version to usage stat ping."Xavier Ducrohet2011-08-041-2/+2
|\
| * Add eclipse version to usage stat ping.Xavier Ducrohet2011-08-041-2/+2
| | | | | | | | Change-Id: I14dba0dd7cb900c2e700e4da055aee7bb7d1f9cd
* | Initial implementation of the new logcat panel.Siva Velusamy2011-08-041-0/+16
| | | | | | | | | | | | | | | | | | This logcat panel will show up in ddms if it is launched with -Dcom.android.ddms.useNewLogCatView. Currently, this implementation only displays a table with a list of logcat messages. It lacks features such as filters, go-to source of exception, export to log, user preferences, etc. Future patches should enhance the UI to achieve feature parity with older UI. Change-Id: I3dde3c590c839318ce57bb5f005627f580ebb06c
* | Conditionally create old logcat view.Siva Velusamy2011-08-041-5/+24
|/ | | | | | | | | As a first step towards replacing the logcat view, wrap the code that creates and manages the current logcat view to first check which implementation to use. The old implementation is used unless a JVM property "com.android.ddms.useNewLogCatView" is set. Change-Id: Idbdfcc55f0f5f28f7004b010875b89de8a4cea12
* Add a preference for the profiler buffer size.Jeff Brown2011-06-271-0/+11
| | | | | | 8MB is getting to be too small for some purposes. Change-Id: Ic711c426febf2e42634bd73a5be6211cfe66f4c0
* Fix various warningsTor Norbye2011-06-091-1/+8
| | | | | | | | | | | | | I ran the latest version of findbugs on our codebase and fixed some (not all!) of the warnings. I also ran with Eclipse 3.7 RC3 and updated our compiler warning settings for the new warnings that are available. I also fixed some DOS line endings in some files (formatted with CRLF instead of LF). Change-Id: I9a9d34a9b60f2cb609245793815d96a4587007b0
* Fix launchers for SDK tools using swtmenubar.Raphael Moll2011-05-052-5/+7
| | | | Change-Id: Iba5860db0a56ab508d1ce155d0e079ab37eb2bc9
* Fix typos in READMEs.Raphael Moll2011-05-021-1/+1
| | | | | | This addresses some CL feedback from last week. Change-Id: I1a121b3f294a395eb0f660d962c65c48d1760d7b
* Use SwtMenuBar in HierarchyViewer application.Raphael Moll2011-04-281-0/+8
| | | | Change-Id: I5f61e0c238520d8582e9bef8fa69c354a1165475
* Use SwtMenuBar for DDMS.Raphael Moll2011-04-284-97/+68
| | | | Change-Id: I32121a336e5b3256ef1661fff5afe84741295d08
* Add missing OSGI jar to DDMS classpath.Raphael Moll2011-04-273-8/+78
| | | | | | | | | | | | DDMS requires an osgi.jar, which is correctly declared in the manifest. It is however not declared in the classpath used by Eclipse. The consequence is that trying to use the pref panel when running ddms from eclipse crashes with with a ClassNotFound exception. Change-Id: I204232a608be0da584577d13f5649d03bb542976
* Put some new icons.Xavier Ducrohet2011-04-074-8/+8
| | | | | | | | | | | | | - ddms and (one of) hierarchy viewer perspective. - feature about for traceview/hierarchyviewer - use the draw9patch icon for the resource view in ADT - use the emulator icon for the emulator control view in DDMS - use the new android icon for the ADT wizard. Also standardized on <toolsname>-<size>.png for the icon names. ADT uses android-##.png Change-Id: I1ce2a0dae5d256049b381552bd89aef717f51da6
* New application icons for the various SDK toolsTor Norbye2011-04-052-0/+0
| | | | | | | | | | | | | | | | This changeset integrates a new set of application icons by Roman Nurik for the various SDK tools: DDMS, Hierarchyviewer, Traceview, the SDK manager, and the Eclipse about box icon. We have new icons with the same visual look for draw9patch and emulator as well, which are not integrated here. Draw9patch is written in Swing, so it doesn't have a way to set a dock icon on the Mac (other than with a startup script modification to pass -Xdock:icon, which means we also need to bundle the .icns image outside its .jar). I couldn't find the place the emulator dock image is set so I will ask around and file a separate CL for that. Change-Id: Idbb2212b8d0d5f1bd2d41b3576079ff409c7e9c8
* Added a New Folder action in File Explorer.Pierre Zurek2011-03-221-7/+25
| | | | | | | | | This action allows the user to create a new folder if the current selection in the tree is a folder. It executes the "mkdir" command on the device. If an error occurs during execution, a popup is displayed. Change-Id: Id94485502849679ee9c753882b3e46f30e0edd1e
* Merge "Add missing notice files."Xavier Ducrohet2011-03-176-31/+218
|\
| * Add missing notice files.Xavier Ducrohet2011-03-156-31/+218
| | | | | | | | | | | | | | | | | | | | Also fix some makefiles to make sure the notices are picked up. - move the makefile outside of the source folder. - resources are now in the source folder directly instead of being inside src/resources. It's much simpler. Change-Id: Ica8ee4c2bc8a9b035d23fc914d4137cdca7e567d
* | Disable the "unecessary else" warning.Raphael Moll2011-03-171-1/+1
|/ | | | | | | | This can be a matter of personal taste, but I find it a lot more readable to write an if {} else {} sometimes, and it's perfectly valid, so really it shouldn't be marked as a warning. Change-Id: Iac1b9bd5f9602b5018f7432422e0a083f4836490
* Add specifc warnings config for most sdk eclipse projects.Xavier Ducrohet2011-03-141-0/+64
| | | | Change-Id: I9837714c5673d43fa7108b16ab264f1017c4bd3d
* Allow the user to set the ADBHOST variable.Pierre Zurek2011-01-122-0/+46
| | | | | | | | | With those changes the ADBHOST variable can be directly set in the Preferences of DDMS and Eclipse, so that the user can reset adb from inside those two programs. Change-Id: I94b24744e8daa3b3b2fe5a3db39203b39cb093ac
* Fix NON-NLS tokensTor Norbye2011-01-042-7/+7
| | | | | | | | | | | | | There were a number of // $NON-NLS-1$ references in the codebase. Eclipse's "Externalize Strings" functionality will not handle these correctly; there must not be a space between the "//" and the "$NON" tokens. (I left AndroidXmlEditor.xml alone; it is the file I discovered the problem in but I fixed those references as part of another pending checkin.) Change-Id: If185c88a667273af614f0bee5959fd2618756c05
* Fix DDMS and HierarchyViewer .bat files on WindowsRaphael Moll2010-12-151-69/+72
| | | | | | | | | | | | | | | These were not setting the "bin dir" properpty correctly, and as a consequence the tools complain they can't find adb.exe. The fix is to set it to the directory of the script but to avoid spaces-in-path issues we use the "~fs" modifier to get a space-free short name for the %cd% value. And since we can't use use %cd% combined with ~fs, we use a for loop trick to set it. Note that ddms.bat was in unix end-of-line mode so I changed it back to DOS end-of-line mode. Change-Id: Ic9e55643b551898043add27c12193a0949f40bb0
* Use env var com.android.ddms.bindir for ddms.Raphael Moll2010-11-151-0/+6
| | | | | | | The env var is used if the system property is not defined, which is convenient to start ddms in debug mode from Eclipse. Change-Id: I2a33c12399c703cf3194e2e67f39562ab0d59bd9
* Fix ddms filechooser behavior and Mac acceleratorTor Norbye2010-10-192-4/+16
| | | | | | | | | | | | | | | | | | | | | | Fix a couple of issues in ddms: First, fix the code to remember the path you last opened the file chooser with; if there is nothing in $lastImageSaveDir, it should look at $imageSaveDir (which is the variable the default setting ($user.home) is initialized into). Second, and this seems to be Mac specific, the FileDialog.getFilterPath() call does not return the path you have navigated to, which means that on the Mac it never sets $lastImageSaveDir correctly - it always sets it to the original suggestion. The fix is trivial - use File#getParent instead which does the String manipulation to extract the parent portion of a string which represents a path. Finally, on Macs (only), make the keybindings use the Command key instead of the Control key since that's the norm. Change-Id: I1b0f381606f5373ddad973754e49ce07856a9bae
* Update application icons for sdkmanager and ddmsTor Norbye2010-10-182-0/+0
| | | | | | | | | | | | | | | | Update the dock icon used on Macs for the sdkmanager to one that has transparency, just as the emulator icon already does. This is the norm on Macs. Update the application icon used for ddms to be an android with a wrench, in a similar style to the other tool icons. This icon is also transparent, which I hope will work on Windows - it would be great if Raphael could verify that (and I should probably try to get a Windows image into my VMWare install so I can do these checks myself in the future.) Change-Id: Icd0954cb77ba0845034a79bf9df6dd271019632e
* Add missing dependency in the ddms manifest.Xavier Ducrohet2010-09-291-1/+1
| | | | Change-Id: Ifdfb8bbabf2b2aadf46ce0b27dcf99ef428d1ec9
* Make the tools work with the new location of adb.Xavier Ducrohet2010-09-271-1/+10
| | | | | | | | | | | | adb has been moved to the platform-tools folder. This changes ADT, DDMS, HierarchyViewer which all care where adb is (to launch it). Also fixed the local SDK parser of the SDK Updater to find the platform-tools package. Change-Id: I3c869159d7b0e0ad9aaea06f376b7ba3e53bfc7f
* Fix HierarchyViewer2 to run on MacOS X correctly.Xavier Ducrohet2010-08-311-8/+1
| | | | | | | | | | This also fix the issue with the app never closing correctly (throwing an exception). Also updated the launcher script to match the new ones we use in the other Java based tools. Change-Id: I851f0732a78c6e6c072728f05e611f01eee8fc19
* Update ddms (all) and 'android' (linux/mac) to user explicit classpathXavier Ducrohet2010-07-264-6/+9
| | | | | | | | | | They were still using the old method of providing a jar folder through java.ext.dirs in which to look for jar files. The jar dependency is now explicit in the manifest, which allows us to target ddmlib explicitely and not ddmlib-prebuilt. Change-Id: Ic3c5708ab327a3e1fb7a7cd86fffda96e0d988dd
* Update the ddmlib api for push/pull/installXavier Ducrohet2010-07-262-8/+22
| | | | | | | | | | | | | 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
* Make ddmlib/ddmuilib jar files inside the ddms plug-in instead of symlinks.Xavier Ducrohet2010-06-242-40/+33
| | | | | | | Also cleaned up the abstraction layer to load images from ddmuilib since its image are now always located inside ddmuilib jar. Change-Id: Id9d283df18a05b7b5593e4593e90dac6e5548b94