aboutsummaryrefslogtreecommitdiffstats
path: root/sdkmanager/libs/sdklib
Commit message (Collapse)AuthorAgeFilesLines
* SDK: Delete projects moved to tools/base or tools/swt.Raphael Moll2013-03-138-428/+0
| | | | Change-Id: Iba15f82cb00d19217382c78d8ff37dda1e97ea59
* SDK prebuilts: reorganize into tools/lib.Raphael Moll2013-03-061-1/+1
| | | | | | This must be submitted with prebuilts/devtools' change I3d985ed0abf. Change-Id: Icab479e0e8a5c126b0fdc213a792187a14a44f21
* Change more SDK libs to prebuilts.Raphael Moll2013-02-061-5/+2
| | | | | | | | | | | Requires prebuilds/devtools.git I913a29e5f40db99871701461aad6fc38483015d2 To update the prebuilts, you need tools/base.git and the prebuilts/devtools/update_jars.sh script. This is supposed to be an intermediary step as we switch to tools/base. Change-Id: I3dcccfdd9dc243a22a5bfd9db6779d24285db1ac
* SDK: use prebuilts/devtools for sdklibRaphael Moll2013-01-16205-52617/+11
| | | | Change-Id: I55c69a46fb7fa21701025f2df4e4fcc3bfd3ef96
* Delete ALL the build.gradle from sdk.gitRaphael Moll2013-01-091-72/+0
| | | | Change-Id: Ib923638c305105e84f79a18a79ece48d391129c5
* Fix eclipse projects from previous refactoring.Xavier Ducrohet2012-12-062-2/+3
| | | | Change-Id: Ie7fba967df3008c66310218396ebf228453edd6d
* Refactor sdklib folder structure.Xavier Ducrohet2012-12-06208-50/+18
| | | | | | | | | | 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-262-3/+27
| | | | 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-262-0/+37
|\ \
| * | TaskHelper: properly parse Pkg.Revision property.Raphael Moll2012-11-192-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "SDK Manager: handle platform-tools preview + final."Raphael Moll2012-11-262-1/+51
|\ \ \
| * | | 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
* | | 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
* | Assume Activity Aliases are just like activities.Siva Velusamy2012-11-061-0/+23
|/ | | | Change-Id: Ide586077b63accc17cc3c4c68e0b62f06fe83b66
* 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
* Update compiler flags.Tor Norbye2012-10-261-2/+2
| | | | | | | | | | Turns off the ability to use @SuppressWarnings with optional errors is available, but off by default (see Eclipse issue 392875). This turns that off, makes missing enums in switch statements a warning, and synchronizes the settings file to all projects (except tests.) Change-Id: Iad7060523b6ee2cbbca97e0a6ffedb264b185222
* Close file streams used by parsers (and add guava to sdkcommon)Tor Norbye2012-10-255-20/+18
| | | | | | Plus some nullness annotations. Change-Id: Ia75c6ffa5d6296c991fc86fec050f285b9143429
* Update maven artifacts and add lint.Xavier Ducrohet2012-10-191-0/+1
| | | | | | | | | Updated the groupId of most artifacts to be more reflective of their sub-projects status in the SDK tools. Added lint artifacts. Change-Id: I900a165647a9b7d3c55b473f63c4ca4469762d7b
* 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
* Update the gradle build files.Xavier Ducrohet2012-10-021-5/+54
| | | | | | | add javadoc and source artifacts as well as POM information to upload to Maven Central. Change-Id: I51701f5a5db5b2ae41ecede115e2b36adf1fa05e
* 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-264-1/+246
| | | | Change-Id: I5b85b01fb62d659ed75ee998da780feaea75c51c
* Merge "MIPS company name is all-caps"Raphaël Moll2012-09-204-5/+5
|\
| * MIPS company name is all-capsDuane Sand2012-09-194-5/+5
| | | | | | | | 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 "Fix possible NPE reading dep file."Xavier Ducrohet2012-09-181-1/+1
|\ \
| * | Fix possible NPE reading dep file.Xavier Ducrohet2012-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fix this by using guava Files instead. Also fixes sdklib's manifest. Change-Id: I5dd4123f389ce1bd8c900933021fc2179e6caa3b
* | | 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
* | | Fix unit test for LocalSdkParser.Raphael Moll2012-09-171-6/+11
| | | | | | | | | | | | Change-Id: I630cb4fc123e3d6b6efc36eea543f7556b2ccc87
* | | Refactor PackagesPage to make it testable.Raphael Moll2012-09-153-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add guava to common and sdklib."Xavier Ducrohet2012-09-132-2/+2
|\ \
| * | Add guava to common and sdklib.Xavier Ducrohet2012-09-132-2/+2
| | | | | | | | | | | | Change-Id: Ic465232c7df736d2823b391c1f973c6ae5d81833
* | | 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
|\ \ \ | |/ / |/| |