To handle the case where an app sends a notification directly
to a custom channel, and to properly show priority markings
on conversation tiles
Test: atest; manually ensure convo tiles are marked as priority
Fixes: 184709662
Change-Id: I8f9b6169943da5670bc09fd16bbe692fd43d2cf6
- Clears binder identity before scheduling status expiry to avoid
SecurityException crash.
- Fixes duplicate "days days" on last interaction.
- Allows the "name" to wrap lines on 2x1 if there is no last interaciton
time showing.
- Update story ring to correct colors
Bug: 183084168
Fixes: 189095017, 180839900
Test: PeopleTileViewHelperTest
Change-Id: I7adc3d6608ffe8c3626b03f411650271de10cb8b
Add debug logging as well, and mimic the same logic in
PeopleSpaceWidgetManager to avoid the extra Binder call
Bug: 182195735
Test: DataManagerTest
Change-Id: I4d042e26d00f421a24203cc659fb3a376f9df033
Discovered bug that shortcuts sometimes disappear. Add logging so we
can confirm this root cause consistently causes the storage loss, or
find out there's more storage issues to investigate.
Test: local
Bug: 182286433
Change-Id: If2d4ac0d6960d57bb53193dc063a6fd85c620396
Route the sharesheet user interaction from PeopleService to Remote Prediction Service, while PeopleService is making inference for sharesheet.
It is guarded by the flag "adb shell device_config put systemui dark_launch_remote_prediction_service_enabled true"
Test: test on local device
Bug: 180933488
Change-Id: I7db52c69224e69ad3125362185e2ffd1a474bb78
Merged-In: I7db52c69224e69ad3125362185e2ffd1a474bb78
(cherry picked from commit 51daca2ea3)
Add hidden ConversationListener and registration in PeopleManager
for People Tiles to register a listener to individual
conversation storage changes for targetted updates.
Test: DataManagerTest, PeopleServiceTest, PeopleManagerTest
Bug: 178792356
Change-Id: I0cab6913c138d6ac515fed74741dd62bf967772b
For People Tiles to access the statuses associated with the
conversation.
Bug: 178792356
Test: DataManagerTest
Change-Id: I10763861f6ec4bf010be27b7aa0baa1038a0f087
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 d546f62063)
Status are transient pices of information about the current
activities or availability of someone in a conversation. They
may be shown in places where conversations are shown.
Test: atest, cts
Bug: 163617224
Change-Id: I4b61bc3b7f338e9c8cae2c6142622a7040547ddb
- Provide some extra information needed to display conversations
and to create their conversation specific channels
- Uncache unmodified recent conversations after 10 days
Test: atest
Bug: 171191376
Change-Id: I33ddc2485d560b7252b99af02ed796b667ec02e7
Based on the CONVERSATION_TYPE flag, shows only priority conversations
or all conversations. Defaults to showing all conversations.
Test: locally
Bug: 169783793
Change-Id: I4cb62cc9e4f9e5e488247d97b5624be97a94f8b0
A conversation still needs to post a notification in order to be showing
in the recent conversations list. But couting the in-app conversations
will update their last usage timestamp whch affects the order of each
conversation in the list.
Bug: 162593584
Test: manual test + atest
Change-Id: I8ceeb4f39d525c9137abaf01bd54cd873cb07bde
To match notifications and other services.
Test: IPeopleManager.Stub.asInterface(
ServiceManager.getService(Context.PEOPLE_SERVICE)) does
not return null
Bug: 169783793
Change-Id: Ib3956af71a0c02478c3f91aa5b20eb2628ce93a4
Retrieves the last interaction for a given conversation (provided
package, userId and shortcutId).
Test: atest DataManagerTest
Bug: 169412531
Change-Id: Ie6f6d87e9ade78b99a18deb2959d0c699579c5f2
A conversation is a cached recent conversation if all below conditions
are met:
1) its shortcut is cached
2) its notification setting is not customized
3) it has recent notifications
A recent conversation can only be removed if it does not have any
active notifications.
Bug: 162593584
Test: atest + manual test
Change-Id: I0d820a6a2bb82ceb238c3f559e108829d1547291
By default weights are 0 which ensures ranking same as what it is now.
Bug: 168212835
Test: atest com.android.server.people.prediction.SharesheetModelScorerTest
Change-Id: I02eaa5b6a448c33b51e5f4c6acaba93e7a2bd995
This @hide API allows the settings to retrieve and remove recent cached
conversations from people service.
Bug: 162593584
Test: test on device
Change-Id: I176d87a0fb1ca3ebcc24bdb1cebcb6d8f4c9bb53
This would help rank shortcuts targets properly when there is no enough sharing history on them.
Bug: 158022238
Test: atest com.android.server.people.prediction.ShareTargetPredictorTest
Change-Id: If802dcfea5c9c8442349c2c67fa71bb4b431cca9
In this case, return empty list for direct share, default list for app share, skip
reporting sharing targets.
Bug: 157647326
Test: manually test File 'open with' flow
Change-Id: I3efb87a84048e5d1b2d58b1cc9669eb4568956dd
Before this change, People Service uses the presence of the Person object
in ShortcutInfo as the criteria of conversation shortcut. This changes
the criteria that the shortcut needs to be a share shortcut instead of having Person object.
Change-Id: I1ea52a50c909ca96365c1d4e55af97931d048d8f
Test: atest ShortcutHelperTest
Test: atest DataManagerTest
Bug: 154254830
Add a Logger for sharesheet and add calls into ChooserActivity.java
Bug: 147508495
Test: manual testing and added unit tests into ChooserActivityTests.
Change-Id: I0024b5020f47475a28c4745af4d8ef268e5f85be