aboutsummaryrefslogtreecommitdiffstats
path: root/sdkmanager/libs/sdklib/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge "Fixed resource leak in DeviceManager"Michael Wright2012-06-191-22/+25
|\
| * Fixed resource leak in DeviceManagerMichael Wright2012-06-191-22/+25
| | | | | | | | Change-Id: I5eed8a5de878bd3c52452536baca0c56822263b8
* | Merge "Misc fix on new project wizard."Xavier Ducrohet2012-06-192-1/+4
|\ \
| * | Misc fix on new project wizard.Xavier Ducrohet2012-06-192-1/+4
| |/ | | | | | | | | | | | | | | - filter out addons that don't have extra APIs. - display target codename when available. - misc fix in validate re minSdk value. Change-Id: I41a47249ff92f6c65cd6c9a7e19154587c1da1f6
* | Merge "Fixed format string for device parsing errors"Michael Wright2012-06-191-3/+3
|\ \
| * | Fixed format string for device parsing errorsMichael Wright2012-06-191-3/+3
| |/ | | | | | | Change-Id: I52f0aa20f9fb8a4b3e61ab820972af35f95f7bf8
* | Fixed schema to match resource qualifiersMichael Wright2012-06-191-1/+2
|/ | | | Change-Id: Icede9eaaf0a38924397e7ea49775a6aef9701391
* Added device functionality to the AVD managerMichael Wright2012-06-183-8/+86
| | | | Change-Id: Ib67a7b8f123302ee75eefcb45e9cac233f026f28
* Added FolderConfig creation and config loading for DevicesMichael Wright2012-06-182-10/+202
| | | | Change-Id: Iae7b32df991df946bba22aba5ab9b32ed2c094ea
* Merge "AVD Editor: support Enum Hardware Properties."Raphael Moll2012-06-181-30/+94
|\
| * AVD Editor: support Enum Hardware Properties.Raphael Moll2012-06-181-30/+94
| | | | | | | | | | | | Used to support the enum touch screen type. Change-Id: Ia3419527a391b35f7e3c8a4853c8603907defe39
* | Merge "Add lib source folders to the emma report."Xavier Ducrohet2012-06-182-4/+2
|\ \ | |/ |/|
| * Add lib source folders to the emma report.Xavier Ducrohet2012-06-152-4/+2
| | | | | | | | | | | | | | This allows seeing the library source code in the HTML report. Change-Id: I30cd9fa99d2962bb4c12cba6f2ba044857836b93
* | Workaround for Eclipse resource detection.Tor Norbye2012-06-183-11/+22
| | | | | | | | | | | | Plus close a potentially unclosed resource. Change-Id: I4eb69c28dc120ab3eb5fe5724149b749ed9fe335
* | Merge changes Ife59a297,Id8db82e2Xavier Ducrohet2012-06-154-8/+80
|\ \ | |/ | | | | | | | | * changes: Fix issue where libraries were not getting instrumented. Fix emma for split projects.
| * Fix emma for split projects.Xavier Ducrohet2012-06-144-8/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | The location of the .em file was wrong. Changing its location means it gets put in the tested project so we need a way to know where the output of the project is. As we need to be better at supporting customized projects folder, we introduce a new task that will be able to look for the customized path of any projects. So far we only support the output folder and the source folder. Change-Id: Id8db82e254baae2088827c96b7719f94c92c927c
* | SDK Manager fix display of update revisions.Raphael Moll2012-06-151-2/+2
| | | | | | | | | | | | | | | | 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
* | SDK Manager fix.Raphael Moll2012-06-157-40/+291
|/ | | | | | | | | | This change the XML fetcher to cope with: - input streams that do not support mark/reset when the caller expects one as such. - the XML parser/validator closing the input stream when the caller still needs it open. Change-Id: I5af24b7b8545f9c5f60a13d5dc06ebfc4bb9b0dd
* Merge "SDK Manager: API to list extras and their revisions."Raphael Moll2012-06-141-0/+32
|\
| * SDK Manager: API to list extras and their revisions.Raphael Moll2012-06-141-0/+32
| | | | | | | | Change-Id: I4989af2e987cf2b58f6da6a6a88f11a9351289e0
* | Added parser for new devices schemaMichael Wright2012-06-1318-0/+1584
| | | | | | | | Change-Id: Ib8a4a750b56f9ea94abd21c445958726343e760c
* | SDK Manager: fix download cache for file:// URLs.Raphael Moll2012-06-131-13/+77
|/ | | | Change-Id: I3f9a39861df0839c39a82adde4945fa641501a04
* Include a default proguard config file with optimizationTor Norbye2012-06-111-0/+2
| | | | | | | | | | | | Adds a new proguard-android-optimize.txt file alongside the default proguard-android.txt file in tools/proguard/ which project.properties files can point to. The shrinking rules are the same, but unlike proguard-android.txt, the new config file leave optimization enabled. This allows users to point to a tool-managed proguard file rather than forking the default file in order to edit out the -dontoptimize flag. Change-Id: I2f0fc8361e3964843a4cafe4f4087a6dee68b5ce
* Merge "SDK: Enable latest repository schema (repo v7 with previews)"Raphael Moll2012-06-102-0/+0
|\
| * SDK: Enable latest repository schema (repo v7 with previews)Raphael Moll2012-06-052-0/+0
| | | | | | | | Change-Id: I528bb09eeffe1e101685b72a151085429d1ac98f
* | Projects can now access aidl files from their libraries.Xavier Ducrohet2012-06-051-0/+2
|/ | | | | | | | | | | Library projects now copy their aidl files into bin/aidl. Aidl is now called with this import path for all referenced library projects. Also added a test project. Change-Id: I7f94489e87450be67a16ed7198f85b8b472f5025
* SDK Manager: support standalone sys-img xml.Raphael Moll2012-05-3114-29/+674
| | | | | | | | | | 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-303-6/+37
| | | | | | | This changeset fixes various code fragments opening resources without closing them. Change-Id: I6ed48a32dc5de4c11cab394dd3883ebbb54d2938
* Fix nullness annotationsTor Norbye2012-05-304-8/+12
| | | | | | | | | | | | | | | | | | | 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-221-2/+4
| | | | Change-Id: I7af78e81e5433396c7a1039782ab8ceda35187a0
* SDK Manager: Settings to control download cache.Raphael Moll2012-05-183-1/+102
| | | | | | | | | | | | | | | | | 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: do not erase default java http proxy properties.Raphael Moll2012-05-172-3/+51
| | | | | | | | | | | | 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 Manager: rework package loader.Raphael Moll2012-05-092-0/+29
| | | | | | | | | | | | | | | | | | | | When the SDK Manager window opens, the process is changed to: - first a package loader is created that only checks the local cache xml files. It populates the package list based on what the client last got, essentially. - next a regular package loader is created that will respect the expiration and refresh parameters of the download cache. This means for users, in the majority of cases when remote servers do not change, the package list will be populated as fast as possible and then an asynchronous refresh happens. Change-Id: Ifd1f58412dcc643eaae37257a9bc0a01fc222c90
* SDK: full revision for min-tools-rev.Raphael Moll2012-05-0810-76/+154
| | | | | | | | Support full revision for: - tools: min-platform-tools-rev - platform + sample + extra: min-tools-rev Change-Id: I2c699683c1a3c02c99654dba7c39c7a1e5cd042e
* Fix SDK Build: move unit test to /tests folder instead of /srcRaphael Moll2012-05-071-71/+0
| | | | Change-Id: I6891dcaa42990d80982bbd48859f99709aa62931
* SDK Manager: fix parsing of empty AndroidVersion codename.Raphael Moll2012-05-075-26/+114
| | | | | | | | | | | | | | | | | SDK Bug: 29952 To reproduce the bug, install any system image with the SDK Manager and add the line "AndroidVersion.CodeName=" in the source.properties. When the SDK Manager loads, it will incorrectly flag the system image as "broken" because it can't understand the empty codename. This fixes it by sanitizing the codename when creating an AndroidVersion and using that class when loading the properties instead of hand checking the codename in various places. Change-Id: Ie4a02739e56f576c7644b5539697c943d0082aac
* SDK Manager change format of revision property.Raphael Moll2012-05-046-20/+103
| | | | | | | | | | | | | Instead of storing the full revision as 4 separate properties, this stores it using the legacy "Pkg.Revision" property with the "1.2.3 rc4" format. It reduces the number of properties to maintain, it's more human-readable and it's easier when we want to have min-tools-rev be a full revision in the next CL (otherwise it means 4 more properties, etc.) Change-Id: I94ebc4786e83c5b565a6d3a33d11efdfda6f72c5
* SDK: cleanup all the Integer.parse(getProperty) calls.Raphael Moll2012-05-038-46/+51
| | | | Change-Id: Iee113eb3341f6aab65d65654505c5fedcfaff9a1
* SDK: Rework repository-7.xsdRaphael Moll2012-05-0320-183/+320
| | | | | | | | | | | This changes the XML schema for repository-7 to put the "full revision" in its own <revision> element with 4 sub-elements (major/minor/micro and preview). Next step is to reuse this for min-[plat-]tools-rev for dependencies. Change-Id: I644f08e7383987682f8b0b31175ce58d02fd8751
* Rework SDK Manager support for major.minor.micro revisions.Raphael Moll2012-05-0315-111/+257
| | | | | | | | | | | | | | | | | | | 2 things in this CL: - There's a bit of refactoring: - PreviewVersion becomes FullVersion (which is a full major.minor.micro.preview) - And I introduce a MajorRevision (which is just a major number) - Package.getRevision() returns one of these revision objects instead of an integer which leads to a multide of small boring changes. - Changed the PackageDiffLogic and its test to adequately use the new revision; "tools preview" packages are placed in their own category and releases can update previews but not the reverse. Change-Id: Ia80fd9a3791919e827ce0d183c0f297f0d27f2e6
* SDK Tools pkg support for major.minor.micro revisions.Raphael Moll2012-04-3020-65/+1494
| | | | | | | | | | | For tools and platform-tools, we'll support a revision in the form "major.minor.micro rc#". The fourth one is a preview/release candidate number. This allows us to have revisions 18, 18.1, 18.0.1 and 18 rc1, etc. Change-Id: I8a41491d4cd8798f1b71ed7f3484d9293fee81bc
* New env-var to disable SDK Manager cacheRaphael Moll2012-04-271-1/+7
| | | | Change-Id: Ia1c0ae789f173aca0832c1c7c1f6679645611f9b
* SDK: XML to export platform stats.Raphael Moll2012-04-234-0/+849
| | | | | | This would be used later by the NPW. Change-Id: Iec6f24182f234d83217d83f0087aa92eabb7609d
* Reorganize sdklib.repository packages.Raphael Moll2012-04-2135-97/+187
| | | | | | | | | | | This splits the sdklib repository in 3 sub-packages for archives, packages and sources. There are a lot of files moved around but its just a move refactoring and the only thing changes are imports and a few methods made public. Change-Id: I6ce0e872ac7afea2a6a4eb70ee7bbad0c04b6678
* Fix lib properties on windows.Xavier Ducrohet2012-04-172-4/+10
| | | | | | | This is a very crude first fix while we figure out how to properly escape/unescape all chars. Change-Id: I783f8fdfd802e1a8ff44bbc7f6056fb607a3e523
* SDK: primitive implementation of download cache.Raphael Moll2012-04-166-94/+749
| | | | | | | | | | | | | | It supports: - A local binary cache + a few http headers are saved - If ETag is present, generates a GET with If-None-Match - If Last-Modified is present, generates a GET with If-Modified-Since - Ability to configure the cache to be direct (don't cache), or serve without checkout or serve with a server check. - Doesn't check cached files if newer than 10 minutes. - For servers with no ETag/LastModified support, check files every 4 hours (no pref to change this yet.) Change-Id: I515e77291fb6810453e82e73f6508cfc60b2f422
* Merge "SDK: change proguard.config for Windows."Raphael Moll2012-04-161-3/+4
|\
| * SDK: change proguard.config for Windows.Raphael Moll2012-04-161-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the default to use / dir-separators even for the Windows template. The / will be correctly replaced by \\ by both Ant and our ExportHelper, ensuring a relative path works on all platforms. SDK bug: 28860 (This does not solve the path-separator issue with ; vs : on Windows. That will be addressed later.) Change-Id: Iee3ae9c58aa606aee7943c4e20643164bbf7344b
* | Fix "ant test" + misc clean up / reorganization of build.xmlXavier Ducrohet2012-04-164-9/+32
|/ | | | | | | | | | | | | | | | - Split NewSetupTask in several tasks to make things more flexible. Particularly this allows more targets to get access to the project type (app, lib, test, ...) as it's not so computive intensive. - Fix test project to give them access to the full tested project's classpath. - Fix support for projects that test themselves. - Make sure library projects are instrumented when using the emma target. Change-Id: Ia0c9564eacee2521e7cbd5154b8a85ea287ad4fd
* SDK: unit test for SdkSourceProperties.Raphael Moll2012-04-041-32/+77
| | | | | | Also fix a name changed in the SdkUiLib test. Change-Id: I30fa83ac607fc4735af161604514f09c2aff6a93