From d5225e13d043a2d9e0cd0cfe8b584f18a4a2ae17 Mon Sep 17 00:00:00 2001 From: Felipe Leme Date: Thu, 13 Sep 2018 10:20:12 -0700 Subject: [PATCH] Clarified that some autofill interfaces can only be implemented by the system. Test: mmm -j frameworks/base/:doc-comment-check-docs Fixes: 113323194 Change-Id: Ic0bea0e16fca0ce4c67d36f5611587843d7aad9f --- core/java/android/service/autofill/CustomDescription.java | 3 ++- core/java/android/service/autofill/OnClickAction.java | 3 +++ core/java/android/service/autofill/Sanitizer.java | 3 +++ core/java/android/service/autofill/Transformation.java | 3 +++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/core/java/android/service/autofill/CustomDescription.java b/core/java/android/service/autofill/CustomDescription.java index b1ae7a5b5d336..fdbb1c2dcab6f 100644 --- a/core/java/android/service/autofill/CustomDescription.java +++ b/core/java/android/service/autofill/CustomDescription.java @@ -314,7 +314,8 @@ public final class CustomDescription implements Parcelable { * is called multiple times passing the same {@code id}, only the last call will be used. * * @param id resource id of the child view. - * @param action action to be performed. + * @param action action to be performed. Must be an an implementation provided by the + * Android System. * * @return this builder * diff --git a/core/java/android/service/autofill/OnClickAction.java b/core/java/android/service/autofill/OnClickAction.java index 7439b003c0702..8597a886e8bce 100644 --- a/core/java/android/service/autofill/OnClickAction.java +++ b/core/java/android/service/autofill/OnClickAction.java @@ -21,6 +21,9 @@ package android.service.autofill; * *

Typically used to switch the visibility of other views in a * {@link CustomDescription custom save UI}. + * + *

Note: This interface is not meant to be implemented by app developers; only + * implementations provided by the Android System can be used in other Autofill APIs. */ public interface OnClickAction { } diff --git a/core/java/android/service/autofill/Sanitizer.java b/core/java/android/service/autofill/Sanitizer.java index 38757ac7408b8..8a1310de6e323 100644 --- a/core/java/android/service/autofill/Sanitizer.java +++ b/core/java/android/service/autofill/Sanitizer.java @@ -21,6 +21,9 @@ package android.service.autofill; *

Typically used to avoid displaying the save UI for values that are autofilled but reformatted * by the app—for example, if the autofill service sends a credit card number * value as "004815162342108" and the app automatically changes it to "0048 1516 2342 108". + * + *

Note: This interface is not meant to be implemented by app developers; only + * implementations provided by the Android System can be used in other Autofill APIs. */ public interface Sanitizer { } diff --git a/core/java/android/service/autofill/Transformation.java b/core/java/android/service/autofill/Transformation.java index aa8bc9b9500fb..de43955e2dc1d 100644 --- a/core/java/android/service/autofill/Transformation.java +++ b/core/java/android/service/autofill/Transformation.java @@ -20,6 +20,9 @@ package android.service.autofill; * template} at runtime, using the values of fields contained in the screen. * *

Typically used by {@link CustomDescription} to provide a customized autofill save UI. + * + *

Note: This interface is not meant to be implemented by app developers; only + * implementations provided by the Android System can be used in other Autofill APIs. */ public interface Transformation { }