| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
To test the presence of WindowDecorActionBar class, use findClass()
instead of loadClass() which logs warnings.
Change-Id: Ice8a5a6badd764c7f75b5a64a07c48f0a7cfef98
|
|
|
|
|
|
|
|
| |
In change id I7582e242c7564c32feeb044fc9eff6bfb5c56536,
WindowDecorActionBar's package name was changed. This breaks layoutlib.
Fix the issue by checking both package names when loading the class.
Change-Id: I5723a97f0f164d61c56061fef6cff18e3cdafaee
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When there's an exception during the inflation of a framework view (for
example invalid attributes), report the exception correctly. The earlier
behaviour assumed the exception to be a ClassNotFoundException and tried
to load it from the user's project. This is not longer the case.
Also, update the MockView class to a FrameLayout with a single TextView.
This means that the MockView is a ViewGroup and will not choke when
someone attempts to add a View to it (although, the view will be
silently dropped).
Change-Id: Ice003817ceb627ebfbbbb245ab6be10f9141e728
|
|
|
|
|
|
|
| |
The conversion of the PorterDuff mode from int to enum was incorrect
resulting in the wrong PorterDuff Mode being used.
Change-Id: I7607d505b6e4382e6101869971154f6a77db279c
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I3f9ba5d78363f878fa0c58ca8cbf736bd43fe1c0
|
|/
|
|
|
|
| |
Small fix to update call parameters
Change-Id: I4322aa212493ec2970ae17ec1918b9b7e2f8e93a
|
|
|
|
|
| |
Bug: http://b.android.com/189314
Change-Id: I229632d11a2529e865f3f2e8eca3a78b47ad462c
|
|
|
|
|
| |
Bug: http://b.android.com/65503
Change-Id: I6ed901703cffee345f3083ea3ddeb52a28f4ac64
|
|\ |
|
| |
| |
| |
| |
| | |
Bug: http://b.android.com/178278
Change-Id: I693912678ed79e9c6690560b618a605da5a807c6
|
|/
|
|
|
|
|
|
|
|
|
| |
PathMeasure is needed to use the trimPath* properties in drawables.
These properties are used in the vector drawable for indeterminate
progress bars in Material so this is needed to be able to render them
correctly in the preview.
PathMeasure makes use of Path.approximate to calculate which segments to
paint.
Change-Id: Ic513f0a30a6aac0317f7c13cd75e9154c37405c8
|
|
|
|
|
| |
Bug: http://b.android.com/187939
Change-Id: I20bf61746e8af3bb87ba9cfcc9bf58854ac7c5be
|
|\ |
|
| |
| |
| |
| | |
Change-Id: If52097ba90481644707dd0323ec63ca3ddf0986b
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When the text properties of the Paint object are updated, or when .set()
is called, updateFontObject will be called. This method is currently at the
top of the methods for number of allocations.
This CL reduces the number of calls to updateFontObject by a 90%,
reducing the number of Font allocations.
Change-Id: I3e232f9e6e230da8ecdd19921faadf2d3f4ff763
|
|\ \ \
| |/ /
|/| /
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Add a wrapper around the PullParser to support stripping out databinding
parts.
Bug: http://b.android.com/187428
Change-Id: I88080d8f4108cb5ae27a137ad20c5dd7d516f3ea
|
|/
|
|
| |
Change-Id: Ic55b52840892fbf2a4258ba97ed31ca0283da8ed
|
|
|
|
|
|
|
|
|
|
| |
Usually scrollBy(0, 0) won't have any effect but when called on the
NumberPicker but, in some cases, it seems to cause an endless loop.
When called from layoutlib, this will hold the read lock causing all
operations trying to acquire the write lock to block forever.
Bug: http://b.android.com/182506
Change-Id: Ib25427d3f32d804d1c481d979795eee71fbdbc6d
|
|\
| |
| |
| |
| |
| |
| | |
eb26f5ce: LayoutLib: Fix typedArray caching.
* commit '7209945fd38d22078b2fd208abe0aa976c311dde':
LayoutLib: Fix typedArray caching.
|
| |\
| | |
| | |
| | |
| | | |
* commit 'eb54172719db60740a0b8dde6380db54d4006159':
LayoutLib: Fix typedArray caching.
|
| | |\
| | | |
| | | |
| | | |
| | | | |
* commit 'dd21212fa1a9c907d5d2f80f3de2413f6c14da7a':
LayoutLib: Fix typedArray caching.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The typedArray depends on the current context (more specifically, the
themes set on the context). The fact was ignored in the caching of the
typedArray and caused the android:theme attribute to be ignored in
certain cases.
Change-Id: If095580919474f12c0eb4e1f8fb7f076cf3c4ed0
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit '4299409775ffd5cb70a8970c15807f33fc8b08d4':
LayoutLib: Update golden test images. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Also update the generated classes from the MyApplication test project.
Change-Id: I97bce3737c0cb528a61fa652988a2edb09ec885d
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit '2b99b5da279a7cbf1f6412a8ac7d6bfdd82e26c6':
An ugly hack to render CalendarView. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is an ugly hack to switch the field
android.widget.SimpleMonthView.mDayFormatter from
java.text.SimpleDateFormat to icu's version of the same class. The hack
is only for the L version of the LayoutLib. It's done in a better way in
M and even better in N.
Change-Id: Id84a1d32040211c46b20cdaf3a77119676e748b6
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
[DO NOT MERGE]
* commit '7eb81868c338fc78139592ac81845c080f53b1c5':
LayoutLib: Fix true transparency in status bar. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Change-Id: Ieedf23cde9ab3e36c77501d30cc7e808e66a4782
(cherry picked from commit f9662c006c650c9f61f19a5e1ea4a76640eb85ca)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
String. [DO NOT MERGE]
* commit '9d6e87b67eb0d39d7584b12a3e843db68c8c9f3b':
Make getInt in BridgeTypedArray accept empty String. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The XML editor already warns about the empty strings in places where an
int value is required. There's no need to show another warning for it in
the rendering panel. Also, the rendering might have also failed when the
empty string is encountered. Try an continue the rendering, because no
rendering state is really bad.
Change-Id: I85106f37e4462f237e85f0b065b4ce8a4bfabf4d
(cherry picked from commit 0437cac76c24dc6cac7b530e6d80f789565550ec)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit 'c43506fc2dbe3fea6885e74ac8c67b91a0a644ff':
Fix layout mirroring. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Change-Id: I7db398aa2d11dac1210e84922138f78f0c23bb9b
(cherry picked from commit a9090705efcc44f015486944e5aeb926173a7968)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
[DO NOT MERGE]
* commit '918e62f1cb7e5802cfb7435dd606380fa5d3a278':
Fix typo: s/FullScreen/Fullscreen/ in LayoutLib. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Change-Id: Ia8d223ae01f08df945ab05615b07075b98a54a32
(cherry picked from commit 5a8f33f1b09b0311f1bbd1ec6b90db706edb5219)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit 'eb15670ccc46c688537cd99fa1af2e475a5fd2be':
Fix Matrix_Delegate.native_getValues() [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The bug manifested itself by not rendering the wifi icon in the status
bar.
Change-Id: I7debf3eef387965d774bf66e856812e67c8552a7
(cherry picked from commit 9f280a9301566c94a583cc45b6abea8a4488e33c)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
NOT MERGE]
* commit '42e53ecbc146c4b131961e1f1764fcf886204b07':
Revert to using AppTheme for LayoutLib tests. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Use AppTheme for all tests other than testExpand. AppTheme contains an
attribute needed by testArrayCheck. Also, since the AppTheme extends
Theme.Material.Light.DarkActionBar, other tests should be unaffected.
Also, update the golden image for the testArrayCheck.
Change-Id: Ib5f53f3b029c5aceef2b622e5ac63952d6b1972a
(cherry picked from commit 89a045c31f4f08bc0d9d533ef47f321e6423f656)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit '5078ad325b0da36fe798df1df428d12732548217':
Fix imports. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Also remove null checks on return value of ReflectionUtils.getMethod()
as the method always return non null.
Change-Id: Ib476302c2cf0504a0f54db4e795955ad10e5df3f
(cherry picked from commit 671b7f9b99316f7224c1213d6923d449a2de9b62)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit '4a2137639aba761dcf289f1e2cc2e48dd42e7a3f':
Fix theme namespace in tests. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The tests used framework theme (Material), but the ResourceResolver was
created with project theme. This caused tests to fail becasue of missing
resources.
Change-Id: Ia17ee19054f6689f85e3423e83c1f47a2cc4364f
(cherry picked from commit 4a6ee98d39ab2300b2cd17c60221e43bf4ade8e7)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit 'f988761c0acc02bb4b21b6357e418da7799f11e7':
Run setup for full tests only once. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Change-Id: Iee64dbd88d473b7be08581f26ccddf649aed8e56
(cherry picked from commit a12ec8f1e28cb5a8601bf606852f1d34d7c91996)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
NOT MERGE]
* commit 'e54dbc4ac74d110c4121932a22d04447a0e15b65':
LayoutLib: fix layout when nav bar is absent. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Change-Id: I0d3ee6fd5a4656156a630d3b298533ea13eb8415
(cherry picked from commit 6e8d8ad2b7cffed751b2a382ac7b761954767188)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
NOT MERGE]
* commit '147c0506d5425633f0d45e1489262d4e27a35921':
LayoutLib: Fix Status/Navigation Bar color. [DO NOT MERGE]
|