aboutsummaryrefslogtreecommitdiffstats
path: root/sdkmanager/libs/sdkuilib/src
Commit message (Collapse)AuthorAgeFilesLines
* Refactor PackagesPage to make it testable.Raphael Moll2012-09-157-475/+765
| | | | | | | | | A simple unit test to display that an update is available. This will get more complex later. The cache is mocked and the whole test should be independant of the user's actual settings and local cache, with no network access. Change-Id: I58ff45895916a14a10f501a9bd664782d777ed42
* Properly dispose DeviceManager from AvdManager.Raphael Moll2012-09-111-1/+9
| | | | | | | Similar issue fixed by patch d1daeae66a0ebdf53076038dc4a1fe099c4141fb but this time for the AvdManager. Change-Id: I10af39d364e427d593078f8bfa23bba3ba7e1558
* Merge "SDK Manager refactor: remove obsolete UpdaterPage"Raphael Moll2012-09-113-85/+2
|\
| * SDK Manager refactor: remove obsolete UpdaterPageRaphael Moll2012-09-103-85/+2
| | | | | | | | Change-Id: Ieffc0fd8c88705616197bdb971fc66cb9c7f536c
* | Merge "Allow sys-img.xml in user-defined addon sites"Raphaƫl Moll2012-09-111-1/+10
|\ \ | |/ |/|
| * Allow sys-img.xml in user-defined addon sitesDuane Sand2012-09-111-1/+10
| | | | | | | | Change-Id: Id7eeaa46d24385ee231c8db7a542947b5ee960b6
* | Avd Creation Dialog: Enable sdcard if user asks for it.Siva Velusamy2012-09-071-1/+5
|/ | | | Change-Id: Ia5a57139cf76cec559c557011a2acee2af58457a
* Refactor SDK Manager into "core" vs "ui" packages.Raphael Moll2012-09-0424-43/+69
| | | | | | | | | | | | | | | This is just a refactor to move classes around. No functionality is actually changed. The sdkman2 package contains classes that are now sorted between "ui" and "core" packages. The core stuff has no UI dependency and can be used in unit tests, whereas the ui stuff needs SWT somehow. In a later CL some of the UI stuff will be changed to make it easier to mock for testing. Change-Id: I86606df7992de6ca6ae1df95f7b712cbba4fd3b6
* Merge "Fix nullability annotations"Tor Norbye2012-08-213-15/+18
|\
| * Fix nullability annotationsTor Norbye2012-08-213-15/+18
| | | | | | | | | | | | | | | | | | | | | | Eclipse 3.8/4.2 requires that any method which overrides another method with a @NonNull parameter (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=381443). This changeset adds @NonNull on various overriding methods in newly added code such that Eclispe 4.2 doesn't show errors. Change-Id: Ice4a4b4dc31ba68c4e0911bb37c15da090076a0d
* | SDK Manager: fix HTTP Auth cancel.Raphael Moll2012-08-202-18/+21
|/ | | | | | | | | | | | | | | | When the SDK Manager prompts the user for HTTP Auth or NTLM auth, the API says the result should be null if the user cancelled. It wasn't, it was instead empty string fields and the download would abort the a "failed: no content" error in the log. This fixes the UI to respect the convention. It also makes sure that if the HttpClient call fails due to the user cancelling, we don't try to fallback on the java.UrlConnection method. Change-Id: Ibf1807f4becd40dbced17f851b3fdc5b394788ea
* Unify all loggers in the sdk tools.Xavier Ducrohet2012-08-1718-104/+129
| | | | | | | | | | Removed ILogger from ide_common Removed ISdkLog (and implementations) from sdklib Moved all existing code to com.android.utils.ILogger which is located in common. Change-Id: Icd674d4b8d10f6ae8b60a83acb43cc53c7a52137
* More refactoring.Xavier Ducrohet2012-08-1314-15/+15
| | | | | | | Move stuff out of sdklib into common and ide_common. Remove androidprefs and move the one class into common. Change-Id: I71d126a13cf2ba413692e29616f4968a37d7b33a
* Set default scaled screen size to device's screen sizeMichael Wright2012-08-092-4/+23
| | | | Change-Id: I6b169f0ef21d8f45da35dd10a7f76b30f3defcbb
* Make AVDs repairable when the base device changes or is deletedMichael Wright2012-08-094-23/+75
| | | | Change-Id: I3b931ee511dc157320ca8658fe421fe28a1ff387
* Merge "Refactor common.jar"Xavier Ducrohet2012-08-085-5/+5
|\
| * Refactor common.jarXavier Ducrohet2012-08-075-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move resources and com.android.util.Pair into layoutlib_api where they belong since layoutlib depends on them and we need to control the API. Made a copy of Pair to stay in common.jar but moved it to com.android.utils.Pair (the one in com.android.util.Pair is marked as deprecated to prevent usage where applicable). Also moved XmlUtil and PositionXmlParser to com.android.utils to match Pair. Change-Id: I21d7057d3f2ce604f86a3bb1fa3c130948c93b89
* | Make using GPU Emulation and Snapshots an errorMichael Wright2012-08-071-0/+7
| | | | | | | | Change-Id: I0e77931a034af5d005e73c4f54818595c0720ab3
* | Add RAM, VM heap and internal storage size settings to AVDsMichael Wright2012-08-071-13/+176
|/ | | | Change-Id: Idb8807e07fddc912144b962de0a01b729071c92b
* Convert EOL from dos2unix in sdkuilib *.javaRaphael Moll2012-08-0726-7254/+7254
| | | | Change-Id: Ia046d63aac7800326effbe61364d2efa35581633
* Merge "Add new AVD creation and edit dialog"Michael Wright2012-08-034-138/+951
|\
| * Add new AVD creation and edit dialogMichael Wright2012-08-034-138/+951
| | | | | | | | | | | | | | | | Take advantage of the new device specifications and provide a much simplified AVD creation dialog, while retaining the old dialog for use with AVDs created prior to this. Change-Id: I2ab3613d6a1b58a96c330dc1d8c1df36afc88058
* | Merge "Rename AVD Creation / Edit dialog"Michael Wright2012-08-032-4/+4
|\ \ | |/
| * Rename AVD Creation / Edit dialogMichael Wright2012-08-022-4/+4
| | | | | | | | | | | | | | We need to keep this around so people can edit the old AVDs they have but want to make it clear this for legacy AVDs only. Change-Id: If768ae66e98b6e76f1b7f2b3f7b0e5db2bd33174
* | Install platform tools if necessary during monitor startupSiva Velusamy2012-08-011-0/+47
|/ | | | | | Part of fix for http://code.google.com/p/android/issues/detail?id=35640 Change-Id: I75834928033d08936c15f354a630815276895242
* Add menu item for configuring and creating devicesMichael Wright2012-07-232-42/+1124
| | | | Change-Id: I39e4747b818d0163d8f51c29d37424078580f247
* Merge "SDK Manager fix: override in-memory sources when checking for updates."Raphael Moll2012-07-232-10/+21
|\
| * SDK Manager fix: override in-memory sources when checking for updates.Raphael Moll2012-07-202-10/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | An issue that showed up with the cache mechanism in Tools r20 is that users are not notified of tools updates unless they clear their cache. The issue is that the SDK Manager first tries to load an existing cache for a fast startup and then performs a network check. However it doesn't clear the sources already memory loaded in memory and thus skips the actual network check and simply uses the first loaded result. This changes it so that the network check actually happens even if there's a source loaded in memory. Change-Id: I3fde77b9aec8ccbd1cf66f79f99f8c5f4e84d900
* | Change AVD Manager window from dos to unix line endingsMichael Wright2012-07-231-364/+364
| | | | | | | | Change-Id: Iedb5d79f164453b9ea93046a1cfddc945b84c790
* | Fixed AvdManager to only have one instance per SDK locationMichael Wright2012-07-231-1/+1
|/ | | | Change-Id: I59697ef605e33a9216ed318190060e71ce0df579
* Changed line endings from windows to unix for UpdaterDataMichael Wright2012-07-111-1155/+1155
| | | | Change-Id: Ib915ddf7a165bd75a46a12012190aa0ae6c9df33
* Removed autosetting of SD card sizeMichael Wright2012-06-251-26/+0
| | | | Change-Id: I960496610b3c43e16ef58c949a688241943a7153
* Fix index mixing in AVD creation dialogXavier Ducrohet2012-06-251-12/+11
| | | | Change-Id: If7b142ba9da44ccc5ec4976ec2c9375f6888983f
* Added default devices to the avd creation dialogMichael Wright2012-06-251-0/+1
| | | | Change-Id: Id8f0c659b9b0ff4a2ff8605265338cc2a5b05d1a
* Added GLE support for devicesMichael Wright2012-06-251-6/+59
| | | | Change-Id: I4e82e93563529540d31af8809aba79f40610fa2e
* SDK Manager: fix window shell disposed exception.Raphael Moll2012-06-211-5/+5
| | | | | | SDK Bug: 6710759 Change-Id: Iffecdd16b7ef52ffbe858e065716a7a6125a6982
* Fixed import order for AvdCreationDialogMichael Wright2012-06-191-30/+30
| | | | Change-Id: Ic12af00eb01de807e3e0a3dd7b06aa718cad781d
* Added device functionality to the AVD managerMichael Wright2012-06-181-23/+131
| | | | Change-Id: Ib67a7b8f123302ee75eefcb45e9cac233f026f28
* AVD Editor: support Enum Hardware Properties.Raphael Moll2012-06-182-6/+57
| | | | | | Used to support the enum touch screen type. Change-Id: Ia3419527a391b35f7e3c8a4853c8603907defe39
* SDK Manager fix display of update revisions.Raphael Moll2012-06-151-1/+1
| | | | | | | | A couple of occurences were displaying full revision for updates (e.g "Update available: rev. 20.0.0") instead of the short version (e.g. "rev. 20"). Change-Id: I593ba952df714b50e548dbb447aaf9ac4e4192ca
* Merge "ADT: NPE when capturing emulator output."Raphael Moll2012-06-041-11/+17
|\
| * ADT: NPE when capturing emulator output.Raphael Moll2012-06-021-11/+17
| | | | | | | | | | | | | | This can happen when starting an emulator from the AVD selector (or the AVD Manager window.) Change-Id: I6f5098bddc0fa54d89c164e98c51cd80509bbaf7
* | SDK Manager: support standalone sys-img xml.Raphael Moll2012-05-312-5/+12
|/ | | | | | | | | | This extends the addons_list XSD to support both addons sites and OEM's system-image sites. Then this defines a new schema "sys-img" XSD for a site that offers only system images. Change-Id: I77ff56c4c70f57ab8ea44cf4ea3094125653737b
* Fix "Resource leak: <Foo> is never closed"Tor Norbye2012-05-302-1/+11
| | | | | | | This changeset fixes various code fragments opening resources without closing them. Change-Id: I6ed48a32dc5de4c11cab394dd3883ebbb54d2938
* Fix nullness annotationsTor Norbye2012-05-301-2/+3
| | | | | | | | | | | | | | | | | | | Eclipse 4.2 includes analysis support for @Nullable and @NonNull annotations. However, it requires these annotations to be *repeated* on every single method implementing or overriding a superclass or interface method (!). This changeset basically applies the quickfixes to inline these annotations. It also changes the retention of our nullness annotations from source to class, since without this Eclipse believes that a @NonNull annotation downstream is a redefinition of a @Nullable annotation. Finally, the null analysis revealed a dozen or so places where the nullness annotation was either wrong, or some null checking on parameters or return values needed to be done. Change-Id: I43b4e56e2d025a8a4c92a8873f55c13cdbc4c1cb
* Setting to enable preview packages.Raphael Moll2012-05-228-44/+150
| | | | Change-Id: I7af78e81e5433396c7a1039782ab8ceda35187a0
* SDK Manager: Settings to control download cache.Raphael Moll2012-05-187-171/+320
| | | | | | | | | | | | | | | | | SDK Manager > Tools > Options now has a checkbox to deactivate the download cache. It also indicates the path to the cache directory, its size and a button to clear the cache immediately. This only affects the sdk manager files for the download cache, it doesn't clear other cached files such as the lint binaries. Also restructured the settings controller a tiny bit. There's more that could be restructured here but it's not a priority right now. Change-Id: I474e6155bdc041770f3f7664366d0d92bd96d9b0
* SDK Manager: display options menu when invoked from IDE.Raphael Moll2012-05-172-37/+28
| | | | Change-Id: I03c75be4d624f841c6f4c0ba93b0951bc8da8850
* SDK Manager: do not erase default java http proxy properties.Raphael Moll2012-05-171-4/+10
| | | | | | | | | | | | If the sdk manager config file has no proxy port/host info, do not set the corresponding java properties to empty strings. This means if the sdk manager settings are empty, whatever is the default from Java OR from the Eclispe proxy settings will be used by the manager. Change-Id: I17bbc6faed4726fc4b6aa9b29ded7d698ed81283
* SDK: Update about box for 2012.Raphael Moll2012-05-141-0/+1
| | | | | | SDK Bug: b/6043405 Change-Id: I2c189ef30d68738de8becff874343296ad9c412b