diff --git a/api/system-current.txt b/api/system-current.txt index f30df01e0bbbf..c7f49262a02c6 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -6429,7 +6429,7 @@ package android.service.contentcapture { public abstract class ContentCaptureService extends android.app.Service { ctor public ContentCaptureService(); - method public final void disableContentCaptureServices(); + method public final void disableSelf(); method public void onActivityEvent(@NonNull android.service.contentcapture.ActivityEvent); method public void onActivitySnapshot(@NonNull android.view.contentcapture.ContentCaptureSessionId, @NonNull android.service.contentcapture.SnapshotData); method public void onConnected(); diff --git a/api/test-current.txt b/api/test-current.txt index 16fdc941bb285..7bb50b5adc265 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -2433,7 +2433,7 @@ package android.service.contentcapture { public abstract class ContentCaptureService extends android.app.Service { ctor public ContentCaptureService(); - method public final void disableContentCaptureServices(); + method public final void disableSelf(); method public void onActivityEvent(@NonNull android.service.contentcapture.ActivityEvent); method public void onActivitySnapshot(@NonNull android.view.contentcapture.ContentCaptureSessionId, @NonNull android.service.contentcapture.SnapshotData); method public void onConnected(); diff --git a/core/java/android/service/contentcapture/ContentCaptureService.java b/core/java/android/service/contentcapture/ContentCaptureService.java index df113979bacf4..988ddd2508be6 100644 --- a/core/java/android/service/contentcapture/ContentCaptureService.java +++ b/core/java/android/service/contentcapture/ContentCaptureService.java @@ -298,12 +298,12 @@ public abstract class ContentCaptureService extends Service { /** * Disables the Content Capture service for the given user. */ - public final void disableContentCaptureServices() { - if (sDebug) Log.d(TAG, "disableContentCaptureServices()"); + public final void disableSelf() { + if (sDebug) Log.d(TAG, "disableSelf()"); final IContentCaptureServiceCallback callback = mCallback; if (callback == null) { - Log.w(TAG, "disableContentCaptureServices(): no server callback"); + Log.w(TAG, "disableSelf(): no server callback"); return; } try {