Merge "Moving the NO_SESSION_ID constant from ContentCaptureSession to ContentCaptureManager" into rvc-dev am: d347c7acaf
Change-Id: Icb0f2d9ce39da5e36ff34a1f10f492a9340312f5
This commit is contained in:
@@ -12704,9 +12704,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
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -17,12 +17,12 @@ package android.view.contentcapture;
|
||||
|
||||
import static android.view.contentcapture.ContentCaptureHelper.sDebug;
|
||||
import static android.view.contentcapture.ContentCaptureHelper.sVerbose;
|
||||
import static android.view.contentcapture.ContentCaptureManager.NO_SESSION_ID;
|
||||
|
||||
import android.annotation.CallSuper;
|
||||
import android.annotation.IntDef;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.SystemApi;
|
||||
import android.graphics.Insets;
|
||||
import android.util.DebugUtils;
|
||||
import android.util.Log;
|
||||
@@ -52,13 +52,6 @@ public abstract class ContentCaptureSession implements AutoCloseable {
|
||||
|
||||
private static final Random sIdGenerator = new Random();
|
||||
|
||||
/**
|
||||
* ID used to indicate that a session does not exist
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int NO_SESSION_ID = 0;
|
||||
|
||||
/**
|
||||
* Initial state, when there is no session.
|
||||
*
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package com.android.server.contentcapture;
|
||||
|
||||
import static android.service.contentcapture.ContentCaptureService.setClientState;
|
||||
import static android.view.contentcapture.ContentCaptureSession.NO_SESSION_ID;
|
||||
import static android.view.contentcapture.ContentCaptureManager.NO_SESSION_ID;
|
||||
import static android.view.contentcapture.ContentCaptureSession.STATE_DISABLED;
|
||||
import static android.view.contentcapture.ContentCaptureSession.STATE_DUPLICATED_ID;
|
||||
import static android.view.contentcapture.ContentCaptureSession.STATE_INTERNAL_ERROR;
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
package com.android.server.contentcapture;
|
||||
|
||||
import static android.service.contentcapture.ContentCaptureService.setClientState;
|
||||
import static android.view.contentcapture.ContentCaptureManager.NO_SESSION_ID;
|
||||
import static android.view.contentcapture.ContentCaptureManager.RESULT_CODE_FALSE;
|
||||
import static android.view.contentcapture.ContentCaptureManager.RESULT_CODE_TRUE;
|
||||
import static android.view.contentcapture.ContentCaptureSession.NO_SESSION_ID;
|
||||
import static android.view.contentcapture.ContentCaptureSession.STATE_ACTIVE;
|
||||
import static android.view.contentcapture.ContentCaptureSession.STATE_DISABLED;
|
||||
import static android.view.contentcapture.ContentCaptureSession.STATE_SERVICE_RESURRECTED;
|
||||
|
||||
Reference in New Issue
Block a user