History log of /frameworks/base/core/java/android/app/Notification.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c3059b444fbd30b1344cd5ee3c7030d1e9e5c408 17-Dec-2014 Jorim Jaggi <jjaggi@google.com> Merge "Fix colored icons in doze mode" into lmp-mr1-dev
92df1f275831c23e3ed5b70d621a0c298e0bafea 16-Dec-2014 Jorim Jaggi <jjaggi@google.com> Fix colored icons in doze mode

Also fixes the issue that small icons promoted to large icons were
not forced to be white, which lead to inconsistent treatment of the
icons.

Bug: 18537470

Change-Id: Ic35e082da12793f3f13c91740bfc345b336c3db4
/frameworks/base/core/java/android/app/Notification.java
0b22e395d24cba14d4113fb326bfcb57c6aa5996 17-Dec-2014 Christoph Studer <chstuder@google.com> Merge "Notification: Fix bigLargeIcon" into lmp-mr1-dev
5c510ee551dd58d416578bc1247d672cfff84be8 15-Dec-2014 Christoph Studer <chstuder@google.com> Notification: Fix bigLargeIcon

Fix a bug in L where BigPictureStyle.bigLargeIcon never made it
into the notification layout.

Bug: 18735551
Change-Id: Ia72d1de8cca2e95df3a99aaffeaba31325f1d858
/frameworks/base/core/java/android/app/Notification.java
fde6f4d745dd3c00c8b9f6c363a2fd331fb61ba6 12-Dec-2014 Christoph Studer <chstuder@google.com> Fix MediaStyle docs mentioning 2 max actions in compact view

Bug: 18729304
Change-Id: Ica6b8ac47d7d38b1de62d64830256f66cbbdb225
/frameworks/base/core/java/android/app/Notification.java
e935fe918ed3f93fe6634d09652d4eb1c9d36aae 24-Nov-2014 Christoph Studer <chstuder@google.com> Fix MediaStyle API comments

Bug: 17805819
Change-Id: Ie45a43d7ae99304d635ce75aeb32a6d4d4e3e57d
/frameworks/base/core/java/android/app/Notification.java
9c5be4eddd1607846c189e403fd74fd288ce7976 18-Nov-2014 Griff Hazen <griff@google.com> Improve doc for {get,set}HintAvoidBackgroundClipping

Bug: 18414403
Change-Id: I4cc069ca8f13d7521aa94e3c18f776de69280e2f
/frameworks/base/core/java/android/app/Notification.java
705c9c131a6df977a2e9430cacb84788ef0cecbf 10-Nov-2014 Pete Gast <pgast@google.com> Merge "Expand WearableExtender to customize labels." into lmp-mr1-dev
5f2edfc12c4f31a54e81c1ce538a276f61439c92 30-Sep-2014 Griff Hazen <griff@google.com> Improve support for the barcode-on-screen use case for wearables.

Add two small developer apis to wearable extender to help developers
show barcodes on different shaped wearable screens.

Bug: 16299175
Bug: 17005635

Change-Id: I05088ffcc405c69f1e8df7bf967ea930548c7d51
/frameworks/base/core/java/android/app/Notification.java
ef72a198afc4ded0b75534a97142fae2e91b46f5 26-Aug-2014 Jorim Jaggi <jjaggi@google.com> Apply color to progress bar for notifications

Bug: 17128179
Change-Id: Ia642ff2a352bbabf2d1e468367d45dc188ee0e73
/frameworks/base/core/java/android/app/Notification.java
955d8d69ea6caabce1461dc25b339b9bf9dc61a6 08-Oct-2014 Dianne Hackborn <hackbod@google.com> Put in real "code" (aka marketing) name.

Change-Id: Idb3976edfae37293ed75cb5b869b4b42d8042bbe
/frameworks/base/core/java/android/app/Notification.java
af6781dcfe3ded916c3341c49e39b585b9a18398 07-Oct-2014 Pete Gast <pgast@google.com> Expand WearableExtender to customize labels.

BUG: 15774526
Change-Id: I5796ab0e27975b5746d677be084b1ba1ada80a76
/frameworks/base/core/java/android/app/Notification.java
e6c4893ed4d4f79df4299dfd0587b641dc1e2e81 29-Sep-2014 Chris Wren <cwren@android.com> Update the documentation on EXTRA_PEOPLE.

Include the supported formats with links to ContactsContract documentation.

Bug: 15283556
Change-Id: Ic48b0a9ad1be61f0fa119b1d0e9d6aac5e5bea27
/frameworks/base/core/java/android/app/Notification.java
c30afd1e74034e425a575a3e6a4cf17e4ba91542 12-Sep-2014 Christoph Studer <chstuder@google.com> Merge "Notification: Reset chronometer visibility" into lmp-dev
ca1db7162aecde749d92dccdf3bdb3b8b421e0c0 10-Sep-2014 Christoph Studer <chstuder@google.com> Notification: Reset chronometer visibility

Bug: 17175860
Change-Id: Idd5ce5d22f30c01507d5207feaccdf1ac8a1a291
/frameworks/base/core/java/android/app/Notification.java
c8824b18c1fe1ea917d4cc8b72796522c25605f0 10-Sep-2014 Kenny Guy <kennyguy@google.com> Merge "Remember userId when stripping / rebuilding notification." into lmp-dev
b907affce2ca0451637770710b5bedc8162f69cf 10-Sep-2014 Christoph Studer <chstuder@google.com> Merge "Notification: Use ViewStub for ProgressBar" into lmp-dev
fc3922d49b20f52a12c7557b8c37bb022030e6f2 20-Aug-2014 Griff Hazen <griff@google.com> Copy visibility docs from support version to base Notification.

(Noticed the difference in a javadoc diff between Notification and
NotificationCompat)

Bug: 17424399

Change-Id: I639a46c429ffebf8ca47118b2ea80f40ccdc1286
/frameworks/base/core/java/android/app/Notification.java
aca4b25f479065088a798eff3b87ec46325632e3 09-Sep-2014 Christoph Studer <chstuder@google.com> Notification: Use ViewStub for ProgressBar

Lazily inflate ProgressBars since they're expensive.

Bug: 17366831
Bug: 17399567
Change-Id: I2b85169a67d41a66fead2fccef2381eaa671c3e4
/frameworks/base/core/java/android/app/Notification.java
8942bcd6ea7de228d1145599739bd43a881dfe1d 08-Sep-2014 Kenny Guy <kennyguy@google.com> Remember userId when stripping / rebuilding notification.

ApplicationInfo.uid isn't enough because when system
posts notifications it Context.getUserId doesn't match
userId bit of ApplicationInfo.uid, so put back the
mOriginatingUserId.

Bug: 17002733
Change-Id: Ie3d8de121255bcb551cbe80c263e74f1a60b6f1c
/frameworks/base/core/java/android/app/Notification.java
457a10d29c151664fc274c06be7e44f813b12767 08-Sep-2014 Jorim Jaggi <jjaggi@google.com> Restrict line count for BigTextStyle

Also fixes paddings for the first line for InboxStyle notifications.

Bug: 17161340
Change-Id: I00a92f256d9ccad7cfbcecb591e84bb0d68ba635
/frameworks/base/core/java/android/app/Notification.java
c7d62f02b8acfd0a6b31f8544ec2c07e780fe4bb 05-Sep-2014 Svetoslav <svetoslavganov@google.com> Addressing API council comments for UserManager.

bug:17390424

Change-Id: I498d2541289915cb7db16e5c3249ccc7a7dc5ee6
/frameworks/base/core/java/android/app/Notification.java
773200640ba6561432e57b86a94bd3836494e4cf 27-Aug-2014 Kenny Guy <kennyguy@google.com> Fix RemoteViews to inflate views for current user.

Fix RemoteViews so that it loads resources from
user that created the RemoteViews but inflates
for the user applying the RemoteViews.
Fix Notification to rebuild RemoteViews with
same ApplicationInfo as original app.

Bug: 17302505
Change-Id: I39f21eef83d63e9e494ea35818e1eb969edd38d7
/frameworks/base/core/java/android/app/Notification.java
692356b7c392130b7f38f46a60570617c978ba75 04-Sep-2014 Kenny Guy <kennyguy@google.com> Revert "Ensure all RemoteViews use myUserId rather than context."

This reverts commit 5287e37687f117ac0b690100ad90842eff58d15a.
Reverting because only worked if settings cache had been populated
already.

Bug: 17302505
Change-Id: I4360606e9d9c6409951f0a02bd0b78c55085e0c6
/frameworks/base/core/java/android/app/Notification.java
d2961355bd433c3319f293eb53cbe6ad30b79276 04-Sep-2014 Dan Sandler <dsandler@android.com> Merge "Notification: Limit length of accepted strings" into lmp-dev
a449018105252f6d8d83c4b7064ce54476a6c6f7 04-Sep-2014 Kenny Guy <kennyguy@google.com> Merge "Ensure all RemoteViews use myUserId rather than context." into lmp-dev
879ebec4e2a12a802339549cb4fefa32b5368379 02-Sep-2014 Kenny Guy <kennyguy@google.com> Ensure all RemoteViews use myUserId rather than context.

Remote views may be inflated in another user so
explicitly use processes user id rather than the
user id of the context.

Bug: 17302505
Change-Id: I985c91745f03dd7e6b2ab6357600077664d8e6be
/frameworks/base/core/java/android/app/Notification.java
d1dc910effbbe0998a00e428767eed562aa6f25c 04-Sep-2014 Dan Sandler <dsandler@android.com> Merge "Reduce RAM requirements of grayscale icon testing" into lmp-dev
05c362d5645367c816069aa138b597b77f317aa4 03-Sep-2014 Dan Sandler <dsandler@android.com> Reduce RAM requirements of grayscale icon testing

The isGrayscale family of methods is designed to identify
drawables and bitmaps that apps are using in the largeIcon
position to pose as small icons in order to get the
appropriate background treatment (a solid blue or gray block
in KK/JB, or geniune selvedge denim in ICS/HC).

We can optimize this search two ways:

(1) Reject immediately any largeIcon that is larger than
largeIcons should be (64x64dp). We could one day simply
reject, or resize, these in the notification manager,
but regardless these are not plausible smallIcon
subsitutes. This new constraint is commemorated in the
new name, isGrayscaleIcon().

(2) Shrink the bitmap even smaller before scanning it slowly
in Java. This lets native_drawBitmap do the heavy
lifting across the entire bitmap; we need only scan a
few pixels.

Bug: 16513124
Change-Id: I3a2b79130ed2465a4aedfbb5a556db7f8a7aa132
/frameworks/base/core/java/android/app/Notification.java
535ec6164e76c08ac7a44aa2556cf424c423eb68 03-Sep-2014 Christoph Studer <chstuder@google.com> Notification: Limit length of accepted strings

Limit strings to 5K in order to prevent apps from spamming the system
with overly long strings.

Bug: 17363929
Bug: 16151806
Change-Id: Id41e3fcc1ae1bc8ac8dd41d5059c2cc42f86f017
/frameworks/base/core/java/android/app/Notification.java
223f44e1d2cc56fa965cdb9f112afae1c498cbbd 02-Sep-2014 Christoph Studer <chstuder@google.com> NoMan: Drop archive size to 100, strip EXTRA_BIG_TEXT

Bug: 15557701
Change-Id: I348b9648dbb941b2fa40b169d5ca82b9f9ba21f4
/frameworks/base/core/java/android/app/Notification.java
9c70889274da36a66ed5463a1d7dd2e7fa7ce190 01-Sep-2014 Christoph Studer <chstuder@google.com> Merge "Notification: Reset view params for re-use" into lmp-dev
fe718433e0437db3fec741e5d8fdde5c71d39aba 01-Sep-2014 Christoph Studer <chstuder@google.com> Notification: Reset view params for re-use

Since RemoteViews are reapplied in SysUI, reset potentially
modified view params before configuring it.

Bug: 17175860
Change-Id: I0eceb1522461f8302e69af1a995a8d036951d1ed
/frameworks/base/core/java/android/app/Notification.java
17ee3ec0b85f1ca29920bc3bf26e613b82a0ecf8 29-Aug-2014 Jorim Jaggi <jjaggi@google.com> Media notification updates

- Make text white.
- Adjust padding & metrics to redlines.
- Use different narrow layout when 3 or less notifications with big
picture.
- Update action ripples.
- Fix progress bar size & fix color for indeterminate progress bar.
- Apply default background in SystemUI when no color is set, so we
don't end up with white text on white background.

Bug: 15437369
Bug: 16625746
Bug: 15147533
Change-Id: Ie8bd5ad0bbca972685adb50034fff88ea97456bd
/frameworks/base/core/java/android/app/Notification.java
78358b17885cfb99f359f54c11565c0c3a998928 29-Aug-2014 Christoph Studer <chstuder@google.com> Merge "NoMan: Allow listeners to specify notification trim" into lmp-dev
d05aa3ee47579283a20f4e5957fc319c6e76a74a 28-Aug-2014 Jorim Jaggi <jjaggi@google.com> Fix various problems with notification layouts

- Fix end padding for inbox notification.
- Fix that actions in BigText were clipped off.
- Fix that second line was never shown.
- Fix top padding in combination with badges.
- Fix that actions in InboxStyle were clipped off.
- Make badge style consistent with small icon.
- Fix that third line on Inbox/BigText is always 12sp (before it was
sometimes 14sp)

Bug: 17315502
Bug: 17285898
Bug: 17311783
Bug: 17200814
Change-Id: Ic7e5e4fa07b6302a76631d0238b88239871acf49
/frameworks/base/core/java/android/app/Notification.java
b82bc785c966b59621a3a2523ba7cdf84a73697b 20-Aug-2014 Christoph Studer <chstuder@google.com> NoMan: Allow listeners to specify notification trim

Bug: 16574195
Change-Id: I116080df8b73d73040cf9dbc751e25ee118641d7
/frameworks/base/core/java/android/app/Notification.java
239f835f543016c9cb049174fc6f4557a26b4883 25-Aug-2014 Christoph Studer <chstuder@google.com> Notification: Optimize L icon processing

Bug: 16862480
Change-Id: I6c71eba232184ce948aafe81fec3a313fecbbaf1
/frameworks/base/core/java/android/app/Notification.java
98193ea54f492aefb0c5dd8ff7a1f61e605535e6 24-Jul-2014 Kenny Guy <kennyguy@google.com> Fix notification badge when line 3 not shown.

Ongoing notifications from chrome and drive
don't have content in line 3 so profile badge
wasn't shown.
Add profile badge to large notifications which
hide line 3.

Bug: 16366324
Change-Id: Ib4f1e888674743aa8ef93b7eaceae72602d8df4d
/frameworks/base/core/java/android/app/Notification.java
445d3c0a6f471b4bb1bd37ad5da0fd90c6ce2825 19-Aug-2014 Jorim Jaggi <jjaggi@google.com> Update notification layouts to match redlines

Also fixes a lot of paddings and other small issues with
the notification layouts.

Bug: 15437369
Change-Id: I40b6c69afc160c498b7e2e709814b5b847f615de
/frameworks/base/core/java/android/app/Notification.java
255dd04271088590fedc46c8e22b2fd4ab142d39 19-Aug-2014 Selim Cinek <cinek@google.com> Added notification color to all system notifications

Bug: 17128331
Change-Id: I81a94510ef51b99916f314c0dd65852426a1fbeb
/frameworks/base/core/java/android/app/Notification.java
ceb4d418464d1b72c450c5e390b1cc7b1f92a49f 13-Aug-2014 Jean-Michel Trivi <jmtrivi@google.com> Merge "Add support for AudioAttributes in android.media.Ringtone" into lmp-dev
539aad45707202a2167f03475da38b4cccf020f0 04-Aug-2014 Dan Sandler <dsandler@android.com> Large text support for notifications.

Bug: 7216066
Bug: 15437369
Change-Id: I01a07f04c18d374fc1656f0b1f439a7c33c9d80c
/frameworks/base/core/java/android/app/Notification.java
81f871e2b96125d57b76c07169e868e516443794 07-Aug-2014 Jean-Michel Trivi <jmtrivi@google.com> Add support for AudioAttributes in android.media.Ringtone

Deprecate use of stream types.
Map deprecated API to AudioAttributes.
Add new methods to specify AudioAttributes on a Ringtone instance.

Bug 16790748

Change-Id: Ifb3c2e838e1f119614459ad7d71d83a4d7c9ffdb
/frameworks/base/core/java/android/app/Notification.java
09723fd04a8c2d0198ee11aeab1a9eefcf17ca7f 07-Aug-2014 Dan Sandler <dsandler@android.com> Merge "Need to post-process all action icons to get the correct color." into lmp-dev
aa21e395f536738f1f7dee01d752d69f2dff632e 06-Aug-2014 Dan Sandler <dsandler@android.com> Need to post-process all action icons to get the correct color.

This reverts commit fd266000212b33956d586807c76967b30b815cb6.

Bug: 16846210
Change-Id: I67e0acaacb6a4d9eb9a1a7392a7c647ff51c8f54
/frameworks/base/core/java/android/app/Notification.java
0da85b6c9073956b620c6a88b44027e9ee80066c 06-Aug-2014 Svet Ganov <svetoslavganov@google.com> Fix regression in remote views.

Now remote views contain the application info for the app on whose
behalf they should show content. The application info contains the
user id and the package name which makes it unique in the multi
user environment. If the app which creates the remote views does
not have the same package as the one passed in the contructor of
the remote views, we lookup the app info for the target package.
There is a special hidden overload that allows creating a remote
views instance that represents an app in given package and user
(requires interact across users) permission. The latter is used
by SystemUi when creating remote views for apps that posted a
notification.

bug:16838651

Change-Id: I2daa974629f89a2446848e59300d994dadcf4439
/frameworks/base/core/java/android/app/Notification.java
c71c42fdb2ee54a419dc8eb0a5f4f82532b16c0c 06-Aug-2014 Svetoslav <svetoslavganov@google.com> Polish of the app widgets cross-profiles feature.

1. Added API for badging an arbitrary drawable at a given location.

2. Updated the icon and previewImage deprecation as they are no longer
returning a badged drawable. The methods to load the icon and the
preview are now just making it easier for a developer to get the
drawables.

3. Fixed a bug in AppWidgetServiceImpl leading to a crash when a user
is removed.

4. Fixed a bug in AppWidgetHost which was unnecessarily caching its
package name and having code paths where the cached value was not
populated when calling into the system.

bug:14991269

Change-Id: I50d011a6597d88814715d5ec04ee67815e8ce0bd
/frameworks/base/core/java/android/app/Notification.java
976e8bd2017d0263216c62111454438cc0f130e3 17-Jul-2014 Svetoslav <svetoslavganov@google.com> Allow adding widgets from user profiles.

The goal of this change is to enable support for appwidget from
user profiles to the user main profile. A user profile is a user
which is associated as a child of the main user profile. For example,
a user may have a personal (parent) and corporate (child) profile.
The device policy should be able to control whether adding a widget
from a child profile and given packages is allowed. This change
assumes that all packages from managed profiles are white listed.
Another change will add the device policy changes.

Change-Id: I267260b55d74c48b112a29979a9f59eef7a8194e
/frameworks/base/core/java/android/app/Notification.java
1cda67f8b38e34f495e61b903f518f5a695242b5 31-Jul-2014 Christoph Studer <chstuder@google.com> Notification: Only post-process legacy notifications

Bug: 16522199
Change-Id: I20330f946cee6569c249be1800c3a0e814d79efc
/frameworks/base/core/java/android/app/Notification.java
7ac80e630d8fffb19fbd0d2a177789313c8323b4 04-Aug-2014 Christoph Studer <chstuder@google.com> NoMan: Optimize profile badge retrieval

Instead of stuffing the profile badge into extras, store the
originating user and read the badge via UserManager.

Bug: 16735645
Change-Id: Ia5f9b6f113dcbc88581af5308585edcf9b92b88d
/frameworks/base/core/java/android/app/Notification.java
943aa6778fe1aafe4f108b1e7c1d4538128b529f 03-Aug-2014 Christoph Studer <chstuder@google.com> Notif: Fix profile badge for stripped RemoteViews

Stash the profile badge into the extras such that rebuild() can read
it back.

Bug: 16735645
Change-Id: I620da121615a01c27fb31ee292088701e364d223
/frameworks/base/core/java/android/app/Notification.java
97c0b90f891a0ee1d051ba29d825cde1f0eeaad4 24-Jul-2014 Chris Wren <cwren@android.com> Expose headsUpContentView so developers can customize it.

Bug: 13510114
Change-Id: I645c204e366fefab58224d2e67d00e701dc661aa
/frameworks/base/core/java/android/app/Notification.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/core/java/android/app/Notification.java
4600f9b60753adab4e65258a05744a46938fce86 22-Jul-2014 Christoph Studer <chstuder@google.com> Strip RemoteViews from Notifications, re-create them in SysUI

Bug: 16329721
Change-Id: Ic0bea763ffaec4c5644ca78705007211ac6b4b88
/frameworks/base/core/java/android/app/Notification.java
fd19326c6b0ec891dc839e594eadbf76af142a4d 28-Jul-2014 Christoph Studer <chstuder@google.com> Notification: Forward setUser() call to publicVersion

Change-Id: I82715d69664fcbf57ca0599994004a8630f8587c
/frameworks/base/core/java/android/app/Notification.java
e191f901d9af36f5eeda99758a8319829a9a5b88 22-Jul-2014 Bryan Mawhinney <bryanmawhinney@google.com> Store actions passed to MediaStyle.setShowActionsInCompactView in extras

So that they can be bridged appropriately by Android Wear

Change-Id: I3a21a74991c8067ece1a04fbd0b92dd21438e0fd
/frameworks/base/core/java/android/app/Notification.java
c0650f02b810d7c068885028776d9ed7d6237973 19-Jul-2014 John Spurlock <jspurlock@google.com> Add audioAttributes to Notification.

@deprecate the old audioStreamType-based metadata in favor
of attribute-based replacements.

Bug:16401631
Change-Id: I2c140f87dd4ad2141c6c0a6f391877c295973866
/frameworks/base/core/java/android/app/Notification.java
5598216931f7f5d42b7c062fdeb20b11ef853df8 18-Jul-2014 Dan Sandler <dsandler@android.com> Merge "Deprecate and stop generating tickerViews." into lmp-dev
5fcdf6e81d86943ff0d6d50cec9b976206978fa5 18-Jul-2014 Dan Sandler <dsandler@android.com> Deprecate and stop generating tickerViews.

Tickers have been replaced in the UI by heads-up
notifications (and not creating the tickerView will save
memory, almost 150k if you have an xhdpi largeIcon).

Update docs to explain that tickers are just for
accessibility now.

Bug: 16395266
Change-Id: Ib1372b34c1c261f64228bbe705d174675cd007dc
/frameworks/base/core/java/android/app/Notification.java
1b71878e4ee94c958b7da68ff650b5712bcc7fce 18-Jul-2014 Dan Sandler <dsandler@android.com> Actually show secret notifications sometimes.

Factor out the "should we be hiding sensitive data"
predicate so we get it right everywhere.

Show visibility stuff in Notification.toString().

Bug: 16307122
Change-Id: Ifd16d073c4595add2ac3582ffc0d0179e55246e5
/frameworks/base/core/java/android/app/Notification.java
6be8de36e68b95b2e73042acb8fa13f8dd8dfdcc 18-Jul-2014 Bryan Mawhinney <bryanmawhinney@google.com> Default MediaStyled notifications to CATEGORY_TRANSPORT

This makes it easier to identify them later (e.g., for filtering).
The developer can always specify a different category if preferred.

Also fixed some javadoc related to setMediaSession()

Change-Id: I5f28514758218ff66fdbaa9fd37ccb19f12d4852
/frameworks/base/core/java/android/app/Notification.java
0c69a3e5e8f949e601ed9dac631f26287cfaea47 07-Jul-2014 Christoph Studer <chstuder@google.com> Remove unused Notification.EXTRA_SCORE_MODIFIED

Change-Id: I195204e384fc4818ae5980d978518c0e6403f3fb
/frameworks/base/core/java/android/app/Notification.java
dba34ba35cd2042d9a8fecfda56e2abe7a680bad 25-Jun-2014 Jeff Brown <jeffbrown@google.com> Make MediaSessionToken an inner class of MediaSession.

Also add some missing AIDLs to the framework makefile to ensure
they are included in the SDK.

Change-Id: If85a3091c7591e0b3bbe6cc4bb74aba2284b4f42
/frameworks/base/core/java/android/app/Notification.java
9856739cb0f10dd6234359869991b4c57eab340f 24-Jun-2014 Chris Wren <cwren@android.com> am 7d165c5d: Update javadocs for heads up behavior.

* commit '7d165c5d59b6afb6aa66999ff76b79c8017ad09a':
Update javadocs for heads up behavior.
47c20a163a56822f38664151c1e42fac07c41534 18-Jun-2014 Chris Wren <cwren@android.com> Update javadocs for heads up behavior.

The heads up notification is influences by full screen, sound,
vibration and priority. Update the documentation on those APIs to
explain this.

Also add some draft documentation for hidden API surfaces.

Bug: 15509793
Change-Id: Ie7dc99d9c1acf873782bdd010cdf28d11da256d7
/frameworks/base/core/java/android/app/Notification.java
0d0c1775186ae88041ae74646119ee5ea2e9cf01 17-Jun-2014 Griff Hazen <griff@google.com> [Doc fix] Document best practices for display intent activities.

Bug: 15412926

Change-Id: I1c3082dfde85cd03ffc97be6383a0608f925edcf
(cherry picked from commit 831ca9d3bc73e37f555f6c07babde270f83044fe)
/frameworks/base/core/java/android/app/Notification.java
31f8d22ec542505f0bb19b78ba4f617cab39677f 17-Jun-2014 Robert Ly <robertly@google.com> am 1d3f9b72: am 0bfee5a4: Merge "fix javadocs b/14414251" into klp-modular-dev

* commit '1d3f9b72505cdf72889f9f1984005097ed35d314':
fix javadocs b/14414251
ea54579b54687788c269b386c4bb802de5b87b1a 17-Jun-2014 Griff Hazen <griff@google.com> am 6762a335: am 831ca9d3: Document best practices for display intent activities.

* commit '6762a3351ce84ec31ce7cd54c952ddb65a108958':
Document best practices for display intent activities.
831ca9d3bc73e37f555f6c07babde270f83044fe 17-Jun-2014 Griff Hazen <griff@google.com> Document best practices for display intent activities.

Bug: 15412926

Change-Id: I1c3082dfde85cd03ffc97be6383a0608f925edcf
/frameworks/base/core/java/android/app/Notification.java
0bfee5a4905a14a318731661214558792abc2f7d 17-Jun-2014 Robert Ly <robertly@google.com> Merge "fix javadocs b/14414251" into klp-modular-dev
7441931462c5dd00edc6f4598e1e60b4f5e67fc4 10-Jun-2014 Jorim Jaggi <jjaggi@google.com> Do not override mColor with default color if none set

Bug: 15163105
Change-Id: Ibb9507b24aeaae7a571d42eb411aff25449d48fe
/frameworks/base/core/java/android/app/Notification.java
01df1c680abdce58d873220cfce9163b59eacbd2 09-Jun-2014 Daniel Sandler <dsandler@android.com> Move CATEGORY_NOTIFICATION_PREFERENCES to Notification.

It sprouts an additional INTENT_ prefix to distinguish it
from the Notification.category constants in the same file.

Bug: 15022240
Change-Id: Icbc09bfc5ce78964272def66934fe4a7c848e12b
/frameworks/base/core/java/android/app/Notification.java
91c5ce318f504db26ffa92e98d5890e07b27b00a 09-Jun-2014 Robert Ly <robertly@google.com> fix javadocs b/14414251

Change-Id: I0a0b8f1c42c45b9e7b6c5282c864319cf0278f14
/frameworks/base/core/java/android/app/Notification.java
3cb07a462be293634e6a83ea6c82f3647cd17dad 06-Jun-2014 Alan Viverette <alanv@google.com> DO NOT MERGE Material theme

BUG: 15467097
Change-Id: I15191362e104a902895418fc615892c21db64c35
/frameworks/base/core/java/android/app/Notification.java
8a0101bade3f817d925bd931d0b83bc454dedea4 09-May-2014 Kenny Guy <kennyguy@google.com> Badge notification from managed profiles.

Add a method to the UserManager to provide access
to bitmap of badge for managed profile.
Overlay the icon view in notification templates with
the badge from the UserManager.
Notifications with custom views won't be badged.

Bug: 12641490

Change-Id: I1f2aae927e75fc8a955e4d5bbc3cc81127d87069
(cherry picked from commit 0f4ab980227e8c298bfcd34dd85aad0febad528c)
/frameworks/base/core/java/android/app/Notification.java
bf06fa047954e85cf9df554d0b3d4eb4b19a950e 30-May-2014 Adam Powell <adamp@google.com> Compatibility fix for apps that construct Notification.Builders early

Some apps in the wild are known to construct a Notification.Builder
from within their Activity constructor, passing said Activity instance
as the Context parameter. However at this point in the Activity's
lifecycle the ContextWrapper's base context has not yet been populated
and most calls to Context methods will fail.

Even though this was technically undefined behavior in the past, as
apps have little to no way to guess at these internal implementation
details it's probably best to preserve old expectations. Add a note
in Notification.Builder for future framework developers and remove the
offending call - the associated field was never used anyway.

ಠ_ಠ

Change-Id: I4cf3df10be14739babc8ae9a969d261a7ecf8beb
/frameworks/base/core/java/android/app/Notification.java
ca48d35423bbcf9da93a9157347f1de09cd2513f 29-May-2014 Griff Hazen <griff@google.com> DO NOT MERGE Cherry-pick: Additional doc fixes for WearableExtender

Change-Id: I3764e4d97c0007b905ff0f3eb553234668fd50e1
/frameworks/base/core/java/android/app/Notification.java
339f437dc3f7c474d9cf1f963819bab2596e6ad3 28-May-2014 Griff Hazen <griff@google.com> Additional doc fixes for WearableExtender

Change-Id: I3764e4d97c0007b905ff0f3eb553234668fd50e1
/frameworks/base/core/java/android/app/Notification.java
d5f11f98d13ed4390d0fc5b30241fd71dd000be8 28-May-2014 Griff Hazen <griff@google.com> DO NOT MERGE Cherry-pick: Add full screen size preset to WearableExtender

Bug: 14838838

Change-Id: Id038d994d61d3c89dba08232a424a5b1b934e5db
/frameworks/base/core/java/android/app/Notification.java
14f5799ba95bfab4d985dc029952e164c385d5f5 26-May-2014 Griff Hazen <griff@google.com> DO NOT MERGE Cherry-pick: Doc fixes for Notification.WearableExtender

Change-Id: I22947e30d329e667079555ac4ac5f9b25d6bd3fa
/frameworks/base/core/java/android/app/Notification.java
a9cb1e66737f816d643bca03832af719cbdd0f20 28-May-2014 Griff Hazen <griff@google.com> Add full screen size preset to WearableExtender

For custom display notifications.

Bug: 14838838
Change-Id: Id038d994d61d3c89dba08232a424a5b1b934e5db
/frameworks/base/core/java/android/app/Notification.java
6f72ac5d5f4b7bae34bb3dab7821f3dbcbf02bcd 26-May-2014 Griff Hazen <griff@google.com> Doc fixes for Notification.WearableExtender

Change-Id: I22947e30d329e667079555ac4ac5f9b25d6bd3fa
/frameworks/base/core/java/android/app/Notification.java
61a9e8635f04e5bae5f4ee81579beb9d5baf56d0 23-May-2014 Griff Hazen <griff@google.com> DO NOT MERGE Cherry-pick: Api updates for wearable extensions to notifications

Change-Id: I40012fd0458ec103eabf75ed4c91f636e02f4c8f
/frameworks/base/core/java/android/app/Notification.java
c3104157d8f12238b0ac8cf6c6f963dadb44167c 22-May-2014 Griff Hazen <griff@google.com> Api updates for wearable extensions to notifications

1. Move Extender outside of Builder
2. Rename apply/applyTo to extend
3. Move Wearable extenders into Notification.java
4. Collapse Builder model into single classes
5. Use Bundle for storage: no new parcelable types.

Minor fix to RemoteInput to use flags int for boolean options.

Change-Id: I40012fd0458ec103eabf75ed4c91f636e02f4c8f
/frameworks/base/core/java/android/app/Notification.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/core/java/android/app/Notification.java
e9e3b3b919185fd0dc797c1699e762fa32db59f9 19-May-2014 Jose Lima <joselima@google.com> Added Notification.EXTRA_BACKGROUND_IMAGE_URI

Added new EXTRA field to notification to be used to specify
an image that can be displayed to the user when the notification
is selected.

Change-Id: I3f79cf363d885fe2742e74a7d29d7e22ea1e6f60
/frameworks/base/core/java/android/app/Notification.java
51eb4e657cc68df7fabbcd4538d26ea139449c01 20-May-2014 Griff Hazen <griff@google.com> am 7ba69dd8: am 9e1379f1: Fix sdk docs build for framework from remote input api addition.

* commit '7ba69dd8bd428494c7a2848b5d3325d47cf4afbf':
Fix sdk docs build for framework from remote input api addition.
b720abeee8474f4c641f57c58ac97d537da20cbf 20-May-2014 Griff Hazen <griff@google.com> resolved conflicts for merge of 8f1e7ade to master

Change-Id: Icabc5d274502abf8d40116d373c9f9d0ac062386
9e1379f1126c1101f69445572bd441b2211791fa 20-May-2014 Griff Hazen <griff@google.com> Fix sdk docs build for framework from remote input api addition.

Change-Id: I6a6f3df06d924fe72f67466d67d9feced8d8719f
/frameworks/base/core/java/android/app/Notification.java
5cadc3b00aa775a63518383046c902b130e09b4c 20-May-2014 Griff Hazen <griff@google.com> Add RemoteInput, Grouping, and Extender to Notification api.

RemoteInputs annotate actions and content intents to request
input from the user as part of an intent being sent. Results
are sent along using ClipData to avoid unparcel of developer
provided bundle values. A helper method is expexted to be used
to extract results.

Grouping allows notifications to be bundled together, with an optional
summary notification for display on older platforms. SortKey is an
important part of grouping since child notifications will likely have
a prescribed ordering. It is also useful in top level notifications
for apps that want to provide an ordering all other fields being equal.

Also provide a fluid way to to extend Actions and Notifications
using Extenders, e.g.:

Notification n = new NotificationCompat.Builder(context)
.setOption1()
.apply(new SomeExtender()
.setOption2())
.build();

This helps extension libraries provide a nice API experience for devs.

Change-Id: Ib3438ef854772c2c34d21bf1eb4ed7c9e032106f
/frameworks/base/core/java/android/app/Notification.java
a13bfae217553bcdd545794121c045f5a6da28ba 16-May-2014 Griff Hazen <griff@google.com> am cfa27161: am 50c11659: Fix Notification sdk docs build.

* commit 'cfa271618f5b33eae200c97c6c3624df9d04efc2':
Fix Notification sdk docs build.
c091ba8dd085871a137600bdc82e3b902fb544f5 16-May-2014 Griff Hazen <griff@google.com> resolved conflicts for merge of de35b636 to master

Conflicts:
core/java/android/app/Notification.java

Change-Id: I39ace14c976431bd7f6f1f9d5e4174b0a100aab0
50c11659f0f971e1a6b0adde59247f5de370b74d 16-May-2014 Griff Hazen <griff@google.com> Fix Notification sdk docs build.

Builder#X looked like it was considered ambiguous even though Action
was not in scope. Intellij disagreed but this fixes the issue.

Change-Id: I51fac39b2a4834e25f936c6eae223cda8c9c610e
/frameworks/base/core/java/android/app/Notification.java
190d58d621a6d520db5fce840b07d26e4984e1f5 15-May-2014 Dan Sandler <dsandler@android.com> Badge largeIcons with the notification icon.

The old right-hand small icon is no more; instead the
notification's small icon is overlaid atop the largeIcon
bitmap.

If the small icon would have had a colored circle background
applied to it in the large left-hand slot, it gets a similar
treatment when used as a badge.

Change-Id: I8b262afbdd4faab2beffd294d662f4759f35f3b3
/frameworks/base/core/java/android/app/Notification.java
959591e3ba3934f5bd8ecc2c81ad2a16d226acab 16-May-2014 Griff Hazen <griff@google.com> Add support for extendable actions to Notification.

Change-Id: I2945a6994a28fc454af3f84e75c96d7619547f01
/frameworks/base/core/java/android/app/Notification.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/core/java/android/app/Notification.java
26e81cf14bf32585742cbb75ac14045acaab2692 06-May-2014 Dan Sandler <dsandler@android.com> Quantum notification improvements.

New API introduced here: Notification.color (and
Builder.setColor()), allowing apps to specify an accent
color to be used by the template. The Quantum templates
(which are now the only kind we support) use this when
creating a circular background to draw behind the smallIcon
in the expanded form.

Additionally, the quantum and legacy templates are no longer
in superposition; all apps using Builder will get quantum.

Change-Id: Iac5e2645cc5c2346ed458763f2280ae9c6368b62
/frameworks/base/core/java/android/app/Notification.java
ed0c87e7cdd2f641b6ed78df62b20a9f08ac16bb 06-May-2014 Griff Hazen <griff@google.com> DO NOT MERGE Hide Notification categories from API 20 (KKWT)

Bug: 14116162

Change-Id: I59e499dde9a06a4bf455eecb3665afaa1b574dae
/frameworks/base/core/java/android/app/Notification.java
7c12112d6292f9424726c257b237d0fd1bd03eab 28-Apr-2014 Griff Hazen <griff@google.com> am e638b844: am 3c5a6cf9: am 2c6131bb: am 293977bd: Fix the doc for Notification.FLAG_ONLY_ALERT_ONCE.

* commit 'e638b84436caeea8d54b560c0b883ef599ba328d':
Fix the doc for Notification.FLAG_ONLY_ALERT_ONCE.
3c5a6cf93520be23e6d5a9bc4cb8f4e8c18214b1 28-Apr-2014 Griff Hazen <griff@google.com> am 2c6131bb: am 293977bd: Fix the doc for Notification.FLAG_ONLY_ALERT_ONCE.

* commit '2c6131bba957dc5b4e1638bb8b0c10ebddf2049a':
Fix the doc for Notification.FLAG_ONLY_ALERT_ONCE.
293977bdb028e2aa893fbeb370e20132646094a9 28-Apr-2014 Griff Hazen <griff@google.com> Fix the doc for Notification.FLAG_ONLY_ALERT_ONCE.

The logic was opposite.

Change-Id: I62e0b1e6701a4c9990119a1b94918e64783e9b1a
/frameworks/base/core/java/android/app/Notification.java
dde753079fd9a5a36937f28d50326fd166fd01fa 26-Mar-2014 Chris Wren <cwren@android.com> support the people extra on the notification object

currently supported URIs:
content://com.android.contacts/contacts/lookup/*
tel:*

Change-Id: I833eee3f2ee40aa8cb2cfad135bdd6cb2c0eb792
/frameworks/base/core/java/android/app/Notification.java
5c2d84675b239bc04ae98c75526e5b81897ee183 21-Mar-2014 Jorim Jaggi <jjaggi@google.com> Move legacy notification processing to Notification.Builder

Bug: 13485610
Change-Id: I5466d3dbc328c77876dc701c17e7a5a06777dbbe
/frameworks/base/core/java/android/app/Notification.java
cf44a124ab4eca431b3c57776183cd3857113e6f 24-Mar-2014 John Spurlock <jspurlock@google.com> Unhide Notification kind, rename to category.

Change-Id: I8e6d5a30dff519d7ed4f38e018646dd2bc55db33
/frameworks/base/core/java/android/app/Notification.java
0a69c8c4bd535249246655ba9636dda2bb71d0b2 21-Mar-2014 John Spurlock <jspurlock@google.com> Add notification category for recommendations.

Change-Id: I3718b8273c3f901aee1b2c2cdc4fcdae25fadcad
/frameworks/base/core/java/android/app/Notification.java
fd7f1e00399e53a392941928ed5a55ca77b1b721 18-Mar-2014 John Spurlock <jspurlock@google.com> Unhide notification category.

Rename @hidden Notification.kind -> category, and flesh out
shared values. Now a single value.

Update framework references, remove unused SystemUpdateService
magic value unused since 2012.

Change-Id: If06d19ff3a8c3125fca1457f5d3c665e2939c66c
/frameworks/base/core/java/android/app/Notification.java
d1862dac05e4302761c8d741a3286fe5eb6f1174 07-Mar-2014 Chris Wren <cwren@android.com> am 111e981d: am 70d5ed26: Merge "use relative positioning for notification actions" into klp-dev

* commit '111e981dc7f7d62647d6aa5e6c44cfd13af53608':
use relative positioning for notification actions
39fa59fc4907d3c8faad41bf20e1f855dbcda5e6 25-Feb-2014 Jorim Jaggi <jjaggi@google.com> Change appearance of notifications to light theme.

Change-Id: Ic15e96582d6b46b4dc195b1c7c0cef38f25f0d38
/frameworks/base/core/java/android/app/Notification.java
be63a95d2b4c1fba31c71db7dc1d2248418e1ded 03-Dec-2013 Chris Wren <cwren@android.com> use relative positioning for notification actions

Bug: 10531101
Change-Id: Ia1d7cac880f620a9760271344edf920caf0d852d
/frameworks/base/core/java/android/app/Notification.java
5ab311550f01412c12c1c68fe75ae929c9d1e9d8 06-Mar-2014 Griff Hazen <griff@google.com> am 6daf22ca: am 47826bfa: am c748341a: Merge "Add addExtras and getExtras to Notification.Builder." into klp-modular-dev

* commit '6daf22ca7680261e07dfd298a43d6e473e6c06f6':
Add addExtras and getExtras to Notification.Builder.
720042b72f10f5e67a173adc76ebf939bf6ecc4e 25-Feb-2014 Griff Hazen <griff@google.com> Add addExtras and getExtras to Notification.Builder.

addExtras allows merging with exiting set extras instead of replacing
them. This matches the similar function putExtras in Intent.

Both functions are useful for multi-stage notification building logic.

Change-Id: Ice3e4a53ec05b7129ebdac14e2084163946273a4
/frameworks/base/core/java/android/app/Notification.java
8fd39ec46b056c88f0d08758d04badab29a8786a 27-Feb-2014 Chris Wren <cwren@android.com> create a synthetic 2U heads up notification

combine the 1U with the action buttons to make a mid-sized notification
bounded to 128dp by the system ui
used for the heads up

Bug: 13208692
Change-Id: I382bb0bd1ce73f35295f05ca2606195986cff1d3
/frameworks/base/core/java/android/app/Notification.java
6adfd86ca94f3eabb93fb1b4a0b9b0ea50895dcd 11-Feb-2014 Griff Hazen <griff@google.com> am 4e795ebe: am 0ff811db: Merge "Add local-only option to Notification (using flag)" into klp-modular-dev

* commit '4e795ebe1783623a28a988f77b4f0f11d54e73be':
Add local-only option to Notification (using flag)
dfcb0803bf2087b6f56592f1e2731bbaa070cb82 11-Feb-2014 Griff Hazen <griff@google.com> Add local-only option to Notification (using flag)

Change-Id: Ic6d2f3b0cf06b58c0afa2af0fa6b245124424223
/frameworks/base/core/java/android/app/Notification.java
91ad563da32406873c533e0b6df260df0d142290 05-Jun-2013 Chris Wren <cwren@android.com> record the notification style

Bug: 10634902
Change-Id: I7d29f252367f4ab58e97a6ac8b0c6702f558e5cf
/frameworks/base/core/java/android/app/Notification.java
0bf2ed8ae394b327af1bc6e853a698c2dac67aaa 22-Dec-2013 Dan Sandler <dsandler@android.com> Notification visibility APIs.

The new visibility property allows an application to signal
to SystemUI whether a notification's contents are safe to
show in "public" situations, i.e. outside of a secure
lockscreen, or whether they should be treated as "private"
(where only the icon is revealed).

Apps that post information that includes no personal or
sensitive information (e.g. a weather alert) can use
VISIBILITY_PUBLIC to allow users to see (and potentially
even dismiss) this kind of notification without unlocking
their devices.

The historical treatment of Android notifications
corresponds to VISIBILITY_PRIVATE, which is the default
visibility setting for all notifications, including apps
that are not aware of this API.

VISIBILITY_PRIVATE notifications may optionally specify a
publicVersion, which is a whole other Notification object
whose contentView will be shown in public contexts. This
allows an app to provide a "redacted" public version of its
notification that is more useful than the system-supplied
version (showing just the icon and app name) but still
conceals private information. For example, a messaging app
that today posts a Notification including the sender and
contents of each message could additionally specify a
publicVersion that says, simply, "N new messages".

There's also VISIBILITY_SECRET for notifications that should
be totally concealed (that is, no icon) in public contexts.
To reveal any hint of this kind of notification would
require the user to unlock the device.

Change-Id: I1552db36c469954d27d3c92ba21ac5c703d47ae1
/frameworks/base/core/java/android/app/Notification.java
8749ac8a4c14bf2ff13deb5fe9a08bafd172ca63 03-Dec-2013 Chris Wren <cwren@android.com> use relative positioning for notification actions

Bug: 10531101
Change-Id: I5a55f708d9ffae3ec3582f85c2ff47aa6afa287d
/frameworks/base/core/java/android/app/Notification.java
a3ea0441d0922f1cff0ca65970bdd6c565c8e60f 30-Sep-2013 Daniel Sandler <dsandler@android.com> am 723ad75e: Merge "API cleanups for Notification." into klp-dev

* commit '723ad75e107f57dc541dfca600745895e1251974':
API cleanups for Notification.
cf1d39b1782cc3c7eeac66ee483a6d9db0afd98b 23-Sep-2013 Daniel Sandler <dsandler@android.com> API cleanups for Notification.

- Calling build() on a Style now goes through the same
codepath as calling build() on the Builder.
- Documented new constants and unhidden classes.
- Fixed crash in Action.clone().

Bug: 10112103
Bug: 10461196
Change-Id: I08cd94790b538a361ccf8ff3682f6a86a7812b95
/frameworks/base/core/java/android/app/Notification.java
d9273d6f289d9b55da3fd0db2f659fdfb48106a8 31-May-2013 Tor Norbye <tnorbye@google.com> Add typedefs and nullness annotations.

This changeset adds in typedef annotations (custom annotations
marked with @IntDef) for various int parameters and return values
in the API. It also adds nullness annotations for cases where the
documentation explicitly mentioned null policy, or where it was
blindingly obvious from the context. Also fixed some typos in the
documentation.

Change-Id: Ica27c01368895818e26237544edd8483007155bb
/frameworks/base/core/java/android/app/Notification.java
9a05b31aab8b4f2c431fda8c14aa7816eb4a91ad 28-Jun-2013 Scott Greenwald <greenwald@google.com> Add support for notification scorers.

This CL adds an interface and classes for scoring notifications.
The NotificationManagerService initializes an array of scorers
specified as a resource. When a Notification is enqueued, the
getScore() method is called successively on the scorers, each
getting the Notification to be scored, and the score outputted
by the previous scorer. At present there is a single scorer
which prioritizes Notifications that mention the display name of
a starred contact.

To turn off the StarredContactNotificationScorer:
adb shell settings put global contact_scorer_enabled 0

Change-Id: Ic16c80952e7c85bdde292ebb3f7900efb01f2e29
/frameworks/base/core/java/android/app/Notification.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/core/java/android/app/Notification.java
ac08a4745e355e772aef917ca6ef0fee068a9837 10-Jun-2013 John Spurlock <jspurlock@google.com> Save Notification large icon to extras.

This piece of semantic info was defined, cleared properly on
lightenPayload, but never saved.

Change-Id: I41fb5f836f9afe2be5407f292bd6b5e02dfc9cb3
/frameworks/base/core/java/android/app/Notification.java
da76ad2ea3c73f140accfdcddecb327b4c28d0fa 14-May-2013 Chris Wren <cwren@android.com> reveal the notification extras

Change-Id: Ic97e3485dc23eeb5cfb565a5cef98489acdec8a2
/frameworks/base/core/java/android/app/Notification.java
dcbaf661bfa931f481022c27987798a03ce7a932 26-Apr-2013 Daniel Sandler <dsandler@android.com> Filter out dangerous CharSequences in Notification.

If an app mistakenly puts some Parcelable implementation of
CharSequence in here, Bundle will try to marshal the derived
class, which is going to be bad news when we try to unparcel
it in another process.

Additionally add a proper stack trace to unparceling
failures (otherwise you have no idea where the bad parcel
was being used).

Bug: 8725271
Change-Id: Ide19b986d65c7f47929cf2dde4e62b762c469fee
/frameworks/base/core/java/android/app/Notification.java
1a497d3a2b1496c12949e47e55f8e46d8f585be5 18-Apr-2013 Daniel Sandler <dsandler@android.com> Fix concurrency issues when parceling StatusBarNotifications.

Protip: Don't mess with Bundles after you've sent them off
for parceling in an RPC.

Note that this change reduces the payload size of
StatusBarNotification objects received in
onNotificationRemoved() callbacks; it scrubs out the
RemoteViews and Bitmaps just as the NoMan's internal archive
does. [You don't really need that information anyway when
hearing about a removed notification; most likely all you
need are the other slots on StatusBarNotification, but
nulling the whole Notification object breaks a lot of
clients.]

Bug: 8616295
Change-Id: Ic899045f2352b96dcf064d3e9e51dad52629aea3
/frameworks/base/core/java/android/app/Notification.java
f45564ee7228cf9efc70cdcf16de3ddcedd1cb02 15-Apr-2013 Daniel Sandler <dsandler@android.com> Finish annotating Notification.extras.

This covers all useful data from the basic Builder as well
as each of the Styles that is not otherwise captured on the
Notification object itself.

Extras are now prettyprinted in dump() output.

Bug: 8270485
Change-Id: I47fc50860dab6409793f57e904cc60296310d5cf
/frameworks/base/core/java/android/app/Notification.java
26c134398422a4f4e703cdf7b87fb1cb08d542c4 04-Apr-2013 Daniel Sandler <dsandler@android.com> Set FLAG_SHOW_LIGHTS if *either* on or off is nonzero.

Previously they each had to be nonzero, which prevented
using the builder methods to create solid-on LED
notifications.

Change-Id: I30314ec33daa28ee2e1f0b87a184c3540254471c
/frameworks/base/core/java/android/app/Notification.java
ea2a317368b895f13d3a8c5e9db66efdfb06870a 21-Feb-2013 Daniel Sandler <dsandler@android.com> Make Notification action data structures public.

Currently hidden.

Change-Id: I2a62a730f76d177577155d7ebb396b0fe51357f8
/frameworks/base/core/java/android/app/Notification.java
be6e7e0f73bb886bd0423e44f2914793beed27b9 01-Feb-2013 Daniel Sandler <dsandler@android.com> Capture semantic Notification.Builder data in extras.

This is an important step toward being able to reason about
Notifications after they've been built and sent to the
NoMan; right now most of that information is baked into the
contentView and bigContentView before being thrown away.

TODO: more stuff. Right now we're just grabbing the basics:
title, text, subtext, and small icon res ID.

Change-Id: Ief725bb38d160d340b0e3c46f83bc02d5a283d13
/frameworks/base/core/java/android/app/Notification.java
8aa9ae69a24c3ae00106235c119e1b02de894839 05-Dec-2012 Daniel Sandler <dsandler@android.com> Fix longstanding nonsense in javadocs.

Change-Id: Iea2c7b8e5dc7591a9586a628e891d71d215daec6
/frameworks/base/core/java/android/app/Notification.java
6738eeec009d266e6b1a20c19f94d72874b89b31 16-Nov-2012 Daniel Sandler <dsandler@android.com> Cleanups in Notification.java.

Bug: 7555827 // remove named TODO, fix toString output
Bug: 6440961 // remove longstanding and mysterious "MUMBLE MUMBLE"
Change-Id: I8b5e16fb1f7ccbe5cbda37f260fdc6bc0e1b8ee3
/frameworks/base/core/java/android/app/Notification.java
4422596ddb295f812bb0970ec7f75d3c45d05020 13-Nov-2012 Joe Malin <jmalin@google.com> am ce37f1da: am 4979a0b5: am 5f32d337: Merge "Notification.java javadoc: addAction" into jb-dev-docs

* commit 'ce37f1da3619dcb4e53ca014cf4a17885cc3af0f':
Notification.java javadoc: addAction
8d40d04afadd9fd285797fed92bab8f8b0f9dfde 05-Nov-2012 Joe Malin <jmalin@google.com> Notification.java javadoc: addAction

Change-Id: I86fe116f50d8462494cfc9f138e1c885ae5a41ea
/frameworks/base/core/java/android/app/Notification.java
8768278974082decc8fe7b4a6da132bd38f30d7c 07-Nov-2012 Daniel Sandler <dsandler@android.com> Fix docs to refer to the correct class.

Bug: 6676920
Change-Id: Ib79635cb3ff464b4686268fcf64b99cacaa9e627
/frameworks/base/core/java/android/app/Notification.java
ecbd68b0de73a16ce9d0cf2baa7153e1db14b34a 02-Nov-2012 Amith Yamasani <yamasani@google.com> Resolve USER_ALL when inflating notification views.

Fixes the OTA icon display when the OTA is to be shown to all users.

Bug: 7462511
Change-Id: I185d9d5340d866d0a4b0ae273a361e8db160e33b
/frameworks/base/core/java/android/app/Notification.java
6d51571835737c7502a2e111ee9dc2527ebad984 21-Sep-2012 Jeff Sharkey <jsharkey@android.com> Allow acquiring ContentProviders across users.

Otherwise services like SystemUI will always open content://-style
Uris as USER_OWNER. Surfaces through createPackageContextAsUser()
which points all ContentResolver operations towards a given user.

Start using in RemoteViews, so that Notifications correctly resolve
image Uris to the sending user. Also add user support for "content"
shell tool.

Bug: 7202982
Change-Id: I8cb7fb8a812e825bb0b5833799dba87055ff8699
/frameworks/base/core/java/android/app/Notification.java
0887711d0f76d858501fd017259ddfdc1950eb3f 21-Sep-2012 Daniel Sandler <dsandler@android.com> Merge "Add Notification.Builder.setShowWhen(boolean)." into jb-mr1-dev
683ab00a2ec2e02f8ad1296efb381aa72d364b57 20-Sep-2012 Chris Wren <cwren@android.com> fix underfull content bug in inbox and big text templates.

Bug: 7172721
Change-Id: I22019009eec31ca18b54eec5f6ed5b626cee1540
/frameworks/base/core/java/android/app/Notification.java
0c89049ebf463bde186c41fe9fad63ad27182eb2 13-Sep-2012 Daniel Sandler <dsandler@android.com> Add Notification.Builder.setShowWhen(boolean).

No more setting when to 0 to hide the timestamp! *cheering*

Bug: 6915046
Change-Id: I1560a1c2dd366d416d1d059704ca7c63149334eb
/frameworks/base/core/java/android/app/Notification.java
183bf116978e3c44292c9ead2bceb47e972624a1 14-Aug-2012 Scott Main <smain@google.com> docs: misc bug fixes from external issues

Change-Id: I380b65341200c0519a93e2f8969f70f64aec0264
/frameworks/base/core/java/android/app/Notification.java
0bd664dab4c1af6ee2048671ed4847e0f52ea179 01-Aug-2012 Chris Wren <cwren@android.com> Add missing docs to notification style rebuilder functions.

Bug: 6914726
Change-Id: I13efae036610523ec6f83696d3337054e79856aa
/frameworks/base/core/java/android/app/Notification.java
c08dea2aa4f66f888f01fa7ed2be46d4c4651a1e 28-Jun-2012 Daniel Sandler <dsandler@android.com> Fix NPEs when using the APIs a little oddly.

This should help developers use some of the features of
Style via subclassing rather than duplicating functionality.

Bug: 6716608
Change-Id: I048e8221c8046e9779e08e6e262ac3fb37b01cb3
/frameworks/base/core/java/android/app/Notification.java
064f9907c98283e76ed03fa65484fc6face22f92 21-Jun-2012 Daniel Sandler <dsandler@android.com> Unhide new methods on RemoteViews and Notification.

Change-Id: I0cbc270d9d7e9e728482c3b10650a32589636c9d
/frameworks/base/core/java/android/app/Notification.java
916ad91c3860344250c00b6b3597db6464229c02 13-Jun-2012 Daniel Sandler <dsandler@android.com> Remove line3 in big notification unless there's text to show.

If you have no subText or summaryText in a big template, but
you *do* have a number, the overflow bar (below the big text
or inbox or whatever) would have shown; now it does not.

Bug: 6657006
Change-Id: Ib2af2712da3a98227bd8d697560893adbdc427e9
/frameworks/base/core/java/android/app/Notification.java
602ad1c978ddbf8be2c272cd610e18a626cd8b33 12-Jun-2012 Daniel Sandler <dsandler@android.com> "Two actions ought to be enough for anybody."

Bug: 6650170
Change-Id: I5ee6990a8e556f9ee1fbfb0989db33f75b07f4ea
/frameworks/base/core/java/android/app/Notification.java
619738c9e7b321d3a7f297b95955c681f5de56ba 07-Jun-2012 Daniel Sandler <dsandler@android.com> Various notification template cleanups.

Bug: 6597693 // hide line3 in InboxStyle
Bug: 6593691 // vertical centering inconsistencies
Bug: 6592116 // no left action gutter in BigPicture
Bug: 6622757 // missing subtext in BigText expanded
Change-Id: I941af99d0a905b6e0aa6fb74ad4eff29c17d9fc2
/frameworks/base/core/java/android/app/Notification.java
a90513d5f4e9f9ba20fca60bcf8548e23863c395 04-Jun-2012 Daniel Sandler <dsandler@android.com> Unused API should be hidden.

Change-Id: Ifed4d06e620c990ccecc1ee1aaf3adedbdc7c2da
/frameworks/base/core/java/android/app/Notification.java
6387d2f6dae27ba6e8481883325adad96d3010f4 22-May-2012 Daniel Sandler <dsandler@android.com> Visual tweaks to notifications.

- Smaller right_icons
- Higher-contrast text colors
- Dividers between actions
- Dividers above actions and overflows
- Consistent 8dp gutter on left of content
- BigTextStyle should not show line3 unless there is a subtext.
- Collapse summary ("overflow") text into line3. This is a
little wild because now the contentText, subText, and
summaryText all share this spot, but the various
variables all have different times when they're
expressed so you have greater control over what shows
where in the 1U and the expanded form.
- Do not show contentText in BigText's line3. If you have
subtext or summarytext, show that; otherwise suppress
line3 entirely.

Bug: 6558134 // line3
Bug: 6508804 // other visuals
Change-Id: Ib79e818a332d17000e9a8fce333eff8f8cf043aa
/frameworks/base/core/java/android/app/Notification.java
3745a3da759a9510554c8d2c59f09185e52ed403 22-May-2012 Chris Wren <cwren@android.com> BigPicture notifications for screenshots.

Needed a little extra help from the builder to make this
happen (like the title, you might want a different largeIcon
in the expanded view if---as in this case---it is redundant
with the big picture).

Needed to fix BigPicture template to reveal actions.

Bug: 6289107
Change-Id: I19dc62e693ee2c87cbe82f7327fe9115768b4102
/frameworks/base/core/java/android/app/Notification.java
c40a7fe00257d5742bd10bc611cd11d1600f469f 22-May-2012 Daniel Sandler <dsandler@android.com> Merge "Fix three-line notifications." into jb-dev
9f7936a30bc097c31962891945802507cb4aeb82 21-May-2012 Daniel Sandler <dsandler@android.com> Fix three-line notifications.

To accommodate three lines as before, we now adjust the size
of text and icons to fit.

Also in this change:

- snazzy little shadow below BigPicture's 1U block
- restore contentText to BigPicture notifications
- make overflow match other notification text (not so big)
- fix text position jumps between 1U and expanded
notifications across all templates

Bug: 6519374 (three-line notifications cut off)
Bug: 6494982 (text jumps)
Change-Id: I717ec2dde805c25e3b949641ca7e69e4d8fc86d2
/frameworks/base/core/java/android/app/Notification.java
29bb6d925bcaa562212b3fe41de249c3dfb64354 18-May-2012 Chris Wren <cwren@android.com> Support more items in the Notification.InboxStyle, plus an overflow.

Bug: 6500113
Change-Id: I9f6b45ef0821c45000afa8a23ee51033b51df298
/frameworks/base/core/java/android/app/Notification.java
4ed80d581c3448f075d65efafc585b4691f8b301 17-May-2012 Chris Wren <cwren@android.com> Don't assume digest lines are GONE, we may be recycling them.

Bug: 6500945
Change-Id: I0f01ccdde25bebb8335f0d34408877b895d286ff
/frameworks/base/core/java/android/app/Notification.java
b46f3f6743f015cd6e0cfd21639b82fcdb5e6983 16-May-2012 Chris Wren <cwren@android.com> Merge "Defensively reset the default state of layout elements." into jb-dev
8680bf865a08f876fc3986c50a193e3186ff6f02 15-May-2012 Daniel Sandler <dsandler@android.com> Action button improvements:

- Horizontal layout
- At most 2 are shown
- Tombstones are now shown (if the intent is null, the
button is disabled; use it for quick feedback of an
action's effect)

Bug: 6418617 (tombstones)
Bug: 6482237 (action separators)
Change-Id: Ie0c613006227bbfe1c0ec6eab1cda4f3782a05f2
/frameworks/base/core/java/android/app/Notification.java
67dc9a02cfa1873f67128fba7fbdf33f8fe18a24 16-May-2012 Chris Wren <cwren@android.com> Defensively reset the default state of layout elements.

Bug: 6500945
Change-Id: Idf7300c44955413e2db26ecbabdef9f67f12f360
/frameworks/base/core/java/android/app/Notification.java
f54bfcf5a3594d7d8423391be68d9b982ea6c4fa 11-May-2012 Daniel Sandler <dsandler@android.com> Merge "Restyling action buttons." into jb-dev
e551884b0972280c9aee451b489832e67395c8e2 10-May-2012 Daniel Sandler <dsandler@android.com> Restyling action buttons.

Bug: 6418617
Change-Id: I843352fbd167aeb6cc7beb0172b7416aabd5856a
/frameworks/base/core/java/android/app/Notification.java
d33b803b6bfcbc509dd7cee3ee23f819dfff296e 10-May-2012 Daniel Sandler <dsandler@android.com> Clean up API docs for Notification.

Bug: 6427241
Bug: 6427245
Bug: 6427814
Change-Id: I91d741513e3b345d2b9f28ad0a1bf11b0a898076
/frameworks/base/core/java/android/app/Notification.java
e95658c98e4154a2daf0ed70d15d24f8bf3153f0 10-May-2012 Daniel Sandler <dsandler@android.com> New backgrounds for notifications.

Note that PRIORITY_MIN notifications have a special
background treatment.

Bug: 6418617
Change-Id: I5f96330fcc53ac39e80a025baa0c134bd1e971b8
/frameworks/base/core/java/android/app/Notification.java
195ba5047cec4d249d5408e75fb04696941655c0 08-May-2012 Chris Wren <cwren@android.com> Merge "Clear out any existing buttons before adding the set of requested actions." into jb-dev
2c22eb0a49b369767eaa4e04c1727f947cfdec13 08-May-2012 Chris Wren <cwren@android.com> Clear out any existing buttons before adding the set of requested actions.

Bug: 6459557
Change-Id: Id19050e7280208d4f98c1aabe8087c6fe6c8d72a
/frameworks/base/core/java/android/app/Notification.java
fafce1f9f5b371c76cd7875a58b183093f8b517f 07-May-2012 Daniel Sandler <dsandler@android.com> Merge "Add number back to legacy notifications." into jb-dev
3c5f92432734e1e3b9bdc515628a4c09d7759cd4 04-May-2012 Chris Wren <cwren@android.com> The BigTextStyle should never render mContentText

Change-Id: Ifcbb0868871741bd78c5ebf31408143aaf732b98
/frameworks/base/core/java/android/app/Notification.java
d6297dbfe9b1c9c91907e4ba35d4b1ae7fe610d8 03-May-2012 Chris Wren <cwren@android.com> Add an alternate title that can be used in the overflow of a InboxStyle.
Always hide contentText for BigTextStyle and InboxStyle.
Style cannot be used without specialization, it should be abstract.

Bug: 6428978
Bug: 6274137
Bug: 6317471
Change-Id: I21531a94494f891a058a477805b177e736b921cf
/frameworks/base/core/java/android/app/Notification.java
b4b2223fa188d4f680209c80ba6bbe681a300bd5 30-Apr-2012 Daniel Sandler <dsandler@android.com> Add number back to legacy notifications.

Bug: 5816717
Change-Id: I52c98143378c315dec5b525cb3d96c214ee8196e
/frameworks/base/core/java/android/app/Notification.java
e4a2a4f142ff72ac8cf3e99c31af42af4ce66fbf 02-May-2012 Chris Wren <cwren@android.com> rework big text to handle gmail use case

Change-Id: I3175e198bd6f39025f4257454b43c459ed1e38f5
/frameworks/base/core/java/android/app/Notification.java
fbd96ba9baa212d99060c8b93b5c79cf00918bda 01-May-2012 Chris Wren <cwren@android.com> Allow the Notification.Builder to carry around a Style to apply at build

Change-Id: I5e848504b6d0444ee349ecea893ceae571dda796
/frameworks/base/core/java/android/app/Notification.java
098d580cc2bb6c0891c756a4e5230c6c6b0d2376 27-Apr-2012 Jeff Sharkey <jsharkey@android.com> Migrate ringtone playback to SystemUI.

Introduce IRingtonePlayer, which handles playback for both Ringtone
objects and Notifications. SystemUI now hosts this player, which it
registers with AudioService. It also keeps MediaPlayer instances
warm, and cleans them up after stop() or Binder death.

Move both Ringtone and NotificationManagerService to play back audio
through this new interface.

Bug: 6376128, 6350773
Change-Id: I1dcb86d16ee3c4f07cdb2248d33dcff4ead3609a
/frameworks/base/core/java/android/app/Notification.java
b023bf85a080442117b5dae8d402bce60cd0a610 23-Apr-2012 Chris Wren <cwren@android.com> let default notifications with actions get bigger that 64dp.
Bug: 6377749

Change-Id: I8c92ef67b59f7a44b61926c32480cce6990a1375
/frameworks/base/core/java/android/app/Notification.java
6b31880838196806dff991551f197684b5809d8b 13-Apr-2012 Daniel Sandler <dsandler@android.com> Remove intruder alert APIs from JB.

Change-Id: I27042d604fbe15879e7b7aaaac860db2d1efa47f
/frameworks/base/core/java/android/app/Notification.java
6a858c347f4d4e5db4c8f00d5e285967631b71ca 12-Mar-2012 Daniel Sandler <dsandler@android.com> Gestures for expanding notifications.

Change-Id: I104c157ffcc2d60b3f0a95c59d4322b07103b69f
/frameworks/base/core/java/android/app/Notification.java
879c5e07c019bbcd8647e60656d0749eae0467c3 17-Apr-2012 Daniel Sandler <dsandler@android.com> New InboxStyle template for expanded notifications.

Bug: 6336834
Change-Id: I67b273350b984673cbfb19267451a3782d0477fc
/frameworks/base/core/java/android/app/Notification.java
4dfbe83e1a110b416badf73ddf68c83db0d415ae 11-Apr-2012 Daniel Sandler <dsandler@android.com> Unhide some new Notification APIs.

Bug: 6318391
Change-Id: Ie51f373cc84d845fa4aababab702c115fcc9e2e5
/frameworks/base/core/java/android/app/Notification.java
cde8aae955f2c1074a840074a9f586f95c3f61f7 05-Apr-2012 Daniel Sandler <dsandler@android.com> Fix crash in legacy notification construction path.

Bug: 6293584
Change-Id: I8c1c5162a2e9e3ebc5a6d3fed045c6c6a64b9bfd
/frameworks/base/core/java/android/app/Notification.java
a2985ed3099c9206a4fd9fd8eaf0e4025b82aca9 03-Apr-2012 Daniel Sandler <dsandler@android.com> Chronometer support in Notifications.

@hidden for now while we experiment with it in Phone.

Change-Id: Ib6ca3a8262f676d49d81e081a30c6d994c732a6b
/frameworks/base/core/java/android/app/Notification.java
96fd7c1c1acc03b40b1813ef65793560c175ef80 30-Mar-2012 Daniel Sandler <dsandler@android.com> Show action buttons in expanded notifications.

Any notification with at least one action will now have an
expanded form by default. BigPicture/BigText can have
actions, too, of course.

Change-Id: I6f54cac65d9a9f335d8038c2105cd2c674f991ff
/frameworks/base/core/java/android/app/Notification.java
f3b7343246bf20a8024853abe9c8eeef767d26da 27-Mar-2012 Daniel Sandler <dsandler@android.com> The beginning of expanded notifications.

There are now two "rebuilder" classes, each of which
consumes a Notification.Builder and modifies its behavior.
(Inheritance in Builder classes is...not advisable.)

- BigPictureStyle: includes a large Bitmap above the usual
notification strip.

- BigTextStyle: shows the contentText in a large, wrapping
TextView instead of truncating to one line.

As for SystemUI, the notification panel now shows the
expanded form if it is available, otherwise the usual
contentView is shown.

(Note that the structure of largeIcon notifications has
changed a bit: The largeIcon is no longer handled by the
status bar at all; it's entirely inside the template now.
Not only does this make the code simpler, and make large
notifications possible, but it fixes the longstanding
irritation that tapping on a largeIcon doesn't highlight the
whole notification row. Man, that feels good.)

Change-Id: I2b9d8a6ea4385659d8cb1ed467c1caf5e12628dd
/frameworks/base/core/java/android/app/Notification.java
b2a1c23a553254b71f25f0ed0773d4d3126656f8 24-Mar-2012 Daniel Sandler <dsandler@android.com> Add text labels to intruder actions.

Change-Id: I544bed7b37c043639ee0e6a11bf757c0a191c1fc
/frameworks/base/core/java/android/app/Notification.java
a0a938cd5f6eaed449678a00420916cde711de63 15-Mar-2012 Daniel Sandler <dsandler@android.com> Notification actions API.

Actions will be attached to the Notification object and also
used to inject additional tap targets in the default
template used by Builder.

Change-Id: Idd58686b9c44b2ca7bb9ec5aa8337f3bdce5b878
/frameworks/base/core/java/android/app/Notification.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/core/java/android/app/Notification.java
6ceca588a268ed8fef4b32df278ca7567e608510 11-Jan-2012 Dianne Hackborn <hackbod@google.com> Update notification documentation to follow current guidelines.

The documentation is now consistent with the current UI guidelines
for handling notifications, and includes complete sample code showing
the correct way to do this.

Change-Id: I68f0afc62c2af164c3205535e62093679e2a256a
/frameworks/base/core/java/android/app/Notification.java
558459fe85f56f29a6ed6a4d0adb4a0bd6665884 14-Oct-2011 Joe Fernandez <joefernandez@google.com> docs: add developer guide cross-references, Project ACRE, Round 2

Change-Id: I39a534ae3a2a34b4dabc333a09961012ef911d3e
/frameworks/base/core/java/android/app/Notification.java
1c40013bb2afbd76050ac681d7880476aa7fc70d 05-Aug-2011 Jeff Sharkey <jsharkey@android.com> Add progress to Notification.Builder.

Provide method to surface progress when building a notification. Also
manages visibility of various items, including hiding the entire line
when unneeded.

Bug: 4022082, 3399877
Change-Id: I90d8fca383c746001aadc6c5f21c68a23bb937e5
/frameworks/base/core/java/android/app/Notification.java
ebce0115e239919680fc5574ae4ca79e617fcce8 16-Jun-2011 Daniel Sandler <dsandler@google.com> ICS updates to notification layouts.

Of note:

1. There is no "X" (veto) button anymore. (Well, there is,
but it's offscreen so it should still be available to
assistive devices.) Users can use "Clear all" or the new
swipe-to-veto gesture to clear notifications.

2. As a consequence of #1, your layout goes all the way to
the right edge of the notifications panel again. Enjoy
the extra space!

3. The numeric bubble in the notification icon is now capped
at "999+" like it is in the expanded notification view.
(Note that this involves a couple of new public framework
resources: one to indicate the number beyond which the
substitution string will be used, and one specifying a
localizable substitution string.)

Bug: 4651514
Bug: 4686329
Bug: 4501990
Change-Id: I0e6bdb6aec4fe5bfc927eb1aba955d444a9414ec
/frameworks/base/core/java/android/app/Notification.java
b8796212e3544262193960ade01db6cb2023c8f9 15-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of ceae9983 to honeycomb-plus-aosp

Change-Id: Ic677e58dcc182908ae1fde33047b3fda013a37c3
5e98dbc7700ef39acca58aa4f4e63e5fc24828b3 23-Feb-2011 Daniel Sandler <dsandler@google.com> Merge "Documentation: Notification.icon is mandatory."
a8b9183a7cb4dca8d8e6507abc765c581bf67dcb 22-Feb-2011 Jozef BABJAK <jozef.babjak@gmail.com> Fixing self-assignment in cloning code.

Change-Id: I6c918c0c7345678cbb171905eccfca50e59ae41a
/frameworks/base/core/java/android/app/Notification.java
7aee61f5a96e94e158bf5ad3d8e192c4d4f7eff6 08-Feb-2011 Scott Main <smain@google.com> docs: fix links to revised fundamentals documents

Change-Id: Ie2a660cce1d00f924c9fde5c6a00776307e5e1c7
/frameworks/base/core/java/android/app/Notification.java
d952daec06018fe7064b8cafd31dfc71f9eee383 07-Feb-2011 Daniel Sandler <dsandler@google.com> Documentation: Notification.icon is mandatory.

Bug: 3325472
Change-Id: Ie685577fbb2f07c3a63dcf86f27172ff231de3b3
/frameworks/base/core/java/android/app/Notification.java
c6925ca684aaed981cc98cae50cf796231a56c0e 29-Jan-2011 Joe Onorato <joeo@google.com> 999

Bug: 3403177
Change-Id: Ib53098f364bb15249f27f89127e0d2a4daf81d6a
/frameworks/base/core/java/android/app/Notification.java
cb109a0eeaca12cdd954c567da4fc5f45a23213b 19-Jan-2011 Joe Onorato <joeo@google.com> Add docs for Notification.Builder.

Bug: 3362451
Change-Id: I8f16a7f266812190dc8d06751f5ca914e2050111
/frameworks/base/core/java/android/app/Notification.java
c9596d6d8e9154b5f87c8e887bfabf7546b68af5 13-Jan-2011 Joe Onorato <joeo@google.com> Possibly fix bad notification updates.

I think what was happening is that it was using a different layout but we were trying to reapply the
RemoveViews because of some bad boolean logic. This fixes that, and adds some better debugging that
might show us what else is happening.

Bug: 3298062
Change-Id: I0984f24cb2960166c79b9f2cc7c6a98bd75e17ba
/frameworks/base/core/java/android/app/Notification.java
281d83f61f4036503ded1a967b8b43bfbaa373d0 05-Jan-2011 Joe Onorato <joeo@google.com> Notification.Builder.setAutoCancel() was setting the wrong flag.

Bug: 3306725
Change-Id: I84908fd3ac2cf9a4ce164179620c33df907d018f
/frameworks/base/core/java/android/app/Notification.java
059a2f8664571098fac665747d8bb8f84c5e07ed 04-Jan-2011 Joe Onorato <joeo@google.com> When the number field on a notifications is >100, just say "100+" instead of listing the number.

Bug: 3271445
Change-Id: Id5704cc5cba770b918c974eeec8f9ffb3f294450
/frameworks/base/core/java/android/app/Notification.java
110988c8b70f4ab089b179b7966497d508506263 03-Dec-2010 Andy Stadler <stadler@google.com> Fix notification/builder defaults

* Builder wasn't setting mAudioStreamType to its non-zero default
* Clean up warnings (imports, unused variables, overrides)

Bug: 3250299
Change-Id: I019f54a0d6c97e71681d24144e784fa4b4737f7e
/frameworks/base/core/java/android/app/Notification.java
8d0b655c496e9125fc8d289c4e5bc9a78297ba3d 23-Nov-2010 Joe Onorato <joeo@google.com> Add a better notification test and clean up the flag handling in the notification builder.

Change-Id: I9354ed2c2cda690f53e5f43ad60943b63b02e7d4
/frameworks/base/core/java/android/app/Notification.java
52f80cd36f406725e85a1825741a45c69de3d898 22-Nov-2010 Joe Onorato <joeo@google.com> The icon sticks out of the ticker.

The ticker still needs to show up over the status bar, which will take a bit of
window manager work, so it's just out of position for now.

Change-Id: Ib5781925db63a22d9352a7b5017a36eec3229395
/frameworks/base/core/java/android/app/Notification.java
561d3858bb9409b999a19f7ba93f0b12e1db835f 21-Nov-2010 Joe Onorato <joeo@google.com> The large icon for notifications.

Change-Id: I8537c602b5b5fca03be8980295bfa28330543669
/frameworks/base/core/java/android/app/Notification.java
8595a3dd9a6feff70f8ddbad924d79b591d611e4 20-Nov-2010 Joe Onorato <joeo@google.com> Show the number in the expanded notification instead of in the bar.

Change-Id: I248b4fe1732ed290e9f3f9c094de4544a0e396ab
/frameworks/base/core/java/android/app/Notification.java
46439cec0eb0da4d0f853f2d8712d0c00c98475b 19-Nov-2010 Joe Onorato <joeo@google.com> Update the look of the notifications. Includes adding a new Notification.Builder class.

Change-Id: I7c57b81c45defe77d6f3d22472e9cf8432bbed03
/frameworks/base/core/java/android/app/Notification.java
ef1e7763c2dc5b9bac69cc747efe05c81d9fd9fc 18-Sep-2010 Joe Onorato <joeo@google.com> Tablet ticker.

Change-Id: Ia3db5cc29eac1703123de3e1c6dc7c22e7d024eb
/frameworks/base/core/java/android/app/Notification.java
f22c30cd818db80e5c27d27c14b9dbe9507cef38 10-Sep-2010 Dianne Hackborn <hackbod@google.com> am 033b381b: am 7f07f842: Merge "Fix doc of fullScreenIntent." into gingerbread

Merge commit '033b381b4c91aff4bf76481d0b37fb5f39b50ec2'

* commit '033b381b4c91aff4bf76481d0b37fb5f39b50ec2':
Fix doc of fullScreenIntent.
392fea53ece4c874997df33cfe564925a3736f35 10-Sep-2010 Dianne Hackborn <hackbod@google.com> Fix doc of fullScreenIntent.

Change-Id: Ieb21bb92b4ebf95f831231f2871839fec8a97a86
/frameworks/base/core/java/android/app/Notification.java
6171401a0a5b25ec5d66d7693a5285d54cca89ae 04-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 6a3ffb5b to master

Change-Id: I3c77887f56c4fdc1cd80682eccc2f5e0020e2761
170bae7d832e0fd68e1ee9d96893b97e1dd98c52 04-Sep-2010 Dianne Hackborn <hackbod@google.com> Improve doc.

Change-Id: I841b04e1e455b6236fb8b65b965f2fc25c4461f0
/frameworks/base/core/java/android/app/Notification.java
d02bdaab495641ab50e2123fdfd99a819cc40540 26-Aug-2010 Daniel Sandler <dsandler@android.com> Remove experimental immersive mode support. DO NOT MERGE

Bug: 2949215

Change-Id: I7d998ef571ef7e149bb96261430e92150b80b77d
/frameworks/base/core/java/android/app/Notification.java
e46cbd379a3c19708c7f7e5d3f35e2c596de0c46 17-Jun-2010 Daniel Sandler <dsandler@android.com> New API for high-priority Notifications and full-screen alerts.

* fullScreenIntent: a PendingIntent pointing to a
full-screen activity or other modal alert experience to be
shown to the user instead of (or in addition to) a
traditional status bar notification icon. Example: An
incoming call should pop up a full-screen activity
allowing the user to accept or decline the call.

The old way to accomplish this is to simply fire off the
full-screen intent directly from the Phone app. By routing
through the Notification system, we make way for the
FLAG_IMMERSIVE bit (forthcoming API) which would allow the
frontmost opaque window to suppress full-screen alerts.

* FLAG_HIGH_PRIORITY: This bit allows a notification to be
shown in windows that have the FLAG_IMMERSIVE bit set. For
example, a Notification corresponding to an incoming call
would be marked HIGH_PRIORITY so that even in an immersive
activity (i.e. a networked game) the Notification could be
shown to the user.

Change-Id: I4943e53f425800a6e152bc4992dd41586b43aff8
/frameworks/base/core/java/android/app/Notification.java
18e69dfc7235f8a4bfe257f9d1c43539049a22ce 18-May-2010 Joe Onorato <joeo@android.com> Checkpoint. Data structures for Notifications in place.

Change-Id: I146fb9bc1d349112541368e2c99a667821dfdf6e
/frameworks/base/core/java/android/app/Notification.java
c83bb730ec0333e52990a40edf6d54bb66b1d5ba 20-Jan-2010 Joe Onorato <joeo@android.com> Add DateTimeView, a widget that shows a time or the date depending on the
current time. Use that for notifications instead of a TextView that
doesn't ever update.

BUG 1563917
/frameworks/base/core/java/android/app/Notification.java
d8a43f61680bacf0d4b52a03ff3c7a07307377fc 18-Aug-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2047139: Remove Service.setForeground()

This API is becoming seriously abused, so now it is deprecated and has
become a no-op.

As an alternative, there is now a new API that allows you to make a service
be in the foreground but requires providing a persistent notification to
go along with this state, allowing the user to know about and control it.
/frameworks/base/core/java/android/app/Notification.java
8cf97d9982aae6197e48aabf2a3ada79fb39a041 10-Jun-2009 Simon Schoar <schoar@googlemail.com> Removed usage of tabs for indention
/frameworks/base/core/java/android/app/Notification.java
d45c9f4ceb5228912fe51c31fa7554a8e9bbfd6f 10-Jun-2009 Simon Schoar <schoar@googlemail.com> Prevent IndexOutOfBoundsException on toString() if vibrate array is empty (non null)
example: notification.vibrate = new long[0];
/frameworks/base/core/java/android/app/Notification.java
b8b3645a9799c38ad68549316ebbf7a4849f2e0c 27-Apr-2009 Scott Main <> AI 147803: add docs and images for docs on Toast and Notification docs
also edit the Notification class doc
BUG=1800118

Automated import of CL 147803
/frameworks/base/core/java/android/app/Notification.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/app/Notification.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/app/Notification.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/app/Notification.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/app/Notification.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/app/Notification.java