Merge "ContentCapture: DEBUG flag to log raw text" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
949b4d2940
@@ -16,6 +16,7 @@
|
||||
package android.view.contentcapture;
|
||||
|
||||
import static android.view.contentcapture.ContentCaptureHelper.getSanitizedString;
|
||||
import static android.view.contentcapture.ContentCaptureManager.DEBUG;
|
||||
import static android.view.contentcapture.ContentCaptureManager.NO_SESSION_ID;
|
||||
|
||||
import android.annotation.IntDef;
|
||||
@@ -509,11 +510,13 @@ public final class ContentCaptureEvent implements Parcelable {
|
||||
string.append(", class=").append(className);
|
||||
string.append(", id=").append(mNode.getAutofillId());
|
||||
if (mNode.getText() != null) {
|
||||
string.append(", text=").append(getSanitizedString(mNode.getText()));
|
||||
string.append(", text=")
|
||||
.append(DEBUG ? mNode.getText() : getSanitizedString(mNode.getText()));
|
||||
}
|
||||
}
|
||||
if (mText != null) {
|
||||
string.append(", text=").append(getSanitizedString(mText));
|
||||
string.append(", text=")
|
||||
.append(DEBUG ? mText : getSanitizedString(mText));
|
||||
}
|
||||
if (mClientContext != null) {
|
||||
string.append(", context=").append(mClientContext);
|
||||
|
||||
@@ -212,6 +212,9 @@ public final class ContentCaptureManager {
|
||||
|
||||
private static final String TAG = ContentCaptureManager.class.getSimpleName();
|
||||
|
||||
/** @hide */
|
||||
public static final boolean DEBUG = false;
|
||||
|
||||
/** Error happened during the data sharing session. */
|
||||
public static final int DATA_SHARE_ERROR_UNKNOWN = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user