diff options
author | Xavier Ducrohet <xav@android.com> | 2011-08-11 18:20:09 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-08-11 18:20:09 -0700 |
commit | c88ba95921444946443794cbaca5911f1a924720 (patch) | |
tree | a20105b8b3fe6b87efcfb41e3f4e57db6314a33e /graphics | |
parent | ba3711ccd3a8d9e77e01e8eb00e4ada9e25f645c (diff) | |
parent | 7f9f99ea11051614a7727dfb9f9578b518e76e3c (diff) | |
download | frameworks_base-c88ba95921444946443794cbaca5911f1a924720.zip frameworks_base-c88ba95921444946443794cbaca5911f1a924720.tar.gz frameworks_base-c88ba95921444946443794cbaca5911f1a924720.tar.bz2 |
Merge "Make some methods/fields package private so that layoutlib can access them."
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/Bitmap.java | 2 | ||||
-rw-r--r-- | graphics/java/android/graphics/Paint.java | 10 | ||||
-rw-r--r-- | graphics/java/android/graphics/Path.java | 2 | ||||
-rw-r--r-- | graphics/java/android/graphics/Typeface.java | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/graphics/java/android/graphics/Bitmap.java b/graphics/java/android/graphics/Bitmap.java index 3fc6463..79acd55 100644 --- a/graphics/java/android/graphics/Bitmap.java +++ b/graphics/java/android/graphics/Bitmap.java @@ -93,7 +93,7 @@ public final class Bitmap implements Parcelable { This can be called from JNI code. */ - private Bitmap(int nativeBitmap, byte[] buffer, boolean isMutable, byte[] ninePatchChunk, + /*package*/ Bitmap(int nativeBitmap, byte[] buffer, boolean isMutable, byte[] ninePatchChunk, int density) { if (nativeBitmap == 0) { throw new RuntimeException("internal error: native bitmap is 0"); diff --git a/graphics/java/android/graphics/Paint.java b/graphics/java/android/graphics/Paint.java index fe4b082..828bafd 100644 --- a/graphics/java/android/graphics/Paint.java +++ b/graphics/java/android/graphics/Paint.java @@ -70,16 +70,16 @@ public class Paint { */ public int mBidiFlags = BIDI_DEFAULT_LTR; - private static final Style[] sStyleArray = { + static final Style[] sStyleArray = { Style.FILL, Style.STROKE, Style.FILL_AND_STROKE }; - private static final Cap[] sCapArray = { + static final Cap[] sCapArray = { Cap.BUTT, Cap.ROUND, Cap.SQUARE }; - private static final Join[] sJoinArray = { + static final Join[] sJoinArray = { Join.MITER, Join.ROUND, Join.BEVEL }; - private static final Align[] sAlignArray = { + static final Align[] sAlignArray = { Align.LEFT, Align.CENTER, Align.RIGHT }; @@ -103,7 +103,7 @@ public class Paint { public static final int DEV_KERN_TEXT_FLAG = 0x100; // we use this when we first create a paint - private static final int DEFAULT_PAINT_FLAGS = DEV_KERN_TEXT_FLAG; + static final int DEFAULT_PAINT_FLAGS = DEV_KERN_TEXT_FLAG; /** * Bidi flag to set LTR paragraph direction. diff --git a/graphics/java/android/graphics/Path.java b/graphics/java/android/graphics/Path.java index c5d7500..b4f1e84 100644 --- a/graphics/java/android/graphics/Path.java +++ b/graphics/java/android/graphics/Path.java @@ -115,7 +115,7 @@ public class Path { } // these must be in the same order as their native values - private static final FillType[] sFillTypeArray = { + static final FillType[] sFillTypeArray = { FillType.WINDING, FillType.EVEN_ODD, FillType.INVERSE_WINDING, diff --git a/graphics/java/android/graphics/Typeface.java b/graphics/java/android/graphics/Typeface.java index bc92d3a..ed6fa08 100644 --- a/graphics/java/android/graphics/Typeface.java +++ b/graphics/java/android/graphics/Typeface.java @@ -43,7 +43,7 @@ public class Typeface { /** The NORMAL style of the default monospace typeface. */ public static final Typeface MONOSPACE; - private static Typeface[] sDefaults; + /* package */ static Typeface[] sDefaults; /* package */ int native_instance; |