summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* LayoutLib: support for custom styles.Xavier Ducrohet2010-01-111-3/+14
| | | | Change-Id: Ic6c2ef234589f45db15024261d698066aa6e2f4e
* Merge "Move Layoutlib API library to sdk.git" into eclairXavier Ducrohet2010-01-0712-642/+0
|\
| * Move Layoutlib API library to sdk.gitXavier Ducrohet2010-01-0712-642/+0
| | | | | | | | Change-Id: I53f1c5d52447b6215ae7a6f2f1f82d0879e952ca
* | Fix issue #2357259: aapt tool prints "uses-configuation:"Dianne Hackborn2010-01-061-1/+1
|/ | | | Change-Id: Id3ea3a86bd4d385441b05fcbe85b8ab62c35afff
* Layoutlib: Add a constant for default density value.Xavier Ducrohet2009-12-111-0/+3
| | | | Change-Id: I6dc8a694bbdae2385d4e877ea04a6b4325a5719e
* Add --custom-package to aaptXavier Ducrohet2009-11-303-6/+25
| | | | | | | | | | | | This is needed to add library support to the SDK. The goal is to have libraries and main project use the same package for the R/Manifest classes to that they can share code and resources. BUG 2293994 Change-Id: Ie4cdb5a3bdabe1760a91316fd8969e4f53344bf9
* Fix build.Dianne Hackborn2009-11-161-6/+6
| | | | Change-Id: I70c86738e2894d7f8c51034aea8fda1585a6fcb3
* Minor fix for the parent style computation in the layoutlib.Xavier Ducrohet2009-11-151-8/+11
| | | | | | This is an SDK change only. Change-Id: Iae493184ae76b2e21200dd6bb48795ff74f79ab3
* Properly implement Paint.breakText for layoutlib.Xavier Ducrohet2009-11-131-2/+12
| | | | | | BUG 2260400 Change-Id: I7082e366b65da0b5de2a6dbb547f66e05e0b78e0
* Add a way for wallpapers to know the delta between virtual screens.Marco Nelissen2009-11-091-2/+4
|
* Support for fallback fonts in layoutlib.Xavier Ducrohet2009-11-094-120/+333
| | | | | | BUG 2041229 Change-Id: Ib12bcb7f6d8f0e4c2b51871f8129ecf51fa938ee
* am 00e44ef2: Merge change I54545dfd into eclair-sdkDirk Dougherty2009-11-042-9/+9
|\ | | | | | | | | | | | | Merge commit '00e44ef21777f32b67a8d51ee375cd290a3fb2d4' into eclair * commit '00e44ef21777f32b67a8d51ee375cd290a3fb2d4': doc change: fix broken R.styleable formatting (caused by missing periods). Adjust table markup.
| * doc change: fix broken R.styleable formatting (caused by missing periods). ↵Dirk Dougherty2009-11-032-9/+9
| | | | | | | | | | | | | | Adjust table markup. Bug: 2230588 Change-Id: I54545dfd9d26acef567e586cfc916f6b883a4de7
* | Fix layoutlib tests so they pas when run from Eclipse workbench.Brett Chabot2009-11-032-2/+2
| | | | | | | | Bug 2222616
* | Implement feature #2117336: Create event communication APIs for live wallpaperDianne Hackborn2009-10-221-0/+19
| | | | | | | | | | | | | | Note: currently only implements an async version (no result), and not yet actually tested. Change-Id: Id47ed045a4b0eb309ea8c58daf41a0e03eff1d3a
* | add "junk path" -k option to aapt (DO NOT MERGE)Doug Zongker2009-10-193-8/+22
|/ | | | | | | | | | | | | | Adds a "junk path" option to aapt so that you can do: aapt add -k archive.zip path/to/some.file and have the file stored in the zip under the name "some.file" (without the path). Needed so that we can use 'aapt add' in place of 'zip -j' when building jar files, which will lead to smaller incremental OTAs. (This is a cherry-pick of a change already submitted to eclair-mr2; the change was approved for mr1.)
* layout lib tests cleanupXavier Ducrohet2009-10-065-320/+17
| | | | | | | | - Move test files to their own package for easy binary inclusion in adt-test - fix some tests and remove obsolete ones. Change-Id: I5b967f29074fdad74073f9b37d903eabe8dc29e6
* Add a test to make sure the replaced classes in layoutlib are correct.Xavier Ducrohet2009-10-062-6/+146
| | | | Change-Id: I9641635153c12e2c0a23583f7d094767533fc683
* Reimplement all the method of Paint for layoutlibXavier Ducrohet2009-10-051-69/+294
| | | | | | | | | | There were a few missing methods that should have been reimplmented (because they were native). Others have been added just to be sure so that we can test whether methods are missing or not (test coming soon). Change-Id: I24895c353e38545e9b1abe28d41224fdc78cadb1
* Fix the layoutlib test to run from adt-tests.Xavier Ducrohet2009-10-056-67/+53
| | | | Change-Id: I34f513429593dce9f781ed8a08c4664a5d6f9aa8
* Refactor class/method names used by layoutlib_create.Xavier Ducrohet2009-10-053-38/+86
| | | | | | | Information about classes and methods that are replaced, renamed, removed into CreateInfo, so that it can be used by the tests. Change-Id: I8874a40503249416621aa90b2ca02dcaf30ecd57
* Fix a warning output.Xavier Ducrohet2009-09-281-1/+2
| | | | | | This was introduced by the dpi work. Change-Id: I7c7b1596085f70532b8279139c287a2a58f57046
* AAPT: Ignore visual source safe files in resourcesRaphael2009-09-241-0/+4
| | | | BUG 1895888
* Fix issue #2133206: dialogs/menus should auto-dismiss when screen turns offDianne Hackborn2009-09-231-1/+11
| | | | | | | Lot of infrastructure for more things to go away when "clear system dialogs" happens, and now do this when we turn on the lock screen. Change-Id: I567130296fe47ce82df065ed58ef21b37416ceaf
* Add density support to layoutlib so that bitmap are scaled if needed.Xavier Ducrohet2009-09-234-47/+78
| | | | Change-Id: I00204bb136ccaa44deeafbe0ea8746fea9903341
* Fix issue #2125720 Weather Forecast Widget - graphics do not scaleDianne Hackborn2009-09-231-2/+2
| | | | | | I forgot to add the new density field to the Bitmaps' parcelable data. Change-Id: I77cf3e93e356297e0caed6fc71b62b5cd8f79124
* Merge change 26635 into eclairAndroid (Google) Code Review2009-09-239-6/+309
|\ | | | | | | | | * changes: Added tool to generate application-specific reports from class load profiling data. Generated new profiling data. Deleted old data. Generated new preloaded-classes file.
| * Added tool to generate application-specific reports from class load ↵Bob Lee2009-09-239-6/+309
| | | | | | | | profiling data. Generated new profiling data. Deleted old data. Generated new preloaded-classes file.
* | Add density value to density enum.Xavier Ducrohet2009-09-221-1/+14
|/ | | | | | | This is going to be used as constant to both ADT classes and the layoutlib. Change-Id: Id9befe83c5c2be3fbc5f045c7ed21aa8ee0108cc
* Add a new IResourceValue that knows about the density.Xavier Ducrohet2009-09-221-0/+31
| | | | | | | This will allow the layoutlib to resize bitmaps that are not in the native density of the rendering. Change-Id: If9dca6d51cd93a2083c96fce3ac64335ec6ad801
* Fix issue with printing gles version in aapt dump badging optionSuchi Amalapurapu2009-09-201-2/+3
| | | | | | If the name attribute for uses-feature or uses-permission is empty the error value is still empty indicating error and preventing the else part from being checked as it should be.
* Add API to send an ordered sticky broadcast.Dianne Hackborn2009-09-191-0/+7
| | | | Change-Id: Ida7081204e226db0cd07ff618c08e308a909ec0c
* Fix issue #2093608: Calendar widget takes a few seconds to launchDianne Hackborn2009-09-171-0/+8
| | | | | | | | | | | Avert your eyes! The key change here is that RemoteViews can now call a Context API to start its pending intent, which inside of the activity manager we can use to determine to cancel the timeout delay for external entities to disrupt the home screen. Change-Id: If097cf7478cbed7a3c04a304050bd7fd5703d197
* Implement issue #1780928: Need support hiding nav keys.Dianne Hackborn2009-09-152-1/+57
| | | | | | | | | | | | | This implements support for devices whose hardware can hide their navigation keys. It works much like the existing keyboardHidden configuration, and for compatibility uses the same configuration change bit. Also add FLAG_TURN_ON_SCREEN for windows, which has the system cause the screen to be turned on when the window is displayed. Great fun when used with FLAG_SHOW_WHEN_LOCKED! Change-Id: I0b867f19af85cfd8786a14cea194b34f7bdd9b7a
* Merge change 24829 into eclairAndroid (Google) Code Review2009-09-141-1/+8
|\ | | | | | | | | * changes: Some optizations to wallpaper drawing/scrolling.
| * Some optizations to wallpaper drawing/scrolling.Dianne Hackborn2009-09-141-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, fix some issues with the final wallpaper bitmap we use: ensure it is always 16bpp, and make sure dithering of its bitmap is turned off. We take of dithering when loading, to make sure we don't use it when drawing. Also add new APIs to return the wallpaper with the equivalent of Launcher's old FastBitmapDrawable. As doing this, also load the default wallpaper the same way as custom ones, taking care to resize it as needed at load time. Finally implement a mechanism for the window manager to wait for the wallpaper to redraw at its new position before returning from the application's call to change the offset. This ensures that the wallpaper better tracks the application. Note that there is a timeout in this wait that is relatively short, and if it expires we will run for a while without waiting. Change-Id: Ife449437746da85958bd447e0a6cf3d2223b398c
* | Fix some LayoutBridge javadoc.Raphael2009-09-142-13/+17
|/ | | | Change-Id: I255d1d58d3537403ac9a8a5c7adece30ae989ce0
* Fix compilation of add-resource tag.Robert Greenwalt2009-09-021-1/+1
| | | | It used the wrong tag-type to find the end of itself.
* Make it an error to use a bare apostrophe in aapt, and adjust warnings/errors.Eric Fischer2009-09-012-3/+7
| | | | | | | | | | | | | | | | | | In practice, no one ever writes an apostrophe in an aapt string with the intent of using it to quote whitespace -- they always mean to include a literal apostrophe in the string and then are surprised when they find the apostrophe missing. Make this an error so that it is discovered right away instead of waiting until late in QA or after the strings have already been sent for translation. (And fix a recently-introduced string that has exactly this problem.) Silence the warning about an empty span in a string, since this seems to annoy people instead of finding any real problems. Make the error about having a translated string with no base string into a warning, since this is a big pain when making changes to an application that has already had some translations done, and the dead translations should be removed by a later translation import anyway.
* Fix replacement-after-add of resource files in overlay.Robert Greenwalt2009-08-311-19/+45
| | | | | | | | | | Aapt was adding/removing elements from a list an continuing to use a stale copy for future indexes. This could cause incorrect subsequent processing. Add an en resource and modify an es, for example. Adding the en would cause the base fileset's es version to be moved in the list. Using the old index we'd then attempt to remove the old es version with the wrong index and then add the new es version generating a "duplicate file" error. bug: 2090015
* applications are at level 2Joe Onorato2009-08-301-1/+1
|
* Add a flag (-G) to aapt to have it output the classes that shouldn't be ↵Joe Onorato2009-08-307-4/+271
| | | | obfuscated by ProGuard.
* Add platform infrastructure for features.Dianne Hackborn2009-08-271-3/+4
| | | | | | | | | | | | | | This introduces a new mechanism to define features associated with a platform, query the current device for the available features, and enforce that apps requiring features that aren't available can't be installed. Also now allows uses-library to specify that a library is optional, so the lack of such a library will not prevent the app from being installed (but if it does exist it will be correctly linked into the app). Change-Id: I5b369b46cfa0b3d37c9e08fd14ef1098a978e67b
* Fix issue #2084148: Define the format for the auto focus preview for barcode ↵Dianne Hackborn2009-08-271-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | scanning Add new manifest/aapt support for specifying device features an application requires. The aapt badging now returns these (as well as uses-permission since I need to look for those anyway); if an app doesn't explicitly request the camera feature but does request the permission, then aapt will say that it has requested both the basic camera feature as well as the autofocus feature. Here's what you put in your manifest to say you need a camera but don't need autofocus: <uses-permission android:name="android.permission.CAMERA" /> <uses-feature android:name="android.hardware.camera" /> <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" /> Here's what will be seen from aapt: uses-permission:'android.permission.CAMERA' uses-feature:'android.hardware.camera' uses-feature-not-required:'android.hardware.camera.autofocus' Change-Id: I4dd19cee0486cc54771f5bf14fc9db0e892115d5
* I am getting tired of the java doc warnings, so fix them.Dianne Hackborn2009-08-241-10/+51
| | | | Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
* Replace fullHeight support by fullSize (height and width)Xavier Ducrohet2009-08-212-11/+16
| | | | This is useful for linearlayout in horizontal mode.
* Support full length rendering.Xavier Ducrohet2009-08-202-14/+94
| | | | | | New rendering method in ILayoutBridge to specify whether the rendering height should be the specified height or if it should be the height required by the layout (specified height is always the minimum).
* Merge change 21764 into eclairAndroid (Google) Code Review2009-08-181-62/+130
|\ | | | | | | | | * changes: Add aapt extensions to dump badging to print more info about activities, receivers and services Fix issue with checking end tags. Earlier some boolean variables were being set once a new tag is detected at the same level which causes some incorrect values to be overwritten. we should be doing this when we detect the end tag.
| * Add aapt extensions to dump badging to print more info about activities, ↵Suchi Amalapurapu2009-08-181-62/+130
| | | | | | | | | | | | | | | | receivers and services Fix issue with checking end tags. Earlier some boolean variables were being set once a new tag is detected at the same level which causes some incorrect values to be overwritten. we should be doing this when we detect the end tag.
* | am ad4bc607: Merge change 21772 into donutXavier Ducrohet2009-08-181-0/+18
|\ \ | |/ |/| | | | | | | | | Merge commit 'ad4bc607bd236dd9b06df9cf89dc5e14541ff66c' into eclair * commit 'ad4bc607bd236dd9b06df9cf89dc5e14541ff66c': Fix Resources#opeRawResource(int, TypedValue) in layoutlib.