Loading Android.mk +0 −1 Original line number Diff line number Diff line Loading @@ -273,7 +273,6 @@ LOCAL_SRC_FILES += \ core/java/android/security/IKeystoreService.aidl \ core/java/android/security/keymaster/IKeyAttestationApplicationIdProvider.aidl \ core/java/android/service/autofill/IAutoFillService.aidl \ core/java/android/service/autofill/IAutoFillServiceConnection.aidl \ core/java/android/service/autofill/IFillCallback.aidl \ core/java/android/service/autofill/ISaveCallback.aidl \ core/java/android/service/carrier/ICarrierService.aidl \ Loading api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -36986,7 +36986,6 @@ package android.service.autofill { public abstract class AutofillService extends android.app.Service { ctor public AutofillService(); method public final void disableSelf(); method public final android.os.IBinder onBind(android.content.Intent); method public void onConnected(); method public void onDisconnected(); Loading Loading @@ -47732,6 +47731,7 @@ package android.view.autofill { public final class AutofillManager { method public void cancel(); method public void commit(); method public void disableOwnedAutofillServices(); method public boolean isEnabled(); method public void notifyValueChanged(android.view.View); method public void notifyValueChanged(android.view.View, int, android.view.autofill.AutofillValue); api/system-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -40082,7 +40082,6 @@ package android.service.autofill { public abstract class AutofillService extends android.app.Service { ctor public AutofillService(); method public final void disableSelf(); method public final android.os.IBinder onBind(android.content.Intent); method public void onConnected(); method public void onDisconnected(); Loading Loading @@ -51284,6 +51283,7 @@ package android.view.autofill { public final class AutofillManager { method public void cancel(); method public void commit(); method public void disableOwnedAutofillServices(); method public boolean isEnabled(); method public void notifyValueChanged(android.view.View); method public void notifyValueChanged(android.view.View, int, android.view.autofill.AutofillValue); api/test-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -37144,7 +37144,6 @@ package android.service.autofill { public abstract class AutofillService extends android.app.Service { ctor public AutofillService(); method public final void disableSelf(); method public final android.os.IBinder onBind(android.content.Intent); method public void onConnected(); method public void onDisconnected(); Loading Loading @@ -48114,6 +48113,7 @@ package android.view.autofill { public final class AutofillManager { method public void cancel(); method public void commit(); method public void disableOwnedAutofillServices(); method public boolean isEnabled(); method public void notifyValueChanged(android.view.View); method public void notifyValueChanged(android.view.View, int, android.view.autofill.AutofillValue); core/java/android/service/autofill/AutofillService.java +6 −22 Original line number Diff line number Diff line Loading @@ -94,9 +94,9 @@ public abstract class AutofillService extends Service { private final IAutoFillService mInterface = new IAutoFillService.Stub() { @Override public void onInit(IAutoFillServiceConnection connection) { if (connection != null) { mHandlerCaller.obtainMessageO(MSG_CONNECT, connection).sendToTarget(); public void onConnectedStateChanged(boolean connected) { if (connected) { mHandlerCaller.obtainMessage(MSG_CONNECT).sendToTarget(); } else { mHandlerCaller.obtainMessage(MSG_DISCONNECT).sendToTarget(); } Loading Loading @@ -127,7 +127,6 @@ public abstract class AutofillService extends Service { private final HandlerCaller.Callback mHandlerCallback = (msg) -> { switch (msg.what) { case MSG_CONNECT: { mConnection = (IAutoFillServiceConnection) msg.obj; onConnected(); break; } case MSG_ON_FILL_REQUEST: { Loading @@ -152,7 +151,6 @@ public abstract class AutofillService extends Service { break; } case MSG_DISCONNECT: { onDisconnected(); mConnection = null; break; } default: { Log.w(TAG, "MyCallbacks received invalid message type: " + msg); Loading @@ -162,8 +160,6 @@ public abstract class AutofillService extends Service { private HandlerCaller mHandlerCaller; private IAutoFillServiceConnection mConnection; /** * {@inheritDoc} * Loading Loading @@ -246,21 +242,9 @@ public abstract class AutofillService extends Service { public void onDisconnected() { } /** * Disables the service. After calling this method, the service will * be disabled and settings will show that it is turned off. * * <p>You should call this method only after a call to {@link #onConnected()} * and before the corresponding call to {@link #onDisconnected()}. In other words * you can disable your service only while the system is connected to it.</p> */ /** @hide */ public final void disableSelf() { if (mConnection != null) { try { mConnection.disableSelf(); } catch (RemoteException re) { throw re.rethrowFromSystemServer(); } } // TODO(b/33197203): Remove when GCore has migrated off this API getSystemService(AutofillManager.class).disableOwnedAutofillServices(); } } Loading
Android.mk +0 −1 Original line number Diff line number Diff line Loading @@ -273,7 +273,6 @@ LOCAL_SRC_FILES += \ core/java/android/security/IKeystoreService.aidl \ core/java/android/security/keymaster/IKeyAttestationApplicationIdProvider.aidl \ core/java/android/service/autofill/IAutoFillService.aidl \ core/java/android/service/autofill/IAutoFillServiceConnection.aidl \ core/java/android/service/autofill/IFillCallback.aidl \ core/java/android/service/autofill/ISaveCallback.aidl \ core/java/android/service/carrier/ICarrierService.aidl \ Loading
api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -36986,7 +36986,6 @@ package android.service.autofill { public abstract class AutofillService extends android.app.Service { ctor public AutofillService(); method public final void disableSelf(); method public final android.os.IBinder onBind(android.content.Intent); method public void onConnected(); method public void onDisconnected(); Loading Loading @@ -47732,6 +47731,7 @@ package android.view.autofill { public final class AutofillManager { method public void cancel(); method public void commit(); method public void disableOwnedAutofillServices(); method public boolean isEnabled(); method public void notifyValueChanged(android.view.View); method public void notifyValueChanged(android.view.View, int, android.view.autofill.AutofillValue);
api/system-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -40082,7 +40082,6 @@ package android.service.autofill { public abstract class AutofillService extends android.app.Service { ctor public AutofillService(); method public final void disableSelf(); method public final android.os.IBinder onBind(android.content.Intent); method public void onConnected(); method public void onDisconnected(); Loading Loading @@ -51284,6 +51283,7 @@ package android.view.autofill { public final class AutofillManager { method public void cancel(); method public void commit(); method public void disableOwnedAutofillServices(); method public boolean isEnabled(); method public void notifyValueChanged(android.view.View); method public void notifyValueChanged(android.view.View, int, android.view.autofill.AutofillValue);
api/test-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -37144,7 +37144,6 @@ package android.service.autofill { public abstract class AutofillService extends android.app.Service { ctor public AutofillService(); method public final void disableSelf(); method public final android.os.IBinder onBind(android.content.Intent); method public void onConnected(); method public void onDisconnected(); Loading Loading @@ -48114,6 +48113,7 @@ package android.view.autofill { public final class AutofillManager { method public void cancel(); method public void commit(); method public void disableOwnedAutofillServices(); method public boolean isEnabled(); method public void notifyValueChanged(android.view.View); method public void notifyValueChanged(android.view.View, int, android.view.autofill.AutofillValue);
core/java/android/service/autofill/AutofillService.java +6 −22 Original line number Diff line number Diff line Loading @@ -94,9 +94,9 @@ public abstract class AutofillService extends Service { private final IAutoFillService mInterface = new IAutoFillService.Stub() { @Override public void onInit(IAutoFillServiceConnection connection) { if (connection != null) { mHandlerCaller.obtainMessageO(MSG_CONNECT, connection).sendToTarget(); public void onConnectedStateChanged(boolean connected) { if (connected) { mHandlerCaller.obtainMessage(MSG_CONNECT).sendToTarget(); } else { mHandlerCaller.obtainMessage(MSG_DISCONNECT).sendToTarget(); } Loading Loading @@ -127,7 +127,6 @@ public abstract class AutofillService extends Service { private final HandlerCaller.Callback mHandlerCallback = (msg) -> { switch (msg.what) { case MSG_CONNECT: { mConnection = (IAutoFillServiceConnection) msg.obj; onConnected(); break; } case MSG_ON_FILL_REQUEST: { Loading @@ -152,7 +151,6 @@ public abstract class AutofillService extends Service { break; } case MSG_DISCONNECT: { onDisconnected(); mConnection = null; break; } default: { Log.w(TAG, "MyCallbacks received invalid message type: " + msg); Loading @@ -162,8 +160,6 @@ public abstract class AutofillService extends Service { private HandlerCaller mHandlerCaller; private IAutoFillServiceConnection mConnection; /** * {@inheritDoc} * Loading Loading @@ -246,21 +242,9 @@ public abstract class AutofillService extends Service { public void onDisconnected() { } /** * Disables the service. After calling this method, the service will * be disabled and settings will show that it is turned off. * * <p>You should call this method only after a call to {@link #onConnected()} * and before the corresponding call to {@link #onDisconnected()}. In other words * you can disable your service only while the system is connected to it.</p> */ /** @hide */ public final void disableSelf() { if (mConnection != null) { try { mConnection.disableSelf(); } catch (RemoteException re) { throw re.rethrowFromSystemServer(); } } // TODO(b/33197203): Remove when GCore has migrated off this API getSystemService(AutofillManager.class).disableOwnedAutofillServices(); } }