Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51f3f610 authored by Narayan Kamath's avatar Narayan Kamath
Browse files

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
parent f80171ef
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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>);
+1 −0
Original line number Diff line number Diff line
@@ -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";
+2 −1
Original line number Diff line number Diff line
@@ -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