fa6caad048f1a1bd339aa6626f781d0f16e863d9 |
|
23-Jun-2017 |
Dan Sandler <dsandler@android.com> |
Remove unnecessary dumpsys output. Change-Id: I5ec0b6b44fca58e9f5f61444acbff7a15550b135 Fixes: 62828801 Test: adb shell dumpsys activity service SystemUI | grep -c tickerText (should be zero) (cherry picked from commit 4682b509b988e656733ba9cbe48bd62a679411d5)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
7f09ce1a238ad5a647da913e275fd637ac75ab49 |
|
08-Jun-2017 |
Selim Cinek <cinek@google.com> |
Fixed a bug where systemui could crash while cloning Because cloning wasn't synchronized, the notification could become a non-root temporarily which in turn could lead to a crash. 1. We're now properly synchronizing the cloning, such that this can't happen anymore 2. We're now only cloning the old statusbar notification lightly instead of heavily to avoid this altogether Test: manual, update decoratedcustomview notifications really fast Change-Id: Ia6525eec64ad9a26956ca2198e20198f55b2173c Fixes: 62181033
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
beba1bf936e62da9a0add95e29e0e146adc03f52 |
|
07-Jun-2017 |
Selim Cinek <cinek@google.com> |
Merge "Fixed a flicker of group notifications" into oc-dev
|
72fc8db1e2b14da16bfb9170bc6172d3f93d0e97 |
|
07-Jun-2017 |
Selim Cinek <cinek@google.com> |
Fixed a flicker of group notifications When replacing a supressed group with it's summary, the icon would flicker. We're now suppressing icon animations of replaced notifications. Test: add notification and children 1 by 1 and observe no flickering Change-Id: I79440e473296e766ab80832ce74f450aee1af8ea Fixes: 38459207
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
008cea772ac4d6122e81c19ff6128e33b7415917 |
|
28-May-2017 |
Dan Sandler <dsandler@android.com> |
Hide redundant foreground service notifications. If an app with a foreground service has (at least one) FLAG_FOREGROUND notification shown to the user, we allow that to satisfy the requirement that the user be informed about such things. But if the fg notification or its channel is blocked by the user, we show the NOTE_FOREGROUND_SERVICES notification (a/k/a Dianne's Dungeon) provided to us by the activity manager. Note that if even one of the foreground processes for the current user is missing its disclosure notification, the user will see the whole dungeon. Bug: 36891897 Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ForegroundServiceControllerTest.java Change-Id: I4f5d96f80b7c1901faadb56661a42d26f746aa88
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
67ff248168fb77dadd81886df134cbfe048a6001 |
|
25-May-2017 |
Selim Cinek <cinek@google.com> |
Fixed memory leak with the inflater Because min priority children could be removed from their parents after the removal, a new inflation task would be started, leading to the view being instantly readded again. This lead to memory leaks. It also fixes a bug where the inflation would not inflate enough views that could lead to crashes / wrong layouts. Finally there was a indexing error when handling removal of group summaries. Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationInflaterTest.java Change-Id: Iac242946bd30060967ee7877560d40e63f39f996 Fixes: 62067645
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
ac5f02749a595d39711beb4a1defb01949eb548a |
|
03-May-2017 |
Selim Cinek <cinek@google.com> |
Fixed the contrast for low-priority notifications The low priority notifications had their contrast calculated against the white background and weren't satisfying our contrast requirements. This also aligns the case where the app had no colors better, and ensures that it's actually using the secondary text color there. Test: existing tests pass Change-Id: Ic11e9d06783e60998f35e0eb7f6f29fb1d86c7df Fixes: 37444266
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
0f66a4cc16ec1a927c90ac559c73c80ddcb5ee71 |
|
29-Apr-2017 |
Selim Cinek <cinek@google.com> |
Moving Row inflation to the background too Previously only the contentview inflation was on the background, now the inflation of the row is too. Test: runtest systemui Bug: 34888292 Change-Id: I3adc6b3311217421c9de5c37794397b8a3fd665d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
01d3da63cef1f82db182c6995264bf3ea3371dcc |
|
29-Apr-2017 |
Selim Cinek <cinek@google.com> |
Moving the inflation to the background The inflation of the notifications is moved to the background. This should improve the general performance when adding / removing groups and alike. Test: runtest systemui Fixes: 34888292 Change-Id: Ieb19a09a5a97d496d9319d917a5e317a3ad76fc4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
608a57a605163814776ffac6226f17ff5ebf308f |
|
29-Apr-2017 |
Selim Cinek <cinek@google.com> |
Fixed an issue where notifications wouldn't have a channel Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationDataTest.java Change-Id: I44e66fe7c1b1cac816f3ae51bfefca3e0dafb465 Fixes: 37754736
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
dc1231c3b9fd72790f767a605136e3f05a2af3e2 |
|
28-Apr-2017 |
Selim Cinek <cinek@google.com> |
Fixes a bug where the asynctask wasn't removed when inflating Test: runtest systemui Bug: 36561228 Change-Id: I9b5099d4a32be1f18db2ab1f8c94fe6f35a51b18
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
2630dc7ecf16a965321cfc615104f372cd2b0e96 |
|
21-Apr-2017 |
Selim Cinek <cinek@google.com> |
Moved notification builder creation to the background In preparation of future colorization work, the creation of the notification builder is moved to the background. Test: manual, add notifications, update them etc. Test: runtest systemui Bug: 36561228 Merged-In: Iaec5febf4d8d9da348d77e0d4f6f61b9746fae16 Change-Id: Iaec5febf4d8d9da348d77e0d4f6f61b9746fae16
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
132710e3898787f1de8f5249bcb034b3ba55650b |
|
04-Mar-2017 |
Maurice Lam <yukl@google.com> |
Add permission to show notification during setup Add a priviledged permission NOTIFICATION_DURING_SETUP which together with the existing Notification.EXTRA_ALLOW_DURING_SETUP will allow a notification to be shown during setup. Test: Added NotificationDataTest Bug: 34705874 Change-Id: I7215acf4017ad897294c69abf63a7f2e5d556f31
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
1a48babb5ed30e8a3eb9645355d6455b21041406 |
|
18-Feb-2017 |
Selim Cinek <cinek@google.com> |
Move the inflation away from the statusbar Since the notifications need to inflate more dynamically based on their own state, the inflation is moved away from the statusbar. This also improves the apply inplace logic, that was reinflating all views even if only a single notification layout was changed. Test: runtest systemui Bug: 35125708 Change-Id: I42a33065ab60b7c45ca979ae2d7baa1518bf92b7
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
87ed69bd6b652c716364e05ba5bad6517eb005c8 |
|
10-Feb-2017 |
Selim Cinek <cinek@google.com> |
Heads-up notifications of increased height behave better In the shade, the heads-up version when their height is increased now behave better and the notification shows more then a single message as well. Test: add heads-up for messaging style notification while shade is expanded Bug: 34469375 Change-Id: Ia3475eec5b4474aae950ef0eb84afb28689245ae
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
4f3463290bfaa2942f201fb48f82403895053873 |
|
03-Feb-2017 |
Selim Cinek <cinek@google.com> |
Merge "Increased the collapsed size of messaging notifications"
|
7d1009b3bd3b69768f293eb73109c52b8da8ec8e |
|
26-Jan-2017 |
Selim Cinek <cinek@google.com> |
Increased the collapsed size of messaging notifications Messaging notifications now get an increased boost in size, since those are usually important to the user. Test: existing tests pass Bug: 34469375 Change-Id: Idfc2d2403b04c4c2d17b821e3ccbbbd48d31654d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
95d3aa31738bcc150be2c8d5e1d6c14707b5c919 |
|
27-Jan-2017 |
Adrian Roos <roosa@google.com> |
AOD: Fix in-place ambient layout updates Change-Id: I7863bd5690476b76456182ee37527548f4acb54d Fixes: 34734890 Test: Post notification, post update to notification, enter ambient display, observe that ambient display is up to date.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
2a6ea9c2a1b52b0386270ec73e1e6d6a9b614a34 |
|
26-Jan-2017 |
Jason Monk <jmonk@google.com> |
Delete BaseStatusBar It is a relic of a more complex time, but has passed out of all knowledge for too long. Test: manual testing on phones and TV Change-Id: I62a15d9413ea4bda3ac82bf6f7d22c096e2c1cdc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
754d8226c9f775fa53610c1cb38fed0d33b7ec79 |
|
26-Jan-2017 |
Mady Mellor <madym@google.com> |
Add assistant-provided snooze options to snooze menu Test: manual via Assistant app Change-Id: Ie77181601a20e46774d009c7ecea65e99434ebd3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
682554238111a2ef6f9f7274fa73d1cdcb484c9a |
|
25-Jan-2017 |
Selim Cinek <cinek@google.com> |
Merge "Started visual hierarchy for min priority notifications"
|
6743c0bd52606444ce78316a7bbc51923a140a4a |
|
19-Jan-2017 |
Selim Cinek <cinek@google.com> |
Started visual hierarchy for min priority notifications Min priority notifications are now greyed out and in an even smaller form-factor then before. Test: add low-priority notifications - observe visuals Bug: 34469375 Change-Id: I3ce2cbf22dbc3276ac738224a16c1b10165964f3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
924eed1ca6d3fec5dae7eb0f9c11b8f23f628697 |
|
19-Jan-2017 |
Julia Reynolds <juliacr@google.com> |
Add updatable fields to Ranking - NotificationChannel - Badging Test: runtest systemuinotification & cts Change-Id: I7fd1f2dc06148927e9a4bd5b760d436e2c5e8a98
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
64f13a56a404748bfea590a002663f991192da71 |
|
18-Jan-2017 |
Adrian Roos <roosa@google.com> |
Merge changes Ib6de3aa3,Idc46d1b2,I889e3864,I9a50ee57,I411f08ae, ... * changes: AOD: Use heads-up state instead of buzzBeepBlinked AOD: Do not animate shelf icons when changing ambientness AOD: Show ambient versions of notifications AoD: Reposition shelf under clock AoD: Adjust shelf, only show top notification AoD: Adjust clock layout
|
0aac04ff79b43933742d5ebdd8d7a94751ff6309 |
|
09-Dec-2016 |
Adrian Roos <roosa@google.com> |
AOD: Show ambient versions of notifications Introduces a new visible type that is shown on ambient display. Bug: 30876804 Test: manual Change-Id: I889e386430eda79bb362313d9834aa7ecd829871
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
6b802214c960c587c5ee3d9611ff1177a2a9a4d0 |
|
18-Jan-2017 |
Selim Cinek <cinek@google.com> |
Not allowing foreground services to be cleared as children am: 1d35979f0a am: fd1b667c94 Change-Id: Ib363d7a764fc85b0d57422129b4eb8d81200e875
|
1d35979f0ada629f192eb1078a29f6eae2c71745 |
|
13-Jan-2017 |
Selim Cinek <cinek@google.com> |
Not allowing foreground services to be cleared as children forground service notifications could simply be cleared when they were sent as notification children and then the summary was cancelled. This also cleans up the logic in systemui and only removes the child if allowed. The clear all button could also show under certain conditions where it shouldn't have been shown. Change-Id: I85998b5342bd75425cc6d68e96391299c4f3d83d Test: manual Bug: 33766648
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
6598974fdf83bedd7c73f5f6e47327c3ab568d54 |
|
10-Dec-2016 |
Selim Cinek <cinek@google.com> |
Fixed a bug where both icons were visible initially Because the default state was visible the icon visibilities were never updated. Change-Id: I8c54a204e9cbf304d53d82b4dbb22acf3f7d487d Test: add fresh notificaitions, adb shell killall com.android.systemui, observe no double notification when added from shelf Bug: 32437839
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
2b549f4bd436787bd2543812b24add2d8c5b53ee |
|
23-Nov-2016 |
Selim Cinek <cinek@google.com> |
Added possibility to use canned animation for icons Icons now move in a canned animation from the shelf position to the icon. Test: adb shell setprop debug.icon_opening_animations true && adb shell killall com.android.systemui Bug: 32437839 Change-Id: I82b6de37ac7a179aeb5d16bd663d566c2f338b1a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
281c202784fe6eecab4cc535461f1b12c85b2cc0 |
|
14-Oct-2016 |
Selim Cinek <cinek@google.com> |
Introduced the Notification shelf Started the implementation of a new notification scrolling model that dynamically transforms notifications into a new icon shelf. Test: Add notifications, scroll! Bug: 32437839 Change-Id: Ic28cc1c82f2cda2ffa7a312648903b5bc2408820
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
85769915e7ef10bef2b5338ed8f04d9b787924fb |
|
25-Oct-2016 |
Julia Reynolds <juliacr@google.com> |
Some channel model updates - Apps cannot update their channel settings after creation. - Importance is required when creating a channel. - Some method name changes. - Ranker can't modify fields a user has changed. - High and Max importance mean the same thing. - The default channel adopts app wide settings on creation. - The default channel is limited to importance low once target api is post n mr1 unless the user changed it. Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/notification Change-Id: I73c449a6abe6d709046de79c5c54339cb2edf0b8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
92b83c6495abb3c091474b3a2f16dcbd949d6da7 |
|
31-Aug-2016 |
Robin Lee <rgl@google.com> |
Redact work notifications separately from personal This will strictly decrease the set of cases where work notifications can be shown. They will continue to honour the parent profile's settings, but will also get redacted/hidden if the work profile has stricter settings than the parent or when the parent is unlocked but the profile is still locked. Bug: 31001762 Change-Id: I2152631dbb8beb7a9899d6406b05f4447d757010
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
5260d1a669759e1afe722e0d83ec5ee862017811 |
|
04-Aug-2016 |
Selim Cinek <cinek@google.com> |
Fixed a bug where groups would animate the wrong way am: 68bdff16a8 am: b7af027e4a am: 6938f715c4 Change-Id: I131b6554fb5400960d350dd22a65c103277728ef
|
68bdff16a8dc3bb049c2330025395a0b981d1d18 |
|
03-Aug-2016 |
Selim Cinek <cinek@google.com> |
Fixed a bug where groups would animate the wrong way When updating a child of a group, the group would always animate, because of the suppression logic. This doesn't happen anymore. Change-Id: Ie2b09c1e03f37a12ba8f995e5b7d0e3721e3651a Fixes: 30608517
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
31756df8ca3bcb04d6abf8461c0687e56e5ed148 |
|
06-Jun-2016 |
Ian Rogers <irogers@google.com> |
Fix broken sort order. Int conversion may invert the sign of a long making it unsuitable for use in comparators. Caught by Error Prone. Bug: 27723540 Change-Id: I418abd102004f524080190eb5f1a53ec1388b58a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
e46bb37acf6d3cfb9974672ace93f5381f70ad99 |
|
17-Mar-2016 |
Julia Reynolds <juliacr@google.com> |
Allow the ranker to autobundle notifications. Bug: 26709317 Change-Id: I5017a471604e513a7b582cdc2f3472441e108fae
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
26fa8a54b671719a34290df97d61b60514b0d0ee |
|
24-Feb-2016 |
Julia Reynolds <juliacr@google.com> |
Allow notifications to be hidden from lockscreen at a package level. Bug: 26642033 Change-Id: I67674ea9d42ee6b5865702be5d9ab2b09b53e15f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
3b84812271cda2386557979503c29f3c530b7f90 |
|
26-Feb-2016 |
Julia Reynolds <juliacr@google.com> |
Api review: Notification.Builder Bug: 27364889 Change-Id: I95cee3336f1adb64e37e71a9ab40e68feb1d9c5b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
f0f629ffe44716b8d900929135142f0ebb9325f4 |
|
25-Feb-2016 |
Julia Reynolds <juliacr@google.com> |
Introduce IMPORTANCE_MIN. Allow HUNs for >= IMPORTANCE_HIGH. Allow full screen intents for IMPORTANCE_MAX. Bug: 22960980 Bug: 26918284 Change-Id: Id4d2b90ea2e21563dbc716db411060d826e73699
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
247fa0193196c9d190770b641cfc28e862525012 |
|
18-Feb-2016 |
Selim Cinek <cinek@google.com> |
Cleaned up the logic for the picture end margin This allows decorated custom remote views to be properly showing with a large image. Bug: 24866646 Change-Id: Ie355e503437f19ace2503d42f44bee4bd22f03c8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
d560729ce3a6f3d51c03d39768815b4c49f7a8f4 |
|
05-Feb-2016 |
Julia Reynolds <juliacr@google.com> |
Update DND visual interruption choices. Change-Id: I7050264839c566dcef1dd01d155dda694a8d1ec0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
617215874db9c208a74dc97f4133e6b6fc96271c |
|
05-Jan-2016 |
Julia Reynolds <juliacr@google.com> |
DND visual interruptions: prevent screen on. Bug: 25423508 Change-Id: Ie935a2051e1ae774fbeaf624f3599b2b1bb8666d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
624c02db7f1d24ec1e307530ff32d4fd5859feae |
|
15-Dec-2015 |
Selim Cinek <cinek@google.com> |
Fixed the public notifications views on the lockscreen The views were based on a legacy systemUI notification. We are now creating it in Notification.java in order to always have the latest visuals and avoiding duplicate work. Change-Id: I3f544cad069a8eab34d4464404d020e06d7f6626
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
ee99e63bfc09d7f1ccfa165e1c17b5163943a5e3 |
|
11-Dec-2015 |
Chris Wren <cwren@android.com> |
fix bad merge Change-Id: I9d8a6135f1902956791820c696ad8b988597437f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
41c264bae10dda0a1430251aa982dcf79c728bdc |
|
11-Dec-2015 |
Julia Reynolds <juliacr@google.com> |
Merge "Add importance to notification guts."
|
bdf3376616c276ed18a51185351b44fd16eeae29 |
|
04-Dec-2015 |
Chris Wren <cwren@android.com> |
use importance instead of score Change-Id: Id3b0a074671943b4fcabb63fe990cbfd1e46bdfd
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
ead00aac154f76abfc9739d76b100597b3e42d96 |
|
07-Dec-2015 |
Julia Reynolds <juliacr@google.com> |
Add importance to notification guts. Note: the guts are still trucated to the height of the notification. The slider initially shows the importance of the individual notification, but changing the slider changes the importance for the whole group of notifications. Bug: 22451710 Change-Id: Id6de3aaace2bdb88a8cc5db517002dc7f0e349ae
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
777ef5688f188a5717b74d604bb7213b1b66386d |
|
02-Dec-2015 |
Adrian Roos <roosa@google.com> |
More inline reply goodness - Use expanded view instead of HUN when possible - Remember partial replies - Back properly closes IME without closing shade - Fix broken reorder animation Bug: 22452379 Change-Id: Idb6ca8aed27cfb1f3d9b46f59e148b1b3b112fa7
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
6b53135736c597dfbadcb5127de61be4f9b19ce5 |
|
18-Nov-2015 |
Julia Reynolds <juliacr@google.com> |
Cache notifications less aggressively. Bug: 25694023 Change-Id: Ie8f1b518fdcb72cfbd982908aa30cdb8ebbb2f02
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
f612869ae1190e0885b58a3c33b23d36d7732f06 |
|
05-Nov-2015 |
Julia Reynolds <juliacr@google.com> |
Allow DND mode to suppress visual interruptions. Bug: 25423508 Change-Id: Idd8242e4bc00a749dbe0b5503c458375fc017072
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
d9228f1135e51d9380bad990d7178490ec474dbd |
|
20-Oct-2015 |
Julia Reynolds <juliacr@google.com> |
Stop populating RemoteViews in Notifications. Builder now stores its parameters directly in the Notification object itself, reducing the amount of copying needed to construct the final Notification as well as converging the two data structures. All Builder data is now captured in Notification, so it is easy to reconstruct a Builder for any Notification object. This obviates all stripping/unstripping operations because all Notification objects start life "stripped" of their RemoteViews, which must be constructed explicitly by clients (presumably listeners wishing to show the notification to the user in its conventional form). Note: While contentView, bigContentView, and headsUpContentView are being @Deprecated in this CL, specifying custom RemoteViews is definitely still supported! You just have to use Builder methods to do so. Bug: 20153922 Change-Id: I81f8ffed0eb76084b2f2b25b97e325858f0a1d05
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
4e78706f439d318ae7a78927d98f734351a89f64 |
|
17-Jun-2015 |
Dan Sandler <dsandler@android.com> |
Patch up certain kinds of broken notifications. Notifications in which the icon resource ID is changed after Builder.build() is called (even, and particularly, as the last step in the current implementation of setLatestEventInfo()) were not having their icons properly parceled. In these cases we now attempt to catch this at parcel time and construct the necessary Icon object. But wait! Parceling does not require a Context. So we don't actually know which package to load the resource from. Therefore we now allow an Icon to be constructed with an empty ("") package name, which allows us to complete this parceling task despite the fact that a Notification does not know its own package name. (In case you attempt to load a drawable for such an Icon, loadDrawable will spot the "" package and instead substitute the Context from its parameters to try to load the resource.) As it happens, even though the Notification does not know its own package name, BaseStatusBar does, because it was provided at NM.notify() time and is therefore included in the StatusBarNotification structure. So we can actually patch up the Icon (if it is TYPE_RESOURCE) and be sure to get the icon loaded out of the correct package. While we've got the hood open, this change fixes a couple of related problems: • Foreground service notifications synthetically constructed for naughty icon==0 notifications (which we are still allowing...FOR NOW) were losing the FLAG_FOREGROUND_SERVICE flag (because we're re-build()-ing them from scratch rather than rewriting the provided Notification object). Now we set the flag and hang onto the new notification for next time setForeground() is called. • We now allow media notifications to avoid getting bumped to the top of the notification list if they're PRIORITY_MIN. You might want to do that, I guess? Bug: 21333763 Change-Id: Ia5d1f1acb594c7677bcc75ee3d624da4ffca671f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
b18a20f13cc5fc36b84f19bb89a9e479bb1fb4ea |
|
04-Jun-2015 |
Selim Cinek <cinek@google.com> |
Fixed a bug with HUNS and dreams When a notification came in dreamMode and would become a HUN we were firing its fullscreen intent imediatelly. If that notification got updated again a moment later, it would also show an additional HUN even though we just launched the fullscreen intent. This is very troublesome to handle on the app level, as the notification state is the same. We are now introducing a cooldown for HUNs when it just launched a fullscreen intent. Bug: 19377091 Change-Id: Ib32341c8983f0e977354432ea8d8e98909a13829
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
684a442b812a5e95d813700ffa2fd17ca72048a7 |
|
16-Apr-2015 |
Selim Cinek <cinek@google.com> |
Follow up CL for heads up notification refactoring Change-Id: Iaf286dfd30a86d3d7d6dd947d3c10ac9eb8c2b1e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
fbe9a44a15addf9d94cd40da56835501241b8d3e |
|
14-Apr-2015 |
Selim Cinek <cinek@google.com> |
Made ranking consistent with heads Up manager Change-Id: I8e83c2e7e5a5635c1c0fb83cf2b4614965336786
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
b5605e58cb8080c8c887b1885336b707596c8094 |
|
20-Feb-2015 |
Selim Cinek <cinek@google.com> |
Enable surfacing of notification children Yo Dawg, I herd you like notifications, so I put a notification in your notification so you can be interrupted while you are being interrupted. Bug: 15869874 Bug: 15188947 Change-Id: I6c733d6f8e8a04f85036182f82d3e945c6feb5bc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
25fd4e2be731fe893685faa48828d8fa4526cb1a |
|
20-Feb-2015 |
Selim Cinek <cinek@google.com> |
Introduced a group manager to manage group notifications Bug: 15869874 Change-Id: I1bbcd9e5a2b8dae62bd8d93908dacc5d8fc08887
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
a1eeadee63cad1d6405804f0e7e88c8b9a4ba2b1 |
|
08-Sep-2014 |
Jorim Jaggi <jjaggi@google.com> |
Apply color to auto-redacted notification Bug: 17419964 Change-Id: I82010fe9c2bb2fd0a2300a8290258c7dc13bf6a6
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
038839e9475b81abfe6fcfbec6c86647bd7592b1 |
|
05-Sep-2014 |
Christoph Studer <chstuder@google.com> |
Merge "SysUI: Upsort PRIORITY_MAX system notifications" into lmp-dev
|
3ad4e3a45bbe44129b14c4d391431e44f1e04f0c |
|
02-Sep-2014 |
Chris Wren <cwren@android.com> |
Honor per-app sensitivity setting. Settings are stored by NotificationManagerService in the policy file, and are communicated to NotificationListeners via a hidden API on the RankingMap object. Bug: 16324353 Change-Id: I2d5cf6782273744cbf9b309dec76780cc0a4c39e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
2f9dbbaee7d9add7656614d8cff387561ba859ba |
|
03-Sep-2014 |
Christoph Studer <chstuder@google.com> |
SysUI: Suppress HUNs from non-profile users Bug: 17364652 Change-Id: Ic7a971d64cecc1624b872c776efeaccd09144db7
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
1492116a1cf44941ee2c8be68f6df6c14cfd39c5 |
|
03-Sep-2014 |
Christoph Studer <chstuder@google.com> |
SysUI: Upsort PRIORITY_MAX system notifications Bug: 17131219 Change-Id: Id29ef5c44a8221d514ea0a8cf5d0fe5dd179744b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
d722f273237ed4c77ebf9a261cff776125d562e1 |
|
02-Sep-2014 |
Christoph Studer <chstuder@google.com> |
SysUI: Ignore group children when summary is present This is an optimization to avoid inflating Views for notifications we're not going to show and free up memory ASAP. No behavioral changes expected. Bug: 16302692 Change-Id: I5fa03dcc9ad9cae4afc7cd6102d7ea8bfbdcbfd5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
7f05a6963756c3dc5082f48ad3c4de6efe99a158 |
|
26-Aug-2014 |
Christoph Studer <chstuder@google.com> |
Merge "SysUI: Uprank current media notification" into lmp-dev
|
2e731b5d90b956a91390051f803fa928c5fd9dee |
|
22-Aug-2014 |
Christoph Studer <chstuder@google.com> |
SysUI: Uprank current media notification Bug: 16008728 Change-Id: I3a0bd21b5f8cd5295dcacc2f40092dbaa2fc88e4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
11840cdca9b5f63f61bcdc2ab143995e9a901c53 |
|
21-Aug-2014 |
Christoph Studer <chstuder@google.com> |
SysUI: Fix NotificationData dump Inactive notification count and indices were off. Change-Id: I6e8555fe7dcaf6e7f999f09fb4cda56622928b07
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
f079fc52f3c8e07cc2b5cc07a4518e0638c64b69 |
|
09-Aug-2014 |
John Spurlock <jspurlock@google.com> |
SysUI: Null check around ranking map in isAmbient call. Bug:16907252 Change-Id: Id21e089b99c1836ac0bbffd205ba89dc05f07b9a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
c8db24bc32034accf1eb614c8d68bb80b41ae73f |
|
25-Jul-2014 |
Christoph Studer <chstuder@google.com> |
SysUI: Display group children when no summary is present Also move common notification filtering into NotificationData such that clients won't have to do it themselves anymore. Probably also fixes a couple of multi-user issues. Bug: 16302692 Bug: 16224431 Change-Id: Ic3c11cd1a224044486f5544e068ca5297d30c521
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
22f2ee567dd1b1a42432251229bcb2f05c1c4700 |
|
29-Jul-2014 |
Christoph Studer <chstuder@google.com> |
SysUI: Reset background treatment when re-using Entries Bug: 16220667 Change-Id: I8fd2770fa5ea554728eb8cd70ce4a6171e28ece5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
1d599da8424cef8d07cb4c533bd212d992d8f676 |
|
12-Jun-2014 |
Christoph Studer <chstuder@google.com> |
NotificationListenerService API: Avoid unnecessary allocations Instead of producing Ranking objects, RankingMap just populates them now, allowing developers to re-use objects and avoid unnecessary allocations. Also rename isInterceptedByDnd() to meetsInterruptionFilter(), since DND is not a concept anymore. Bug: 15415840 Bug: 16099064 Change-Id: If9861cbdf14593e641a4d4ffd1b967647eb8e2b8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
d04f6cee5f6d98a60c0092a217a15ea5c2d3a106 |
|
11-Jun-2014 |
Chris Wren <cwren@android.com> |
Manage heads up state during notification update. Notifications can now get the heads up slot on updates. FLAG_ONLY_ALERT_ONCE suppresses this behavior. Bug: 15534198 Change-Id: Ie27b7c7d93c590d777670c538fb796a04252046f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
d0694b6735a9d91794e6096961231e07364ba3fa |
|
04-Jun-2014 |
Christoph Studer <chstuder@google.com> |
NotificationListenerService: API updates Introduce RankingMap holding single notification Rankings indexed by SBN keys. Also, pass RankingMap with notification event callbacks so subclasses don't have to call getCurrentRanking() unnecessarily. Bug: 15415840 Change-Id: Id41e174f00c06c86359c03646abc3db78028b324
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
36b15237a633ca906029e6ccdc4c55fa6309afe8 |
|
10-Jun-2014 |
Jorim Jaggi <jjaggi@google.com> |
Fix black background for auto-redacted legacy notifications Also removes the wrongly implemented Froyo compatibility mode, as now all the notifications are light and the background is provided by us, it's again like in Froyo-world! :-) Bug: 15295371 Bug: 14105711 Change-Id: Icbae15e690494465b0e63935d81d59edfa05e76e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
37fe69322517809d38c1934239a6e117c39d40e7 |
|
26-May-2014 |
Christoph Studer <chstuder@google.com> |
SysUI: Reflect notification ranking Respect the ranking received via NotificationListenerService. Bug: 15131411 Change-Id: I9e3a1530ffb5f4c29eeeccdbc910261d2eb72216
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
71f18fd1b64071e486bafff237b1f87a56d4aead |
|
20-May-2014 |
Christoph Studer <chstuder@google.com> |
SysUI: Use SBN keys instead of IBinder keys DO NOT MERGE In preparation of migrating to NotificationListenerService, remove dependence on IBinder keys for notifications and switch to SBN.getKey() instead. Bug: 15131411 Change-Id: Ic272e4a05fde6481c734144c5b34c49b2f021649 (cherry picked from commit 7c96ae873d9a54ebaeb5b7ef21b48224dc42d094)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
842dd77bb9c002af5364237f46b63c826f1c4082 |
|
15-May-2014 |
Dan Sandler <dsandler@android.com> |
Introducing Notification.MediaStyle. Allows you to create a nice music player with all the trimmings, including: * up to 5 actions in the bigContentView, styled as transport control buttons * up to 2 of those actions in the 1U (!) * a nice custom progress bar * a tinted background (taken from your Notification.color) * a special place to put your MediaSessionToken Bug: 15147533 Change-Id: Ic20a2b369eb6c5fe4853987a44ffd9bace720c7f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
fe40f7d13bfc1faa35c9a131ce4be5104cb8f6b9 |
|
28-Apr-2014 |
Jorim Jaggi <jjaggi@google.com> |
Flatten notification hiearchy and remove glow. Currently, the padding and the glow was inside the individual notification. This no longer works if we want to adjust the padding dynamically whether we are on Keyguard or not. This change moves the padding outside of the individual notifications, and as a side effect, removes the glow. The glow wasn't really visible with the new layout, so it's not a breaking change. We have to discuss with UX first what the new "glow" solution is going to be. Change-Id: Iac16892cb3b7bb1de3001954b1428796b07950c1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
362fafe68faf6bcb96186ac604d336c4025f3b69 |
|
24-Feb-2014 |
John Spurlock <jspurlock@google.com> |
Remove tabs from NotificationData. Change-Id: I1993c48816ffc953045e3ef29a1063b89af4a546
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
a5e0f415d351ad1a9c0ffde8d93df91a2384591f |
|
23-Jan-2014 |
Dan Sandler <dsandler@android.com> |
SystemUI support for notification visibility. In this implementation, DISABLE_NOTIFICATION_TICKER (which was never really used on its own and can be safely subsumed by DISABLE_NOTIFICATION_ICONS) is now DISABLE_PRIVATE_NOTIFICATIONS; when this SystemUI bit is set by the keyguard, SystemUI knows to switch its presentation into "public" mode, in which VISIBILITY_PRIVATE notifications are replaced with their publicVersion's contentView (or a placeholder view, synthesized by SystemUI, that leaks no additional information about the notification). VISIBILITY_SECRET notifications are suppressed altogether in this mode. This behavior is enabled but not activated by default. To turn it on, run: $ adb shell settings put secure lock_screen_allow_notifications 1 and restart SystemUI. Change-Id: Id660bef7737580e16a83f60567c22b53ee81c602
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
6090995951c6e2e4dcf38102f01793f8a94166e1 |
|
19-Nov-2013 |
John Spurlock <jspurlock@google.com> |
Remove unused imports from frameworks/base. Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
f0048ce66fa7b4859b44badc8e58ea8b27e2356b |
|
07-Aug-2013 |
Chris Wren <cwren@android.com> |
heads up notifications always take the top spot If it was important enough to be a heads up, it should get top spot. Make this sticky so bumping out of the HUN doesn't require a shade sort. Split view creation and insertion so we can get the shade order correct. Bug: 10001616 Change-Id: I4c1f2581e11a94241269984a01b92289a8943065
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
51c7510e493680b4aca1ed7695b35c52d2cd63ff |
|
17-Jul-2013 |
Chris Wren <cwren@android.com> |
allow rich notifications in the heads up. new shouldInterrupt logic: screen on, not locked, not dreaming, and priority above HIGH and noisy, or has fullscreen intent draft of API allowing devs to give hints about head up display reuse inflateViews() add an expand helper to the heads up space move some things into Entry for reuse don't allow touches in first second delay decay if touched make decay time a resource add a custom viewgroup for notification rows to get view management out of the NotificationData class. Change-Id: I36464f110cfa0dabc3f35db7db6c35c27e8ee2ba
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
574a55e9eec37f49a80b75b28a401a18f1433fe7 |
|
16-Jul-2013 |
Chris Wren <cwren@android.com> |
unify variable naming scheme. inflateViews() and updateNotification() reference the same objects with different names, and it was confusing. #cleanup Bug: 6497005 Change-Id: I0d9a94d7ec156b6bfcf4b85c777f9b58311d07d0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
de84f0e77ea2bf713d15c290264059a413c2486a |
|
12-Jun-2013 |
John Spurlock <jspurlock@google.com> |
Organize the imports in systemui. To follow android conventions, more importantly to remove the unused. Change-Id: I75881718e84360a579a3b02c26489ad250bc9227
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
e6f7f2e3a01b8deb00e03ccfa93751c315f14ef0 |
|
25-Apr-2013 |
Daniel Sandler <dsandler@android.com> |
API cleanup: NotificationListener - Wrap all public member variables in getters and make slots private - Rename clear* methods to cancel* to be more consistent with existing public Notification API Bug: 8656860 Change-Id: I84f7e71fbb627f859352a93089c6a531b44dac95
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
5feceebb892d4cb5777cea3c6174b206705d456b |
|
23-Mar-2013 |
Daniel Sandler <dsandler@android.com> |
New NotificationListenerService. This is the best and only way for apps to listen for notifications: create a NotificationListenerService, wait for the NoMan to bind to you (as a result of the user checking a box somewhere in Settings and agreeing to a scary dialog box), and you'll start receiving notification posted and dismissed callbacks. Your service, while enabled, will also be able to clear one or all notifications. Use this power wisely. This change moves StatusBarNotification out of com.android.internal into android.service.notification. [Internal customers, including System UI and early users of the system-only listener binder API, will need to be updated.] Bug: 8199624 Change-Id: I1be46f823d4b3ddc901109ec1e085cd6deb740c2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
3ddab0dcc1039137f05a28ff86477601a223a0fa |
|
02-Aug-2012 |
Chris Wren <cwren@android.com> |
Don't allow the status bar to collapse things we're touching. Bug: 6538918 Change-Id: Ie4e79aa593ac2097d0e6402f84816df934160687
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
5ae1ea8400d576b90f0ef02b2f10201d74729be6 |
|
28-Jun-2012 |
Chris Wren <cwren@android.com> |
Retain expanded state across more than one violent update. Bug: 6680363 Change-Id: Iebf2387fc5c8774c1c001dde5a4608d4e60720aa
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
8fd12657e353a4a6f6d875a0d86850426fec00e8 |
|
10-May-2012 |
Chris Wren <cwren@android.com> |
Auto-expand the top notification. Bug: 6455789 Change-Id: Ia455f204544ad0c41ace77ea3ece6e0d3d3110d9
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
6a858c347f4d4e5db4c8f00d5e285967631b71ca |
|
12-Mar-2012 |
Daniel Sandler <dsandler@android.com> |
Gestures for expanding notifications. Change-Id: I104c157ffcc2d60b3f0a95c59d4322b07103b69f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
2561b0b10a55841a08e0e1d467e73e10b1bf256d |
|
14-Feb-2012 |
Daniel Sandler <dsandler@android.com> |
New notification priority and related APIs. This change introduces a few new bits of data on Notification that will help the Notification Manager and System UI route and display them more intelligently: -> priority: an integer in a predefined range that indicates the app's best guess as to the relative importance (to the user, right now) of that information -> kind: a tag (really, set of tags) indicating the general type of notification (realtime, asynchronous, etc) -> extras: a Bundle of additional key/value pairs associated with this notification (currently @hidden) The notification manager takes these data into account when assigning to each notification a score which is passed with the notification on to the system UI, where it can be used to affect presentation. For example: - Spammy apps (identified explicitly by the user or by some other means) will have their notifications scored very negatively by the notification manager, allowing the UI to suppress them - Notifications of higher score might be shown larger or in a different way - Very important notifications (indicated by a very high score) might interrupt the user during an otherwise important task (videochat, game, etc) Implementation note: This replaces/extends the old internal notion of "priority", which was mostly used to organize ongoings and system notifications at the top of the panel. Change-Id: Ie063dc75f198a68e2b5734a3aa0cacb5aba1ac39
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
a31e4190cb44eaa51bb8dee7d715fcd72d6c0b03 |
|
03-Feb-2011 |
Daniel Sandler <dsandler@google.com> |
Implement priority ordering in notifications. Ongoings are the only notifications currently given higher priority (and it's in an internal data structure, not a public API, so fear not about abuse---this will be no worse than on the phone where ongoings floated to the top). The only thing left is to give privileged customers a way to alter the priority of their notifications. Bug: 3412807 Bug: 3146719 Change-Id: I9e738cc413982845cf4858faa8ccd0a7dbf3187c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
80a44401a22344f7eabce6976372ab144ef22893 |
|
16-Jan-2011 |
Joe Onorato <joeo@google.com> |
Need to update the largeIcon for notifications when we're reapplying the views. Bug: 3298062 Change-Id: I6bb72c0b93e00a9de8cc2633ac07add0a572a20f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
5dd1169ae95162383acf00d1e9a1886e0ac99a70 |
|
28-Sep-2010 |
Joe Onorato <joeo@google.com> |
Hide the "Clear all" button in the notification panel if there are no clearable notifications. Change-Id: I7145036724939220e1f23fb91c62027b28663c20
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
0f0b11c8719495ce559b93366fe9cd79782d791c |
|
04-Aug-2010 |
Daniel Sandler <dsandler@google.com> |
Basic support for notification payloads in the panel. Line-item veto is there, but allows you to cancel some notifications you probably shouldn't be canceling. (Should hide the "X" in those cases.) No preference given to "sticky" notifications, because there's no such thing yet. Notifications are now limited to 4 visible icons, per spec. The implementation is a total hack for now. Change-Id: Ibdf433ae94189117f983c510fe5e0cff0bf5c44c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
379020aec619c66d3e040de01f0726687fd2ad85 |
|
29-Jul-2010 |
Daniel Sandler <dsandler@google.com> |
Cleaning up the notification data structures. Change-Id: I2e39fee81a2bd99245b9de6edd2ce5c45bd733c7
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
3eebd1ffbf4583270e6926e9c74ff088a2113e07 |
|
27-Jul-2010 |
Daniel Sandler <dsandler@google.com> |
Show notification icons in the system bar. Caveats: - Ongoing and normal are lumped together - Currently no limit on number of icons (should be 4) - Still can't see the notifications in the panel Change-Id: I83ac474db6ff290207d37747b672a1a56788a238
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|
79de0c550037a5328bbc7f4fddaf02f192a5c283 |
|
26-May-2010 |
Joe Onorato <joeo@android.com> |
Move the StatusBarPhone package into a new catch-all SystemUI.apk.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
|