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

Commit 000f7cd6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Initial IME integration."

parents 13fd7f18 3461d3c0
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -46210,6 +46210,13 @@ package android.view.autofill {
    field public static final android.os.Parcelable.Creator<android.view.autofill.AutoFillId> CREATOR;
  }
  public final class AutoFillManager {
    method public void updateAutoFillInput(android.view.View, int);
    method public void updateAutoFillInput(android.view.View, int, android.graphics.Rect, int);
    field public static final int FLAG_UPDATE_UI_HIDE = 2; // 0x2
    field public static final int FLAG_UPDATE_UI_SHOW = 1; // 0x1
  }
  public final class AutoFillType implements android.os.Parcelable {
    method public int describeContents();
    method public static android.view.autofill.AutoFillType forList();
@@ -46269,7 +46276,7 @@ package android.view.autofill {
  public static abstract class VirtualViewDelegate.Callback {
    ctor public VirtualViewDelegate.Callback();
    method public void onFocusChanged(int, boolean);
    method public void onAutoFillInputUpdated(int, android.graphics.Rect, int);
    method public void onNodeRemoved(int...);
    method public void onValueChanged(int);
  }
+8 −1
Original line number Diff line number Diff line
@@ -49595,6 +49595,13 @@ package android.view.autofill {
    field public static final android.os.Parcelable.Creator<android.view.autofill.AutoFillId> CREATOR;
  }
  public final class AutoFillManager {
    method public void updateAutoFillInput(android.view.View, int);
    method public void updateAutoFillInput(android.view.View, int, android.graphics.Rect, int);
    field public static final int FLAG_UPDATE_UI_HIDE = 2; // 0x2
    field public static final int FLAG_UPDATE_UI_SHOW = 1; // 0x1
  }
  public final class AutoFillType implements android.os.Parcelable {
    method public int describeContents();
    method public static android.view.autofill.AutoFillType forList();
@@ -49654,7 +49661,7 @@ package android.view.autofill {
  public static abstract class VirtualViewDelegate.Callback {
    ctor public VirtualViewDelegate.Callback();
    method public void onFocusChanged(int, boolean);
    method public void onAutoFillInputUpdated(int, android.graphics.Rect, int);
    method public void onNodeRemoved(int...);
    method public void onValueChanged(int);
  }
+8 −1
Original line number Diff line number Diff line
@@ -46520,6 +46520,13 @@ package android.view.autofill {
    field public static final android.os.Parcelable.Creator<android.view.autofill.AutoFillId> CREATOR;
  }
  public final class AutoFillManager {
    method public void updateAutoFillInput(android.view.View, int);
    method public void updateAutoFillInput(android.view.View, int, android.graphics.Rect, int);
    field public static final int FLAG_UPDATE_UI_HIDE = 2; // 0x2
    field public static final int FLAG_UPDATE_UI_SHOW = 1; // 0x1
  }
  public final class AutoFillType implements android.os.Parcelable {
    method public int describeContents();
    method public static android.view.autofill.AutoFillType forList();
@@ -46579,7 +46586,7 @@ package android.view.autofill {
  public static abstract class VirtualViewDelegate.Callback {
    ctor public VirtualViewDelegate.Callback();
    method public void onFocusChanged(int, boolean);
    method public void onAutoFillInputUpdated(int, android.graphics.Rect, int);
    method public void onNodeRemoved(int...);
    method public void onValueChanged(int);
  }
+10 −0
Original line number Diff line number Diff line
@@ -112,6 +112,7 @@ import android.os.health.SystemHealthManager;
import android.os.storage.StorageManager;
import android.print.IPrintManager;
import android.print.PrintManager;
import android.service.autofill.IAutoFillManagerService;
import android.service.persistentdata.IPersistentDataBlockService;
import android.service.persistentdata.PersistentDataBlockManager;
import android.telecom.TelecomManager;
@@ -126,6 +127,7 @@ import android.view.WindowManager;
import android.view.WindowManagerImpl;
import android.view.accessibility.AccessibilityManager;
import android.view.accessibility.CaptioningManager;
import android.view.autofill.AutoFillManager;
import android.view.inputmethod.InputMethodManager;
import android.view.textclassifier.TextClassificationManager;
import android.view.textservice.TextServicesManager;
@@ -804,6 +806,14 @@ final class SystemServiceRegistry {
                        IBinder b = ServiceManager.getServiceOrThrow(Context.FONT_SERVICE);
                        return new FontManager(IFontManager.Stub.asInterface(b));
                    }});
        registerService(Context.AUTO_FILL_MANAGER_SERVICE, AutoFillManager.class,
                new CachedServiceFetcher<AutoFillManager>() {
            @Override
            public AutoFillManager createService(ContextImpl ctx) throws ServiceNotFoundException {
                IBinder b = ServiceManager.getServiceOrThrow(Context.AUTO_FILL_MANAGER_SERVICE);
                IAutoFillManagerService service = IAutoFillManagerService.Stub.asInterface(b);
                return new AutoFillManager(ctx, service);
            }});
    }

    /**
+2 −6
Original line number Diff line number Diff line
@@ -15,8 +15,6 @@
 */
package android.service.autofill;

import static android.service.voice.VoiceInteractionSession.KEY_FLAGS;
import static android.service.voice.VoiceInteractionSession.KEY_STRUCTURE;
import static android.view.View.AUTO_FILL_FLAG_TYPE_FILL;
import static android.view.View.AUTO_FILL_FLAG_TYPE_SAVE;

@@ -30,13 +28,11 @@ import android.os.CancellationSignal;
import android.os.IBinder;
import android.os.Looper;
import android.os.Message;
import android.os.RemoteException;
import android.util.Log;
import android.view.autofill.AutoFillId;
import android.view.autofill.FillResponse;

import com.android.internal.os.HandlerCaller;
import com.android.internal.os.IResultReceiver;
import com.android.internal.os.SomeArgs;

// TODO(b/33197203): improve javadoc (of both class and methods); in particular, make sure the
@@ -49,8 +45,8 @@ import com.android.internal.os.SomeArgs;
 */
public abstract class AutoFillService extends Service {

    static final String TAG = "AutoFillService";
    static final boolean DEBUG = true; // TODO: set to false once stable
    private static final String TAG = "AutoFillService";
    static final boolean DEBUG = true; // TODO(b/33197203): set to false once stable

    /**
     * The {@link Intent} that must be declared as handled by the service.
Loading