History log of /frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9eb5e102dcc7b2a694eeb48d566e1d419e3e6d89 26-Jan-2017 Chris Wren <cwren@android.com> port notificaiton logs to Tron v2

remove uninteresting people lookup timer logs

Bug: 34705522
Test: mmma -j20 platform_testing/tests/functional/notificationtests && adb install -r -g $OUT/data/app/NotificationFunctionalTests/NotificationFunctionalTests.apk && adb shell am instrument -w -e iterations 1 -e class com.android.notification.functional.NotificationInteractionTests com.android.notification.functional/android.support.test.runner.AndroidJUnitRunner
Change-Id: I27c17deab4372c93b41dd2821f08c8d10b73cfbf
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
22f02b3e4acd7c6983f4d4d58b85069d5ec920ab 01-Dec-2016 Julia Reynolds <juliacr@google.com> Accept adjustments from notification assistant.

Test: runtest systemui-notification & cts in same topic.
Change-Id: Icff1f89eac32b82d583eca24b0a15f67795912a1
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
66dfcc50dff82e50cd64d14b9aeea1c795876364 19-Nov-2015 Chris Wren <cwren@android.com> metrics for people validation

Change-Id: If53bb740ca3760e7335c93ad140bae2029d422b7
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
5eab2b72afe5b20dc66c237b1cceedfc09de2d52 16-Jun-2015 Chris Wren <cwren@android.com> high-frequency notification stats.

Aggregate and then periodically report stats that are high-frequency
because they are driven by app behavior, not user behavior.

Reuse the NotificationUsageStats facility.
Remove redundant stats.
Lessen memory foot print.
Enable in-memeory aggregates with small, bounded memory footprint.

Bug: 20258744
Change-Id: I87e391419c53917fa13c68a56f8cdb40a7c8e548
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
1a5dad867419e76928c84f0f4fdc4feacce43bbd 16-Jun-2015 Chris Wren <cwren@android.com> disable verbose logs from people notifications.

Bug: 20258744
Change-Id: Ifa3fb4f6aefaab4d6c669b1e60f8536515725c0f
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
723aa768f6d5b1a6696b9ac46c039d1b5be73dbf 09-Apr-2015 Chris Wren <cwren@android.com> Support ad hoc counters in the framework

with some examples in NotificationManagerService.

New counters in this CL:
note_with_people
note_dismiss_longevity
note_click_longevity

Bug: 20137009
Change-Id: I10b769ff4872d50f4c1c3828ea519f9712be7bc2
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
1588b77cddf6dd991fe9f7e19d4aafcc3715d1df 30-Sep-2014 Christoph Studer <chstuder@google.com> am 6849698f: am 7080a5f6: am 35c7eedc: am 0bb9d832: am f7c4509f: Merge "NoMan: Evaluate all contacts matching EXTRA_PEOPLE URI" into lmp-dev

* commit '6849698fd9363a71b6f19b73617880c05c21c959':
NoMan: Evaluate all contacts matching EXTRA_PEOPLE URI
9ffa50096f5ad980bdaef4d214ad1a835b9b2991 26-Sep-2014 Christoph Studer <chstuder@google.com> NoMan: Evaluate all contacts matching EXTRA_PEOPLE URI

Bug: 17660485
Change-Id: I8684067538fcd2d43a9f95c6aa707b275b13ee40
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
c085d57802456eb5a20cb39e29b10efc2c6b93d1 25-Sep-2014 Christoph Studer <chstuder@google.com> am 8efb93f2: am 0b6844cd: am 1c662485: am d9ca58c6: am 78205c2b: Merge "NoMan: Add 3s timeout in matchesCallFilter()" into lmp-dev

* commit '8efb93f27bee0f16612e108bf67b2a340c99c0a3':
NoMan: Add 3s timeout in matchesCallFilter()
12aeda802ed91a49977a22166319ce74a3352e30 23-Sep-2014 Christoph Studer <chstuder@google.com> NoMan: Add 3s timeout in matchesCallFilter()

In Priority mode, NoMan can block the telecom Ringer
indefinitely when looking up the caller contact details via
ContactsProvider.

Fix this by introducing a 3s timeout and assume the call
matches the call filter when the timeout is hit.

Bug: 17598245
Change-Id: Ia0893cf203e6ffd943c749719ebb9e0f0958eb01
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
a680ed2e34b46593c0bf4feaa5f6cb32d820068f 13-Sep-2014 Chris Wren <cwren@android.com> am 79f3992b: am 8bce74e6: am c92ee713: Merge "Invalidate the people cache on Contacts provider changes." into lmp-dev

* commit '79f3992bfed5c835ec4cf85f47caaec709264b74':
Invalidate the people cache on Contacts provider changes.
d79e4cd8c87cac1932bbcd7bc4d72c41ffcfbba9 13-Sep-2014 Chris Wren <cwren@android.com> am 700269d6: am 04322209: am c88b35aa: Merge "remove unused matchesCallFilter(Bundle, int)" into lmp-dev

* commit '700269d6a98920e3b7df9202b901f63852c75530':
remove unused matchesCallFilter(Bundle, int)
99f4c7d0c9c9c29ced22da0a8af4d1a04b0ef186 11-Sep-2014 Chris Wren <cwren@android.com> Invalidate the people cache on Contacts provider changes.

The Contacts database only seem to notify that a change has happened, not
which row was changed. We simply invalidate the whole cache on changes.

Added an info log for even 100th invalidation, so we can see how often it happens.

Bug: 17466975
Change-Id: I9988ea8db776c88afd835a4b3c50b9a982a309d0
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
f37dae7b60280279a100fb7870122f4e495c81ec 12-Sep-2014 Chris Wren <cwren@android.com> Add some debug info to ValidateNotificationPeople

Useful for tracking mutliuser bugs.

Change-Id: Ib5f18d5a99735626d0b1b0e063a9b3f9b0ca4dfb
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
7381daa0b99ef5beb224ffd2544a156af40e78d1 05-Sep-2014 Chris Wren <cwren@android.com> remove unused matchesCallFilter(Bundle, int)

Bug: 17402728
Change-Id: I0be7c70597a629ca0bd60b7230ffcc58e8e7aeac
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
da4bd209cffad7e47a4bc6e9f02c4bfc333d3d8d 04-Sep-2014 Chris Wren <cwren@android.com> Keep contact affinities separate across users.

Also ignore people extras on USER_ALL notifications.

Bug: 16213960
Change-Id: Ic0341c88d42d4a4f12cac35c0f41c2746aec02ac
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
2b122f4c2e691f0319e4f9ea5873989792bb56a6 27-Aug-2014 John Spurlock <jspurlock@google.com> Add a hidden system method to check call filter.

As a stopgap for dialer, add a NoMan method to check
whether or not contact extras meet the current notification
interruption filter, if phone calls are allowed at all.

Bug:17299986
Change-Id: I4d7e04b974d878504ef4e3a73cb6b602cdd2f73e
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
54bbef435ed857fc68941672799fc8001c101119 10-Jul-2014 Chris Wren <cwren@android.com> Implement application-level high priority bit.

Enable checkbox in settings and wire it to NotificationManagerSerivce.
Add RankingHelper to collect ranking configs and logic.

Bug: 15080024
Change-Id: Ib1d3b0b5ca4fcfdc52c2cb6838a009b9addf1094
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
9e427694a590b920f5af20b565ee008c4a73f714 30-May-2014 Chris Wren <cwren@android.com> am 3d2f4c6b: Add people signals to Zen mode.

* commit '3d2f4c6b1f3496de3b9c8ece1556684a6cb27903':
Add people signals to Zen mode.
9fd259dd2676043a41ffe1b6bb10aa2e5629dd63 30-May-2014 Chris Wren <cwren@android.com> am bef7d256: Merge "Track Zen Mode status in the NotificationRecord" into lmp-preview-dev

* commit 'bef7d25652c767f9850ec7ad6c51812b1c8db69d':
Track Zen Mode status in the NotificationRecord
99f963ea04d7a86219ece00c356f3f6bce33b6d6 28-May-2014 Chris Wren <cwren@android.com> Add people signals to Zen mode.

Depends-On: I51fcf689ddbee7715e3387b865f18a715887c943
Change-Id: I7c91dec1afeb54505426c4da59ec4d072a60c240
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
333a61c3a5a83fe9c50ebeb5c947317f61385b7b 28-May-2014 Chris Wren <cwren@android.com> Track Zen Mode status in the NotificationRecord

This requires the record to be present in makeRankingUpdateForListener,
however, if the ranking object is created before the post to the handler,
then no cloning is necessary.

Depends-On: I907a1ff28123219db1c08889d723ad1b70b191ab
Change-Id: I51fcf689ddbee7715e3387b865f18a715887c943
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
92af372fc60f59c628a7169d4a506e9c834c097a 27-May-2014 Chris Wren <cwren@android.com> add tests for ValidateNotificationPeople.getExtraPeople()

Change-Id: Ieb8acce58574c25cccce674b4494f75d96b57125
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
fb69da323b97ae4712054d37fb2f7d54cddb7dbd 16-May-2014 Chris Wren <cwren@android.com> Reduce logspam by catching unexpected types ourselves.

Also fix a bug in the conversion of ArrayLists to String[].

Change-Id: I839c80d0b571be298062d511dd3c83cc1e263f54
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
470c1accf5a54f9844a779eafab74e63c09342b5 21-May-2014 Chris Wren <cwren@android.com> Fix a concurrency bug in the ranking reconsideration.

If we rely on mNotificationList to be sorted, then we cannot allow
records to change without a corresponding call to sort. Currently
RankingFuture may modify records in a separate thread, while the sort
doesn't happen until later. This creates a window for race conditions.

Instead, RankingFuture should record operations to be performed on the
record that will replayed later, in a transaction along with a sort.

We can't simply overwrite the old record completely because another
future may be concurrently modifying a different aspect of the record.
Two futures that attempt to modify the same aspect will be serialized
and the second will overwrite eventually the first.

Change-Id: I9223cabdc60f72d8e37e6d8119bea1e0127185c0
(cherry picked from commit 77d3e0d0297caca5358879d36e8ba77710eb8e82)
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
44d81a4b86f73ecf79861bc576c90b8f8e4ba761 14-May-2014 Chris Wren <cwren@android.com> Add email validation and star support to ValidateNotificationPeople.

Also fix a bug with multiple pending lookups dropping information.

Change-Id: I8348f126e6b0a17cf762ebb720d1c306d3b4923a
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java
f953664dc17dca23bd724bd64f89189c16c83263 17-Apr-2014 Chris Wren <cwren@android.com> notification ranking infrastructure

Added an ordered list of notifications (n.b. a complete ordering).
Added a mechanism for ranking to be updated asynchronously
Added onNotificationRankingUpdate to NotificationListeners
Added an opaque order update object and a convenience comparator that
uses it to sort notifications for listeners

Repurpose scorers to be ranking preprocessors. The preprocessors will
perform heavy-weight validation of the notification object and memoize
the results to improve efficiency of the ranking comparator.

Current internal comparator implements status quo ordering, except
that notes with a valid contact sort to the top of their priority
bucket.

Change-Id: I7244c65944a9657df41fb313b3cb5a52e149709d
/frameworks/base/services/core/java/com/android/server/notification/ValidateNotificationPeople.java