Commit Graph

11201 Commits

Author SHA1 Message Date
Selim Cinek
dc29c0115a Merge "Fixing the colorization of legacy media notifications" into oc-dev am: 0b84204185
am: d95484c6d6

Change-Id: Idf26743203fb21f545a457d887706165e3efec41
2017-05-12 19:03:09 +00:00
Selim Cinek
d95484c6d6 Merge "Fixing the colorization of legacy media notifications" into oc-dev
am: 0b84204185

Change-Id: I3015d7234d1d92712ec91de82d66e3ce23288795
2017-05-12 18:52:42 +00:00
Selim Cinek
0b84204185 Merge "Fixing the colorization of legacy media notifications" into oc-dev 2017-05-12 18:35:23 +00:00
Julia Reynolds
60d3808761 Merge "Show misc channel with pre-upgrade fields" into oc-dev am: 34bc4af810
am: 9bc7405c30

Change-Id: I4e06cc0af1b18a3457ffa40ae42d9e506ab8822e
2017-05-12 12:28:24 +00:00
Julia Reynolds
9bc7405c30 Merge "Show misc channel with pre-upgrade fields" into oc-dev
am: 34bc4af810

Change-Id: I126f04e8551e68b74b076bea10f30964b8d2be00
2017-05-12 12:20:21 +00:00
Julia Reynolds
34bc4af810 Merge "Show misc channel with pre-upgrade fields" into oc-dev 2017-05-12 12:14:11 +00:00
Kenny Guy
75377cd237 Merge "Cleanup API that is already @removed" into oc-dev am: 33b4964874
am: ddf5448ef9

Change-Id: I2e937e78c4506698c26bb9fdadf0d5ce3198b8ab
2017-05-12 07:48:24 +00:00
Kenny Guy
ddf5448ef9 Merge "Cleanup API that is already @removed" into oc-dev
am: 33b4964874

Change-Id: I933de065f75417e16541c86089e981b3a9fbd362
2017-05-12 03:51:39 +00:00
Julia Reynolds
e1a8dfff2e Merge "Lock relevant fields on channel update" into oc-dev am: 6307ac52e5
am: ffe68af92c

Change-Id: I80eae8f14233f7cdf051b088a6678f2934919066
2017-05-12 02:13:25 +00:00
TreeHugger Robot
33b4964874 Merge "Cleanup API that is already @removed" into oc-dev 2017-05-12 00:13:56 +00:00
Julia Reynolds
ffe68af92c Merge "Lock relevant fields on channel update" into oc-dev
am: 6307ac52e5

Change-Id: I7f47872b2d166353365517e7407cda43666ae70c
2017-05-12 00:08:17 +00:00
Selim Cinek
a7679b6f3f Fixing the colorization of legacy media notifications
Previously the colorization wouldn't work if the notification
was not targeting N and above, since for those the
remoteviews would be built into the notification and we couldn't
colorize it.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/MediaNotificationProcessorTest.java
Fixes: 38147364
Fixes: 37743600
Change-Id: Iabad02a4515c42676c0660293e58cf62d5d8ff88
2017-05-11 16:08:44 -07:00
Tony Mak
f4a8eb6623 Merge "Relax the sharedpreference check to look at StorageManager.isUserKeyUnlocked" into oc-dev am: e35e223a81
am: dc37e5251f

Change-Id: Iea2d49976f7608cf63809060d6857cd61d42ca2f
2017-05-11 21:37:12 +00:00
Bryce Lee
2ad3219be0 Merge "Allow for SDK 26 Activities to specify orientation when not fullscreen." into oc-dev am: e53243cb92
am: cc835a7929

Change-Id: I6e14669424e7c531a48e91e7c01fb6840123f48c
2017-05-11 21:13:52 +00:00
Tony Mak
dc37e5251f Merge "Relax the sharedpreference check to look at StorageManager.isUserKeyUnlocked" into oc-dev
am: e35e223a81

Change-Id: Ic55181bb635be2844b46cb546a24daa9c4ea4b68
2017-05-11 21:04:18 +00:00
Bryce Lee
cc835a7929 Merge "Allow for SDK 26 Activities to specify orientation when not fullscreen." into oc-dev
am: e53243cb92

Change-Id: I282eb577bb1b04e9121fa218765578e93e5a5ab6
2017-05-11 21:00:35 +00:00
Julia Reynolds
6307ac52e5 Merge "Lock relevant fields on channel update" into oc-dev 2017-05-11 20:55:28 +00:00
TreeHugger Robot
e35e223a81 Merge "Relax the sharedpreference check to look at StorageManager.isUserKeyUnlocked" into oc-dev 2017-05-11 20:25:52 +00:00
Bryce Lee
e53243cb92 Merge "Allow for SDK 26 Activities to specify orientation when not fullscreen." into oc-dev 2017-05-11 20:06:24 +00:00
Dianne Hackborn
a54a0df596 Merge "Fix issue #37360626: Apps can schedule alarms (and other things) with temp whitelist" into oc-dev am: c3b938ca5e
am: 8b4c4f09f6

Change-Id: Ia6dd41e08ea31ccc902c4d9ba714e6448898fac4
2017-05-11 19:34:30 +00:00
Dianne Hackborn
8b4c4f09f6 Merge "Fix issue #37360626: Apps can schedule alarms (and other things) with temp whitelist" into oc-dev
am: c3b938ca5e

Change-Id: I585bf57074064761c7d216f05be23d7f044208fa
2017-05-11 18:45:00 +00:00
Dianne Hackborn
c3b938ca5e Merge "Fix issue #37360626: Apps can schedule alarms (and other things) with temp whitelist" into oc-dev 2017-05-11 18:28:46 +00:00
Julia Reynolds
17717f5a6d Show misc channel with pre-upgrade fields
- for apps that don't target O but use channges

- Rename misc channel if it already exists
- Add method so settings can tell if it needs to show legacy config

Bug: 38120923
Test: runtest systemui-notification
Change-Id: I5c7c077321f1792851b003b9d9e42505dddd50f0
2017-05-11 13:43:03 -04:00
Julia Reynolds
e0b2574626 Lock relevant fields on channel update
This is safe for O as all updates come from a trusted
source.

Change-Id: Iab8ec1e68f8f9f9e345ebf4d5e44718191cc49e6
Fixes: 37986254
Test: runtest systemui-notification
2017-05-11 13:37:46 -04:00
Bryce Lee
d1ac18c7c9 Allow for SDK 26 Activities to specify orientation when not fullscreen.
Change-Id: I9137a7ba7593dcd6031e1fcbcd6dcc0a287d707b
Fixes: 38221413
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testNonfullscreenAppOrientationRequests
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testLegacyNonFullscreenActivityPermitted
2017-05-11 08:23:54 -07:00
Kenny Guy
653c32432d Cleanup API that is already @removed
EVICT_CE_KEY was @removed before API freeze
now removing it entirely.

Bug: 37663081
Test: compiles
Change-Id: I9ab318196cfe2da601be65b26a3b579f2f4bad82
2017-05-11 12:44:23 +01:00
Svet Ganov
84390348ea Merge "Properly position dataset picker UI" into oc-dev am: d915aecfaa
am: d0bfa95b4c

Change-Id: I8387cbce6e288c02a5e469dc80245528ae2381e1
2017-05-11 07:08:00 +00:00
Makoto Onuki
d7a168e11a Merge "Tweak for b/37809561." into oc-dev am: ca50e88b6b
am: 07db193ebc

Change-Id: I1f2580577da505bb11fdb0445c2d30e87f632a48
2017-05-11 05:26:45 +00:00
Adrian Roos
25664896dd Merge "AOD: Notification groups on Ambient Display" into oc-dev am: bafe438d71
am: ec9559ddc6

Change-Id: I176adacd40cce9d0b321501e8fe8d29f1168f0d5
2017-05-11 04:34:09 +00:00
Svet Ganov
c82357bd2c Merge "Revert "Fixed placemente of Autofill UI for virtual views."" into oc-dev am: e59c6ef346
am: c911e0e76f

Change-Id: I8a1f7f4eabebe3b00ee0dfe5ae502be32486b5af
2017-05-11 03:54:10 +00:00
Svet Ganov
d0bfa95b4c Merge "Properly position dataset picker UI" into oc-dev
am: d915aecfaa

Change-Id: Ic480311a515e5a096f6b62319d677a07dd22c391
2017-05-11 02:48:46 +00:00
Dianne Hackborn
983055231b Fix issue #37360626: Apps can schedule alarms (and other things) with temp whitelist
There is now an IBinder "token" that must be specified when setting
the whitelist duration for an Intent.  To have the whitelist supplied,
the caller to send a PendingIntent must pass in the same token.  The
PendingIntent and IntentSender classes now internally maintain this token
to pass in when their send() is called.

The big complexity for making this work is we now need to associate this
whitelist token correctly with the actual PendingIntent objects that
applications and other code is getting.  To do this, we propagate the
token in the Notification object, and have a new API on Parcel that allows
us to make it available to PendingIntent when it is unmarshalled.  And
this allows to deal with PendingIntents appearing in nested bundles, as
we can propagate that information from the original Parcel to the new
Parcel that Bundle keeps to delay unmarshalling.

Test: manual
Change-Id: Idda00490ccfe2be37e4ab21354b9ab7528a52750
2017-05-10 17:23:02 -07:00
Makoto Onuki
07db193ebc Merge "Tweak for b/37809561." into oc-dev
am: ca50e88b6b

Change-Id: I7ecbf3e077cdd9b06e9c1a13455c572c6f21c00e
2017-05-11 00:04:14 +00:00
Svet Ganov
374cae1e61 Properly position dataset picker UI
Test: all autofill CTS tests pass

bug:37958210
bug:37986800

Change-Id: Ic2cb3b8c6762a922bdb7c632e451772b7a006739
2017-05-10 23:38:51 +00:00
Adrian Roos
ec9559ddc6 Merge "AOD: Notification groups on Ambient Display" into oc-dev
am: bafe438d71

Change-Id: I159e4543f15c5d2f89bbfee10f77ed33aaaad7a7
2017-05-10 22:55:58 +00:00
Makoto Onuki
ca50e88b6b Merge "Tweak for b/37809561." into oc-dev 2017-05-10 22:20:34 +00:00
Svet Ganov
c911e0e76f Merge "Revert "Fixed placemente of Autofill UI for virtual views."" into oc-dev
am: e59c6ef346

Change-Id: I3c615043966131d206967bbb7d230af9b6652f47
2017-05-10 22:09:50 +00:00
Adrian Roos
bafe438d71 Merge "AOD: Notification groups on Ambient Display" into oc-dev 2017-05-10 18:17:44 +00:00
TreeHugger Robot
e59c6ef346 Merge "Revert "Fixed placemente of Autofill UI for virtual views."" into oc-dev 2017-05-10 17:21:33 +00:00
Tony Mak
57c334d671 Relax the sharedpreference check to look at StorageManager.isUserKeyUnlocked
Bug: 37778488

Test: In a FBE device, turning on and off work profile quickly.
Observe that no more this exception in the log.

Change-Id: I38d72ff5fbb275cf13936abd56f7f4f7b51eea0a
2017-05-10 17:10:12 +01:00
Bryce Lee
c8097441e2 Merge "Prevent non-fullscreen activities from influencing orientation" into oc-dev am: 8a698a1721
am: 537ece988a

Change-Id: Idb7c86cae2974d31a04aefec34a6ee7baeafb7ec
2017-05-10 16:04:32 +00:00
Svet Ganov
a6de318604 Revert "Fixed placemente of Autofill UI for virtual views."
This reverts commit 4745fb6b29.

Change-Id: I07c108dc53d13ff6fdd16f8f486b35d8ca9a7c58
2017-05-10 08:16:02 -07:00
Bryce Lee
537ece988a Merge "Prevent non-fullscreen activities from influencing orientation" into oc-dev
am: 8a698a1721

Change-Id: I7dd30182184fc5ce6ec5e9750eaa26f174b79b38
2017-05-10 15:04:05 +00:00
Bryce Lee
8a698a1721 Merge "Prevent non-fullscreen activities from influencing orientation" into oc-dev 2017-05-10 14:45:39 +00:00
Svetoslav Ganov
2b3385ab9d Merge "Allow null fill values to support authentication case" into oc-dev am: 90bcc1c8bc
am: 0e4f1bab09

Change-Id: I4f95cb012fd5d8b96c2beb097aa3b09c8c557b74
2017-05-10 06:43:26 +00:00
Svetoslav Ganov
0e4f1bab09 Merge "Allow null fill values to support authentication case" into oc-dev
am: 90bcc1c8bc

Change-Id: Ic065135e2812818ac90e814d5759f343eed6d862
2017-05-10 06:27:07 +00:00
Svetoslav Ganov
a9379d0b44 Allow null fill values to support authentication case
If a dataset needs to be authenticated the fill service
may not have the values but needs to tell the system for
which fields to show the fill UI. We now allow passing
a null value to mean the view is a part of the dataset
semantically but its value should remain unchanged.

If a dataset has no values, i.e. the related autofill ids
are mapped to null, we cannot properly filter. In this case
we always match such items regardless what the user typed.

While at this improved accessibility support for filtering
to announce when the number of items being filtered changes.

Also while at this allowed a dataset authentication to return
a response which replaces the current response and refreshes
the UI. Matching datasets with null values to any text plus
allowing a response to be returned from a dataset auth enables
the use case where there is always "Import" item at the
end of the list which when clicked can show arbitrarily more
data entries associated to other apps.

Another change is that we now provide the client state
bundle on both request and dataset auth.

Finally, this change gets rid of dataset waiting auth and
response waiting auth concepts since the reference to the
response and the dataset is piped with the auth request.

Fixed a bug where the width of the autofill UI was not
properly measured by going over all items in the adapter.
Now we measure enough height to fit the first three and the
width id the width of the widest item in the adapter.

Test: Added LoginActivityTest#testDatasetAuthTwoFieldsReplaceResponse
      Added LoginActivityTest#testDatasetAuthTwoFieldsNoValues
      Added LiginActivityTest#filterTextNullValuesAlwaysMatched
      All autofill CTS tests pass

bug:37724701
bug:37424539

Change-Id: Ic19e5d7cbdbb7d110c9e7da0ad60b540cbf1aecf
2017-05-09 17:40:28 -07:00
Adrian Roos
6f6e159484 AOD: Notification groups on Ambient Display
Bug: 36690937
Test: receive notification group on ambient display
Change-Id: I9dd91b85432e3d4309e0eb78a7b03ada87c3554e
2017-05-09 17:02:25 -07:00
Bryce Lee
3979159456 Prevent non-fullscreen activities from influencing orientation
This changelist enforces that activities targeting O and beyond
can only specify an orientation if they are fullscreen. The
change ignores the orientation on the server side and throws an
exception when the client has an orientation set in onCreate or
invokes Activity#setRequestedOrientation.

Fixes: 33483680
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testNonFullscreenActivityProhibited
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testLegacyNonFullscreenActivityPermitted
Change-Id: I4f7f79744918fad6465a537633dfadec8d05c6df
2017-05-09 16:13:51 -07:00
Makoto Onuki
08408b9338 Tweak for b/37809561.
From the WTF log we know Args.run() sometimes gets called multiple
times.

Remove the Runnable interface from the Args class to make it
impossible to cast it to Runnable.

If the WTF still happens with this change, that'd be *very* interesting.

Test: Build and boot
Bug: 37809561
Change-Id: Id4bd9bd8d4098086649235fddfc2136527805838
2017-05-09 14:10:16 -07:00