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

Commit 6f33b10a authored by Mihir Patel's avatar Mihir Patel
Browse files

Moving the NO_SESSION_ID constant from ContentCaptureSession to ContentCaptureManager

Bug: 150599209
Test: manual
Change-Id: I3e7b67cf92ddb6405829ec3c6ed2c491b4e77cab
parent da41b0a2
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -12705,9 +12705,6 @@ package android.view.contentcapture {
  public final class ContentCaptureManager {
    method public boolean isContentCaptureFeatureEnabled();
  }
  public abstract class ContentCaptureSession implements java.lang.AutoCloseable {
    field public static final int NO_SESSION_ID = 0; // 0x0
  }
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ package android.service.contentcapture;
import static android.view.contentcapture.ContentCaptureHelper.sDebug;
import static android.view.contentcapture.ContentCaptureHelper.sVerbose;
import static android.view.contentcapture.ContentCaptureHelper.toList;
import static android.view.contentcapture.ContentCaptureSession.NO_SESSION_ID;
import static android.view.contentcapture.ContentCaptureManager.NO_SESSION_ID;

import static com.android.internal.util.function.pooled.PooledLambda.obtainMessage;

+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
 */
package android.view.contentcapture;

import static android.view.contentcapture.ContentCaptureSession.NO_SESSION_ID;
import static android.view.contentcapture.ContentCaptureManager.NO_SESSION_ID;

import android.annotation.IntDef;
import android.annotation.NonNull;
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
package android.view.contentcapture;

import static android.view.contentcapture.ContentCaptureHelper.getSanitizedString;
import static android.view.contentcapture.ContentCaptureSession.NO_SESSION_ID;
import static android.view.contentcapture.ContentCaptureManager.NO_SESSION_ID;

import android.annotation.IntDef;
import android.annotation.NonNull;
+7 −0
Original line number Diff line number Diff line
@@ -234,6 +234,13 @@ public final class ContentCaptureManager {
    /** @hide */
    public static final int RESULT_CODE_SECURITY_EXCEPTION = -1;

    /**
     * ID used to indicate that a session does not exist
     * @hide
     */
    @SystemApi
    public static final int NO_SESSION_ID = 0;

    /**
     * Timeout for calls to system_server.
     */
Loading