f87bd04235b47150d9891605d12b2113efbadf04 |
|
27-Jul-2017 |
Seigo Nonaka <nona@google.com> |
Revert "Update Typeface_Delegate following Change I2744db73" DO NOT MERGE This reverts commit 71d064e47d0139f17094c6f9023f853a722e4bfc. Change-Id: I25f45f89e74194ebf8dac81c9bdf2dd9e181aa62
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
71d064e47d0139f17094c6f9023f853a722e4bfc |
|
14-Jul-2017 |
Jerome Gaillard <jgaillard@google.com> |
Update Typeface_Delegate following Change I2744db73 Test: layoutlib tests Change-Id: I7a26cfb37ab26f92951747028c393ebba2c90b23
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
52d897c60cbca77282a3948ecedd55a55e4377df |
|
11-May-2017 |
Jerome Gaillard <jgaillard@google.com> |
Cherry-pick Change I86ef9794 to new layoutlib project Test: layoutlib tests Change-Id: Ib2d2d172d967f33ffca12ca0d255753f8fc1564b
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
65c08eb530a2cb6d1df6589ebd133d7cbdbdfad5 |
|
18-Apr-2017 |
Jerome Gaillard <jgaillard@google.com> |
Update layoutlib following Changes I7cf390d9 and I65e220ac Test: layoutlib tests Change-Id: I605a75d23e49d59a50362bbcf575561a613d4156
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
2838ee200c05ce1ba5c3f269ae7457ad798c183a |
|
29-Mar-2017 |
Seigo Nonaka <nona@google.com> |
Reorganize font enumeration API. This CL cleans up APIs around font variation settings. - Remove FontConfig and FontManager public API. - Remove FontManagerService from system service. - Extract inner class FontConfig.Axis as top-level class FontVariationAxis. This is used by Typeface.Builder public API to create new Typeface. - Introduce and expose FontVariationAxis utility functions from/to string. - Throws if the invalid font variation settings is passed. Test: android.text.cts.FontVariationAxisTest passes Test: android.graphics.cts.TypefaceTest passes Test: android.graphics.cts.PaintTest passes Change-Id: I9ccafe7a53935960566243e2856e166878ca59ae
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
4037b26ca73ffc2ae50c96aec4d9193661e9541b |
|
29-Mar-2017 |
Diego Perez <diegoperez@google.com> |
Fix fonts following 455f1bfc05 Test: Fixes broken tests Change-Id: I62d001c6d0ed84fe1d1d9865b1027be0e1cad8b4 (cherry picked from commit de5a95d42c9e5f4fbcf0064ae8eaa33ab5747637)
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
7f68509315f65e451a6e037ab1d23d6157b5a014 |
|
21-Mar-2017 |
Diego Perez <diegoperez@google.com> |
Fix build following change 0763650 Test: N/A Change-Id: Ie376cb34f0a6ea1f33fab3871abb9db43c5fcf62
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
0cd6c5b6bcaea7216a444a2729b728846878922e |
|
02-Feb-2017 |
Diego Perez <diegoperez@google.com> |
Update native delegates After changes 9ff994d98846, 6e3658a63843 and 18e9f9f37783 Test: Existing layoutlib tests Change-Id: I8e39f26ccb0a8cb73a724f16734e66cf95c08656
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
a3aca31b5d20f73db6b887f1130c973c1d50dc89 |
|
07-Jan-2017 |
Seigo Nonaka <nona@google.com> |
Follow minikin::FontFamily constructor signature change. This is 2nd attempt of Id10ca97f6f6f5bbe4999c1ad2736423a204d6e87. The root caus of crash is due touching null pointer in nUnrefFamily. After above change, native object may not be created on error case. In that case, nUnrefFamily can not be called. In addition to this issue there is also memory leak on error case. This fixes it by introducing abortCreation method. Also this contains fix of layout lib breakage done by jgaillard@. Originally submitted by Ic8872a43993bcb0a157c5e3f0ce423af9b47f606 Here is original commit message of reverted change. minikin::FontFamily no longer has addFont function, instead it accept vector of Fonts in its constructor. To follow this signature change, holding minikin::Font instance in native and build minikin::FontFamily instance in FontFamily.freeze() method. Bug: 34042446 Bug: 28119474 Bug: 34378805 Test: hwui test has passed Test: m layoutlib layoutlib-tests Change-Id: Ic34ebaa8191273d4c9f49c43124f15a1da5f7b78
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
5be11b8d29721da5325b972a4a8fc683d0b5d168 |
|
10-Jan-2017 |
Clara Bayarri <clarabayarri@google.com> |
Expose fonts.xml via public API with a service This change creates a new FontManagerService, in charge of providing font management data. It exposes a public API to retrieve the information in fonts.xml without accessing it directly. To do this, it also refactors FontListParser's internal classes into a new public FontConfig class holding all the font data. getSystemFonts() returns all the available information in fonts.xml as well as file descriptors for all the fonts. This allows us to share the memory consumed by these files between all clients. Bug: 34190490 Test: See attached CTS change in topic Change-Id: I0e922f8bcc9a197a1988d04071eb485328d66fb7
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
1e723cf2ed8acbab9c75f274bf95cad18132b8ae |
|
20-Jan-2017 |
Siyamed Sinir <siyamed@google.com> |
Revert "Update layoutlib following Change Id10ca97f on FontFamily" Reason: The changes that this CL depends on, had to be reverted. This reverts commit 7a1cab2c9606ca5aab0f030c0022b864d5c05888. Bug: 34378805 Change-Id: I6bd05082060199c1907743b9f72d4c2438371aa6
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
e838cb3e092bcd405a935bf2ecab590062b26721 |
|
12-Jan-2017 |
Jerome Gaillard <jgaillard@google.com> |
Update layoutlib following Change Id10ca97f on FontFamily Test: layoutlib tests Change-Id: Ic8872a43993bcb0a157c5e3f0ce423af9b47f606
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
fbe158f5e1f77cea2a335834a1c91fea1c4680aa |
|
07-Oct-2015 |
Deepanshu Gupta <deepanshu@google.com> |
LayoutLib fixes for N Moves LayoutLib to Java 8 - YAY! Fix delegates Change-Id: I098996e43e330e995d33f12df1c16355bbc02f0f
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
442aee6bc1abfb143dcfa1ba60d696e576d066c4 |
|
22-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
LayoutLib: Change nullity annotations. Switch from using tools nullity annotations (com.android.annotations) to android framework annotations (android.annotation). A new sdk-common prebuilt is required for LayoutLib tests. The new sdk-common requires an updated tools-common. The updated tools-common doesn't have nullity annotations. So, instead of adding the annotation dependency, just reuse the platform ones. This also paves the way to include other platform annotations like IdRes etc. Change-Id: I87b8f767d3681d914abe7d1329e26a87f49f50a7
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
18d98f605c3de764025c343acc49c8a096195907 |
|
20-Oct-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Check Bridge init before disposing. In some cases ADT may dispose the Bridge even before init is called on it. This caused an NPE. Fixed this by checking for the initialization before disposing resources. Bug: http://b.android.com/77726 Change-Id: I741d6ea3595a3b7cb816abd0417f23aecca6370e
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
e0f70320462c20900d937ff69a3ef9b0949a2eff |
|
28-Aug-2014 |
Deepanshu Gupta <deepanshu@google.com> |
LayoutLib: support font weights. Also fixes a shader delegate method. Change-Id: I86be80ab55d04760084d5bf39235f2ee4de7be23
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
382256f48d53d2e239bf7435049dd01a4e18cfb0 |
|
09-Aug-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Don't show warnings for fonts not bundled. The extended font set, used on Nexus 5, new Nexus 7 etc., uses OpenType CFF fonts which don't work well with Java. These fonts are deliberately excluded from the SDK build. This change skips the warnings for the missing fonts. However, we still show warnings for other fonts that failed to load. If the set of fonts bundled with the SDK changes, we will need to update the list of missing fonts in FontFamily_Delegate.java. Change-Id: I3197b5350d048daa09512e8024188909179b1799
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
eeb44a29846ac0d36a1fad1b6869e932d1dc01ce |
|
10-Jul-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Update delegates Change-Id: Icd93c31b4e8c8ee5ea242fb8295578937f48ff2a
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
39362b4d76d531ada3b6937aaf1e3cb440fb532a |
|
01-Jul-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Support Typeface.createFromFile() 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
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
8916b210243a81a16e0184c432ab3230b9d05a8d |
|
12-Jun-2014 |
Deepanshu Gupta <deepanshu@google.com> |
LayoutLib: Better support for compact/elegant fonts. Change-Id: I67439924bc6323490ea0c7d7864985b400906f8c
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
5a6b3abbea80a776409fc45c1db0c3e3e557e99f |
|
31-May-2014 |
Deepanshu Gupta <deepanshu@google.com> |
LayoutLib: Font variants Update to support font variants properly. Change-Id: Iabe37babd9ddce80a9ba9eca7e0e5a0ffb090646
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
90c977e718c541319f0f8b7b572de09c8ee8e32f |
|
23-May-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Layoutlib: Fix FontFamily_Delegate use after unref FontFamily_Delegate was being reused after the nUnref call. The issue is fixed by storing the reference to the FontFamily_Delegate directly in the Typeface_Delegate rather than storing the native pointer. Change-Id: I0db724a83c4be3d7b64ccba0989cd64129f2a785
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
017c06241e22e290406ae53402f96e3e2a9597b8 |
|
20-May-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Layoutlib fixes for L [DO NOT MERGE] This adds the new delegates that were missing. This starts the work on changes related to Minikin Fonts. There are some changes related to TypedArray that still need to be fixed. Change-Id: Ic2397b64aa3f1f48926e849b14689c47d9ee7f8c (cherry picked from commit 7ca3612094270183243938e79337c84effea7ad0)
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
98efa64cc15194c041888a193f5dc1608b4a6df3 |
|
19-Feb-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Set default text style in layoutlib as NORMAL If a style doesn't specify text style (normal/bold/italic/bold-italic) then default to normal instead of throwing an error. Bug: http://b.android.com/61358 Change-Id: I0138c73807a5ff6e4d938a99ece3044333110aa1
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
ec4118922fa844ef31b73d16adc76f4da4c6c8e6 |
|
27-Jan-2014 |
Narayan Kamath <narayan@google.com> |
Track 64bit changes to android/graphics. All pointers are now 64bits wide, so should be represented as java longs and not ints. Also changed DelegateManager and SparseWeakArray to reflect the new world order. Change-Id: Ic32b6b53818dbae9b949f03004c4fb6dae26cdbe
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|
ab775ecdd189b32e35b0d3f4a821502f88b03a4b |
|
24-Jan-2014 |
Adam Lesinski <adamlesinski@google.com> |
Revert "Move frameworks/base/tools/ to frameworks/tools/" This reverts commit 9f6a119c8aa276432ece4fe2118bd8a3c9b1067e.
/frameworks/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java
|