diff options
| author | 2019-08-09 14:32:52 +0100 | |
|---|---|---|
| committer | 2019-08-09 15:17:26 +0100 | |
| commit | 51f3f610f998bbb422d2b1975c9889ced0309cf5 (patch) | |
| tree | 1dcefb5fc171ffa8d33964bb1da52a2cedf08f47 | |
| parent | f80171ef5cfb8b0f4972ff8d47d0f1f26023ba73 (diff) | |
AutofillFieldClassificationService: Mark constructor as @SystemApi
The class is abstract and marked as a SystemApi, but there's real
way to use it while compiling against the system_sdk unless the
constructor is also public.
Test: make update-api
Test: make
Bug: 138589409
Change-Id: Id1fe158ec55b299325bfbc16ab1ea33cd53fc123
| -rw-r--r-- | api/system-current.txt | 1 | ||||
| -rw-r--r-- | api/test-current.txt | 1 | ||||
| -rw-r--r-- | core/java/android/service/autofill/AutofillFieldClassificationService.java | 3 |
3 files changed, 4 insertions, 1 deletions
diff --git a/api/system-current.txt b/api/system-current.txt index 15b694ae6019..5eebb7818f4f 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -6286,6 +6286,7 @@ package android.service.attention { package android.service.autofill { public abstract class AutofillFieldClassificationService extends android.app.Service { + ctor public AutofillFieldClassificationService(); method public android.os.IBinder onBind(android.content.Intent); method @Nullable public float[][] onCalculateScores(@NonNull java.util.List<android.view.autofill.AutofillValue>, @NonNull java.util.List<java.lang.String>, @NonNull java.util.List<java.lang.String>, @Nullable String, @Nullable android.os.Bundle, @Nullable java.util.Map, @Nullable java.util.Map); method @Deprecated @Nullable public float[][] onGetScores(@Nullable String, @Nullable android.os.Bundle, @NonNull java.util.List<android.view.autofill.AutofillValue>, @NonNull java.util.List<java.lang.String>); diff --git a/api/test-current.txt b/api/test-current.txt index 46a0e1b16ebe..1f42597b2826 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -2464,6 +2464,7 @@ package android.service.appprediction { package android.service.autofill { public abstract class AutofillFieldClassificationService extends android.app.Service { + ctor public AutofillFieldClassificationService(); method public android.os.IBinder onBind(android.content.Intent); field public static final String REQUIRED_ALGORITHM_EDIT_DISTANCE = "EDIT_DISTANCE"; field public static final String REQUIRED_ALGORITHM_EXACT_MATCH = "EXACT_MATCH"; diff --git a/core/java/android/service/autofill/AutofillFieldClassificationService.java b/core/java/android/service/autofill/AutofillFieldClassificationService.java index 5f64755f7337..320dcec675cc 100644 --- a/core/java/android/service/autofill/AutofillFieldClassificationService.java +++ b/core/java/android/service/autofill/AutofillFieldClassificationService.java @@ -113,8 +113,9 @@ public abstract class AutofillFieldClassificationService extends Service { private final Handler mHandler = new Handler(Looper.getMainLooper(), null, true); /** @hide */ + @SystemApi + @TestApi public AutofillFieldClassificationService() { - } @Override |