summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorAnna Zappone <azappone@google.com>2021-01-29 18:03:55 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-01-29 18:03:55 +0000
commit1389c8ce62bb17881d19bff545dee175c3ee0124 (patch)
tree8f3dc44ae0e65a25493ee910d737f403f09a7c63 /core/java/android
parent2a67d9d5a10b1b80db4d59b6661d09f6b2c329b6 (diff)
parent30ebaa214af27b10b262124cb90f714bbae1b578 (diff)
Merge "Expose new PeopleService API for People Tiles" into sc-dev
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/people/ConversationChannel.aidl19
-rw-r--r--core/java/android/app/people/IPeopleManager.aidl8
2 files changed, 27 insertions, 0 deletions
diff --git a/core/java/android/app/people/ConversationChannel.aidl b/core/java/android/app/people/ConversationChannel.aidl
new file mode 100644
index 000000000000..78df2f10c337
--- /dev/null
+++ b/core/java/android/app/people/ConversationChannel.aidl
@@ -0,0 +1,19 @@
+/**
+ * Copyright (c) 2021, The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.app.people;
+
+parcelable ConversationChannel; \ No newline at end of file
diff --git a/core/java/android/app/people/IPeopleManager.aidl b/core/java/android/app/people/IPeopleManager.aidl
index 0d12ed02f610..ebe9f60dc150 100644
--- a/core/java/android/app/people/IPeopleManager.aidl
+++ b/core/java/android/app/people/IPeopleManager.aidl
@@ -17,6 +17,7 @@
package android.app.people;
import android.app.people.ConversationStatus;
+import android.app.people.ConversationChannel;
import android.content.pm.ParceledListSlice;
import android.net.Uri;
import android.os.IBinder;
@@ -26,6 +27,13 @@ import android.os.IBinder;
* {@hide}
*/
interface IPeopleManager {
+
+ /**
+ * Returns the specified conversation from the conversations list. If the conversation can't be
+ * found, returns null.
+ */
+ ConversationChannel getConversation(in String packageName, int userId, in String shortcutId);
+
/**
* Returns the recent conversations. The conversations that have customized notification
* settings are excluded from the returned list.