aboutsummaryrefslogtreecommitdiffstats
path: root/sdkmanager/libs/sdklib/src
Commit message (Collapse)AuthorAgeFilesLines
* SDK: use prebuilts/devtools for sdklibRaphael Moll2013-01-16204-52596/+0
| | | | Change-Id: I55c69a46fb7fa21701025f2df4e4fcc3bfd3ef96
* Refactor sdklib folder structure.Xavier Ducrohet2012-12-06204-0/+13137
| | | | | | | | | | 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
* Merge "Add renderscript specific compilation target."Xavier Ducrohet2012-11-301-0/+2
|\
| * Add renderscript specific compilation target.Xavier Ducrohet2012-11-301-0/+2
| | | | | | | | | | | | | | | | | | | | The property name is "renderscript.target" and is to be located in project.properties. If not present, the minSdkVersion (or 11 if lower) is used. Change-Id: Ic243474ce1d5ce2235cbfdfc45092ed8a5ffbbf7
* | Fix nullness annotationTor Norbye2012-11-291-1/+1
|/ | | | Change-Id: Ic9317e88e94dc13f1c11f49a5300349e28f3c747
* SDK: Relative AVD root path.Raphael Moll2012-11-292-9/+184
| | | | | | | | | | | | | | | | | | | AVD have a root ini file in .android/avds/name.ini with a "path" absolute path to the avd config directory. This does 2 things: - force the file to use ISO-8859-1 (aka Latin1) encoding. - add a "path.rel" key with a relative path to the .android folder if the avd directory is at its typical location. The loading logic is: - try to use the "path" key if it points to an existing directory (as an absolute path). - otherwise use the "path.rel" key as a path relative to the .android folder if present. SDK Bug: 40498 Change-Id: I2364c2ee69f48816f3e6f6f33c9fa43170e05587
* Fix device writer to write out XML decimals properlyTor Norbye2012-11-261-3/+6
| | | | Change-Id: I483f1e3dd02a1ac61a06707bcf33ca1c9bb6f034
* Merge "Add getter for location of project property file."Xavier Ducrohet2012-11-261-0/+7
|\
| * Add getter for location of project property file.Xavier Ducrohet2012-11-261-0/+7
| | | | | | | | Change-Id: I8ff04988b2c2cefd073fe81d44eb042e4af70bbc
* | Fix refresh issue in the AVD Manager.Raphael Moll2012-11-262-142/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In tools 21.0.0, hitting refrehs in the AVD Manager will create the list display to blink rapidly several times in a row. Same happens when a new AVD is created from a device. The issue is that the DeviceManager reparses and rebuilds its internal lists from scratch for every single call to getDevices() and getDeviceStatus(). Each time it notifies the listeners, and consequently the AVD Manager rebuilds its table. 2 fixes for that: - First use a boolean guard to prevent recursive refreshes of the avd manager table in AvdSelector. - Second fix DeviceManager to not rebuilt its lists all the time. This also changes DeviceManager so that callers create one instance that contains all the lists and there no static data shared between the instances. This is more deterministic. It shifts the responsibility to the callers to pass around the same instance if they want the data to remain consistent. Change-Id: Ia0c104395fe599071892e24bc234f8cffde9f635
* | Merge "TaskHelper: properly parse Pkg.Revision property."Raphael Moll2012-11-261-0/+25
|\ \
| * | TaskHelper: properly parse Pkg.Revision property.Raphael Moll2012-11-191-0/+25
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | AVD Manager: prevent NPE in AvdInfo.Raphael Moll2012-11-261-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | AvdInfo.mProperties should never be null. The constructor assumed it could but then the code below uses it without guard in multiple places. Solve this by making sure the constructor doesn't set the map to null. SDK Bug: 40400 Change-Id: I82f4b4c3bfa05ab3b3f57463fdaf5b17273faf56
* | Persist deletion of devices.Siva Velusamy2012-11-201-6/+19
| | | | | | | | | | | | devices.xml was not updated when devices were being deleted. Change-Id: Ie1c7253da1c5f64ee5d5f26b5e36b0fbc6443671
* | Fix display of button type in Device Creation DialogSiva Velusamy2012-11-191-7/+20
|/ | | | | | | | | The combo box always had the values "Hardware" and "Software", but it was being compared with the id for ButtonType, which was "hard" or "soft". http://code.google.com/p/android/issues/detail?id=39941 Change-Id: I3b7234a7ddf46d11f5c065a86c42c8cf2c73da12
* Fix a potential case where aok signing is incomplete.Xavier Ducrohet2012-11-051-1/+5
| | | | Change-Id: I53416ed62f55422f450a2d9dc5e61b53b9bcb7f0
* Use LinkedHashSet to obtain stable ordering of elements.Siva Velusamy2012-10-294-24/+21
| | | | | | | The hashCode() routine relies on the items being retrieved in a stable sequence. Change-Id: I9a3ffb79bfaa0eb52416f6b06343de7dc89193b2
* Close file streams used by parsers (and add guava to sdkcommon)Tor Norbye2012-10-255-20/+18
| | | | | | Plus some nullness annotations. Change-Id: Ia75c6ffa5d6296c991fc86fec050f285b9143429
* Fix generic devices.Xavier Ducrohet2012-10-171-2/+2
| | | | Change-Id: I30fe565366b3bf66f973d88c589fea284d9e0f86
* Allow user control over whether a skin is displayed.Siva Velusamy2012-10-081-0/+6
| | | | Change-Id: I07c8b468e9a2c900b7cadd04f256dc67128401f7
* Fix javadoc here and there.Xavier Ducrohet2012-10-023-5/+3
| | | | Change-Id: If02d0b97c294d9821a1c914547782a08b1d256fb
* Add cmd line support to create ui automator projects.Xavier Ducrohet2012-09-271-11/+11
| | | | Change-Id: I34ffff7d7828c171444c40e48fc3dcf093391324
* Improve aapt error messageTor Norbye2012-09-271-2/+6
| | | | | | | | | | | | If anything goes wrong with aapt, we emit an error message that we could not execute aapt and to check the install location. However, if the file exists but isn't executable, or if a parsing error happens in the new SymbolLoader/Writer, the error message is misleading. This changeset makes the error message more specific if it looks like the root cause isn't a missing aapt installation. Change-Id: Ifb09a2dd736f6a93c0f167162826e1ad6e3d2a63
* Unit test for symbol loader testTor Norbye2012-09-262-1/+2
| | | | Change-Id: I5b85b01fb62d659ed75ee998da780feaea75c51c
* Merge "MIPS company name is all-caps"Raphaël Moll2012-09-202-2/+2
|\
| * MIPS company name is all-capsDuane Sand2012-09-192-2/+2
| | | | | | | | Change-Id: Ib2bb0b69e08a639b7469f1c9a67e97e8cdd6eb48
* | Generate smaller R classes for libraries.Xavier Ducrohet2012-09-182-0/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using the new --output-text-symbols from aapt the build system now generates the R class for libraries manually based on the symbols exported by the libraries and the final values computed by aapt when using all the resource folders. Because only R.java is concerned, the Manifest class is now included in the library jar file. Also added a new test apps that uses instrumentation to verify the build system. Change-Id: Ic436ea8eb070844e9db8b3b2620fbf665839d40b
* | Merge "Support separate layout editors for a single layout resource"Tor Norbye2012-09-173-4/+13
|\ \
| * | Support separate layout editors for a single layout resourceTor Norbye2012-09-173-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset changes the "reuse" behavior of the layout editor to no longer reuse the same layout editor when you are switching between alternate layout files for the same layout resource, such as layout/foo.xml and layout-land/foo.xml. This lets you more quickly switch back and forth and inspect differences between the layouts, etc. There is also an option in the Android > Editors panel to turn on single editor sharing again. The biggest part of the changeset, by far, is a cleanup of the ConfigurationComposite class and associated code. This was necessary not just to support the above feature (where we need to "back out" UI changes when you've made a configuration edit which results in a different file getting opened), but it's also an important preparation for multi configuration editing, where we need to be able to switch configuration settings in and out of a single configuration editor, etc. The configuration data itself is now in a separate Configuration class; the UI is in ConfigurationChooser, and the configuration matching code is in ConfigurationMatcher. There's also a new Locale class to track language/region pairs instead of using 2-element ResourceQualifier arrays. The various menu listeners are also in separate UI classes now. While there are new classes, most of the configuration matching algorithm is unchanged, just moved to a new class and the UI syncing and configuration data lookup replaced. Bitmasks are used to handle configuration changes, such that updating multiple related attributes (e.g. a rendering target change also causes a theme change if say Holo isn't available) can now be processed just once with a single change call. (Various other cleanup too.) Change-Id: I04ac969f46824321be3db0c487ef077c03cc6012
* | | Refactor PackagesPage to make it testable.Raphael Moll2012-09-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | ManifestMerger: fix handling of codenames in min/targetSdkVersion.Raphael Moll2012-09-141-0/+6
|/ / | | | | | | | | | | | | | | | | The change is that the manifest merger will only accept a codename if it's invoked in a context that can resolve that codename to an API level. This allows to produce an error on bogus codenames and to properly check that the API levels match appropriately. Change-Id: Ic70c0c3690b13d94dba81bb78cc09386016b2ef1
* | Constants refactoring.Tor Norbye2012-09-131-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset moves most constants into the SdkConstants class, and gets rid of AndroidConstants and LintConstants. It also migrates all non-ADT specific constants from AdtConstants into SdkConstants. It furthermore moves various other constants (such as those in XmlUtils and ValuesDescriptors) into the constants class. It also fixes the modifier order to be the canonical modifier order (JLS 8.x). Finally, it removes redundancy and combines various constant aliases such that we don't have both NAME_ATTR and ATTR_NAME pointing to "name", etc. Change-Id: Ifd1755016f62ce2dd80e5c76130d6de4b0e32161
* | Properly dispose DeviceManager from AvdManager.Raphael Moll2012-09-111-26/+37
| | | | | | | | | | | | | | Similar issue fixed by patch d1daeae66a0ebdf53076038dc4a1fe099c4141fb but this time for the AvdManager. Change-Id: I10af39d364e427d593078f8bfa23bba3ba7e1558
* | Merge "Allow sys-img.xml in user-defined addon sites"Raphaël Moll2012-09-111-1/+2
|\ \
| * | Allow sys-img.xml in user-defined addon sitesDuane Sand2012-09-111-1/+2
| |/ | | | | | | Change-Id: Id7eeaa46d24385ee231c8db7a542947b5ee960b6
* | NPW Sample Wizard: list extras with a "sample" directory.Raphael Moll2012-09-111-0/+8
| | | | | | | | | | | | | | | | Some extras have just a single "sample" directory instead of having a samples/<sample_name> directory. Support this and list them as valid samples. Change-Id: I25bc59db0b9853d98385cca98f70bf261558fd8b
* | Avd Creation Dialog: Enable sdcard if user asks for it.Siva Velusamy2012-09-072-14/+59
| | | | | | | | Change-Id: Ia5a57139cf76cec559c557011a2acee2af58457a
* | Merge "Remove obsolete stuff."Xavier Ducrohet2012-09-061-105/+0
|\ \ | |/ |/|
| * Remove obsolete stuff.Xavier Ducrohet2012-08-311-105/+0
| | | | | | | | Change-Id: Ib3a4f7c0c479b4c8c7f2e27d47ba756969d4f0b4
* | SDK Manager: fix support for file:// URLs in UrlOpener.Raphael Moll2012-08-312-7/+63
|/ | | | Change-Id: I5996187d0ccd002d9ec3fe8c0fa5d17a96671431
* Merge "Let ApkBuilder package bitcode library into APK."Shih-wei Liao2012-08-301-1/+5
|\
| * Let ApkBuilder package bitcode library into APK.Shih-wei Liao2012-08-271-1/+5
| | | | | | | | Change-Id: I54e99cff338a62147af3247446148d88a73a4ddb
* | Fix SdkManager.hasChangedRaphael Moll2012-08-281-18/+12
| | | | | | | | | | | | Also add a simple unit test. Change-Id: I8ed3dfbea07578528036f1dabd75c18f3161819c
* | SDK Manager: fix sdk-has-changed.Raphael Moll2012-08-271-6/+36
|/ | | | | | | | The SdkManager.hasChanged method was supposed to only look at direct folders in platforms and add-ons, not regular files. Change-Id: I87c3d51bfd7bd2578285f957a9838fadec703401
* 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-215-71/+267
|\
| * SDK Manager: support for partial resume of downloads.Raphael Moll2012-08-215-71/+267
| | | | | | | | Change-Id: I248194b5764cf801e52ebd35c6b5963facf31a3e
* | Merge "SDK Lib: minor cleanup in UrlOpener."Raphael Moll2012-08-215-15/+47
|\ \ | |/
| * SDK Lib: minor cleanup in UrlOpener.Raphael Moll2012-08-215-15/+47
| | | | | | | | | | | | | | | | | | | | | | Makes UrlOpener private. All callers should use the DownloadCache class, and UrlOpener must remain purely an implementation detail. That's because UrlOpener is just a bunch of static whereas DownloadCache is an instance that gets passed around and can be overriden for testing. Change-Id: Idacd328616f6c11df298f4e2b8f4ac7668cf6ffd
* | Merge "SDK Lib: fix some javadoc references."Raphael Moll2012-08-216-26/+28
|\ \ | |/