aboutsummaryrefslogtreecommitdiffstats
path: root/sdkmanager/libs
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge "Address some comments on the DdmsPreferenceStore."Raphael2011-09-232-2/+2
|\
| * Address some comments on the DdmsPreferenceStore.Raphael2011-09-232-2/+2
| | | | | | | | Change-Id: Ib2ffeef63c2e5b04638fc2cf562a3f958cbd6a8b
* | Merge "Add dependency support for ApkBuilder ant step."Xavier Ducrohet2011-09-232-19/+79
|\ \ | |/ |/|
| * Add dependency support for ApkBuilder ant step.Xavier Ducrohet2011-09-232-19/+79
| | | | | | | | Change-Id: I7230a2aa3df5fab8b420f1ed2f359621fbda7f5a
* | Merge "Tweak AdtUpdater dialog to install a fresh new SDK."Raphael2011-09-232-41/+125
|\ \
| * | Tweak AdtUpdater dialog to install a fresh new SDK.Raphael2011-09-222-41/+125
| | | | | | | | | | | | Change-Id: I669db86370c449f25974b9171931d583233eb3e8
* | | Merge "Add support to make identity files from the command line."Xavier Ducrohet2011-09-234-2/+109
|\ \ \ | |/ / |/| |
| * | Add support to make identity files from the command line.Xavier Ducrohet2011-09-234-2/+109
| | | | | | | | | | | | Change-Id: Ifaa1b4653ea6c1b311e711bd285d08afb0d3e12c
* | | Display the full error info for broken packages.Raphael2011-09-211-5/+14
|/ / | | | | | | | | | | | | | | | | The BrokenPackage contains a "long description" that contains the error (why it is broken). We need to use that and not override it with the base package description. Change-Id: I3eff79f2f9aabd54c2f1eaf7b671bdfe929627df
* | Merge "Enable SDK Repo to use latest XSD versions."Raphael Moll2011-09-194-0/+0
| | | | | | | | | | | | | | | | | | This requires development.git Change-Id If3beb09a to build. Manual cherry-pick of b889a8783158f156bc95ec3c63cccd60e210f1d1. Apparently it wasn't auto-merged automatically. Change-Id: I12f9da8e5348e8524294866f3e400110926e8317
* | Merge "SDK: change way system image packages are loaded."Raphael2011-09-195-37/+98
|\ \ | |/ |/|
| * SDK: change way system image packages are loaded.Raphael2011-09-185-37/+98
| | | | | | | | | | | | | | | | | | This change the system image packages to not care about the directory name of where they are located and instead enforce the presence of a source.properties file. Change-Id: I580a0c04a453297ae7ddf9de8e012fd65d34d776
* | Merge "SDK Manager: Extract all source.properties constants."Raphael2011-09-1920-136/+200
|\ \ | |/
| * SDK Manager: Extract all source.properties constants.Raphael2011-09-1820-136/+200
| | | | | | | | | | | | | | | | | | | | The SDK Manager uses specific constants to save local source.properties files in installed packages. This moves all these constants in a common constant class and makes it explicit that these constants form some kind of API that can't be changed arbitrarily. Change-Id: I005f13f53768fbcc677edf94be0b4c13e19e3ec8
* | SDK Manager: tooltips on package table.Raphael2011-09-171-8/+144
|/ | | | | | | | | | This adds tooltips to the package table. The tooltip displays the long description of the packages. This is especially useful from broken packages (e.g. those that did not load correctly) since it indicates what failed. Change-Id: I6e53d0959d6dd056414e91d9a27393d989517bd8
* SDK Manager: make 'list sdk' ids deterministic.Raphael2011-09-1621-20/+434
| | | | | | | | | | | | | | | | | | | | | | | | | | This changes 'android list sdk' to output deterministic install IDs. These IDs can then be give to 'android update sdk'. Example of usage: $ android list sdk --extended Refresh Sources: [...] ---------- id: 2 or "android-13" Type: Platform Desc: Android SDK Platform 3.2, revision 1 [...] ---------- id: 41 or "extra-google-usb_driver" Type: Extra Desc: USB Driver for Windows, revision 4 $ android update sdk --no-ui --filter android-13,extra-google-usb_driver => This installs the platform API 13 and the USB Driver. SDK Bug: 19504 Change-Id: I3109c90371d292df4e9cf845208bf8efe774233f
* SDK Manager: fix reload issue.Raphael2011-09-152-8/+128
| | | | | | | | | | From time to time the sdk manager wasn't properly refreshing its list. This was due to its reload operation not properly clearing the platform/addons targets listed by the SdkManager instance. Clearing them forces the LocalPackageParser to really reparse directories on disk. Change-Id: I99bcb4a78749d673db5b1ec2436a1af7538e48ee
* Merge "Fix SDK target selector to avoid horizontal scrollbar"Tor Norbye2011-09-141-4/+31
|\
| * Fix SDK target selector to avoid horizontal scrollbarTor Norbye2011-09-141-4/+31
| | | | | | | | | | | | | | | | | | | | This changeset works around a Mac SWT issue where a checkbox table will not take into account the size of the checkbox column, so you end up with a horizontal scrollbar. To work around this, we compute the size of checkboxes and subtract it from the available width when distributing column sizes. Change-Id: I9c03b987f57bc992487b67d24215134ae0d5b0b8
* | Merge changes I74718caa,I5811c160Raphael2011-09-135-10/+62
|\ \ | |/ |/| | | | | | | * changes: SdkManager: double selection on tree viewer. Tweak sdk manager progress bar.
| * SdkManager: double selection on tree viewer.Raphael2011-09-133-2/+48
| | | | | | | | Change-Id: I74718caa48a59f132b6d37988625376c312bba27
| * Tweak sdk manager progress bar.Raphael2011-09-133-8/+14
| | | | | | | | Change-Id: I5811c1601578a9e6e53d59f13ba469d2ce7d767f
* | New Project Wizard overhaulTor Norbye2011-09-131-3/+5
|/ | | | | | | | | | | | | | | | | | | | | This changeset splits the New Project Wizard into multiple logical wizards (a separate one for samples, testing and plain projects), and each wizard contains multiple pages - such as a separate page for SDK selection, a separate page for Sample selection, a separate page for Test target selection, and so on. In addition, sample projects are now copied into the workspace itself such that they can be modified and deleted without affecting the mater copy in the SDK install directory. Samples can also be accessed from a new separate entry in the New wizard. The SWT code is now maintained with WindowBuilder. Most of the code in NewProjectWizard was related to actually building the projects, and this code is preserved in the new NewProjectCreator class which is used by unit tests etc such that we don't need to create a stub wizard and stub wizard page anymore. Change-Id: I64872722e320a109870403d25fdf051270b526ed
* Fix a couple potential NPEs in ADT and AVD Manager.Raphael2011-09-121-3/+7
| | | | | | | | | | In ADT, fix a potential NPE when reading manifest data. In AVD Manager, fix a potential NPE if the AVD manager tries to print the path of the AVD folder but AndroidPrefs failed to find a suitable location. Change-Id: Ib2df005b270bcd11e96f16430d2983474478d9eb
* Load standalone system images in the SdkManager.Raphael2011-09-0816-150/+932
| | | | | | | | | | | | | | | | | | This revamps the way system images are handled in the internal SdkManager class. Before, a given IAndroidTarget could provide a list of ABI strings it new about, discovered by parsing the SDK/platform/images/xyz or SDK/addon/images/xyz folder. This introduces the notion of System Image to an IAndroidTarget. A system image combines an ABI with a location strategy (legacy images folder, images sub-folder or standalone sdk/system-images folder) and an actual location path. Change-Id: If5b748aa9aef6788bc3c814818381c7918b40bca
* Merge "Add missing NON-NLS to SdkConstants."Raphael2011-09-071-91/+96
|\
| * Add missing NON-NLS to SdkConstants.Raphael2011-09-071-91/+96
| | | | | | | | | | | | Not stricly needed, but it's nice to uniformize the file. Change-Id: Ia3930f46d465588ccb1b071679661f567bea8bce
* | Merge "More support for standalone system image packages."Raphael2011-09-079-26/+146
|\ \ | |/
| * More support for standalone system image packages.Raphael2011-09-069-26/+146
| | | | | | | | Change-Id: I084c3b4916b1ce69ba602ced5be308f0d215eff8
* | Merge "Fix SdkManager.UrlOpener to support file:// URLs."Raphael2011-09-071-0/+16
|\ \ | |/
| * Fix SdkManager.UrlOpener to support file:// URLs.Raphael2011-09-061-0/+16
| | | | | | | | | | | | | | | | The new Apache HttpClient code doesn't support local file:// URLs. For any unsupported protocol, retry using the class java.net.Url.open method. Change-Id: Ie01499b372a3f5e1a217e0b51fd4a07c216164fb
* | Change default launcher icon name in new Android projectsTor Norbye2011-09-061-5/+8
|/ | | | | | | | | | | | | | | | | When creating a new project, the default project template includes a launcher icon named "icon.png". This changeset changes the name of this default icon to "ic_launcher.png", in accordance with the recommended naming convention listed in http://developer.android.com/guide/practices/ui_guidelines/icon_design.html (The secondary motivation for this is that the Icon Set Wizard will suggest ic_launcher as a default launcher name, and it would be nice if going through the wizard with the default settings would replace the current project's launcher icon. Given the guidelines above I'd rather not change the wizard default name to "icon") Change-Id: I9f516c769019c2635edad4e1e6f01a5110d156fe
* Add SystemImagePackage definition to sdkmanager.Raphael2011-09-069-8/+437
| | | | | | | | This just adds the type and check we can parse it out a sample XML. This CL does not yet use the system image package where needed. Change-Id: Id2d83c9e216256c329a88dced9e274da0ab651f0
* SdkManager: support <included-abi> in platform packages.Raphael Moll2011-09-0613-180/+316
| | | | | | | | | | | This is part of a series of CL to add support for system-image packages separated from platform packages. In this small CL we just add the <included-abi> element to platform packages, load/save it and test by loading a sample XML. Change-Id: Icbf554ea398bbcfe5cf760f9d25aec3de088937a
* Cleanup javadoc references in sdklib.Raphael2011-09-021-2/+5
| | | | Change-Id: I2173944aeb3f18fc58d19fcf80ec186743dba56a
* Merge changes Ifbb7de6e,Ib3b26595Raphaƫl Moll2011-09-025-98/+99
|\ | | | | | | | | | | * changes: Fix example URL used in UTs. SDK Manager2: fix large downloads.
| * Fix example URL used in UTs.Raphael2011-09-011-60/+60
| | | | | | | | Change-Id: Ifbb7de6e94a5be9864c7b033e129d140ada89b70
| * SDK Manager2: fix large downloads.Raphael Moll2011-09-014-38/+39
| | | | | | | | | | | | | | | | | | | | | | | | UrlOpener was using a BufferedHtmlEntity reader. As a consequence its getContent() was loading large packages in memory and resulting in OutOfMemory exceptions, whilst at the same time blocking and thus rendering the download progress report useless. This fixes it by simply passing through in the underlying stream and freeing resources when the stream is closed. Change-Id: Ib3b265953931fecdf202197230ee9f24d8178faa
* | Merge "Fix junit reported error in SdkManagerTestCase."Brett Chabot2011-09-021-1/+8
|\ \ | |/ |/|
| * Fix junit reported error in SdkManagerTestCase.Brett Chabot2011-09-011-1/+8
| | | | | | | | | | | | Bug 5250175 Change-Id: I101991158231b70e203d701f0db0c6972e305a66
* | SDK Manager: allow manual install of incompatible archives.Raphael Moll2011-09-011-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (where 'incompatible' means not intended for the host OS, e.g. installing an archive flagged as Linux on Windows.) By default, SDK Manager 2 doesn't show archives and focuses on packages. However some vendors might want to create e.g. an add-on with an OS-specific archive. Users that do not have the OS need a way to still access and install this. The way to do is to enable 'Show Archive Details' in the Packages menu, manually select the archive for any OS and install it. SDK Bug: 19725 Change-Id: I619c9b882a4c56c0dc67b0073e6e3386f6a0e215
* | Unit test for XML with <extra old-path> attribute.Raphael Moll2011-09-0111-178/+952
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3 independant things here: - Added actual XML samples for XSD addon-3 and repo-5 that check we can validate and load the <extra old-paths>. - Fixed type in Extra package, new attribute should be named <old-paths>, not <old_paths>, for consistency. - Split the SdkRepositoryTest in 3 (repo + addon + capture handler) because it was started to get a bit large. Change-Id: I0ebfe862d5131a4fa214603e071576bc9108137f
* | Repository XSD: System Images Packages.Raphael Moll2011-09-011-0/+64
| | | | | | | | | | | | | | | | | | | | The underlying idea is to split system images archives out of platforms, to reduce download size and be more flexible in the future. Code+unit tests are in a separate CL. Change-Id: I9598fcab2c74e696446ebd1f6fce03832bfb711f
* | Test ExtraPackage old_path in SDK Manager diffRaphael Moll2011-09-012-5/+69
| | | | | | | | | | | | | | | | | | One more unit-test, this time we check that when the SDK Manager updates its package list it properly identifies ExtraPackages that use the old_paths attribute as an update rather than a new package. Change-Id: I7d5a642ae3287f46a0194b9d4597206f85d2772c
* | SDK Manager: Unit tests for ArchiveInstaller.Raphael Moll2011-09-0113-108/+1319
| | | | | | | | Change-Id: I77b369a5bd3bb81da09f6e509b67c635b7b2e2e9
* | SDK Manager: remember window positions.Raphael Moll2011-09-013-6/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remember window positions & sizes for the SDK Manager 2 and the AVD Manager 1. When restoring the windows, make sure they fit on the visible monitor(s) area. Also fixed a race condition where closing the AvdManager1 window would dispose some bitmaps but it turns out the AVD Manager can be launched from the SDK Manager and the latter still need these bitmaps... Hilarity ensues. Change-Id: I2312e760029bc32561355f557a621d23ec1b6916
* | Repository XSD: New <old_paths> in Extra packages.Raphael Moll2011-09-0114-164/+1300
| | | | | | | | | | | | | | | | | | | | | | This has some basic unit tests to check the presence of the new schema, as well as path comparison done by the ExtraPackage. Tests for the ArchiveInstaller have been extracted in a different CL to reduce the clutter here. Change-Id: Iefadcbf950a56834ff09c0d1ce689411957b666e
* | sdkman2: don't select Win USB driver on Mac/Linux.Raphael Moll2011-09-012-2/+14
|/ | | | | | | | This is enforced by making sure we don't select packages that do not have any archive compatible with the current platform. Change-Id: I5a81bbb2e868898c91f2dd77a6c1cb83b191d76a
* Findbugs cleanup in sdkmanager projectsMichael Zoech2011-08-293-9/+8
| | | | Change-Id: Ie9cd51cbec851667954b672a8dadd345aee7a71f
* SDK Manager: Fix log printf calls.Raphael Moll2011-08-265-28/+35
| | | | | | | | | | | | The SDK manager used to have log(String) calls which were replaced by log(printfFormat, printfArgs..) calls in R12. In a few places, we pass a string to the printf format that comes from some user variable or URL or another method and this string might contain % occurences that should not be taken as formatters. Change-Id: Ida29a18ba70d869a4f9d66f1d66edc010d9ec62d