• Home
  • History
  • Annotate
  • only in /frameworks/support/compat/tests/java/android/support/v4/app/
History log of /frameworks/support/compat/tests/java/android/support/v4/app/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
45f7d91ddfdd025eb6fbf9453bf78403cb123280 22-Apr-2017 Dianne Hackborn <hackbod@google.com> New JobIntentService.

This is a new, modern replacement for IntentService. They key feature
is it uses JobScheduler when running on O+ platforms. You only need
to implement one service class, which will run as a job on O+ or a plain
service on pre O. This also removes the use of WakefulBroadcastReceiver,
as it builds wake lock handling into itself (since starting with O, when
using JobScheduler, the app no longer needs to take care of this).

Test: added test, runs on O and N.
Change-Id: I08062bc568d563c70eb49154bff80788865354b2
obIntentServiceTest.java
034b44190d41bf381f529e8e398c8bea8ac373ff 04-May-2017 Aurimas Liutikas <aurimas@google.com> Revert "New JobIntentService."

This reverts ag/2145277. That change added a flaky test and is causing presubmit test runs to randomly fail.

Bug: 37982100
Change-Id: I820f866c2f91b9561206c4db12d991838d9753e1
obIntentServiceTest.java
385164d4cb288eb6adb804f7013fbcc8188e4251 22-Apr-2017 Dianne Hackborn <hackbod@google.com> New JobIntentService.

This is a new, modern replacement for IntentService. They key feature
is it uses JobScheduler when running on O+ platforms. You only need
to implement one service class, which will run as a job on O+ or a plain
service on pre O. This also removes the use of WakefulBroadcastReceiver,
as it builds wake lock handling into itself (since starting with O, when
using JobScheduler, the app no longer needs to take care of this).

Test: added test, runs on O and N.

Change-Id: Ia8130f1d1e09bb1659b127132ad092be80625ab0
obIntentServiceTest.java
8c2ee58bb9538e43225d7553fd6479a68619a149 27-Apr-2017 Julia Reynolds <juliacr@google.com> Add groupAlertBehavior to notificationcompat

Pre O this will remove all sounds and vibrations from
relevant grouped notifications. In O+ it'll just set
the field on notification.

Test: NotificationCompatTest
Change-Id: Ida0a26d21f42876f399c3049324cd909d6180c5c
Fixes: 37478457
otificationCompatTest.java
2c2e759e5540e65a5fc1cacaf007ce9e33791562 18-Apr-2017 Selim Cinek <cinek@google.com> Added compatibility support for setColorized

Test: included
Change-Id: I3d01937a04f6e75b7c9d85cc033a64dfdb0db357
Fixes: 35218214
otificationCompatTest.java
6ff416f63548465e1c8eb73a1b469b8cf20a46ce 14-Mar-2017 Julia Reynolds <juliacr@google.com> Support for recent notification apis

- setTimeout
- setBadgeIconType
- setShortcutId

Change-Id: If19b5c282ffeaf22ee8043f6cf72071081ca4783
Fixes: 36119470
Test: included
otificationCompatTest.java
e03c42362cf0b9c838d5538f4a44dfe66b303b35 26-Jan-2017 Geoffrey Pitsch <gpitsch@google.com> Use newer Builder for Notification in Compat.

Deprecate the old version, apps that want to target O should
always specify the channel ID.

Test: ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.app.NotificationCompatTest
Change-Id: Ia3f660a05e19632152492f0b508b32b402c64a4b
otificationCompatTest.java
b0fd88eae86165e4be805b5321c973f9cefa836d 11-Mar-2017 Shane Brennan <shanerb@google.com> Adding an extras Bundle to MessagingStyle messages.

This allows extending each message with standard extenders.

Also removed an unused import from NotificationCompat that
the presubmit caught.

See ag/1979340 for the same change in the framework.

Test: Added in this CL

Change-Id: I13afe72161f8949e28e9d49819b5600c318d0386
otificationCompatTest.java
c69882cb9b130902c1554ef5d3e3b06d776cd796 05-Mar-2017 Alan Viverette <alanv@google.com> Re-enable lint enforcement, fix remaining lint issues

Bug: 29630077
Test: ./gradlew lint
Change-Id: Ied1e4b1c33ba158d6bfab5439497ee4fc8284a8f
otificationCompatTest.java
emoteInputTest.java
1cc424abf14fe0e86d72b014cd7ad969b75bbde7 09-Feb-2017 Shane Brennan <shanerb@google.com> Marking these two test cases as only relevant for SDK 17+

Test: This change is to a test.

Change-Id: I44bafb7ce7e0f5117b6c58876ea38321b6dc0b74
emoteInputTest.java
d1b097e27ab18fb5aca3347dc500c358ec9ebf85 03-Feb-2017 Aurimas Liutikas <aurimas@google.com> resolve merge conflicts of 53f915bc21 to master

Change-Id: Ica87403a563c9f1ca237b5303dc0dd7b9112d601
7b2ceffe5a03273e3ebc5eb88b6f739579990b53 30-Jan-2017 Alex Hills <ahills@google.com> Prevents WearableExtender test from running on low API levels

WearableExtender doesn't support API 15 - this prevents failing tests
from running on <17 devices

This also adds a test which verifies WearableExtender is a no-op on
API <17

Bug:34808243
Change-Id: Icc4d65e38b687cee1b0249604f4f722173170f57
Fixes:34808243
Test: Ran manually on api 17 & api 15 emulators
otificationCompatTest.java
a2326755a16d744175acc58d1497fe2849977001 01-Feb-2017 Shane Brennan <shanerb@google.com> Two test cases require SDK 17+, marking them as such.

Test: This change is to a test.

Change-Id: I85504a0386cbb959bdc3168cce51cf0403d56986
emoteInputTest.java
59d562bdab983469340a054bd3bc888034fa6bc8 13-Dec-2016 Shane Brennan <shanerb@google.com> Add support for audio-focused notifications.

This is the compat "twin" to c/1702766 which added the
same features to Android O's Notification and RemoteInput classes.

Add extras keys and methos to Notification and RemoteInput for notifications
whose contents have an audio representation and whose RemoteInputs
can accept data as well (useful for, e.g., voice messaging
applications).

The motivator for this change is it enables an end-to-end flow for
audio messaging including
* System receives the audio message
* Replying to the message with the user's voice
* App receives the audio reply data

Note that this CL just adds the capabilities, but does not
add any UI or implementation to perform the above flow.

Note that this CL includes a workaround to a bug in
RemoteInput#addResultsToIntent for versions prior to SDK 26.
You can see that workaround in
RemoteInputCompatApi20#addResultsToIntent.

Test: Added in this CL

Change-Id: I5be31a8cfbbe44ba19657ccd57821d5855c9c8af
otificationCompatTest.java
emoteInputTest.java
654a88d32cc6b1da222e07ea0f0c5e431fbfab20 24-Jan-2017 Alex Hills <ahills@google.com> resolve merge conflicts of 3608e08ad8 to master

Bug:34360598
Test: Wrote tests (that fail before this CL and now pass), and ran
./gradlew support-compat:connectedCheck --info --daemon
-Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.app.NotificationCompatTest
Change-Id: I1507a050b25843d3028a28857505f732c3466f9a
b1c1839c8f720bbd47749d77a3a72cab8a3ac36d 19-Jan-2017 Alex Hills <ahills@google.com> Fixes compat parceling/unparceling of WearableExtender Actions

Makes the compat lib save the allowGeneratedReplies flag correctly on
actions so that the value will be correctly saved and retrieved
post-build.

Bug:34360598
Change-Id: Iec9588613b8e0439181ecff34eddb803064ef4fa
Fixes:34360598
Test: Wrote tests (that fail before this CL and now pass), and ran
./gradlew support-compat:connectedCheck --info --daemon
-Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.app.NotificationCompatTest
otificationCompatTest.java
159a5dfb07b6836ffdbf4099b8ca55b890b5109f 06-Jan-2017 Julia Reynolds <juliacr@google.com> Add notification channel support.

Test: included
Change-Id: Iff229bc5c55f69b9f13929da89eb33c40236b57d
otificationCompatTest.java
edfcb4025350f144e3d54a4aea72e9388294e255 22-Nov-2016 Alex Hills <ahills@google.com> Changes default value of NotificationCompat.Action.mAllowGeneratedReplies

Changes the default from false to true and adds tests for same

Bug:31935223
Fixes:31935223
Test: Wrote and ran new tests for behavior
Change-Id: Iee3c512b943dc8650bc7b6a214d6db49d82dd229
otificationCompatTest.java
730ed99bb69c8a846216a1fbb525cae9b475b93e 20-Sep-2016 Ian Lake <ilake@google.com> Deprecate support-fragment's dependency on media-compat

Deprecate FragmentActivity's dependence on MediaControllerCompat and
therefore support-fragment's dependency on support-media-compat. This
will allow us to remove the compile time dependency in a future release.

New static methods in MediaControllerCompat are used to set the
Activity's MediaController. The addition of SupportActivity and its
ExtraData class allow MediaControllerCompat to store the
MediaControllerCompat object scoped to the Activity to
1) Support pre-API 21 devices
2) Prevent constant translation between framework and compat instances

Test: mmma frameworks/support, ./gradlew assemble, run SupportActivityTest

BUG: 30944164
Change-Id: I6db82487d7b6352bbcf2ab0202a7e1ffbd9af650
(cherry picked from commit 583beae8a1d75c7c821b65c8adc8812928424eec)
upportActivityTest.java
estSupportActivity.java
a986dc1df96a380e34d2a91e7986e92165f59eb9 13-Oct-2016 Adrian Roos <roosa@google.com> Fix NotificationCompat.Action.Builder copy constructor

The copy constructor of Notification.Action.Builder did not copy
the mAllowGeneratedReplies and mRemoteInputs fields.

Change-Id: I40fbe8950ee2232e2589ab3930a32bfbebe9fc89
Fixes: 31766718
Test: ./gradlew :support-compat:connectedCheck -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.app.NotificationCompatTest
otificationCompatTest.java