Bill Yi
2528fcdfbd
Merge commit '26ada7e78993241d702a908eae93d174cbb3c8b3' into HEAD
...
Change-Id: Ifc45930160cf01ee78ecfbfdc48697055f82e0a7
2016-02-17 11:38:55 -08:00
Deepanshu Gupta
4f3d0c6caa
Remove GregorianCalendar hack
...
Bug: http://b.android.com/199424
Change-Id: I589d153e1f57b6302c6fe3c031c5c63e33ad9996
2016-01-22 11:33:53 -08:00
Alex Klyubin
4a06b7ea7e
Merge "[1/3] Remove unnecessary throws statement in ServiceManager"
...
am: d1240219aa
* commit 'd1240219aadedc867b50158c67d1737a27fa7c6f':
[1/3] Remove unnecessary throws statement in ServiceManager
2016-01-07 19:18:01 +00:00
Umair Khan
9ccebbfc37
[1/3] Remove unnecessary throws statement in ServiceManager
...
The exception is already caught by the try-catch block.
Change-Id: I0c10fe51d12a10cbc02a25c719d03a4ba6497767
Signed-off-by: Umair Khan <omerjerk@gmail.com >
2016-01-07 15:08:27 +05:30
Deepanshu Gupta
adca23bb4c
Merge "Revert "Revert "Update StaticLayout_Delegate to use new nLoadHyphenator""" into mnc-ub-dev am: 35f7562495 am: 2d887558df
...
am: 0627cd0c40
* commit '0627cd0c404838a0251ee359ed75041f430fa83b':
Revert "Revert "Update StaticLayout_Delegate to use new nLoadHyphenator""
2015-11-20 01:55:01 +00:00
Deepanshu Gupta
138a901db4
Merge "Revert "Update StaticLayout_Delegate to use new nLoadHyphenator"" into mnc-ub-dev am: 8c971ae5a0 am: 867c370465
...
am: 4d9df358ec
* commit '4d9df358ec847262872c09962105537be350f8fd':
Revert "Update StaticLayout_Delegate to use new nLoadHyphenator"
2015-11-20 01:53:43 +00:00
Deepanshu Gupta
35f7562495
Merge "Revert "Revert "Update StaticLayout_Delegate to use new nLoadHyphenator""" into mnc-ub-dev
2015-11-19 20:49:55 +00:00
Deepanshu Gupta
66098964e2
Revert "Revert "Update StaticLayout_Delegate to use new nLoadHyphenator""
...
This reverts commit 65a834980c .
The original revert was only for cherry-pick to release
branch.
Change-Id: Ib78f9a06ce49681c767f65b262058f18a670e38e
2015-11-19 20:49:35 +00:00
Deepanshu Gupta
8c971ae5a0
Merge "Revert "Update StaticLayout_Delegate to use new nLoadHyphenator"" into mnc-ub-dev
2015-11-19 20:48:52 +00:00
Deepanshu Gupta
65a834980c
Revert "Update StaticLayout_Delegate to use new nLoadHyphenator"
...
This reverts commit 631c2ffd6f .
The revert is only for cherry-pick back to mnc-sdk-release.
Change-Id: I42cb392528b7890b58d689c732f90c3b9ba5f74c
2015-11-19 20:47:26 +00:00
Deepanshu Gupta
377cc4887d
Revert "LayoutLib: Fix true transparency in status bar."
...
am: 4ea74d2960
* commit '4ea74d2960688db6aa13452765dd5f2d07a40189':
Revert "LayoutLib: Fix true transparency in status bar."
2015-11-17 20:50:07 +00:00
Deepanshu Gupta
dd97829cf2
Merge "AppCompatActionBar: use findClass to test presence" into mnc-ub-dev
...
am: 42a893b50b
* commit '42a893b50b2763d7a2a3da4006c9433afaf86cfd':
AppCompatActionBar: use findClass to test presence
2015-11-17 20:32:31 +00:00
Deepanshu Gupta
4ea74d2960
Revert "LayoutLib: Fix true transparency in status bar."
...
This reverts commit 4eb298a941 .
Even though this is techinically closer to what the framework does, the
fix is not complete. As a result, it looks worse when using AppCompat
themes. Revert the change for the release.
Change-Id: I67c1002ea17dee7234d78e2d13aab876467bd70f
2015-11-17 12:25:25 -08:00
Deepanshu Gupta
99b54b364b
AppCompatActionBar: use findClass to test presence
...
To test the presence of WindowDecorActionBar class, use findClass()
instead of loadClass() which logs warnings.
Change-Id: Ice8a5a6badd764c7f75b5a64a07c48f0a7cfef98
2015-11-17 11:34:32 -08:00
Deepanshu Gupta
ce400cd75e
Merge "WindowDecorActionBar name change fix." into mnc-ub-dev
...
am: 62302bd72a
* commit '62302bd72aaa6b0f934257447e8dcd636799180e':
WindowDecorActionBar name change fix.
2015-11-17 01:17:27 +00:00
Deepanshu Gupta
2b0551175d
WindowDecorActionBar name change fix.
...
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
2015-11-16 15:46:12 -08:00
Deepanshu Gupta
e0c9dd1b4f
Improve error reporting on Exceptions in fw views.
...
am: d30c141a2d
* commit 'd30c141a2dee881fd83e1415a50161def1acf227':
Improve error reporting on Exceptions in fw views.
2015-11-12 22:36:00 +00:00
Deepanshu Gupta
d30c141a2d
Improve error reporting on Exceptions in fw views.
...
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
2015-11-12 13:56:14 -08:00
Deepanshu Gupta
ceb2b54909
Merge "Fix Switch colors" into mnc-ub-dev
...
am: 71093465ab
* commit '71093465abbdf887c705b40fb0cb8a2919894c4b':
Fix Switch colors
2015-11-05 17:24:38 +00:00
Deepanshu Gupta
c9b8f95c99
Fix Switch colors
...
The conversion of the PorterDuff mode from int to enum was incorrect
resulting in the wrong PorterDuff Mode being used.
Change-Id: I7607d505b6e4382e6101869971154f6a77db279c
2015-11-05 09:20:07 -08:00
Diego Perez
7cdbfaf459
Merge "Remove auto-boxing during the inflate" into mnc-ub-dev
...
am: 1c442aca0a
* commit '1c442aca0a1b054e3aa0a40ba89c08b39099be2f':
Remove auto-boxing during the inflate
2015-11-04 14:35:39 +00:00
Diego Perez
724af9ce6f
Merge "Update StaticLayout_Delegate to use new nLoadHyphenator" into mnc-ub-dev
...
am: 7dda46e740
* commit '7dda46e740250d753bb9d01e129e91695ab8cfe2':
Update StaticLayout_Delegate to use new nLoadHyphenator
2015-11-04 14:34:19 +00:00
Diego Perez
1c442aca0a
Merge "Remove auto-boxing during the inflate" into mnc-ub-dev
2015-11-04 14:26:15 +00:00
Diego Perez
631c2ffd6f
Update StaticLayout_Delegate to use new nLoadHyphenator
...
Small fix to update call parameters
Change-Id: I4322aa212493ec2970ae17ec1918b9b7e2f8e93a
2015-11-04 11:35:34 +00:00
Diego Perez
91fa3ba4cc
Remove auto-boxing during the inflate
...
Change-Id: I3f9ba5d78363f878fa0c58ca8cbf736bd43fe1c0
2015-11-03 14:59:23 +00:00
Deepanshu Gupta
467f6a4f0d
am 2aa403fe: Merge "LayoutLib: Fix android:dependency for preferences." into mnc-ub-dev
...
* commit '2aa403fe0c86291c6fd65317e93a72549e6e10de':
LayoutLib: Fix android:dependency for preferences.
2015-10-09 22:04:16 +00:00
Deepanshu Gupta
2f01cf2ea6
LayoutLib: Fix android:dependency for preferences.
...
Bug: http://b.android.com/189314
Change-Id: I229632d11a2529e865f3f2e8eca3a78b47ad462c
2015-10-09 14:54:19 -07:00
Deepanshu Gupta
d7b7e93a47
am 9969f858: LayoutLib: Fix ring rendering.
...
* commit '9969f858c34ba7e35a977c819f2d1e24de586990':
LayoutLib: Fix ring rendering.
2015-10-07 21:23:43 +00:00
Deepanshu Gupta
9969f858c3
LayoutLib: Fix ring rendering.
...
Bug: http://b.android.com/65503
Change-Id: I6ed901703cffee345f3083ea3ddeb52a28f4ac64
2015-10-07 12:46:15 -07:00
Deepanshu Gupta
24ca6320b8
am 8db8bc63: Merge "Skip drawing empty shapes to keep Apple JRE happy." into mnc-ub-dev
...
* commit '8db8bc63624bbd1d803e02571fa865f1f7fa584c':
Skip drawing empty shapes to keep Apple JRE happy.
2015-10-07 17:17:02 +00:00
Deepanshu Gupta
8db8bc6362
Merge "Skip drawing empty shapes to keep Apple JRE happy." into mnc-ub-dev
2015-10-07 17:08:30 +00:00
Deepanshu Gupta
4064e118e2
Skip drawing empty shapes to keep Apple JRE happy.
...
Bug: http://b.android.com/178278
Change-Id: I693912678ed79e9c6690560b618a605da5a807c6
2015-10-07 09:28:31 -07:00
Diego Perez
4a36d98259
am 081cebf5: Implement Path.approximate and add PathMeasure support
...
* commit '081cebf52b19e848c07fb781b35fa1f96695c311':
Implement Path.approximate and add PathMeasure support
2015-10-07 16:09:49 +00:00
Diego Perez
081cebf52b
Implement Path.approximate and add PathMeasure support
...
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
2015-10-07 17:04:26 +01:00
Deepanshu Gupta
034d10bf6c
am e5d3baf2: LayoutLib: Fix bitmap scaling.
...
* commit 'e5d3baf22f046d0a579128fc258f6b92e700ca02':
LayoutLib: Fix bitmap scaling.
2015-10-05 23:22:18 +00:00
Deepanshu Gupta
e5d3baf22f
LayoutLib: Fix bitmap scaling.
...
Bug: http://b.android.com/187939
Change-Id: I20bf61746e8af3bb87ba9cfcc9bf58854ac7c5be
2015-10-05 16:08:54 -07:00
Deepanshu Gupta
21af84d3e4
am 7a9f771f: Merge "Don\'t break error string (easier grepping)" into mnc-ub-dev
...
* commit '7a9f771fe010c697c6a9fb143f0a26778d440c8c':
Don't break error string (easier grepping)
2015-09-30 22:22:09 +00:00
Deepanshu Gupta
7a9f771fe0
Merge "Don't break error string (easier grepping)" into mnc-ub-dev
2015-09-30 22:16:22 +00:00
Deepanshu Gupta
1bd276f6f7
Don't break error string (easier grepping)
...
Change-Id: If52097ba90481644707dd0323ec63ca3ddf0986b
2015-09-30 12:49:42 -07:00
Diego Perez
6aeedbc761
am b9c4cccf: Merge "Reduce the amount of allocations on Paint_Delegate" into mnc-ub-dev
...
* commit 'b9c4cccf672d725e75d393c492c917ba726c365c':
Reduce the amount of allocations on Paint_Delegate
2015-09-30 09:34:45 +00:00
Diego Perez
b9c4cccf67
Merge "Reduce the amount of allocations on Paint_Delegate" into mnc-ub-dev
2015-09-30 09:29:40 +00:00
Diego Perez
6dac0d4b7c
Reduce the amount of allocations on Paint_Delegate
...
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
2015-09-30 09:10:37 +01:00
Deepanshu Gupta
3dde44935d
am 4e27221d: Merge "Support databinding in listitem layouts." into mnc-ub-dev
...
* commit '4e27221d49151ba91af59029659e666fa756b645':
Support databinding in listitem layouts.
2015-09-30 00:51:02 +00:00
Deepanshu Gupta
4e27221d49
Merge "Support databinding in listitem layouts." into mnc-ub-dev
2015-09-30 00:45:52 +00:00
Deepanshu Gupta
e91096c03d
Support databinding in listitem layouts.
...
Add a wrapper around the PullParser to support stripping out databinding
parts.
Bug: http://b.android.com/187428
Change-Id: I88080d8f4108cb5ae27a137ad20c5dd7d516f3ea
2015-09-29 17:07:53 -07:00
Deepanshu Gupta
e5346dca47
am 51a05d74: Merge "Fix TypedArray.getTextArray()" into mnc-ub-dev
...
* commit '51a05d74a81aeb334ef095fc6f1aa98e5163763f':
Fix TypedArray.getTextArray()
2015-09-23 23:17:22 +00:00
Deepanshu Gupta
6649ca3711
Fix TypedArray.getTextArray()
...
Change-Id: Ic55b52840892fbf2a4258ba97ed31ca0283da8ed
2015-09-23 16:03:02 -07:00
Diego Perez
361523281c
am 0e766de7: Avoid calling scrollBy(0,0) on render
...
* commit '0e766de7c52d7e375e04676c93a872cb2d6eea63':
Avoid calling scrollBy(0,0) on render
2015-09-22 16:56:35 +00:00
Diego Perez
0e766de7c5
Avoid calling scrollBy(0,0) on render
...
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
2015-09-22 16:44:37 +00:00
Deepanshu Gupta
b3382661eb
am ee1eed7e: am 7209945f: am 0e150a8b: am 0c5fd7e3: am eb541727: am dd21212f: am eb26f5ce: LayoutLib: Fix typedArray caching.
...
* commit 'ee1eed7e711228008dc91a7da800be6527539e87':
LayoutLib: Fix typedArray caching.
2015-09-03 04:24:04 +00:00