summaryrefslogtreecommitdiffstats
path: root/core/java/android/provider
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2014-07-09 19:12:26 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2014-07-10 16:39:08 +0000
commit2331e9ebade7c7ebc55eaed7a642ba0f90fbc0f7 (patch)
tree04428bb07f8360ab28071ed84d739271b9a3adc2 /core/java/android/provider
parent70779c71ddf7e6756d054e2de934c9fe35756e5d (diff)
downloadframeworks_base-2331e9ebade7c7ebc55eaed7a642ba0f90fbc0f7.zip
frameworks_base-2331e9ebade7c7ebc55eaed7a642ba0f90fbc0f7.tar.gz
frameworks_base-2331e9ebade7c7ebc55eaed7a642ba0f90fbc0f7.tar.bz2
Add userId as a new field for SearchIndexableData
See bug: #15837747 Search - update for Enterprise support Change-Id: I1231f8870754aafa449a4c17350be70b524da230
Diffstat (limited to 'core/java/android/provider')
-rw-r--r--core/java/android/provider/SearchIndexableData.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/provider/SearchIndexableData.java b/core/java/android/provider/SearchIndexableData.java
index 60bcc40..7b9d1ea 100644
--- a/core/java/android/provider/SearchIndexableData.java
+++ b/core/java/android/provider/SearchIndexableData.java
@@ -58,6 +58,12 @@ public abstract class SearchIndexableData {
public String key;
/**
+ * The UserID for the data (in a multi user context). This is application specific and -1 is the
+ * default non initialized value.
+ */
+ public int userId = -1;
+
+ /**
* The class name associated with the data. Generally this is a Fragment class name for
* referring where the data is coming from and for launching the associated Fragment for
* displaying the data. This is used only when the data is provided "locally".
@@ -147,6 +153,9 @@ public abstract class SearchIndexableData {
sb.append("key: ");
sb.append(key);
sb.append(", ");
+ sb.append("userId: ");
+ sb.append(userId);
+ sb.append(", ");
sb.append("className: ");
sb.append(className);
sb.append(", ");