Loading api/current.txt +5 −5 Original line number Diff line number Diff line Loading @@ -311,7 +311,7 @@ package android { field public static final deprecated int autoText = 16843114; // 0x101016a field public static final int autoUrlDetect = 16843404; // 0x101028c field public static final int autoVerify = 16844014; // 0x10104ee field public static final int autofillHint = 16844121; // 0x1010559 field public static final int autofillHints = 16844121; // 0x1010559 field public static final int autofillMode = 16844116; // 0x1010554 field public static final int background = 16842964; // 0x10100d4 field public static final int backgroundDimAmount = 16842802; // 0x1010032 Loading Loading @@ -6582,7 +6582,7 @@ package android.app.assist { public static class AssistStructure.ViewNode { method public float getAlpha(); method public java.lang.String[] getAutoFillHint(); method public java.lang.String[] getAutoFillHints(); method public android.view.autofill.AutofillId getAutofillId(); method public java.lang.String[] getAutofillOptions(); method public int getAutofillType(); Loading Loading @@ -45256,7 +45256,7 @@ package android.view { method public float getAlpha(); method public android.view.animation.Animation getAnimation(); method public android.os.IBinder getApplicationWindowToken(); method public java.lang.String[] getAutofillHint(); method public java.lang.String[] getAutofillHints(); method public int getAutofillMode(); method public int getAutofillType(); method public android.view.autofill.AutofillValue getAutofillValue(); Loading Loading @@ -45577,7 +45577,7 @@ package android.view { method public void setActivated(boolean); method public void setAlpha(float); method public void setAnimation(android.view.animation.Animation); method public void setAutofillHint(java.lang.String...); method public void setAutofillHints(java.lang.String...); method public void setAutofillMode(int); method public void setBackground(android.graphics.drawable.Drawable); method public void setBackgroundColor(int); Loading Loading @@ -46392,7 +46392,7 @@ package android.view { method public abstract void setAccessibilityFocused(boolean); method public abstract void setActivated(boolean); method public abstract void setAlpha(float); method public abstract void setAutofillHint(java.lang.String[]); method public abstract void setAutofillHints(java.lang.String[]); method public abstract void setAutofillId(android.view.ViewStructure, int); method public abstract void setAutofillOptions(java.lang.String[]); method public abstract void setAutofillType(int); api/system-current.txt +5 −5 Original line number Diff line number Diff line Loading @@ -425,7 +425,7 @@ package android { field public static final deprecated int autoText = 16843114; // 0x101016a field public static final int autoUrlDetect = 16843404; // 0x101028c field public static final int autoVerify = 16844014; // 0x10104ee field public static final int autofillHint = 16844121; // 0x1010559 field public static final int autofillHints = 16844121; // 0x1010559 field public static final int autofillMode = 16844116; // 0x1010554 field public static final int background = 16842964; // 0x10100d4 field public static final int backgroundDimAmount = 16842802; // 0x1010032 Loading Loading @@ -6819,7 +6819,7 @@ package android.app.assist { public static class AssistStructure.ViewNode { method public float getAlpha(); method public java.lang.String[] getAutoFillHint(); method public java.lang.String[] getAutoFillHints(); method public android.view.autofill.AutofillId getAutofillId(); method public java.lang.String[] getAutofillOptions(); method public int getAutofillType(); Loading Loading @@ -48713,7 +48713,7 @@ package android.view { method public float getAlpha(); method public android.view.animation.Animation getAnimation(); method public android.os.IBinder getApplicationWindowToken(); method public java.lang.String[] getAutofillHint(); method public java.lang.String[] getAutofillHints(); method public int getAutofillMode(); method public int getAutofillType(); method public android.view.autofill.AutofillValue getAutofillValue(); Loading Loading @@ -49034,7 +49034,7 @@ package android.view { method public void setActivated(boolean); method public void setAlpha(float); method public void setAnimation(android.view.animation.Animation); method public void setAutofillHint(java.lang.String...); method public void setAutofillHints(java.lang.String...); method public void setAutofillMode(int); method public void setBackground(android.graphics.drawable.Drawable); method public void setBackgroundColor(int); Loading Loading @@ -49849,7 +49849,7 @@ package android.view { method public abstract void setAccessibilityFocused(boolean); method public abstract void setActivated(boolean); method public abstract void setAlpha(float); method public abstract void setAutofillHint(java.lang.String[]); method public abstract void setAutofillHints(java.lang.String[]); method public abstract void setAutofillId(android.view.ViewStructure, int); method public abstract void setAutofillOptions(java.lang.String[]); method public abstract void setAutofillType(int); api/test-current.txt +5 −5 Original line number Diff line number Diff line Loading @@ -311,7 +311,7 @@ package android { field public static final deprecated int autoText = 16843114; // 0x101016a field public static final int autoUrlDetect = 16843404; // 0x101028c field public static final int autoVerify = 16844014; // 0x10104ee field public static final int autofillHint = 16844121; // 0x1010559 field public static final int autofillHints = 16844121; // 0x1010559 field public static final int autofillMode = 16844116; // 0x1010554 field public static final int background = 16842964; // 0x10100d4 field public static final int backgroundDimAmount = 16842802; // 0x1010032 Loading Loading @@ -6611,7 +6611,7 @@ package android.app.assist { public static class AssistStructure.ViewNode { method public float getAlpha(); method public java.lang.String[] getAutoFillHint(); method public java.lang.String[] getAutoFillHints(); method public android.view.autofill.AutofillId getAutofillId(); method public java.lang.String[] getAutofillOptions(); method public int getAutofillType(); Loading Loading @@ -45630,7 +45630,7 @@ package android.view { method public float getAlpha(); method public android.view.animation.Animation getAnimation(); method public android.os.IBinder getApplicationWindowToken(); method public java.lang.String[] getAutofillHint(); method public java.lang.String[] getAutofillHints(); method public int getAutofillMode(); method public int getAutofillType(); method public android.view.autofill.AutofillValue getAutofillValue(); Loading Loading @@ -45954,7 +45954,7 @@ package android.view { method public void setActivated(boolean); method public void setAlpha(float); method public void setAnimation(android.view.animation.Animation); method public void setAutofillHint(java.lang.String...); method public void setAutofillHints(java.lang.String...); method public void setAutofillMode(int); method public void setBackground(android.graphics.drawable.Drawable); method public void setBackgroundColor(int); Loading Loading @@ -46773,7 +46773,7 @@ package android.view { method public abstract void setAccessibilityFocused(boolean); method public abstract void setActivated(boolean); method public abstract void setAlpha(float); method public abstract void setAutofillHint(java.lang.String[]); method public abstract void setAutofillHints(java.lang.String[]); method public abstract void setAutofillId(android.view.ViewStructure, int); method public abstract void setAutofillOptions(java.lang.String[]); method public abstract void setAutofillType(int); core/java/android/app/assist/AssistStructure.java +9 −9 Original line number Diff line number Diff line Loading @@ -593,7 +593,7 @@ public class AssistStructure implements Parcelable { // fields (viewId and childId) of the field. AutofillId mAutofillId; @View.AutofillType int mAutofillType; @Nullable String[] mAutofillHint; @Nullable String[] mAutofillHints; AutofillValue mAutofillValue; String[] mAutofillOptions; boolean mSanitized; Loading Loading @@ -685,7 +685,7 @@ public class AssistStructure implements Parcelable { mSanitized = in.readInt() == 1; mAutofillId = in.readParcelable(null); mAutofillType = in.readInt(); mAutofillHint = in.readStringArray(); mAutofillHints = in.readStringArray(); mAutofillValue = in.readParcelable(null); mAutofillOptions = in.readStringArray(); } Loading Loading @@ -830,7 +830,7 @@ public class AssistStructure implements Parcelable { out.writeInt(mSanitized ? 1 : 0); out.writeParcelable(mAutofillId, 0); out.writeInt(mAutofillType); out.writeStringArray(mAutofillHint); out.writeStringArray(mAutofillHints); final AutofillValue sanitizedValue = writeSensitive ? mAutofillValue : null; out.writeParcelable(sanitizedValue, 0); out.writeStringArray(mAutofillOptions); Loading Loading @@ -973,10 +973,10 @@ public class AssistStructure implements Parcelable { * <p>It's only set when the {@link AssistStructure} is used for autofilling purposes, not * for assist.</p> * * @return The hint for this view * @return The hints for this view */ @Nullable public String[] getAutoFillHint() { return mAutofillHint; @Nullable public String[] getAutoFillHints() { return mAutofillHints; } /** Loading Loading @@ -1678,8 +1678,8 @@ public class AssistStructure implements Parcelable { } @Override public void setAutofillHint(@Nullable String[] hint) { mNode.mAutofillHint = hint; public void setAutofillHints(@Nullable String[] hints) { mNode.mAutofillHints = hints; } @Override Loading Loading @@ -1836,7 +1836,7 @@ public class AssistStructure implements Parcelable { + ", type=" + node.getAutofillType() + ", options=" + Arrays.toString(node.getAutofillOptions()) + ", inputType=" + node.getInputType() + ", hint=" + Arrays.toString(node.getAutoFillHint()) + ", hints=" + Arrays.toString(node.getAutoFillHints()) + ", value=" + node.getAutofillValue() + ", sanitized=" + node.isSanitized()); } Loading core/java/android/view/View.java +29 −29 Original line number Diff line number Diff line Loading @@ -982,7 +982,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * This view contains an email address. * * Use with {@link #setAutofillHint(String[])}, or set "{@value #AUTOFILL_HINT_EMAIL_ADDRESS}" * Use with {@link #setAutofillHints(String[])}, or set "{@value #AUTOFILL_HINT_EMAIL_ADDRESS}" * to <a href="#attr_android:autofillHint"> {@code android:autofillHint}. */ public static final String AUTOFILL_HINT_EMAIL_ADDRESS = "emailAddress"; Loading @@ -990,7 +990,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a real name. * * Use with {@link #setAutofillHint(String[])}, or set "{@value #AUTOFILL_HINT_NAME}" to * Use with {@link #setAutofillHints(String[])}, or set "{@value #AUTOFILL_HINT_NAME}" to * <a href="#attr_android:autofillHint"> {@code android:autofillHint}. */ public static final String AUTOFILL_HINT_NAME = "name"; Loading @@ -998,7 +998,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a user name. * * Use with {@link #setAutofillHint(String[])}, or set "{@value #AUTOFILL_HINT_USERNAME}" to * Use with {@link #setAutofillHints(String[])}, or set "{@value #AUTOFILL_HINT_USERNAME}" to * <a href="#attr_android:autofillHint"> {@code android:autofillHint}. */ public static final String AUTOFILL_HINT_USERNAME = "username"; Loading @@ -1006,7 +1006,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a password. * * Use with {@link #setAutofillHint(String[])}, or set "{@value #AUTOFILL_HINT_PASSWORD}" to * Use with {@link #setAutofillHints(String[])}, or set "{@value #AUTOFILL_HINT_PASSWORD}" to * <a href="#attr_android:autofillHint"> {@code android:autofillHint}. */ public static final String AUTOFILL_HINT_PASSWORD = "password"; Loading @@ -1014,7 +1014,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a phone number. * * Use with {@link #setAutofillHint(String[])}, or set "{@value #AUTOFILL_HINT_PHONE}" to * Use with {@link #setAutofillHints(String[])}, or set "{@value #AUTOFILL_HINT_PHONE}" to * <a href="#attr_android:autofillHint"> {@code android:autofillHint}. */ public static final String AUTOFILL_HINT_PHONE = "phone"; Loading @@ -1022,7 +1022,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a postal address. * * Use with {@link #setAutofillHint(String[])}, or set "{@value #AUTOFILL_HINT_POSTAL_ADDRESS}" * Use with {@link #setAutofillHints(String[])}, or set "{@value #AUTOFILL_HINT_POSTAL_ADDRESS}" * to <a href="#attr_android:autofillHint"> {@code android:autofillHint}. */ public static final String AUTOFILL_HINT_POSTAL_ADDRESS = "postalAddress"; Loading @@ -1030,7 +1030,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a postal code. * * Use with {@link #setAutofillHint(String[])}, or set "{@value #AUTOFILL_HINT_POSTAL_CODE}" to * Use with {@link #setAutofillHints(String[])}, or set "{@value #AUTOFILL_HINT_POSTAL_CODE}" to * <a href="#attr_android:autofillHint"> {@code android:autofillHint}. */ public static final String AUTOFILL_HINT_POSTAL_CODE = "postalCode"; Loading @@ -1038,7 +1038,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a credit card number. * * Use with {@link #setAutofillHint(String[])}, or set "{@value * Use with {@link #setAutofillHints(String[])}, or set "{@value * #AUTOFILL_HINT_CREDIT_CARD_NUMBER}" to <a href="#attr_android:autofillHint"> {@code * android:autofillHint}. */ Loading @@ -1047,7 +1047,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a credit card security code. * * Use with {@link #setAutofillHint(String[])}, or set "{@value * Use with {@link #setAutofillHints(String[])}, or set "{@value * #AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE}" to <a href="#attr_android:autofillHint"> {@code * android:autofillHint}. */ Loading @@ -1056,7 +1056,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a credit card expiration date. * * Use with {@link #setAutofillHint(String[])}, or set "{@value * Use with {@link #setAutofillHints(String[])}, or set "{@value * #AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE}" to <a href="#attr_android:autofillHint"> {@code * android:autofillHint}. */ Loading @@ -1066,7 +1066,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains the month a credit card expires. * * Use with {@link #setAutofillHint(String[])}, or set "{@value * Use with {@link #setAutofillHints(String[])}, or set "{@value * #AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH}" to <a href="#attr_android:autofillHint"> {@code * android:autofillHint}. */ Loading @@ -1076,7 +1076,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains the year a credit card expires. * * Use with {@link #setAutofillHint(String[])}, or set "{@value * Use with {@link #setAutofillHints(String[])}, or set "{@value * #AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR}" to <a href="#attr_android:autofillHint"> {@code * android:autofillHint}. */ Loading @@ -1086,7 +1086,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains the day a credit card expires. * * Use with {@link #setAutofillHint(String[])}, or set "{@value * Use with {@link #setAutofillHints(String[])}, or set "{@value * #AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY}" to <a href="#attr_android:autofillHint"> {@code * android:autofillHint}. */ Loading @@ -1095,7 +1095,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * Hintd for the autofill services that describes the content of the view. */ private @Nullable String[] mAutofillHint; private @Nullable String[] mAutofillHints; /** @hide */ @IntDef({ Loading Loading @@ -5024,7 +5024,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, setAutofillMode(a.getInt(attr, AUTOFILL_MODE_INHERIT)); } break; case R.styleable.View_autofillHint: case R.styleable.View_autofillHints: if (a.peekValue(attr) != null) { CharSequence[] rawHints = null; String rawString = null; Loading @@ -5044,7 +5044,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, if (rawHints == null) { if (rawString == null) { throw new IllegalArgumentException( "Could not resolve autofillHint"); "Could not resolve autofillHints"); } else { rawHints = rawString.split(","); } Loading @@ -5056,7 +5056,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, for (int rawHintNum = 0; rawHintNum < numHints; rawHintNum++) { hints[rawHintNum] = rawHints[rawHintNum].toString().trim(); } setAutofillHint(hints); setAutofillHints(hints); } break; case R.styleable.View_importantForAutofill: Loading Loading @@ -7311,7 +7311,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, // For example, only TextViews that are editable support autofill if (autofillType != AUTOFILL_TYPE_NONE) { structure.setAutofillType(autofillType); structure.setAutofillHint(getAutofillHint()); structure.setAutofillHints(getAutofillHints()); structure.setAutofillValue(getAutofillValue()); } } Loading Loading @@ -7476,13 +7476,13 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * Describes the content of a view so that a autofill service can fill in the appropriate data. * * @return The hint set via the attribute or {@code null} if no hint it set. * @return The hints set via the attribute or {@code null} if no hint it set. * * @attr ref android.R.styleable#View_autofillHint * @attr ref android.R.styleable#View_autofillHints */ @ViewDebug.ExportedProperty() @Nullable public String[] getAutofillHint() { return mAutofillHint; @Nullable public String[] getAutofillHints() { return mAutofillHints; } /** Loading Loading @@ -9111,17 +9111,17 @@ public class View implements Drawable.Callback, KeyEvent.Callback, } /** * Sets the a hint that helps the autofill service to select the appropriate data to fill the * Sets the hints that helps the autofill service to select the appropriate data to fill the * view. * * @param autofillHint The autofill hint to set. If the array is emtpy, {@code null} is set. * @attr ref android.R.styleable#View_autofillHint * @param autofillHints The autofill hints to set. If the array is emtpy, {@code null} is set. * @attr ref android.R.styleable#View_autofillHints */ public void setAutofillHint(@Nullable String... autofillHint) { if (autofillHint == null || autofillHint.length == 0) { mAutofillHint = null; public void setAutofillHints(@Nullable String... autofillHints) { if (autofillHints == null || autofillHints.length == 0) { mAutofillHints = null; } else { mAutofillHint = autofillHint; mAutofillHints = autofillHints; } } Loading Loading
api/current.txt +5 −5 Original line number Diff line number Diff line Loading @@ -311,7 +311,7 @@ package android { field public static final deprecated int autoText = 16843114; // 0x101016a field public static final int autoUrlDetect = 16843404; // 0x101028c field public static final int autoVerify = 16844014; // 0x10104ee field public static final int autofillHint = 16844121; // 0x1010559 field public static final int autofillHints = 16844121; // 0x1010559 field public static final int autofillMode = 16844116; // 0x1010554 field public static final int background = 16842964; // 0x10100d4 field public static final int backgroundDimAmount = 16842802; // 0x1010032 Loading Loading @@ -6582,7 +6582,7 @@ package android.app.assist { public static class AssistStructure.ViewNode { method public float getAlpha(); method public java.lang.String[] getAutoFillHint(); method public java.lang.String[] getAutoFillHints(); method public android.view.autofill.AutofillId getAutofillId(); method public java.lang.String[] getAutofillOptions(); method public int getAutofillType(); Loading Loading @@ -45256,7 +45256,7 @@ package android.view { method public float getAlpha(); method public android.view.animation.Animation getAnimation(); method public android.os.IBinder getApplicationWindowToken(); method public java.lang.String[] getAutofillHint(); method public java.lang.String[] getAutofillHints(); method public int getAutofillMode(); method public int getAutofillType(); method public android.view.autofill.AutofillValue getAutofillValue(); Loading Loading @@ -45577,7 +45577,7 @@ package android.view { method public void setActivated(boolean); method public void setAlpha(float); method public void setAnimation(android.view.animation.Animation); method public void setAutofillHint(java.lang.String...); method public void setAutofillHints(java.lang.String...); method public void setAutofillMode(int); method public void setBackground(android.graphics.drawable.Drawable); method public void setBackgroundColor(int); Loading Loading @@ -46392,7 +46392,7 @@ package android.view { method public abstract void setAccessibilityFocused(boolean); method public abstract void setActivated(boolean); method public abstract void setAlpha(float); method public abstract void setAutofillHint(java.lang.String[]); method public abstract void setAutofillHints(java.lang.String[]); method public abstract void setAutofillId(android.view.ViewStructure, int); method public abstract void setAutofillOptions(java.lang.String[]); method public abstract void setAutofillType(int);
api/system-current.txt +5 −5 Original line number Diff line number Diff line Loading @@ -425,7 +425,7 @@ package android { field public static final deprecated int autoText = 16843114; // 0x101016a field public static final int autoUrlDetect = 16843404; // 0x101028c field public static final int autoVerify = 16844014; // 0x10104ee field public static final int autofillHint = 16844121; // 0x1010559 field public static final int autofillHints = 16844121; // 0x1010559 field public static final int autofillMode = 16844116; // 0x1010554 field public static final int background = 16842964; // 0x10100d4 field public static final int backgroundDimAmount = 16842802; // 0x1010032 Loading Loading @@ -6819,7 +6819,7 @@ package android.app.assist { public static class AssistStructure.ViewNode { method public float getAlpha(); method public java.lang.String[] getAutoFillHint(); method public java.lang.String[] getAutoFillHints(); method public android.view.autofill.AutofillId getAutofillId(); method public java.lang.String[] getAutofillOptions(); method public int getAutofillType(); Loading Loading @@ -48713,7 +48713,7 @@ package android.view { method public float getAlpha(); method public android.view.animation.Animation getAnimation(); method public android.os.IBinder getApplicationWindowToken(); method public java.lang.String[] getAutofillHint(); method public java.lang.String[] getAutofillHints(); method public int getAutofillMode(); method public int getAutofillType(); method public android.view.autofill.AutofillValue getAutofillValue(); Loading Loading @@ -49034,7 +49034,7 @@ package android.view { method public void setActivated(boolean); method public void setAlpha(float); method public void setAnimation(android.view.animation.Animation); method public void setAutofillHint(java.lang.String...); method public void setAutofillHints(java.lang.String...); method public void setAutofillMode(int); method public void setBackground(android.graphics.drawable.Drawable); method public void setBackgroundColor(int); Loading Loading @@ -49849,7 +49849,7 @@ package android.view { method public abstract void setAccessibilityFocused(boolean); method public abstract void setActivated(boolean); method public abstract void setAlpha(float); method public abstract void setAutofillHint(java.lang.String[]); method public abstract void setAutofillHints(java.lang.String[]); method public abstract void setAutofillId(android.view.ViewStructure, int); method public abstract void setAutofillOptions(java.lang.String[]); method public abstract void setAutofillType(int);
api/test-current.txt +5 −5 Original line number Diff line number Diff line Loading @@ -311,7 +311,7 @@ package android { field public static final deprecated int autoText = 16843114; // 0x101016a field public static final int autoUrlDetect = 16843404; // 0x101028c field public static final int autoVerify = 16844014; // 0x10104ee field public static final int autofillHint = 16844121; // 0x1010559 field public static final int autofillHints = 16844121; // 0x1010559 field public static final int autofillMode = 16844116; // 0x1010554 field public static final int background = 16842964; // 0x10100d4 field public static final int backgroundDimAmount = 16842802; // 0x1010032 Loading Loading @@ -6611,7 +6611,7 @@ package android.app.assist { public static class AssistStructure.ViewNode { method public float getAlpha(); method public java.lang.String[] getAutoFillHint(); method public java.lang.String[] getAutoFillHints(); method public android.view.autofill.AutofillId getAutofillId(); method public java.lang.String[] getAutofillOptions(); method public int getAutofillType(); Loading Loading @@ -45630,7 +45630,7 @@ package android.view { method public float getAlpha(); method public android.view.animation.Animation getAnimation(); method public android.os.IBinder getApplicationWindowToken(); method public java.lang.String[] getAutofillHint(); method public java.lang.String[] getAutofillHints(); method public int getAutofillMode(); method public int getAutofillType(); method public android.view.autofill.AutofillValue getAutofillValue(); Loading Loading @@ -45954,7 +45954,7 @@ package android.view { method public void setActivated(boolean); method public void setAlpha(float); method public void setAnimation(android.view.animation.Animation); method public void setAutofillHint(java.lang.String...); method public void setAutofillHints(java.lang.String...); method public void setAutofillMode(int); method public void setBackground(android.graphics.drawable.Drawable); method public void setBackgroundColor(int); Loading Loading @@ -46773,7 +46773,7 @@ package android.view { method public abstract void setAccessibilityFocused(boolean); method public abstract void setActivated(boolean); method public abstract void setAlpha(float); method public abstract void setAutofillHint(java.lang.String[]); method public abstract void setAutofillHints(java.lang.String[]); method public abstract void setAutofillId(android.view.ViewStructure, int); method public abstract void setAutofillOptions(java.lang.String[]); method public abstract void setAutofillType(int);
core/java/android/app/assist/AssistStructure.java +9 −9 Original line number Diff line number Diff line Loading @@ -593,7 +593,7 @@ public class AssistStructure implements Parcelable { // fields (viewId and childId) of the field. AutofillId mAutofillId; @View.AutofillType int mAutofillType; @Nullable String[] mAutofillHint; @Nullable String[] mAutofillHints; AutofillValue mAutofillValue; String[] mAutofillOptions; boolean mSanitized; Loading Loading @@ -685,7 +685,7 @@ public class AssistStructure implements Parcelable { mSanitized = in.readInt() == 1; mAutofillId = in.readParcelable(null); mAutofillType = in.readInt(); mAutofillHint = in.readStringArray(); mAutofillHints = in.readStringArray(); mAutofillValue = in.readParcelable(null); mAutofillOptions = in.readStringArray(); } Loading Loading @@ -830,7 +830,7 @@ public class AssistStructure implements Parcelable { out.writeInt(mSanitized ? 1 : 0); out.writeParcelable(mAutofillId, 0); out.writeInt(mAutofillType); out.writeStringArray(mAutofillHint); out.writeStringArray(mAutofillHints); final AutofillValue sanitizedValue = writeSensitive ? mAutofillValue : null; out.writeParcelable(sanitizedValue, 0); out.writeStringArray(mAutofillOptions); Loading Loading @@ -973,10 +973,10 @@ public class AssistStructure implements Parcelable { * <p>It's only set when the {@link AssistStructure} is used for autofilling purposes, not * for assist.</p> * * @return The hint for this view * @return The hints for this view */ @Nullable public String[] getAutoFillHint() { return mAutofillHint; @Nullable public String[] getAutoFillHints() { return mAutofillHints; } /** Loading Loading @@ -1678,8 +1678,8 @@ public class AssistStructure implements Parcelable { } @Override public void setAutofillHint(@Nullable String[] hint) { mNode.mAutofillHint = hint; public void setAutofillHints(@Nullable String[] hints) { mNode.mAutofillHints = hints; } @Override Loading Loading @@ -1836,7 +1836,7 @@ public class AssistStructure implements Parcelable { + ", type=" + node.getAutofillType() + ", options=" + Arrays.toString(node.getAutofillOptions()) + ", inputType=" + node.getInputType() + ", hint=" + Arrays.toString(node.getAutoFillHint()) + ", hints=" + Arrays.toString(node.getAutoFillHints()) + ", value=" + node.getAutofillValue() + ", sanitized=" + node.isSanitized()); } Loading
core/java/android/view/View.java +29 −29 Original line number Diff line number Diff line Loading @@ -982,7 +982,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * This view contains an email address. * * Use with {@link #setAutofillHint(String[])}, or set "{@value #AUTOFILL_HINT_EMAIL_ADDRESS}" * Use with {@link #setAutofillHints(String[])}, or set "{@value #AUTOFILL_HINT_EMAIL_ADDRESS}" * to <a href="#attr_android:autofillHint"> {@code android:autofillHint}. */ public static final String AUTOFILL_HINT_EMAIL_ADDRESS = "emailAddress"; Loading @@ -990,7 +990,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a real name. * * Use with {@link #setAutofillHint(String[])}, or set "{@value #AUTOFILL_HINT_NAME}" to * Use with {@link #setAutofillHints(String[])}, or set "{@value #AUTOFILL_HINT_NAME}" to * <a href="#attr_android:autofillHint"> {@code android:autofillHint}. */ public static final String AUTOFILL_HINT_NAME = "name"; Loading @@ -998,7 +998,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a user name. * * Use with {@link #setAutofillHint(String[])}, or set "{@value #AUTOFILL_HINT_USERNAME}" to * Use with {@link #setAutofillHints(String[])}, or set "{@value #AUTOFILL_HINT_USERNAME}" to * <a href="#attr_android:autofillHint"> {@code android:autofillHint}. */ public static final String AUTOFILL_HINT_USERNAME = "username"; Loading @@ -1006,7 +1006,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a password. * * Use with {@link #setAutofillHint(String[])}, or set "{@value #AUTOFILL_HINT_PASSWORD}" to * Use with {@link #setAutofillHints(String[])}, or set "{@value #AUTOFILL_HINT_PASSWORD}" to * <a href="#attr_android:autofillHint"> {@code android:autofillHint}. */ public static final String AUTOFILL_HINT_PASSWORD = "password"; Loading @@ -1014,7 +1014,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a phone number. * * Use with {@link #setAutofillHint(String[])}, or set "{@value #AUTOFILL_HINT_PHONE}" to * Use with {@link #setAutofillHints(String[])}, or set "{@value #AUTOFILL_HINT_PHONE}" to * <a href="#attr_android:autofillHint"> {@code android:autofillHint}. */ public static final String AUTOFILL_HINT_PHONE = "phone"; Loading @@ -1022,7 +1022,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a postal address. * * Use with {@link #setAutofillHint(String[])}, or set "{@value #AUTOFILL_HINT_POSTAL_ADDRESS}" * Use with {@link #setAutofillHints(String[])}, or set "{@value #AUTOFILL_HINT_POSTAL_ADDRESS}" * to <a href="#attr_android:autofillHint"> {@code android:autofillHint}. */ public static final String AUTOFILL_HINT_POSTAL_ADDRESS = "postalAddress"; Loading @@ -1030,7 +1030,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a postal code. * * Use with {@link #setAutofillHint(String[])}, or set "{@value #AUTOFILL_HINT_POSTAL_CODE}" to * Use with {@link #setAutofillHints(String[])}, or set "{@value #AUTOFILL_HINT_POSTAL_CODE}" to * <a href="#attr_android:autofillHint"> {@code android:autofillHint}. */ public static final String AUTOFILL_HINT_POSTAL_CODE = "postalCode"; Loading @@ -1038,7 +1038,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a credit card number. * * Use with {@link #setAutofillHint(String[])}, or set "{@value * Use with {@link #setAutofillHints(String[])}, or set "{@value * #AUTOFILL_HINT_CREDIT_CARD_NUMBER}" to <a href="#attr_android:autofillHint"> {@code * android:autofillHint}. */ Loading @@ -1047,7 +1047,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a credit card security code. * * Use with {@link #setAutofillHint(String[])}, or set "{@value * Use with {@link #setAutofillHints(String[])}, or set "{@value * #AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE}" to <a href="#attr_android:autofillHint"> {@code * android:autofillHint}. */ Loading @@ -1056,7 +1056,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains a credit card expiration date. * * Use with {@link #setAutofillHint(String[])}, or set "{@value * Use with {@link #setAutofillHints(String[])}, or set "{@value * #AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE}" to <a href="#attr_android:autofillHint"> {@code * android:autofillHint}. */ Loading @@ -1066,7 +1066,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains the month a credit card expires. * * Use with {@link #setAutofillHint(String[])}, or set "{@value * Use with {@link #setAutofillHints(String[])}, or set "{@value * #AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH}" to <a href="#attr_android:autofillHint"> {@code * android:autofillHint}. */ Loading @@ -1076,7 +1076,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains the year a credit card expires. * * Use with {@link #setAutofillHint(String[])}, or set "{@value * Use with {@link #setAutofillHints(String[])}, or set "{@value * #AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR}" to <a href="#attr_android:autofillHint"> {@code * android:autofillHint}. */ Loading @@ -1086,7 +1086,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * The view contains the day a credit card expires. * * Use with {@link #setAutofillHint(String[])}, or set "{@value * Use with {@link #setAutofillHints(String[])}, or set "{@value * #AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY}" to <a href="#attr_android:autofillHint"> {@code * android:autofillHint}. */ Loading @@ -1095,7 +1095,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * Hintd for the autofill services that describes the content of the view. */ private @Nullable String[] mAutofillHint; private @Nullable String[] mAutofillHints; /** @hide */ @IntDef({ Loading Loading @@ -5024,7 +5024,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, setAutofillMode(a.getInt(attr, AUTOFILL_MODE_INHERIT)); } break; case R.styleable.View_autofillHint: case R.styleable.View_autofillHints: if (a.peekValue(attr) != null) { CharSequence[] rawHints = null; String rawString = null; Loading @@ -5044,7 +5044,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, if (rawHints == null) { if (rawString == null) { throw new IllegalArgumentException( "Could not resolve autofillHint"); "Could not resolve autofillHints"); } else { rawHints = rawString.split(","); } Loading @@ -5056,7 +5056,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, for (int rawHintNum = 0; rawHintNum < numHints; rawHintNum++) { hints[rawHintNum] = rawHints[rawHintNum].toString().trim(); } setAutofillHint(hints); setAutofillHints(hints); } break; case R.styleable.View_importantForAutofill: Loading Loading @@ -7311,7 +7311,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, // For example, only TextViews that are editable support autofill if (autofillType != AUTOFILL_TYPE_NONE) { structure.setAutofillType(autofillType); structure.setAutofillHint(getAutofillHint()); structure.setAutofillHints(getAutofillHints()); structure.setAutofillValue(getAutofillValue()); } } Loading Loading @@ -7476,13 +7476,13 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * Describes the content of a view so that a autofill service can fill in the appropriate data. * * @return The hint set via the attribute or {@code null} if no hint it set. * @return The hints set via the attribute or {@code null} if no hint it set. * * @attr ref android.R.styleable#View_autofillHint * @attr ref android.R.styleable#View_autofillHints */ @ViewDebug.ExportedProperty() @Nullable public String[] getAutofillHint() { return mAutofillHint; @Nullable public String[] getAutofillHints() { return mAutofillHints; } /** Loading Loading @@ -9111,17 +9111,17 @@ public class View implements Drawable.Callback, KeyEvent.Callback, } /** * Sets the a hint that helps the autofill service to select the appropriate data to fill the * Sets the hints that helps the autofill service to select the appropriate data to fill the * view. * * @param autofillHint The autofill hint to set. If the array is emtpy, {@code null} is set. * @attr ref android.R.styleable#View_autofillHint * @param autofillHints The autofill hints to set. If the array is emtpy, {@code null} is set. * @attr ref android.R.styleable#View_autofillHints */ public void setAutofillHint(@Nullable String... autofillHint) { if (autofillHint == null || autofillHint.length == 0) { mAutofillHint = null; public void setAutofillHints(@Nullable String... autofillHints) { if (autofillHints == null || autofillHints.length == 0) { mAutofillHints = null; } else { mAutofillHint = autofillHint; mAutofillHints = autofillHints; } } Loading