summaryrefslogtreecommitdiffstats
path: root/core/java/android/os/UserManager.java
diff options
context:
space:
mode:
authorNicolas Prevot <nprevot@google.com>2014-06-25 09:29:02 +0100
committerNicolas Prévot <nprevot@google.com>2014-07-24 10:25:57 +0000
commitf1939901d2ed0480069f0b23be64f122fce93995 (patch)
treecebc40b9a7c15cd56cff7154da2a5b3f19888061 /core/java/android/os/UserManager.java
parent3ea4310a2245763de1ba29b8ce0a21e99a702746 (diff)
downloadframeworks_base-f1939901d2ed0480069f0b23be64f122fce93995.zip
frameworks_base-f1939901d2ed0480069f0b23be64f122fce93995.tar.gz
frameworks_base-f1939901d2ed0480069f0b23be64f122fce93995.tar.bz2
Making the clipboard work across users.
When copying from the parent: the ClipData can be pasted in the managed profile. When copying from a managed profile: it can be pasted in the parent, unless the policies says it's disabled. In which case, the clipboard of the parent becomes empty. Supporting content uris. BUG: 15186236 Change-Id: I522564a7c07ff21df137adcda980bb52e5739964
Diffstat (limited to 'core/java/android/os/UserManager.java')
-rw-r--r--core/java/android/os/UserManager.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java
index d3aee50..45edf28 100644
--- a/core/java/android/os/UserManager.java
+++ b/core/java/android/os/UserManager.java
@@ -310,6 +310,18 @@ public class UserManager {
*/
public static final String DISALLOW_CREATE_WINDOWS = "no_create_windows";
+ /**
+ * Key for user restrictions. Specifies if what is copied in the clipboard of this profile can
+ * be pasted in related profiles. Does not restrict if the clipboard of related profiles can be
+ * pasted in this profile.
+ * The default value is <code>false</code>.
+ * <p/>
+ * Type: Boolean
+ * @see #setUserRestrictions(Bundle)
+ * @see #getUserRestrictions()
+ */
+ public static final String DISALLOW_CROSS_PROFILE_COPY_PASTE = "no_cross_profile_copy_paste";
+
/** @hide */
public static final int PIN_VERIFICATION_FAILED_INCORRECT = -3;
/** @hide */