diff options
| author | 2022-10-28 20:54:17 +0000 | |
|---|---|---|
| committer | 2022-10-28 20:54:17 +0000 | |
| commit | 07d111f508a37fd856eabfffaa67ad141fd0c49b (patch) | |
| tree | 258ad1e1baa5510a1e8931fba89827ab9fb99239 | |
| parent | 23e0cefe9f2125475895e9442a961ea0ea7dec83 (diff) | |
| parent | b4a5acfcc2a13fc1968f5e6296ac77c410247394 (diff) | |
Merge "Add IS_REMOTE extra for ClipData" into tm-qpr-dev
| -rw-r--r-- | core/java/android/content/ClipDescription.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/core/java/android/content/ClipDescription.java b/core/java/android/content/ClipDescription.java index bf466116009b..3712fe340980 100644 --- a/core/java/android/content/ClipDescription.java +++ b/core/java/android/content/ClipDescription.java @@ -139,21 +139,29 @@ public class ClipDescription implements Parcelable { * password or credit card number. * <p> * Type: boolean - * </p> * <p> * 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 * (e.g., by pasting). - * </p> * <p> * 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, * asking that the data within be obfuscated or redacted, unless the user has taken action * to make it visible. - * </p> */ 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. + * @hide + */ + public static final String EXTRA_IS_REMOTE_DEVICE = "android.content.extra.IS_REMOTE_DEVICE"; + /** @hide */ @Retention(RetentionPolicy.SOURCE) @IntDef(value = |