summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge/src/android
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Remove kxml dependency.Deepanshu Gupta2015-05-131-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Create XmlPullParser using callback provided by the client. This enables clients to choose which XmlPullParser implementation they want. Change-Id: I9ad97a4777820cdbe5c8fc3716f74ddec9065c70
* | | | Revert "Anti-alias by default"Chris Craik2015-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:20948129 Keep HIDDEN_DEFAULT_PAINT_FLAGS name. This reverts commit 1b60cc0529161b5eca6407b551d67d355994c567. Change-Id: I97cd9c556375c74c52b006bda4fc7b3a2cfa89e1
* | | | Update LayoutLib for theme key changes to fix buildAlan Viverette2015-05-071-14/+9
| | | | | | | | | | | | | | | | Change-Id: I47b400b320f16688cd32c1d8955a660637d93f4d
* | | | resolved conflicts for merge of a663e012 to mnc-devDeepanshu Gupta2015-05-061-21/+1
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: I279cad7db6e9b5e97da3ea3c3bb91e09cabc7076
| * | | am 9abe4232: am 7e4c1a92: am b4ca896f: Merge "RecyclerView in LayoutLib: ↵Deepanshu Gupta2015-05-071-21/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | better XML attrs." into lmp-mr1-dev * commit '9abe42324f2252460b003e6fcdb097910e16178a': RecyclerView in LayoutLib: better XML attrs.
| | * | Merge "RecyclerView in LayoutLib: better XML attrs." into lmp-mr1-devDeepanshu Gupta2015-05-061-21/+1
| | |\ \
| | | * | RecyclerView in LayoutLib: better XML attrs.Deepanshu Gupta2015-04-161-21/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - RecyclerView now supports XML attributes natively. Thus, remove the custom support via tools attribute. Users with older versions of RecyclerView should update. - Add Context.getPackageName() support used by RecyclerView. - Update SessionParamsFlags with the new changes and rename it to RenderParamsFlags. The attribute behaves slightly different from the original tools attribute. For usage, see commit 044b5b61e96 in frameworks/support. Change-Id: I12073e37a2ba411558ca1d3e30c399e3d9a0b144
* | | | | am 88b193d7: am 047a28ec: am 96437fb4: am 9aa600e7: Merge "LayoutLib: fix ↵Deepanshu Gupta2015-05-071-0/+15
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | crash when shadow size <=0." into lmp-mr1-dev * commit '88b193d717bb73cbe555e4e621f7b6efdf49cdaa': LayoutLib: fix crash when shadow size <=0.
| * | | | am 047a28ec: am 96437fb4: am 9aa600e7: Merge "LayoutLib: fix crash when ↵Deepanshu Gupta2015-05-071-0/+15
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | shadow size <=0." into lmp-mr1-dev * commit '047a28ec506bb40081eef6eaf8434884157709ce': LayoutLib: fix crash when shadow size <=0.
| | * | | LayoutLib: fix crash when shadow size <=0.Deepanshu Gupta2015-05-011-0/+15
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drawing empty rects results in IllegalArgumentException on Mac JRE 1.6. Prevent that by checking the bounds before attempting to draw the rect. Bug: 20687353 Change-Id: I45f48ee125196480bb6510cc49b24d2122bc3e48
* | | | Fix layoutlib build breakageAlan Viverette2015-04-301-17/+11
| | | | | | | | | | | | | | | | Change-Id: Id3a9b79ac47ef27b04a96ff3ee50688bbb58f9c0
* | | | Merge "Fix view outline for shadows in LayoutLib." into mnc-devDeepanshu Gupta2015-04-272-10/+9
|\ \ \ \
| * | | | Fix view outline for shadows in LayoutLib.Deepanshu Gupta2015-04-272-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set the bounds on the drawable before getting the view outline for shadow. Also, reuse the temp outline object in AttachInfo rather than allocating a new one each time. Change-Id: I69793d38d60c5b9f9050569f2b22fbc7b90620bf
* | | | | Expose drawTextRun publiclyRaph Levien2015-04-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For correct low-level drawing of low level text, a method that includes context for shaping is necessary, and it's similarly useful to provide the direction explicitly rather than running the BiDi algorithm on the text. The drawTextRun method (in both char[] and CharSequence variants) has provided this functionality for several major releases but has been internal. This patch exposes the methods publicly, and also improves the doc strings for both the new method and some related ones. Bug: 20193553 Change-Id: I9be33ca5ae3e7db2b69a56298400671d5ef8ad05
* | | | | Anti-alias by defaultChris Craik2015-04-271-1/+1
|/ / / / | | | | | | | | | | | | Change-Id: I19434717dd3af4fdcffbfcca2ffbb485dfebe644
* | | | Merge "Add support for disabling display scaling for development."Jeff Brown2015-04-161-0/+4
|\ \ \ \
| * | | | Add support for disabling display scaling for development.Jeff Brown2015-04-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added two new options to the wm command. 1. Set the screen size based on dips rather than pixels using the current screen density. eg. adb shell wm size 320dpx320dp 2. Disable automatic scaling of the contents of the display. When combined with the previous command, this is useful for seeing how the UI would behave if the screen remained at its current density but changed physical size. eg. adb shell wm scaling off Bug: 19899223 Change-Id: I545f893ba4861494e995cf0457ebeba1050d28dc
* | | | | resolved conflicts for merge of 186fe7b1 to masterDeepanshu Gupta2015-04-165-47/+71
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / Change-Id: I60886d3e44ae23a11c8f129517df87ee29625ada
| * | | am 1f3c7f3f: am f18ceefc: am cd6e00c6: Merge changes from topic ↵Deepanshu Gupta2015-04-165-47/+71
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | \'layoutlib-api-15\' into lmp-mr1-dev * commit '1f3c7f3f500bdbfd790c20872961d84ef617f066': Update golden image for tests. Update to using LayoutlibCallback. Remove implementation of deprecated method. Add @empty support.
| | * | Update to using LayoutlibCallback.Deepanshu Gupta2015-04-155-39/+40
| | | | | | | | | | | | | | | | Change-Id: Ia89d418b0d40ca8efef8968a4a2a635616b945ac
| | * | Remove implementation of deprecated method.Deepanshu Gupta2015-04-151-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BridgeResources.getDrawable(int) is not needed anymore, since the super method is deprecated and it calls the alternative getDrawable(int, Theme), which we override. Change-Id: I00c0bfaef6c4167a787bb74990b91cebb951c847
| | * | Add @empty support.Deepanshu Gupta2015-04-151-3/+31
| | |/ | | | | | | | | | | | | Bug: http://b.android.com/162428 Change-Id: Id7a981de2fce21213e12cdabcce4104f146fd4d3
* | | Save search context when dispatching onSearchRequested.Tim Kilbourn2015-04-131-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | The InputDevice used to trigger the search is saved in a SearchEvent so an application implementing onSearchRequested determine the device triggering the search. Bug: 15374820 Change-Id: If2cd14f77ce572a5ee131697cd63145fbea63f27
* | | Revert "Fix build: Revert "Record hyphens from Minikin and draw them""Raph Levien2015-03-303-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 5a6eeb3cbe0896ddf4bdccc0b1a81d7aac49821e and fixes the underlying issue (needed to @hide getHyphen() for subclasses of Layout, not just the base class), and layoutlib changes for checkbuild. Change-Id: I7a2b5f20ae014ea8e224d8c4079cf9131e17e1c1
* | | More layoutlib delegate native methods to do text rendering.Diego Perez2015-03-261-6/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | Moving some more methods to measure the text and compute the line breaks. The missing methods were causing crashes when running layoutlib from master. Change-Id: I910e1509836186fcff5cdd40c1dc38466b44c434
* | | am e2b85016: am ce2b74f7: am e51f5cdc: am e97079d9: am a16bb347: am ↵Deepanshu Gupta2015-03-251-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | 44fea603: Merge "Fix RoundRect radius." into lmp-dev * commit 'e2b8501695c4ba5712d49313e86a566e95a5b0df': Fix RoundRect radius.
| * | am e51f5cdc: am e97079d9: am a16bb347: am 44fea603: Merge "Fix RoundRect ↵Deepanshu Gupta2015-03-251-2/+2
| |\ \ | | |/ | | | | | | | | | | | | | | | radius." into lmp-dev * commit 'e51f5cdcf34fe127792a177a3953dad03ef23647': Fix RoundRect radius.
| | * am a16bb347: am 44fea603: Merge "Fix RoundRect radius." into lmp-devDeepanshu Gupta2015-03-251-2/+2
| | |\ | | | | | | | | | | | | | | | | * commit 'a16bb347e120ba17e87f33ff0364380211d01baf': Fix RoundRect radius.
| | | * Merge "Fix RoundRect radius." into lmp-devDeepanshu Gupta2015-03-241-2/+2
| | | |\
| | | | * Fix RoundRect radius.Deepanshu Gupta2015-03-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android APIs use radius for measuring the corner's curvature, but Java2D APIs use diameter. Add the missing conversion. Change-Id: I630fc8712e8301324c641885c0c4adf644d13b7e
* | | | | am eb96b231: am 25557e0a: am 5f0252de: am 6fa9d554: am 0b76cf6f: am ↵Deepanshu Gupta2015-03-252-69/+177
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | 34751c79: Merge "Better shadows." into lmp-dev * commit 'eb96b231b2755d50db4f931cc11203fd32a90820': Better shadows.
| * | | | am 5f0252de: am 6fa9d554: am 0b76cf6f: am 34751c79: Merge "Better shadows." ↵Deepanshu Gupta2015-03-252-69/+177
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | into lmp-dev * commit '5f0252dee43a1cd0f1591b3c9bea2d47ad1f3df0': Better shadows.
| | * | | am 0b76cf6f: am 34751c79: Merge "Better shadows." into lmp-devDeepanshu Gupta2015-03-252-69/+177
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | * commit '0b76cf6ff56c59a04783714d40163576e3081cf1': Better shadows.
| | | * | Better shadows.Deepanshu Gupta2015-03-242-69/+177
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Better shadows for rectangles and rounded rectangles (includes circles). The shadow painting code is mostly from CardView library, but modified heavily since CardView needs to draw the shadow inside view bounds. Change-Id: I88c9f19b1c16839b8d6db6df2bebff126fa5a9a3
* | | | Correctly apply android:theme attribute from <include> tagAlan Viverette2015-03-202-51/+84
| | | | | | | | | | | | | | | | | | | | Bug: 19865544 Change-Id: I6b50fa9f28a9d7f1685f9f55e505c630c12c53a2
* | | | Merge "Make sure shaders use a color model compatible with the destination."Diego Perez2015-03-194-8/+19
|\ \ \ \
| * | | | Make sure shaders use a color model compatible with the destination.Diego Perez2015-03-124-8/+19
| | | | | | | | | | | | | | | | | | | | Change-Id: Iaf6e14bb86835c36a5b0c37519ac2ee794d10081
* | | | | Fix build.Dianne Hackborn2015-03-171-2/+10
| | | | | | | | | | | | | | | | | | | | Change-Id: I6797bb2b5c85961c3bcb3fa8950bae121232f592
* | | | | am 199a70f1: am 576801ff: am 842eee9f: am 1f9a26af: am 158c08bc: am ↵Deepanshu Gupta2015-03-173-13/+12
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | ada85905: Fix AppCompat action bar theming. * commit '199a70f1820c38a9f1db1697ad91c4f5f07d00aa': Fix AppCompat action bar theming.
| * | | | am 576801ff: am 842eee9f: am 1f9a26af: am 158c08bc: am ada85905: Fix ↵Deepanshu Gupta2015-03-173-13/+12
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | AppCompat action bar theming. * commit '576801ff82a85c4de19404dfe364eef7184b84e0': Fix AppCompat action bar theming.
| | * | | am 158c08bc: am ada85905: Fix AppCompat action bar theming.Deepanshu Gupta2015-03-173-13/+12
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | * commit '158c08bcf1cd0bc702748ee2a4cf6aa259c26147': Fix AppCompat action bar theming.
| | | * | Fix AppCompat action bar theming.Deepanshu Gupta2015-03-163-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use themed context to inflate the action bar when AppCompat is used. Also fix minor issues exposed as a result. - Set project callback when LayoutInflater is created by LayoutInflater.from(context). - Remove duplication of code to get base context from context wrapper. Bug: http://b.android.com/159711 Change-Id: I379ba2ba71c0ef547460987c3aa5db521c7de967
* | | | | Add a type parameter to startActionMode() calls.Clara Bayarri2015-03-131-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This requires adding a new method to View and Window.Callback to pass down the type as a parameter. For compatibility purposes, the new method implementations keep the type and call the old method, in case clients have subclassed it. Change-Id: If5d857f131e33be8cc6a8814f2e9c4e85ad2da25
* | | | | am a4277e14: am a4ed5e94: am e770c5e4: am c44430a3: Merge "Tools attribute ↵Deepanshu Gupta2015-03-131-4/+6
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | improvements for RecyclerView LayoutManager." into lmp-mr1-dev * commit 'a4277e149355c53fde73a4e1ef44aa665af31cf0': Tools attribute improvements for RecyclerView LayoutManager.
| * | | | am a4ed5e94: am e770c5e4: am c44430a3: Merge "Tools attribute improvements ↵Deepanshu Gupta2015-03-121-4/+6
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | for RecyclerView LayoutManager." into lmp-mr1-dev * commit 'a4ed5e94117a2c6c1734138faed09490245c602f': Tools attribute improvements for RecyclerView LayoutManager.
| | * | | Merge "Tools attribute improvements for RecyclerView LayoutManager." into ↵Deepanshu Gupta2015-03-121-4/+6
| | |\ \ \ | | | | | | | | | | | | | | | | | | lmp-mr1-dev
| | | * | | Tools attribute improvements for RecyclerView LayoutManager.Deepanshu Gupta2015-03-111-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Change tools attribute for layout manager from layoutManagerType to LayoutManager. 2. Support classnames in the tools attribute. This change doesn't try to supprt arbitrary classnames for now. The reason for this is that the new layoutlib API is supposed to contain a new method for inflating custom classes that are not views. This will allow us to throw better error messages. Without the new API, trying for different constructors, will result in a error messages being logged. Change-Id: I3a31359c06b7452bfd973c3e5e54f9038acccfaa
* | | | | | am 3d024d4c: am 65215edd: am f0d324e5: am 71ba1230: am efc09c64: am ↵Deepanshu Gupta2015-03-131-16/+9
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 78660423: Merge "Fix cyclic dependency in BlendComposite and BlendingMode." into lmp-dev * commit '3d024d4c22b896c95ef4c98610c3db7c58a639ed': Fix cyclic dependency in BlendComposite and BlendingMode.
| * | | | | am 65215edd: am f0d324e5: am 71ba1230: am efc09c64: am 78660423: Merge "Fix ↵Deepanshu Gupta2015-03-121-16/+9
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cyclic dependency in BlendComposite and BlendingMode." into lmp-dev * commit '65215edd7acada70c2bcb060daec6ff718ae92ba': Fix cyclic dependency in BlendComposite and BlendingMode.
| | * | | | am efc09c64: am 78660423: Merge "Fix cyclic dependency in BlendComposite and ↵Deepanshu Gupta2015-03-121-16/+9
| | |\ \ \ \ | | | |/ / / | | |/| / / | | | |/ / | | | | | | | | | | | | | | | BlendingMode." into lmp-dev * commit 'efc09c644fa4e8354d54485aab6c0b18868284eb': Fix cyclic dependency in BlendComposite and BlendingMode.