summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib
Commit message (Collapse)AuthorAgeFilesLines
* resolve conflicts for merge 5a7b3b65 correctlyDeepanshu Gupta2014-05-121-1/+1
| | | | Change-Id: I832b7ee50002bcd1429bf431cc91f12e60d19f84
* resolved conflicts for merge 5a7b3b65 to jb-dev-plus-aospDeepanshu Gupta2014-05-1227-443/+1820
|\ | | | | | | Change-Id: I6bafdb9c6a8dfc6f55a4d9adf67f447661137eb8
| * Remove references to non-std Java classes. [DO NOT MERGE]Deepanshu Gupta2014-05-0627-443/+1820
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not add the non-standard Java classes. Updates the references to all non-standard classes to new classes in com.android.tools.layoulib.create package. This also treats java.lang.AutoCloseable which is part of Java 7 similarly so that we can still run on Java 6. This also adapts the cherrypick for this branch by updating references to the non-standard Java classes present in this branch. This also includes the following change that includes some changes that the original cherrypick missed. Change-Id: I76c87c74ee088778b37d1a7a7d531e0fde5c758f commit: 1ed75bde09275c9f2bd1f81830e381ea864ac7f5 Change-Id: Iac5b272652e2780c9bb72d19f415d150948ca589 (cherry picked from 80c668f2a076e91d887dbf77776cd503ff88b0b4)
* | am 4b5da86d: Fix DatePicker and Calendar widget in layoutlib. [DO NOT MERGE]Deepanshu Gupta2014-05-131-2/+5
|\ \ | |/ | | | | | | * commit '4b5da86d04200ba278b62ff99da91e212b87e9af': Fix DatePicker and Calendar widget in layoutlib. [DO NOT MERGE]
| * Fix DatePicker and Calendar widget in layoutlib. [DO NOT MERGE]Deepanshu Gupta2014-05-051-2/+5
| | | | | | | | | | | | | | Issue: https://code.google.com/p/android/issues/detail?id=59732 Change-Id: I281b3fdad88c591281a3645592c84f3e2cb61d09 (cherry picked from commit 6335590aa8997944cc7fb358a315dbb9b789f87f)
* | am 5c166c9c: Layoutlib: Update the wifi icon in the status bar. [DO NOT MERGE]Deepanshu Gupta2014-05-138-7/+6
|\ \ | |/ | | | | | | * commit '5c166c9c04b6ea9d4955830e7ba277be71f17a6f': Layoutlib: Update the wifi icon in the status bar. [DO NOT MERGE]
| * Layoutlib: Update the wifi icon in the status bar. [DO NOT MERGE]Deepanshu Gupta2014-05-058-7/+6
| | | | | | | | | | | | | | Issue: https://code.google.com/p/android/issues/detail?id=60993 Change-Id: Ia43ed40b42c79f67dcd5809b827d4fecbc823c25 (cherry picked from commit 11ee746dc5e77f4f33aac45ac9e344444223012d)
* | am 2d82586b: Fix CalendarView to show the right labels. [DO NOT MERGE]Deepanshu Gupta2014-05-132-0/+62
|\ \ | |/ | | | | | | * commit '2d82586b96593b1b3b5280d77d5ae9a09df9d1fd': Fix CalendarView to show the right labels. [DO NOT MERGE]
| * Fix CalendarView to show the right labels. [DO NOT MERGE]Deepanshu Gupta2014-05-052-0/+62
| | | | | | | | | | Change-Id: I95431f1054678d4192bd1621c1f69b29268f55e9 (cherry picked from commit 44bcd64e5b9fd211dd56b0598693a0559f65dc1a)
* | am 64dc0380: Fix layoutlib [DO NOT MERGE]Deepanshu Gupta2014-05-131-6/+15
|\ \ | |/ | | | | | | * commit '64dc0380127047ffcf135b6848c9150aa8dbed85': Fix layoutlib [DO NOT MERGE]
| * Fix layoutlib [DO NOT MERGE]Deepanshu Gupta2014-05-051-6/+15
| | | | | | | | | | | | | | | | | | | | | | Fix a NPE. The cherry-pick differs slightly from the original to remove changes not relevant to the current branch. Bug: 11140701 Change-Id: Id92fc5359acf6dde1bcdbc781aaf637fdb6eecbf (cherry-picked from 87be67f91719234cbd381ff0242b5efc8b6aa257)
* | am a59c27dd: Fix ClassCastException when rendering ListView [DO NOT MERGE]Deepanshu Gupta2014-05-134-129/+156
|\ \ | |/ | | | | | | * commit 'a59c27dd6674a31c875b0baa86519caec628ca2d': Fix ClassCastException when rendering ListView [DO NOT MERGE]
| * Fix ClassCastException when rendering ListView [DO NOT MERGE]Deepanshu Gupta2014-05-054-129/+156
| | | | | | | | | | | | Bug: b.android.com/59300 Change-Id: Ia350adb3308daa8170bff755302760790163c811 (cherry picked from commit 7b5d54f05be61a7ab40021644a91c466e2897627)
* | am 8a39c3af: Add orientation to configuration for layoutlib. [DO NOT MERGE]Deepanshu Gupta2014-05-131-0/+18
|\ \ | |/ | | | | | | * commit '8a39c3afb29f2540b05319042e758dd4d5f73a1e': Add orientation to configuration for layoutlib. [DO NOT MERGE]
| * Add orientation to configuration for layoutlib. [DO NOT MERGE]Deepanshu Gupta2014-05-051-0/+18
| | | | | | | | | | | | | | Update the configuration with the device orientation before rendering. Change-Id: Icd40901204fd13f90b18353e53a15e25e5b2176c (cherry picked from commit d4875e19f5b7c69226783b0a6590831466159f84)
* | am 135b5ba5: Layoutlib: Read and close XML files as soon as possible. do not ↵Xavier Ducrohet2012-10-181-3/+68
|\ \ | |/ | | | | | | | | | | merge. * commit '135b5ba52431b147d51a81b807784009cd0510dd': Layoutlib: Read and close XML files as soon as possible. do not merge.
| * Layoutlib: Read and close XML files as soon as possible. do not merge.Xavier Ducrohet2012-10-181-3/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | Because passing an InputStream to KXML does not close the stream after the file has been parsed, the files are staying locked on windows until the gc and finalizers are run. This change preload the XML files and close their stream, and then pass the content in a stream to the parser. (cherry picked from commit c48b0b940d632b9862ff6aa32665e37fe9e50845) Change-Id: I1b225454c166026c1aab6290c55ac8279e8862d5
* | am 434cd38f: Update layoutlib for jb mr1. do not merge.Xavier Ducrohet2012-10-1830-60/+242
|\ \ | |/ | | | | | | * commit '434cd38f96a4a87220a8218901622f31e567354a': Update layoutlib for jb mr1. do not merge.
| * Update layoutlib for jb mr1. do not merge.Xavier Ducrohet2012-10-1830-60/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | Status bar displayed on all devices. Update logic for displaying nav bar to whether or not device has soft button. Update navigation buttons to new look. Remove battery and signal from navigation bar. (cherry picked from commit 891b703f7b1e0e396d16477cc66a286da7161b49) Change-Id: Id7cc9ad4255d2c4d2e6461a565dfe2cc17e12e75
* | am 15c15eaa: Merge "Replace LruCache implementation for layoutlib. do not ↵Xavier Ducrohet2012-07-105-19/+428
|\ \ | |/ | | | | | | | | | | merge." into jb-dev * commit '15c15eaac51c0c375d18fb70cd1bd066d87b034e': Replace LruCache implementation for layoutlib. do not merge.
| * Replace LruCache implementation for layoutlib. do not merge.Xavier Ducrohet2012-07-105-19/+428
| | | | | | | | | | | | | | | | | | | | | | | | The android version depends on a custom version of LinkedHashMap which is not present on desktop VMs. This new implementation is done in a way that minimizes the difference between the two. Also some minor fixes. (cherry picked from commit 01b6c755dbcf24e71192dc44757e2eea2a426091) Change-Id: Idc7bca820e472e281a3024a5b610fd55606cf428
* | am 0e302bc8: Merge "Disable debug output in SDK layoutlib." into jb-devXavier Ducrohet2012-06-191-1/+1
|\ \ | |/ | | | | | | * commit '0e302bc884fa4b25eb391d625f2fb0eddc25d9b7': Disable debug output in SDK layoutlib.
| * Disable debug output in SDK layoutlib.Xavier Ducrohet2012-06-191-1/+1
| | | | | | | | | | | | Bug: 6697442 Change-Id: I9741761342ea220c158aa124089430b0db80bf7e
* | resolved conflicts for merge of 8cf489c1 to jb-dev-plus-aospRaphael Moll2012-06-143-11/+846
|\ \ | | | | | | | | | Change-Id: I06608e3c122b8f321429d457c51aa2213dd238b4
| * | Layoutlib Create: Find dependencies.Raphael Moll2012-06-134-52/+790
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Usage: layoutlib_create --list-deps /path/to/layoutlib.jar Prints: - all classes found in the Jar and the types they use (the dependencies). - all the dependencies missing from the Jar and what uses them. Change-Id: I8b2674df127e1494feed7a653282e88e4d2f5494
* | | am dd251cab: Merge "Fix build." into jb-devDianne Hackborn2012-06-041-2/+2
|\ \ \ | | |/ | |/| | | | | | | * commit 'dd251cab5b6e5b590cc0aeae8be8f885a7794e72': Fix build.
| * | Fix build.Dianne Hackborn2012-06-041-2/+2
| | | | | | | | | | | | Change-Id: I41415fed99d98406bc033289428bde59475c2917
* | | am ae5811c7: Merge "Fix (mostly) issue #5109947: Race condition between ↵Dianne Hackborn2012-05-291-0/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | retrieving a..." into jb-dev * commit 'ae5811c71405878b09eace395ec2b28e54eeb427': Fix (mostly) issue #5109947: Race condition between retrieving a...
| * | Fix (mostly) issue #5109947: Race condition between retrieving a...Dianne Hackborn2012-05-291-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...content provider and updating its oom adj This introduces the concept of an "unstable" reference on a content provider. When holding such a reference (and no normal stable ref), the content provider dying will not cause the client process to be killed. This is used in ContentResolver.query(), .openAssetFileDescriptor(), and .openTypedAssetFileDescriptor() to first access the provider with an unstable reference, and if at the point of calling into the provider we find it is dead then acquiring a new stable reference and doing the operation again. Thus if the provider process dies at any point until we get the result back, our own process will not be killed and we can safely retry the operation. Arguably there is still the potential for a race -- if somehow the provider is killed way late by the OOM killer after the query or open has returned -- but this should now be *extremely* unlikely. We also continue to have the issue with the other calls, but these are much less critical, and the same model can't be used there (we wouldn't want to execute two insert operations for example). The implementation of this required some significant changes to the underlying plumbing of content providers, now keeping track of the two different reference counts, and managing them appropriately. To facilitate this, the activity manager now has a formal connection object for a client reference on a content provider, which hands to the application when opening the provider. These changes have allowed a lot of the code to be cleaned up and subtle issues closed. For example, when a process is crashing, we now have a much better idea of the state of content provider clients (olding a stable ref, unstable ref, or waiting for it to launch), so that we can correctly handle each of these. The client side code is also a fair amount cleaner, though in the future there is more than should be done. In particular, the two ProviderClientRecord and ProviderRefCount classes should be combined into one, part of which is exposed to the ContentResolver internal API as a reference on a content provider with methods for updating reference counts and such. Some day we'll do that. Change-Id: I87b10d1b67573ab899e09ca428f1b556fd669c8c
* | | am 2a9b85d7: am c0f17383: Merge "Move kxml2 to prebuilts/misc"Jean-Baptiste Queru2012-05-182-2/+2
|\ \ \ | |/ / |/| / | |/ | | * commit '2a9b85d7ccdd3b8e6be90454cdcb4be3b032cd64': Move kxml2 to prebuilts/misc
| * Move kxml2 to prebuilts/miscJean-Baptiste Queru2012-04-302-2/+2
| | | | | | | | Change-Id: Ie4b45d2073f26d8313843f9860cf658e288c850b
* | Fix build.Dianne Hackborn2012-05-131-1/+1
| | | | | | | | Change-Id: I53263d509559c70100cd78ad49f225f0dafd8891
* | Implement new window cropping.Dianne Hackborn2012-05-131-1/+1
| | | | | | | | | | | | | | | | The window manager now performs the crop internally, evaluating it every animation from, to be able to update it along with the surface position. Change-Id: I960a2161b9defb6fba4840fa35aee4e411c39b32
* | Merge "Making transition out of recents look better" into jb-devMichael Jurka2012-05-101-1/+1
|\ \
| * | Making transition out of recents look betterMichael Jurka2012-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fading out recents first, then scaling up app thumbnail - Fade Recents out over 130ms - Delay the window animation for 200ms first, then animate for 200ms (previously we didn't delay and then animated for 300ms) Bug: 6390075 Change-Id: Ia8c753bf7ee03d2acef6eb2772b28d88fe10a682
* | | Add infrastructure for accessing "unstable" content providers.Dianne Hackborn2012-05-091-0/+10
|/ / | | | | | | | | | | | | We have an API and some stuff that purports to this, but no real implementation yet. Change-Id: I93555440014a50fdf79fa3f65318d90fb82265b4
* | Add missing native method to Canvas_Delegate.Xavier Ducrohet2012-05-081-0/+5
| | | | | | | | Change-Id: I86288c942004e5489eacc43ba5e112cf56f94487
* | Move CancellationSignal to android.os package.Jeff Brown2012-05-071-1/+1
| | | | | | | | | | Bug: 6427830 Change-Id: I39451bb1e1d4a8d976ed1c671234f0c8c61658dd
* | Add system insets to windows.Dianne Hackborn2012-04-302-4/+4
| | | | | | | | | | | | | | | | This will be used to determine which parts of a window a completely hidden by system UI elements (status bar, nav bar, system bar) so that they can be clipped out from rendering. Change-Id: I2c6c6ac67dbdfeed82d2c089ef806fb483165bd9
* | Merge "When a window is first shown only draw once while animating." into jb-devDianne Hackborn2012-04-271-0/+4
|\ \
| * | When a window is first shown only draw once while animating.Dianne Hackborn2012-04-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On some hardware allocating a new graphics buffer is quite expensive, which blocks updates to the UI. This can cause glitches when performing window animations. To reduce these glitches, the view hierarchy will now only allow itself to be drawn once if its window is being shown while the window manager is animating, not resuming draws until it is told that the animation is done. Change-Id: Ie15192f6fddbd0931b022a72c76ddd55ca266d84
* | | Work around build break in layoutlib.Jeff Brown2012-04-271-5/+7
|/ / | | | | | | | | Bug: 6413563 Change-Id: Ia7101fba87f3784fd8159c75e4289f642913d099
* | Fix Paint_Delegate with missing native method.Xavier Ducrohet2012-04-232-2/+21
| | | | | | | | Change-Id: I39638dcb323fdd1ec3cb58dcad05757145d09026
* | Add new API to find smallest/largest screen size.Dianne Hackborn2012-04-191-0/+4
| | | | | | | | Change-Id: I790801fceaf84ee2e3b1c9d32828285ad3231d0e
* | Add new scale-up window manager animation.Dianne Hackborn2012-04-161-0/+6
| | | | | | | | | | | | Like zoom thumbnail, but without the thumbnail. Change-Id: I9486dd204398b87c9e70ff0d05d03f4a22449cd6
* | Move some APIs from window manager to input manager.Jeff Brown2012-04-051-117/+0
| | | | | | | | | | | | | | | | | | | | Simplified input injection API down to just one call. Removed all input state reading API. It was only used by the window manager policy and required a permission that applications could not obtain. READ_INPUT_STATE is now unused and deprecated. Change-Id: I41278141586ddee9468cae0fb59ff0dced6cbc00
* | Merge "Clean up status bar, system bar, navigation bar management."Dianne Hackborn2012-04-051-3/+2
|\ \
| * | Clean up status bar, system bar, navigation bar management.Dianne Hackborn2012-04-041-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The status bar and navigation bar are two completely separate elements, with their own semantics. The system bar now classifies itself as a navigation bar, since that is really how it behaves. This required rewriting the HDMI resizing code, so that it is all done by PhoneWindowManager since that is what is responsible for the size of the navigation bar (and thus now system bar). This actually gets rid of a fair amount of code, and means we can also do the same thing for a pure navigation bar. Likewise the system bar now has the navigation bar ability to be hidden when requested by system UI flags. To get the behavior we want on Xoom, we only allow the nav bar to be hidden when it will help provide a better aspect ratio for showing widescreen videos. Finally the nav/system bar now animates when hidden and shown. Change-Id: Ie927154b68376a0b61802f99171ff56b8da92e7a
* | | Embed layout padding in nine patch imagesAmith Yamasani2012-04-041-1/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | - Added a new custom PNG chunk that carries the layout padding ints. - Extract the padding ticks from .9.png images and store in the chunk. - Load the padding information at runtime into Bitmap and NinePatchDrawable. - The new chunk is ordered first so that it doesn't cause a problem in older versions of the platform. Bug: 6087201 Change-Id: I5de46167a1d44b3ec21065b0c165e594b1dc8399
* | Merge "Add Delegate for ViewRootImpl#isInTouchMode to prevent IPC call in ↵Xavier Ducrohet2012-03-233-4/+49
|\ \ | | | | | | | | | Eclipse."