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

Skip to content
Snippets Groups Projects
Commit 6de38c88 authored by Miranda Kephart's avatar Miranda Kephart
Browse files

Add IS_REMOTE extra for ClipData

This extra can be used to indicate that a ClipData comes from a
separate device rather than being local. It is a rendering hint
that can be used to take different behavior based on the source
device of copied data.

Bug: 246808749
Test: manual (no behavior change)
Change-Id: I6998b7a216fac73a1387367f4179efb95d7562c5
parent cc85b03a
Branches
No related tags found
No related merge requests found
...@@ -9246,6 +9246,7 @@ package android.content { ...@@ -9246,6 +9246,7 @@ package android.content {
field public static final int CLASSIFICATION_NOT_COMPLETE = 1; // 0x1 field public static final int CLASSIFICATION_NOT_COMPLETE = 1; // 0x1
field public static final int CLASSIFICATION_NOT_PERFORMED = 2; // 0x2 field public static final int CLASSIFICATION_NOT_PERFORMED = 2; // 0x2
field @NonNull public static final android.os.Parcelable.Creator<android.content.ClipDescription> CREATOR; field @NonNull public static final android.os.Parcelable.Creator<android.content.ClipDescription> CREATOR;
field public static final String EXTRA_IS_REMOTE_DEVICE = "android.content.extra.IS_REMOTE_DEVICE";
field public static final String EXTRA_IS_SENSITIVE = "android.content.extra.IS_SENSITIVE"; field public static final String EXTRA_IS_SENSITIVE = "android.content.extra.IS_SENSITIVE";
field public static final String MIMETYPE_TEXT_HTML = "text/html"; field public static final String MIMETYPE_TEXT_HTML = "text/html";
field public static final String MIMETYPE_TEXT_INTENT = "text/vnd.android.intent"; field public static final String MIMETYPE_TEXT_INTENT = "text/vnd.android.intent";
...@@ -139,21 +139,28 @@ public class ClipDescription implements Parcelable { ...@@ -139,21 +139,28 @@ public class ClipDescription implements Parcelable {
* password or credit card number. * password or credit card number.
* <p> * <p>
* Type: boolean * Type: boolean
* </p>
* <p> * <p>
* This extra can be used to indicate that a ClipData contains sensitive information that * This extra can be used to indicate that a ClipData contains sensitive information that
* should be redacted or hidden from view until a user takes explicit action to reveal it * should be redacted or hidden from view until a user takes explicit action to reveal it
* (e.g., by pasting). * (e.g., by pasting).
* </p>
* <p> * <p>
* Adding this extra does not change clipboard behavior or add additional security to * Adding this extra does not change clipboard behavior or add additional security to
* the ClipData. Its purpose is essentially a rendering hint from the source application, * the ClipData. Its purpose is essentially a rendering hint from the source application,
* asking that the data within be obfuscated or redacted, unless the user has taken action * asking that the data within be obfuscated or redacted, unless the user has taken action
* to make it visible. * to make it visible.
* </p>
*/ */
public static final String EXTRA_IS_SENSITIVE = "android.content.extra.IS_SENSITIVE"; public static final String EXTRA_IS_SENSITIVE = "android.content.extra.IS_SENSITIVE";
/** Indicates that a ClipData's source is a remote device.
* <p>
* Type: boolean
* <p>
* This extra can be used to indicate that a ClipData comes from a separate device rather
* than being local. It is a rendering hint that can be used to take different behavior
* based on the source device of copied data.
*/
public static final String EXTRA_IS_REMOTE_DEVICE = "android.content.extra.IS_REMOTE_DEVICE";
/** @hide */ /** @hide */
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.SOURCE)
@IntDef(value = @IntDef(value =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment