diff options
| author | Seigo Nonaka <nona@google.com> | 2018-04-02 23:25:38 -0700 |
|---|---|---|
| committer | Seigo Nonaka <nona@google.com> | 2018-04-04 18:25:12 +0000 |
| commit | fb0abe1feb2cadcee2a3edb2028e1da04bb8a8d5 (patch) | |
| tree | da29e520ba382f9eda4bef0d874faca223a39560 /core/java/android/text/MeasuredParagraph.java | |
| parent | 3e57c9f52573fdf15414fdda50bd988776e8ea3d (diff) | |
Update JNI interface of GetBounds in PrecomputedText
Bug: 77495049
Test: atest CtsWidgetTestCases:EditTextTest
CtsWidgetTestCases:TextViewFadingEdgeTest
FrameworksCoreTests:TextViewFallbackLineSpacingTest
FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
CtsTextTestCases FrameworksCoreTests:android.text
CtsWidgetTestCases:TextViewPrecomputedTextTest
Change-Id: I54a70a91f6fba90720b702b52ed6ad430e17c87d
Diffstat (limited to 'core/java/android/text/MeasuredParagraph.java')
| -rw-r--r-- | core/java/android/text/MeasuredParagraph.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/java/android/text/MeasuredParagraph.java b/core/java/android/text/MeasuredParagraph.java index 96edfa31f541..c2c3182c2abd 100644 --- a/core/java/android/text/MeasuredParagraph.java +++ b/core/java/android/text/MeasuredParagraph.java @@ -303,10 +303,9 @@ public class MeasuredParagraph { * * This is available only if the MeasuredParagraph is computed with buildForStaticLayout. */ - public void getBounds(@NonNull Paint paint, @IntRange(from = 0) int start, - @IntRange(from = 0) int end, @NonNull Rect bounds) { - nGetBounds(mNativePtr, mCopiedBuffer, paint.getNativeInstance(), start, end, - paint.getBidiFlags(), bounds); + public void getBounds(@IntRange(from = 0) int start, @IntRange(from = 0) int end, + @NonNull Rect bounds) { + nGetBounds(mNativePtr, mCopiedBuffer, start, end, bounds); } /** @@ -743,6 +742,6 @@ public class MeasuredParagraph { @CriticalNative private static native int nGetMemoryUsage(/* Non Zero */ long nativePtr); - private static native void nGetBounds(long nativePtr, char[] buf, long paintPtr, int start, - int end, int bidiFlag, Rect rect); + private static native void nGetBounds(long nativePtr, char[] buf, int start, int end, + Rect rect); } |
