aboutsummaryrefslogtreecommitdiffstats
path: root/sdkmanager/libs/sdklib/tests/src/com
Commit message (Collapse)AuthorAgeFilesLines
* Refactor sdklib folder structure.Xavier Ducrohet2012-12-0672-13137/+0
| | | | | | | | | | Move folders around to match default gradle/maven folder structure. The custom structure confused some IDEs when importing the project as a Gradle project. Change-Id: Ibcee26e6c07d7a53a5d96a33a1e290832ee9928d
* Fix device writer to write out XML decimals properlyTor Norbye2012-11-261-0/+21
| | | | Change-Id: I483f1e3dd02a1ac61a06707bcf33ca1c9bb6f034
* Merge "TaskHelper: properly parse Pkg.Revision property."Raphael Moll2012-11-261-0/+12
|\
| * TaskHelper: properly parse Pkg.Revision property.Raphael Moll2012-11-191-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | SDK Bug: 36987 Bug was that TaskHelper would fail when parsing a pk revision with an RC value. A quick fix was done in CL 6d266a1bf5992d27fff4400c5d2bd30681c65c3d a while ago. Revisit the fix by using the new FullRevision object to parse the value and create a DeweyDecimal; should avoid us trouble if we later change the format. Change-Id: I5ad1449ebd2606255c27485e60b714b5cf83a308
* | SDK Manager: handle platform-tools preview + final.Raphael Moll2012-11-152-1/+51
|/ | | | | | | | | | | | | | | | One issue is that when there was only one instance of platform-tools possible, the computeUpdates() code would pick the first one. But now there can be 2 of them (preview, non-preview) and thus we need to pick up the higher one even if it's not the first choice. Same issue with tools: if a platform depends on tools and there are none installed, we need to pick the highest version of the available preview or final package that satisfies the dependency. Note that in both cases the issue does not arise if there's already a tools or platform-tools installed. Change-Id: I61db2881274dafa32c5c303c0b3569fc336b8e92
* Assume Activity Aliases are just like activities.Siva Velusamy2012-11-061-0/+23
| | | | Change-Id: Ide586077b63accc17cc3c4c68e0b62f06fe83b66
* Unit test for symbol loader testTor Norbye2012-09-262-0/+244
| | | | Change-Id: I5b85b01fb62d659ed75ee998da780feaea75c51c
* Merge "MIPS company name is all-caps"Raphaƫl Moll2012-09-202-3/+3
|\
| * MIPS company name is all-capsDuane Sand2012-09-192-3/+3
| | | | | | | | Change-Id: Ib2bb0b69e08a639b7469f1c9a67e97e8cdd6eb48
* | Fix unit test for LocalSdkParser.Raphael Moll2012-09-171-6/+11
| | | | | | | | Change-Id: I630cb4fc123e3d6b6efc36eea543f7556b2ccc87
* | Refactor PackagesPage to make it testable.Raphael Moll2012-09-151-0/+8
|/ | | | | | | | | 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
* Update annotations on overridden methodsTor Norbye2012-08-221-2/+4
| | | | | | Required when using Eclipse 4. Change-Id: Ie5f95794392ce46e0b04ae67b5eaf07efb19fbac
* Merge "SDK Manager: support for partial resume of downloads."Raphael Moll2012-08-212-18/+62
|\
| * SDK Manager: support for partial resume of downloads.Raphael Moll2012-08-212-18/+62
| | | | | | | | Change-Id: I248194b5764cf801e52ebd35c6b5963facf31a3e
* | Fix nullability annotationsTor Norbye2012-08-212-6/+8
|/ | | | | | | | | | | 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
* Unify all loggers in the sdk tools.Xavier Ducrohet2012-08-174-11/+21
| | | | | | | | | | 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-138-318/+7
| | | | | | | Move stuff out of sdklib into common and ide_common. Remove androidprefs and move the one class into common. Change-Id: I71d126a13cf2ba413692e29616f4968a37d7b33a
* Merge "Refactor common.jar"Xavier Ducrohet2012-08-082-2/+2
|\
| * Refactor common.jarXavier Ducrohet2012-08-072-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Cleanup: dos2unix some files in SdkController.Raphael Moll2012-08-072-547/+547
|/ | | | Change-Id: I7d53dd01cc9fc25794ed10bf053f093a4dda9af3
* Convert EOL from Windows to Unix in sdklib *.javaRaphael Moll2012-08-0722-4798/+4798
| | | | | | | | This is just a "dos2unix" applied to all the sdklib *.java files. I meant to clean that a while ago. I'll do sdkuilib in a different CL. Change-Id: I5c7d65cea9205d8765961db0fea42d8b3dbd58eb
* Java implementation of bspatch.Raphael Moll2012-08-041-0/+533
| | | | Change-Id: I994ea6499c542fe43b16037e4a8cf184b95f91de
* SDK Manager: accept relative urls for addons-list.xml documents.Raphael Moll2012-06-203-10/+28
| | | | Change-Id: Ibbe574716b59c4ccfba93eccd6e3df895063c889
* Added DeviceWriter and equals for DevicesMichael Wright2012-06-191-0/+127
| | | | Change-Id: I6c9a162bc414d3d8252dbbb5a37bb4d2ed1d6058
* Fixed schema to match resource qualifiersMichael Wright2012-06-191-1/+3
| | | | Change-Id: Icede9eaaf0a38924397e7ea49775a6aef9701391
* Fixed device tests to use new device apiMichael Wright2012-06-131-2/+2
| | | | Change-Id: I8d37398581023808eac19ad21ce864eaba69ae3b
* Added parser for new devices schemaMichael Wright2012-06-131-0/+181
| | | | Change-Id: Ib8a4a750b56f9ea94abd21c445958726343e760c
* SDK: don't override user.home property in Unit Tests.Raphael Moll2012-06-121-1/+0
| | | | | | | Apparently that's not even needed anymore, it might be a left-over from a previous test. Change-Id: I622fbba13975d14cd45a4724751abdd33756824f
* SDK Manager: support standalone sys-img xml.Raphael Moll2012-05-319-14/+611
| | | | | | | | | | 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-301-1/+3
| | | | | | | This changeset fixes various code fragments opening resources without closing them. Change-Id: I6ed48a32dc5de4c11cab394dd3883ebbb54d2938
* SDK: full revision for min-tools-rev.Raphael Moll2012-05-087-12/+441
| | | | | | | | 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-0/+71
| | | | Change-Id: I6891dcaa42990d80982bbd48859f99709aa62931
* SDK Manager change format of revision property.Raphael Moll2012-05-044-19/+126
| | | | | | | | | | | | | 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-031-0/+16
| | | | Change-Id: Iee113eb3341f6aab65d65654505c5fedcfaff9a1
* SDK: Rework repository-7.xsdRaphael Moll2012-05-038-39/+44
| | | | | | | | | | | 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-036-37/+97
| | | | | | | | | | | | | | | | | | | 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-3015-23/+695
| | | | | | | | | | | 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
* SDK: XML to export platform stats.Raphael Moll2012-04-232-0/+220
| | | | | | This would be used later by the NPW. Change-Id: Iec6f24182f234d83217d83f0087aa92eabb7609d
* Reorganize sdklib.repository packages.Raphael Moll2012-04-2123-53/+126
| | | | | | | | | | | 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
* SDK: primitive implementation of download cache.Raphael Moll2012-04-161-4/+9
| | | | | | | | | | | | | | 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
* SDK: unit test for SdkSourceProperties.Raphael Moll2012-04-041-0/+138
| | | | | | Also fix a name changed in the SdkUiLib test. Change-Id: I30fa83ac607fc4735af161604514f09c2aff6a93
* SDK Manager: Add Mips support.Raphael2012-03-092-3/+18
| | | | | | | (based on ae7878a5426e5df22634b449a76d59626d038713 and adapted to tools_r17.) Change-Id: If8312af7f385cbe6e066657ef7e63ab8fd758424
* NPW: Find samples in extras.Raphael2012-03-091-0/+59
| | | | | | | | | | | | Changes: - the SdkManager can now list extras that contain a "samples" directory. - The NPW uses that to list samples from extras that match the requested API level. The name of the sample in the list also indicates the extra's display name. Change-Id: Id6609f53b9ba84126e36bc33e5675ec6a0284814
* SDK Repository: name/vendor id/display for addons.Raphael2012-02-156-34/+62
| | | | | | | | SDK Bug: 21942, part 2 of 3. (part 3 is replacing manifest.ini by source.props) Change-Id: I96be0d8210120927744224d909f7ee7184ebfecf
* SDK Repository: vendor id/display name for extras.Raphael2012-02-158-81/+619
| | | | | | SDK Bug: 21942, part 1 of 2. Change-Id: Id9c026965b365e57302c56620f4ec8f88573d633
* SDK Repository: remove <extra> from repository.xmlRaphael2012-02-154-4/+481
| | | | | | | | | | | | | | To simplify and avoid XSD duplication, remove extra packages from the repository.xsd. Instead they should be defined via an addon.xml. Note that -repository-6.xsd is prefixed with a dash, meaning the SDK Manager 17 knows about it and can enforce it but the build server will continue creating repos in v5 for now. Once r17 is deployed, we can make the xsd v6 mandatory for r18. Change-Id: I00d4644378bcc95bfd9ceb7eede0c8c720926f74
* SDK Manager: extract source packages as r-o.Raphael2012-02-062-3/+9
| | | | | | | | Extract Java sources from source packages as read-only. When such sources are added to the target build path in Eclipse it prevents users from modifying them by mistake. Change-Id: I271d1d55e35ba275494b9d5d899817a7d0ad0361
* Manifest Merger tool.Raphael2012-01-101-0/+7
| | | | Change-Id: Iae9033f04654e03151c206b5dfb1fd8f47eea8f2
* SDK: Extend CommandLineParser to support string arrays.Raphael2012-01-051-1/+59
| | | | | | | | | This allows the parser to process an input such as: $ cmd verb --arg1 value1 --arg2 value2 value3 value4 or $ cmd verb --arg1 value1 --arg2 value2 -- -value3 --value4 Change-Id: I7ea6c019c2bb4ee5003bdba1f0774f3c062322c2
* Move CommandLineProcessor from sdkmanager to sdklib as CommandLineParserRaphael2012-01-051-0/+188
| | | | Change-Id: I4413efea2887436d167ce44db6f0cd711bdf8fdd