c72c44d90dc13cba7159a4601744a3a8cee09567 |
|
21-Dec-2017 |
Kodlee Yin <kodlee@google.com> |
Create Notification.Action.SemanticAction intdef. Currently, Notification.Action has no indication of what it will do when the associated PendingIntent is triggered. SemanticAction will allow app developers to specify what the Action will do. This is useful, for example, in the case where a user wants to answer an incoming message in a hands-free manor. As, potentially, the Notification may contain multiple actions like Reply, Mark as Read, etc, this hands-free application would need to differentiate the reply Action from the Mark as Read action. SemanticAction would provide a means to do so. Test: runtest -x core/tests/coretests/src/android/app/NotificationTest.java Bug: 67717177 Bug: 70859253 Change-Id: I8179afdd5da77be0037a8c03e125d8178cecc568
/frameworks/base/core/tests/coretests/src/android/app/NotificationTest.java
|
14656423a630679dd7cf7334e50d0f52035d9faf |
|
23-Dec-2017 |
Kodlee Yin <kodlee@google.com> |
Fix compatibility in MessagingStyle. The changes introduced to add MessagingStyle#isGroupConversation had an implementation bug wherein an application that targets SDK < P can set a non-null MessagingStyle#setConversationTitle which, in that SDK version, would also denote it being a group conversation. A listener targetting SDK >= P would be able able to capture this notification, but incorrectly be given false when calling MessagingStyle#isGroupConversation. This CL adds back legacy functionality to #isGroupConversation by checking the application's SDK version when they call #setConversationTitle and interally set #isGroupConversation to true. Test: runtest -x core/tests/coretests/src/android/app/NotificationTest.java Bug: 67717177 Change-Id: I2233e3d0b6d4fcf9823e50cd7aa31b76bbaddaed
/frameworks/base/core/tests/coretests/src/android/app/NotificationTest.java
|
9ac617c5a2c53bb04c0425bef7c9ed0f56abf5f3 |
|
19-Dec-2017 |
Kodlee Yin <kodlee@google.com> |
Add MessagingStyle#isGroupConversation(). This will allow apps to mark a Notification's MessagingStyle as a group conversation. This is useful because the current implementation overloads MessagingStyle#conversationTitle; which, when not null, implies a group conversation. Instead of relying on this implicit contract, we include this change's explicit field. Test: runtest -x core/tests/coretests/src/android/app/NotificationTest.java Bug: 67717177 Bug: 70725009 Change-Id: I5405b6b0ca9723a06113482c04b8c2f8e1a4318c
/frameworks/base/core/tests/coretests/src/android/app/NotificationTest.java
|
ad7e72acc28d406d04947df9aacf5f3e11f3769b |
|
04-Dec-2017 |
Robin Lee <rgl@google.com> |
Remove duplicate bitmaps from Notification parcels Created when the notification is marshalled and then unmarshalled across process boundaries, since there are multiple references to the same image from different places and they all get sent as separate objects. Fix: 70152868 Test: make FrameworksCoreTests -j30 && adb install -r ${ANDROID_PRODUCT_OUT}/data/app/FrameworksCoreTests/FrameworksCoreTests.apk && adb shell am instrument -e class android.app.NotificationTest -w com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner Change-Id: I0a8c95207ab42260d88e5c206a04ab8386376ac4
/frameworks/base/core/tests/coretests/src/android/app/NotificationTest.java
|
fb92184ebc7da516b8cb59932e1be6421879fa0a |
|
26-Oct-2017 |
Adrian Roos <roosa@google.com> |
Notification: Fix PendingIntent whitelisting Fixes several issues with the way PendingIntents are being whitelisted from background check with Notifications. Most visibly, this causes the whitelisting not to work on Notifications that use the DecoratedContentViewStyle, but there are some conditions where the whitelisting breaks for regular notifications too. - After a Notification is rebuilt with Notification.Builder, the set of PendingIntents in the notification was not rebuilt. This broke the whitelisting whenever a PendingIntent is added after the Notification was already sent once. Workaround for broken platform releases: always use a fresh Notification object, or clone before sending. - Fixes PendingIntent.writePendingIntentOrNullToParcel to invoke the OnMarshalListener. This broke whitelisting for any PendingIntents attached to custom RemoteViews. Workaround for broken platform releases: Also attach the PendingIntent to the Notification's extras. - Changes RemoteViews to keep the parcel cookies that were present during unparceling, such that they can be reapplied when it gets cloned. This broke whitelisting for any PendingIntents attached to a DecoratedContentViewStyle *even if added to extras*. Workaround for broken platform releases: none. - Fixes Notification.whitelistToken mistakenly being static. There's an unlikely race condition where the field could be overriden with null by an incoming notification right as another notification is sent out. Workaround for broken platform releases: none. Test: runtest -x core/tests/coretests/src/android/app/NotificationTest.java && runtest -x core/tests/coretests/src/android/widget/RemoteViewsTest.java Bug: 68218899 Change-Id: I02e44040604a1d24422340611ae9e0332a611800
/frameworks/base/core/tests/coretests/src/android/app/NotificationTest.java
|
6ad0aecf99d4dc823935987dc2daff07ef465ac1 |
|
05-Jul-2017 |
Julia Reynolds <juliacr@google.com> |
Limit the number of notis an app can enqueue In addition to the number they can post. Also decrease the number of posts per second to 5, but allow finished progress notifications through. Fixes: 63173849 Fixes: 63167456 Test: runtests systemui-notification & simultaneously downloading 5 files. Change-Id: I0c8ea35b3d9d38b000ea5fe383515e1d5a26bac7
/frameworks/base/core/tests/coretests/src/android/app/NotificationTest.java
|
d71c5a94264ba764a139de41c753b9d6e6521d27 |
|
30-Jun-2017 |
Julia Reynolds <juliacr@google.com> |
Allow setup apps to colorize notifications. Fixes: 63147379 Test: runtest systemui-notification, core tests Change-Id: I2077a9fd563826d978d0dc01be89dd0bbc09eebf
/frameworks/base/core/tests/coretests/src/android/app/NotificationTest.java
|
389edcd7c56b886abe2df23eba38cb8aa40082f0 |
|
12-May-2017 |
Selim Cinek <cinek@google.com> |
Fixed an issue where the media notification wouldn't have contrast Because we were relying on the output to go in the right direction already, this could be wrong. We're now only following the given lightness direction if it is even possible to satisfy contrast. Test: runtest -x core/tests/coretests/src/android/app/NotificationTest.java Change-Id: I06d934a6b5c328ebbf0cf707030b0d707ccb5ab4 Fixes: 38182819
/frameworks/base/core/tests/coretests/src/android/app/NotificationTest.java
|