History log of /frameworks/base/core/tests/coretests/src/android/widget/RemoteViewsTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/widget/RemoteViewsTest.java
5b7689f287d3e5afc477ab58cdf9a62242789bd2 21-Sep-2017 Sunny Goyal <sunnygoyal@google.com> Preventing data overwirte in a Parcel

Test: am instrument -w -e class android.widget.RemoteViewsTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Bug: 65576228
Change-Id: Ia1f072c1451eba3c6c13833c5a813e754df901e2
/frameworks/base/core/tests/coretests/src/android/widget/RemoteViewsTest.java
56333a872af40ecde7f71192c77393afc0afb1f3 29-Aug-2017 Sunny Goyal <sunnygoyal@google.com> Adding a copy constructor for RemoteViews

Copying a remoteView will not longer mutate the original views

Simplifying bitmap cache and memory measurement for remoteViews. A
remoteView tree will have a common bitmapCache, and hence ite memory
estimate would be same as the total bytes allocated to all the bitmaps.

Bug: 62629395
Test: am instrument -w -e class android.widget.RemoteViewsTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I7ea6ce476f19f425431ed01ef22cc97764626230
/frameworks/base/core/tests/coretests/src/android/widget/RemoteViewsTest.java
692f8c9324cc491d0778666830e6584a2d5ee7ac 11-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Enforcing a maximum depth on nested RemoteViews calls

An unchecked read from parcel can lead to StackOverflowError

Test: am instrument -w -e class android.widget.RemoteViewsTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Bug: 26755067
Change-Id: I36ea253846d5c823899097821270dcfca2472b65
/frameworks/base/core/tests/coretests/src/android/widget/RemoteViewsTest.java
7b0e2c7659c5abd9e452cc71a6dbe0fee1d8b12f 03-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Fixing async inflation for nested RemoteViews

> Fixing isRootNamespace check
> Updating ViewTree when ViewStub is inflated
> Applying ViewGroupAction on previously found views instead of finding it again
as the viewTree might have changed.

Test: am instrument -w -e class android.widget.RemoteViewsTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Bug: 32639592

Change-Id: I0815fb3a981efbc04fb0d080b81949985c2d9bc3
/frameworks/base/core/tests/coretests/src/android/widget/RemoteViewsTest.java
5d8bcdf6a575aa9e6eadb17e90ea21f5e4fc9c6b 28-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Avoding writing ApplicationInfo multiple times for nested RemoteViews

Bug: 32240818
Test: All tests passing
Change-Id: I00eec4d692763c53709e14b25a338e6320166c4a
/frameworks/base/core/tests/coretests/src/android/widget/RemoteViewsTest.java
8376f9eaa0bd41a9c7ce7ada4cb7c2cda28ef64c 08-Jul-2016 Kirill Grouchnikov <kirillg@google.com> Move RemoteViewsTest to the right package

RemoteViews is in android.widget and not android.view

Bug: 29805243
Change-Id: I6210f60f60a21443d8a873c3a8e6f39d956ea123
/frameworks/base/core/tests/coretests/src/android/widget/RemoteViewsTest.java