Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -42950,6 +42950,7 @@ package android.view.inputmethod { field public int initialSelStart; field public int inputType; field public java.lang.CharSequence label; field public android.util.LocaleList locales; field public java.lang.String packageName; field public java.lang.String privateImeOptions; } api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -45279,6 +45279,7 @@ package android.view.inputmethod { field public int initialSelStart; field public int inputType; field public java.lang.CharSequence label; field public android.util.LocaleList locales; field public java.lang.String packageName; field public java.lang.String privateImeOptions; } api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -42952,6 +42952,7 @@ package android.view.inputmethod { field public int initialSelStart; field public int inputType; field public java.lang.CharSequence label; field public android.util.LocaleList locales; field public java.lang.String packageName; field public java.lang.String privateImeOptions; } core/java/android/view/inputmethod/EditorInfo.java +20 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import android.os.Parcel; import android.os.Parcelable; import android.text.InputType; import android.text.TextUtils; import android.util.LocaleList; import android.util.Printer; /** Loading Loading @@ -339,6 +340,22 @@ public class EditorInfo implements InputType, Parcelable { */ public Bundle extras; /** * Additional context information that tells what languages are expected by the user. * * <p><strong>IME authors:</strong> Possible use cases for IME developers would be:</p> * <ul> * <li>Automatically switching keyboard layout.</li> * <li>Changing language model for better typing experience.</li> * </ul> * * <p><strong>Editor authors:</strong> Providing this context information can help IMEs to * improve text input experience. For example, chat applications can remember what language is * used in the last conversation for each chat session, and put the last used language at the * top of {@link #locales}.</p> */ public LocaleList locales = LocaleList.getEmptyLocaleList(); /** * Ensure that the data in this EditorInfo is compatible with an application * that was developed against the given target API version. This can Loading Loading @@ -393,6 +410,7 @@ public class EditorInfo implements InputType, Parcelable { + " fieldId=" + fieldId + " fieldName=" + fieldName); pw.println(prefix + "extras=" + extras); pw.println(prefix + "locales=" + locales); } /** Loading @@ -416,6 +434,7 @@ public class EditorInfo implements InputType, Parcelable { dest.writeInt(fieldId); dest.writeString(fieldName); dest.writeBundle(extras); locales.writeToParcel(dest, flags); } /** Loading @@ -439,6 +458,7 @@ public class EditorInfo implements InputType, Parcelable { res.fieldId = source.readInt(); res.fieldName = source.readString(); res.extras = source.readBundle(); res.locales = LocaleList.CREATOR.createFromParcel(source); return res; } Loading core/java/android/widget/TextView.java +3 −0 Original line number Diff line number Diff line Loading @@ -6439,6 +6439,9 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener outAttrs.initialCapsMode = ic.getCursorCapsMode(getInputType()); return ic; } // LocaleList is designed to be immutable. This is theoretically equivalent to copy // the snapshot of the current text locales. outAttrs.locales = getTextLocales(); } return null; } Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -42950,6 +42950,7 @@ package android.view.inputmethod { field public int initialSelStart; field public int inputType; field public java.lang.CharSequence label; field public android.util.LocaleList locales; field public java.lang.String packageName; field public java.lang.String privateImeOptions; }
api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -45279,6 +45279,7 @@ package android.view.inputmethod { field public int initialSelStart; field public int inputType; field public java.lang.CharSequence label; field public android.util.LocaleList locales; field public java.lang.String packageName; field public java.lang.String privateImeOptions; }
api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -42952,6 +42952,7 @@ package android.view.inputmethod { field public int initialSelStart; field public int inputType; field public java.lang.CharSequence label; field public android.util.LocaleList locales; field public java.lang.String packageName; field public java.lang.String privateImeOptions; }
core/java/android/view/inputmethod/EditorInfo.java +20 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import android.os.Parcel; import android.os.Parcelable; import android.text.InputType; import android.text.TextUtils; import android.util.LocaleList; import android.util.Printer; /** Loading Loading @@ -339,6 +340,22 @@ public class EditorInfo implements InputType, Parcelable { */ public Bundle extras; /** * Additional context information that tells what languages are expected by the user. * * <p><strong>IME authors:</strong> Possible use cases for IME developers would be:</p> * <ul> * <li>Automatically switching keyboard layout.</li> * <li>Changing language model for better typing experience.</li> * </ul> * * <p><strong>Editor authors:</strong> Providing this context information can help IMEs to * improve text input experience. For example, chat applications can remember what language is * used in the last conversation for each chat session, and put the last used language at the * top of {@link #locales}.</p> */ public LocaleList locales = LocaleList.getEmptyLocaleList(); /** * Ensure that the data in this EditorInfo is compatible with an application * that was developed against the given target API version. This can Loading Loading @@ -393,6 +410,7 @@ public class EditorInfo implements InputType, Parcelable { + " fieldId=" + fieldId + " fieldName=" + fieldName); pw.println(prefix + "extras=" + extras); pw.println(prefix + "locales=" + locales); } /** Loading @@ -416,6 +434,7 @@ public class EditorInfo implements InputType, Parcelable { dest.writeInt(fieldId); dest.writeString(fieldName); dest.writeBundle(extras); locales.writeToParcel(dest, flags); } /** Loading @@ -439,6 +458,7 @@ public class EditorInfo implements InputType, Parcelable { res.fieldId = source.readInt(); res.fieldName = source.readString(); res.extras = source.readBundle(); res.locales = LocaleList.CREATOR.createFromParcel(source); return res; } Loading
core/java/android/widget/TextView.java +3 −0 Original line number Diff line number Diff line Loading @@ -6439,6 +6439,9 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener outAttrs.initialCapsMode = ic.getCursorCapsMode(getInputType()); return ic; } // LocaleList is designed to be immutable. This is theoretically equivalent to copy // the snapshot of the current text locales. outAttrs.locales = getTextLocales(); } return null; } Loading