Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a2eaa79 authored by Haoyu Zhang's avatar Haoyu Zhang
Browse files

Helper methods for TextBoundsInfo

Add some helper methods to TextBoundsInfo to easily map a position
to given index. They are useful if IME doesn't want to handle BiDi text
by itself.

Bug: 239843501
Test: atest TextBoundsInfoMethodTest
Change-Id: Iec9f32e785cf97b4503543a1055b903db3116596
parent 417f0a0b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -54539,6 +54539,8 @@ package android.view.inputmethod {
    method @NonNull public android.text.SegmentFinder getGraphemeSegmentFinder();
    method @NonNull public android.text.SegmentFinder getLineSegmentFinder();
    method @NonNull public android.graphics.Matrix getMatrix();
    method public int getOffsetForPosition(float, float);
    method @Nullable public int[] getRangeForRect(@NonNull android.graphics.RectF, @NonNull android.text.SegmentFinder, @NonNull android.text.Layout.TextInclusionStrategy);
    method public int getStart();
    method @NonNull public android.text.SegmentFinder getWordSegmentFinder();
    method public void writeToParcel(@NonNull android.os.Parcel, int);
+549 −0

File changed.

Preview size limit exceeded, changes collapsed.