History log of /frameworks/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
476e582d2ffdf25102d4c55f8c242baa3d21d37f 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/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
d51834bdfad0cd3142ac464ab3a3b0db14f884c3 28-Jan-2015 Deepanshu Gupta <deepanshu@google.com> Add Asset management support for fonts.

Change-Id: I10ca67dcffe244667d4ae0bda65dbc1aa6691d50
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
17a6170c62e6f74f2881623a9c16f0b6fea54721 21-Nov-2014 Deepanshu Gupta <deepanshu@google.com> Fix AnalogClock rendering

1. Change calls to java.lang.System.log* since they don't exist on the
host.
2. Clean up method rewrite mechanism in ReplaceMethodCallsAdapter.
3. Stub out creation of uninitialized GregorianCalendar.
4. Memory map the time zone data base file and provide a custom
implementation of BufferIterator for use by ZoneInfoDB
5. Delete unused Time_Delegate

Also fixed a comment in BridgeAssetManager and an error message in
FontFamily_Delegate.

Bug: http://b.android.com/79160
Change-Id: Iae5ef65678f0e6c7c5af520c45bd15980ce3fa55
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
b69ec7708b61535355d278ac0ea8f9a61540d1fb 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/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
145bc2d067faa3fb49b71e9e8c8c70b40564061a 28-Aug-2014 Deepanshu Gupta <deepanshu@google.com> LayoutLib: support font weights.

Also fixes a shader delegate method.

Change-Id: I86be80ab55d04760084d5bf39235f2ee4de7be23
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
0e4be2540984235a0a7b84ea0466ef3c92d27b07 12-Aug-2014 Deepanshu Gupta <deepanshu@google.com> Whitelist fonts instead of blacklist.

A list of all fonts bundled with the SDK is generated. Load this file to
know which fonts are missing from the SDK.

Change-Id: I1554f1baec842ccdde3b21a93008437e9bac9353
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
e644ff8d92ba040d11636be0fb6c433b52bcc6c2 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/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
b0d767dcf17dd393646b8fc3e8c9f46dfe12e230 04-Aug-2014 Deepanshu Gupta <deepanshu@google.com> Skip loading otf fonts on Java 6

Change-Id: I9668b84812e9be333d10603657dd911024fc292d
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
3c937cf5c730519e750cdee4d5fa61e2a593e33a 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/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
ad69aee5ed503d9592c10a0f6d1a5b617d99e6c5 31-May-2014 Deepanshu Gupta <deepanshu@google.com> LayoutLib: Font variants

Update to support font variants properly.

Change-Id: Iabe37babd9ddce80a9ba9eca7e0e5a0ffb090646
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
9113968f9570b0c8ada2dec34fa6cf893da7c022 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/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
baef8c1ffe5c900fb0da9512654bf249b5fc9269 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/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java