diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2014-03-14 21:16:22 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-03-14 21:16:22 +0000 |
commit | a72da3aec6419a3ae5edaec91f1d07f63f0bce7a (patch) | |
tree | 2b71dc7b5aef6db168af12750eb5d72fa94cfd7d /tools | |
parent | 9b18001ab53c8c78aee0647983adf3ad8a1ee97c (diff) | |
parent | 103d40960daa0420995aa12881bef33892a0a2ab (diff) | |
download | frameworks_base-a72da3aec6419a3ae5edaec91f1d07f63f0bce7a.zip frameworks_base-a72da3aec6419a3ae5edaec91f1d07f63f0bce7a.tar.gz frameworks_base-a72da3aec6419a3ae5edaec91f1d07f63f0bce7a.tar.bz2 |
Merge "Add native method delegates to layoutlib"
Diffstat (limited to 'tools')
-rw-r--r-- | tools/layoutlib/bridge/src/android/graphics/Path_Delegate.java | 7 | ||||
-rw-r--r-- | tools/layoutlib/bridge/src/libcore/icu/ICU_Delegate.java | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tools/layoutlib/bridge/src/android/graphics/Path_Delegate.java b/tools/layoutlib/bridge/src/android/graphics/Path_Delegate.java index 6666385..b235408 100644 --- a/tools/layoutlib/bridge/src/android/graphics/Path_Delegate.java +++ b/tools/layoutlib/bridge/src/android/graphics/Path_Delegate.java @@ -142,6 +142,13 @@ public final class Path_Delegate { } @LayoutlibDelegate + /*package*/ static boolean native_isConvex(long nPath) { + Bridge.getLog().fidelityWarning(LayoutLog.TAG_UNSUPPORTED, + "Path.isConvex is not supported.", null, null); + return true; + } + + @LayoutlibDelegate /*package*/ static int native_getFillType(long nPath) { Path_Delegate pathDelegate = sManager.getDelegate(nPath); if (pathDelegate == null) { diff --git a/tools/layoutlib/bridge/src/libcore/icu/ICU_Delegate.java b/tools/layoutlib/bridge/src/libcore/icu/ICU_Delegate.java index 998b08b..b16b4aa 100644 --- a/tools/layoutlib/bridge/src/libcore/icu/ICU_Delegate.java +++ b/tools/layoutlib/bridge/src/libcore/icu/ICU_Delegate.java @@ -18,6 +18,7 @@ package libcore.icu; import com.android.tools.layoutlib.annotations.LayoutlibDelegate; import com.ibm.icu.text.DateTimePatternGenerator; +import com.ibm.icu.util.Currency; import com.ibm.icu.util.ULocale; import java.util.Locale; @@ -117,6 +118,11 @@ public class ICU_Delegate { } @LayoutlibDelegate + /*package*/ static int getCurrencyNumericCode(String currencyCode) { + return Currency.getInstance(currencyCode).getNumericCode(); + } + + @LayoutlibDelegate /*package*/ static String getCurrencySymbol(String locale, String currencyCode) { return ""; } |