summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge
Commit message (Collapse)AuthorAgeFilesLines
* Fix buildSvetoslav2014-08-051-0/+6
| | | | Change-Id: I96eec52472bec122074b0ec2ee051c1b55eaa8f4
* Get filename from File fasterDeepanshu Gupta2014-08-051-9/+6
| | | | | | | | Use the direct call from a File object to get the filename instead of going through Path which depends on Java 7 making the LayoutLib tests incompatible with Java 6. Change-Id: I815895eedbc10245ee09bdb53b11e5548b076aad
* Skip loading otf fonts on Java 6Deepanshu Gupta2014-08-052-3/+29
| | | | Change-Id: I9668b84812e9be333d10603657dd911024fc292d
* Add SystemProperties native method implementations.Deepanshu Gupta2014-08-051-0/+54
| | | | | Bug: http://b.android.com/73046 Change-Id: Ia695e7beb81f426509b646cfd929201f7e0a4ade
* LayoutLib: Use ICU's line break algo.Deepanshu Gupta2014-08-051-0/+55
| | | | Change-Id: I7e5b0ab7423a72f5a4b0e1163d0a537f0b03ba07
* Replace more Locale methods.Deepanshu Gupta2014-08-041-0/+23
| | | | | | | This change replaces some methods of java.util.Locale. Some of them were added in 1.7 and some are not present in the Desktop VM. Change-Id: Ifdf8451bb2acf55e01dce8b5e15c40c8160107cc
* Fix DelegatesDeepanshu Gupta2014-08-047-187/+185
| | | | Change-Id: I2b6a6b679b7a5b2532b76b723155bc2763b70768
* Add testing framework to LayoutLib.Deepanshu Gupta2014-08-0439-25/+1463
| | | | | | | | | This change adds an end to end test which loads the framework resources and a test app and ensures that no exceptions or warnings are thrown. The change also adds project configuration for intelliJ. Change-Id: I7b67c0f1a2af2dac95df7f3231cab537b9826d7d
* Fix deadlock window manager and device policy manager.Sander Alewijnse2014-07-311-1/+1
| | | | | | | Removed all communication from wm to device policy manager. Added initialization of cache in wm by dpms. Change-Id: Ifa0b8bfcd625464b156d5cc0fb66d342deda1c27
* am f3c523e0: am ce1088a6: am fcb490a2: Merge "Add Device Policy API to ↵Sander Alewijnse2014-07-231-0/+5
|\ | | | | | | | | | | | | disable screen capture." into lmp-dev * commit 'f3c523e06217b19ae8389f9ca8be71ed2cd9fe7b': Add Device Policy API to disable screen capture.
| * Add Device Policy API to disable screen capture.Sander Alewijnse2014-07-231-0/+5
| | | | | | | | | | | | | | | | WindowManager will set secure flag on SurfaceControl for all windows of a flagged user to prevent screen capture. API is consistent with the camera disable API. Change-Id: Ib180f67f1ad827b6f4aca2af615274256cce58f4
* | am 37423bbb: am db2a5ff1: am 78d85419: Fix missing initial moveto in path ↵Deepanshu Gupta2014-07-211-0/+3
|\ \ | |/ | | | | | | | | | | definition. * commit '37423bbbeab2822b39d859412aa80117a4b85282': Fix missing initial moveto in path definition.
| * Fix missing initial moveto in path definition.Deepanshu Gupta2014-07-211-0/+3
| | | | | | | | | | | | | | The Path_Delegate was missing a moveTo call which resulted in IllegalPathStateException when rendering the ProgressBar. Change-Id: Ibdae5f90ffd0a71a3de4ba945238239faa0b18b2
* | am cdcebcef: Merge "Fix style resolution for styles with \'.\'" into ↵Deepanshu Gupta2014-07-181-14/+11
|\ \ | |/ |/| | | | | | | | | lmp-preview-dev * commit 'cdcebcefed9a9bbf6835025d722ae31da1a93c85': Fix style resolution for styles with '.'
| * Merge "Fix style resolution for styles with '.'" into lmp-preview-devDeepanshu Gupta2014-07-171-14/+11
| |\
| | * Fix style resolution for styles with '.'Deepanshu Gupta2014-07-091-14/+11
| | | | | | | | | | | | | | | Bug: b.android.com/72698 Change-Id: I96fb549cf5787d9e8cde2245524a8173471a60ca
| * | Merge "Use BlendComposite for advanced PorterDuff Modes." into lmp-preview-devDeepanshu Gupta2014-07-154-95/+75
| |\ \
| | * | Use BlendComposite for advanced PorterDuff Modes.Deepanshu Gupta2014-07-154-95/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Not all PorterDuff modes are supported by Java's AlphaComposite. Use BlendComposite for such modes. Change-Id: I51486a40f09186cf8a87ce1e6a3d1cfcf39fb2d3
| * | | Merge "Optimize Blend composites." into lmp-preview-devDeepanshu Gupta2014-07-151-147/+136
| |\ \ \ | | |/ /
| | * | Optimize Blend composites.Deepanshu Gupta2014-07-151-147/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed redundant array allocations to improve performance for various blending modes. Change-Id: Iaba1d6ff3ad03eebdc859c599b610cc593370438 (cherry picked from commit 9ce074610413ce3a5dd0cef9295f0ae9061402b7)
| * | | Merge "Add BlendComposite.java" into lmp-preview-devDeepanshu Gupta2014-07-151-0/+772
| |\ \ \ | | |/ /
| | * | Add BlendComposite.javaDeepanshu Gupta2014-07-151-0/+772
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | The class is adapted from a demo tool for Blending Modes written by Romain Guy (romainguy@android.com). The tool is available at http://www.curious-creature.org/2006/09/20/new-blendings-modes-for-java2d/ Change-Id: I8f7c7ca08d3078106056764a4e2f1ce95d990137 (cherry picked from commit 882e08759137a77090c3c7dff8cba425a3393474)
| * | Fix default level flags for bidi. [DO NOT MERGE]Deepanshu Gupta2014-07-091-2/+2
| |/ | | | | | | | | Bug: b.android.com/69432 Change-Id: I26ff34a6d1f85c928a9a1cb3dfd739fc7d3a8fb6
* | Fix sdk build.Ying Wang2014-07-171-1/+1
| | | | | | | | Change-Id: I9073747f7a12f826fabf99c34dce813edf6462c1
* | Use BlendComposite for advanced PorterDuff Modes. [DO NOT MERGE]Deepanshu Gupta2014-07-164-95/+75
| | | | | | | | | | | | | | | | Not all PorterDuff modes are supported by Java's AlphaComposite. Use BlendComposite for such modes. Change-Id: I51486a40f09186cf8a87ce1e6a3d1cfcf39fb2d3 (cherry picked from commit b15709cd36d28c47660b0ae30918642bfd3d85f7)
* | Optimize Blend composites. [DO NOT MERGE]Deepanshu Gupta2014-07-161-147/+136
| | | | | | | | | | | | | | | | Removed redundant array allocations to improve performance for various blending modes. Change-Id: Iaba1d6ff3ad03eebdc859c599b610cc593370438 (cherry picked from commit 9ce074610413ce3a5dd0cef9295f0ae9061402b7)
* | Add BlendComposite.java [DO NOT MERGE]Deepanshu Gupta2014-07-161-0/+772
| | | | | | | | | | | | | | | | | | The class is adapted from a demo tool for Blending Modes written by Romain Guy (romainguy@android.com). The tool is available at http://www.curious-creature.org/2006/09/20/new-blendings-modes-for-java2d/ Change-Id: I8f7c7ca08d3078106056764a4e2f1ce95d990137 (cherry picked from commit 882e08759137a77090c3c7dff8cba425a3393474)
* | Add code cache directory for apps.Jeff Sharkey2014-07-151-0/+6
| | | | | | | | | | | | | | | | | | This provides a directory where apps can cache compiled or optimized code generated at runtime. The platform will delete all files in this location on both app and platform upgrade. Bug: 16187224 Change-Id: I641b21d841c436247f35ff235317e3a4ba520441
* | Merge "Support Locale.toLanguageTag on Java 6" into lmp-devDeepanshu Gupta2014-07-151-9/+8
|\ \
| * | Support Locale.toLanguageTag on Java 6Deepanshu Gupta2014-07-151-9/+8
| | | | | | | | | | | | Change-Id: I255e79e2c288cd24b350b7c26128bbbb0b2cb9a3
* | | Launch activity behind launching task.Craig Mautner2014-07-151-1/+1
|/ / | | | | | | | | | | | | | | | | | | Use ActivityOptions.makeLaunchTaskBehindAnimation() to launch tasks behind the current task. Includes animations for launching and launched tasks. Fixes bug 16157517. Change-Id: I0a94af70b4748592e94673b958ee824cfb3d7ec0
* | Fix buildChristopher Tate2014-07-141-0/+6
| | | | | | | | | | | | | | BridgeContext didn't show up in the working tree as a build participant. Tsk tsk. Change-Id: I2b52d99f319b43c2906a7fb9b25139a3df5b3676
* | Update delegatesDeepanshu Gupta2014-07-113-62/+37
| | | | | | | | Change-Id: Icd93c31b4e8c8ee5ea242fb8295578937f48ff2a
* | Fix SDK build breakageYohei Yukawa2014-07-121-5/+0
| | | | | | | | | | | | | | | | This should have been included in I3c6b69bd9d79b199afe68d838f25effa6 BUG: 15812658 BUG: 16118603 Change-Id: I298206008fc28faa4f6576a77d56251f873f233c
* | am bdf7f8b0: Merge "Support Typeface.createFromFile()" into lmp-preview-devDeepanshu Gupta2014-07-022-47/+80
|\ \ | |/ | | | | | | * commit 'bdf7f8b009ca9f276b5368a1cea037c1605f7261': Support Typeface.createFromFile()
| * Merge "Support Typeface.createFromFile()" into lmp-preview-devDeepanshu Gupta2014-07-022-47/+80
| |\
| | * Support Typeface.createFromFile()Deepanshu Gupta2014-07-012-47/+80
| | | | | | | | | | | | | | | | | | | | | | | | Add support for Typeface.createFromFile() for platform fonts. The feature existed in the KitKat LayoutLib but was dropped for the L preview. This change adds it back. Change-Id: Ib1abe67a32c28a1fb0e2a4f3061c358b55129434
* | | am 036557b6: Merge "Update system icon resolution in LayoutLib." into ↵Deepanshu Gupta2014-07-0244-33/+73
|\ \ \ | |/ / | | | | | | | | | | | | | | | lmp-preview-dev * commit '036557b60df5e5425b3563e99ffb21685160e4ab': Update system icon resolution in LayoutLib.
| * | Update system icon resolution in LayoutLib.Deepanshu Gupta2014-06-2744-33/+73
| |/ | | | | | | | | | | | | | | | | | | | | | | This fixes some bugs with the resolution of icons for Status Bar and Navigation Bar by separating the icons into v21 and v11 directories. An icon is searched in v21 directory by default. For simulating older platforms, v11 directory is searched first and then v21 is used as a fallback. This also adds xxhdpi versions of home, back and recent icons. Change-Id: Ia6eafc83856eacafc4fb0b13d87793d4aa24f106
* | Fix layoutlib breakage due to I681b711f6f40a94c25b7acd3a44eb3539486afabAdrian Roos2014-07-022-5/+6
| | | | | | | | Change-Id: I141f49718c4d538875a68c00101c098fdd7e967b
* | Update text rendering delegates.Deepanshu Gupta2014-07-014-89/+154
| | | | | | | | | | | | | | | | | | | | | | | | The flags for RTL and LTR are simplified in commit 0a1d91862a3822dcbbb412bcd6d69b0f5f079f8b. This change follows up the same in LayoutLib. This also fixes the following bug which incorrectly computed runs with 'en-dash' (\u20132) as RTL. Bug: http://b.android.com/69432 Change-Id: Iaed62d13ce31f107773576ed2ef412be6037cd04
* | Sort delegates in Canvas_DelegateDeepanshu Gupta2014-07-011-143/+140
| | | | | | | | | | | | | | The order of the methods match the order of the declaration in the Canvas file. This makes searching for the methods easier. Change-Id: I230621d3999024cb2ff42a1aacd60908c7f0b161
* | Update LayoutLib delegates.Deepanshu Gupta2014-07-014-164/+84
| | | | | | | | Change-Id: I64828bfb963048effbc49a622f5f2aa0203665e6
* | Add VMRuntime_DelegateDeepanshu Gupta2014-07-011-0/+78
| | | | | | | | | | | | | | | | Framework now uses libart which moved the implementation of newUnpaddedArray() to native. This copies over the implementation of the method from libdvm to restore the old behaviour. Change-Id: Ic062aeb01f9ea52b6ed35517f742058d0ba8c804
* | Report all TestDelegate failures in a single run.Deepanshu Gupta2014-07-011-35/+49
| | | | | | | | Change-Id: I37fa0a6f300ea89c8d0a60380b77b7d61db01cb7
* | am ac626a67: Merge "Improve PorterDuff support." into lmp-preview-devDeepanshu Gupta2014-06-251-33/+50
|\ \ | |/ | | | | | | * commit 'ac626a6724bc239fcf3d5b2e207de02c59595c5a': Improve PorterDuff support.
| * Improve PorterDuff support.Deepanshu Gupta2014-06-241-33/+50
| | | | | | | | | | | | | | | | | | | | | | 1. Don't cache the src image used for applying the filter. The filter delegate is not always cleared. This probably results in slighly slower rendering, but doesn't run Studio out of memory. 2. Support more PorterDuff modes. 3. Fix a bug where the alpha was applied twice and thus the filter had less effect than it should have had. Change-Id: I2a481a64ba7f1ff8e9683bbc46ae110433e82ebc
* | am 699f7221: Merge "Temporarily change PorterDuff mode MULTIPLY to SRC_IN" ↵Deepanshu Gupta2014-06-241-0/+5
|\ \ | |/ | | | | | | | | | | into lmp-preview-dev * commit '699f7221dc0719b1ceb03a03183dc742a5bcdf3c': Temporarily change PorterDuff mode MULTIPLY to SRC_IN
| * Temporarily change PorterDuff mode MULTIPLY to SRC_INDeepanshu Gupta2014-06-231-0/+5
| | | | | | | | | | | | | | | | Overflow pop up dialog for action bar uses PorterDuff color filters in mode SRC_IN. The mode is not supported by AlphaComposite currently. So, in order to render something, we swap it out with SRC_IN. Change-Id: I987e101728ecb76b5e3d5cd91f831e6f63a4321f
* | am 91977396: Merge "Fix bug to render status bar icons" into lmp-preview-devDeepanshu Gupta2014-06-241-2/+3
|\ \ | |/ | | | | | | * commit '9197739603eb34df6cbc85c6a7fa0ea359e4776b': Fix bug to render status bar icons