From b11802197259019b016c84741fd5ae18a1b276c1 Mon Sep 17 00:00:00 2001 From: Felipe Leme Date: Mon, 17 Apr 2017 18:50:14 -0700 Subject: Renamed ViewNode's getAutoFillHints() to getAutofillHints() Test: CtsAutoFillServiceTestCases pass Bug: 35956626 Bug: 35364993 Change-Id: I2ad5a625da6ed4ff889315923c81cfd629e34074 --- api/current.txt | 2 +- api/system-current.txt | 2 +- api/test-current.txt | 2 +- core/java/android/app/assist/AssistStructure.java | 10 ++++++++++ 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/api/current.txt b/api/current.txt index 5697b3970851..01361c2dd3b2 100644 --- a/api/current.txt +++ b/api/current.txt @@ -6625,7 +6625,7 @@ package android.app.assist { public static class AssistStructure.ViewNode { method public float getAlpha(); - method public java.lang.String[] getAutoFillHints(); + method public java.lang.String[] getAutofillHints(); method public android.view.autofill.AutofillId getAutofillId(); method public java.lang.String[] getAutofillOptions(); method public int getAutofillType(); diff --git a/api/system-current.txt b/api/system-current.txt index 0ac579ecf2ad..171cf2d07851 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -6868,7 +6868,7 @@ package android.app.assist { public static class AssistStructure.ViewNode { method public float getAlpha(); - method public java.lang.String[] getAutoFillHints(); + method public java.lang.String[] getAutofillHints(); method public android.view.autofill.AutofillId getAutofillId(); method public java.lang.String[] getAutofillOptions(); method public int getAutofillType(); diff --git a/api/test-current.txt b/api/test-current.txt index 86227a770648..0c89c558d7e0 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -6655,7 +6655,7 @@ package android.app.assist { public static class AssistStructure.ViewNode { method public float getAlpha(); - method public java.lang.String[] getAutoFillHints(); + method public java.lang.String[] getAutofillHints(); method public android.view.autofill.AutofillId getAutofillId(); method public java.lang.String[] getAutofillOptions(); method public int getAutofillType(); diff --git a/core/java/android/app/assist/AssistStructure.java b/core/java/android/app/assist/AssistStructure.java index 545aef5224b7..9f911f5c19c3 100644 --- a/core/java/android/app/assist/AssistStructure.java +++ b/core/java/android/app/assist/AssistStructure.java @@ -964,6 +964,16 @@ public class AssistStructure implements Parcelable { * * @return The hints for this view */ + @Nullable public String[] getAutofillHints() { + return mAutofillHints; + } + + /** + * @hide + * @deprecated use getAutofillHints() instead. + */ + // TODO(b/33197203): remove once clients don't use it anymore... + @Deprecated @Nullable public String[] getAutoFillHints() { return mAutofillHints; } -- cgit v1.2.3-59-g8ed1b