diff options
| author | Anna Zappone <azappone@google.com> | 2021-01-25 14:29:16 +0000 |
|---|---|---|
| committer | Anna Zappone <azappone@google.com> | 2021-01-29 14:49:55 +0000 |
| commit | 30ebaa214af27b10b262124cb90f714bbae1b578 (patch) | |
| tree | d1786473e762e6463ca2c5df6a3d72f3381ec308 /core/java/android | |
| parent | 59050b0853e8d3277b72ecccacf699d19f32b23a (diff) | |
Expose new PeopleService API for People Tiles
Avoid over-querying data by returning a single ConversationChannel when
requested by shortcut ID.
Test: DataManagerTest
Bug: 178792356
Change-Id: I181682b70022d1ce0b055ce1e7c97f5b84c6f1f0
(cherry picked from commit d546f6206372ece3ce65451c24f0bc097f6e966f)
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/app/people/ConversationChannel.aidl | 19 | ||||
| -rw-r--r-- | core/java/android/app/people/IPeopleManager.aidl | 8 |
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. |
