Commit Graph

11173 Commits

Author SHA1 Message Date
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
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
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
George Mount
0328d83fa7 Merge "Protect shared element transitions from removed views." into oc-dev am: 70c1e51bc1
am: 817d37c154

Change-Id: Ic967ff829ae73405b10d5d0e5a9bd51ea7a7428b
2017-05-09 20:20:04 +00:00
George Mount
817d37c154 Merge "Protect shared element transitions from removed views." into oc-dev
am: 70c1e51bc1

Change-Id: Ibd68e64eef362e02ad2764024f8fbed99c59afd3
2017-05-09 19:49:19 +00:00
TreeHugger Robot
70c1e51bc1 Merge "Protect shared element transitions from removed views." into oc-dev 2017-05-09 17:22:16 +00:00
Rubin Xu
e8796fca5f Merge "Update SystemUpdatePolicy wording" into oc-dev am: 7cf5f74f3f
am: 0311911b9e

Change-Id: Ibaa5ed8533bfd36911aacd8738a0811b5a41d8cc
2017-05-09 12:05:57 +00:00
Rubin Xu
0311911b9e Merge "Update SystemUpdatePolicy wording" into oc-dev
am: 7cf5f74f3f

Change-Id: Ifac890402f5f352d00ccb5eb3809b67a125d2b24
2017-05-09 11:57:57 +00:00
Rubin Xu
7cf5f74f3f Merge "Update SystemUpdatePolicy wording" into oc-dev 2017-05-09 11:49:00 +00:00
TreeHugger Robot
e4d5c4e1f9 Merge "update trust state immediately when user auths via FP on keyguard" 2017-05-09 05:09:27 +00:00
Philip P. Moltmann
7e6ef30452 Merge changes I7c2c9411,Ibc72c84d,Ib3968644 into oc-dev am: f512575c68
am: 169989822e

Change-Id: I330cd6e1601584e3903a26b27047aae2e7b7c711
2017-05-09 02:18:52 +00:00
Philip P. Moltmann
169989822e Merge changes I7c2c9411,Ibc72c84d,Ib3968644 into oc-dev
am: f512575c68

Change-Id: I590a658c92ad271c7b4f18f5768c1a4e581ffe94
2017-05-09 02:05:24 +00:00
TreeHugger Robot
f512575c68 Merge changes I7c2c9411,Ibc72c84d,Ib3968644 into oc-dev
* changes:
  No need to deal with windowTokens
  Persistable accessibility ID from ContextWrappers
  Check callbacks when operting on UI
2017-05-09 01:49:58 +00:00
Kevin Chyn
3fdbbf87bd update trust state immediately when user auths via FP on keyguard
KeyguardUpdateMonitor onFingerprintAuthenticated currently doesn't
immediately update the trust state. TrustManager.isDeviceLocked()
should return "unlocked" after FP is authenticated.

Fixes: 37963501

Test: Two tests as follows

1) use custom app that polls isDeviceLocked(), make sure
it returns "unlocked" after FP is authenticated but keyguard is showing.
To get that state, slide keyguard up slightly and touch FP sensor
without letting go of the other finger.

2) with at least 2 accounts, run the app on both accounts.
when switching users, the app should show that the "inactive/underneath"
user is locked. the app should report that the current user is locked
before touching fp, and unlocked after touching fp

Change-Id: I2a11411deebf369d85dee62cffdcd631bd99649f
2017-05-08 15:33:27 -07:00
Selim Cinek
afc4f9313c Merge changes from topic 'background_inflation' into oc-dev am: 03fbdbe6ff
am: cc360f9b69

Change-Id: I456f81ff6300792e8639733d0115d878683d1694
2017-05-08 22:30:48 +00:00
Felipe Leme
491c034f09 Merge "Merge "Fixed placemente of Autofill UI for virtual views." into oc-dev am: 370b040cf9" into oc-dev-plus-aosp
am: 572014820f

Change-Id: I75db688e77f46281a9887a0d6248a1eddf0e4860
2017-05-08 22:07:49 +00:00
Selim Cinek
cc360f9b69 Merge changes from topic 'background_inflation' into oc-dev
am: 03fbdbe6ff

Change-Id: I1848e1f5a1ec5f9785872690b4d653afd590399f
2017-05-08 21:37:31 +00:00
Felipe Leme
e6342dcecc Merge "Fixed placemente of Autofill UI for virtual views." into oc-dev
am: 370b040cf9

Change-Id: I3741b0ef8893eb660230698432c7d316995642b8
2017-05-08 21:24:48 +00:00
Selim Cinek
03fbdbe6ff Merge changes from topic 'background_inflation' into oc-dev
* changes:
  Fixed the contrast for low-priority notifications
  Moving Row inflation to the background too
  Moving the inflation to the background
2017-05-08 21:11:37 +00:00
Felipe Leme
370b040cf9 Merge "Fixed placemente of Autofill UI for virtual views." into oc-dev 2017-05-08 21:08:06 +00:00
Philip P. Moltmann
134cee27b8 No need to deal with windowTokens
we have a link to the client which is enough to find the views.

Also there was some cases where the windowToken was not updated
properly. This is moot now.

Also: Read a array of views from the client to speed up the
client<->AutofillManager communication.

Fixes: 38070352
Test: CtsAutoFillServiceTestCases
      1 Started autofill, saw fill UI
      2 Home button
      3 Kill activity in background
      4 Recents -> back to activity
      5 Saw fill UI restored
Change-Id: I7c2c9411204fa5d65867efae9b7296399121c3a2
2017-05-08 14:02:58 -07:00
Fyodor Kupolov
5f8bcd8b1b Merge "Do not call updateApplicationInfo with mResourceManager lock" into oc-dev am: bf34f4922d
am: 4b00db5492

Change-Id: I7413f031c5f47c66e5231e7666d5a93df73dc94f
2017-05-08 18:27:35 +00:00
Fyodor Kupolov
4b00db5492 Merge "Do not call updateApplicationInfo with mResourceManager lock" into oc-dev
am: bf34f4922d

Change-Id: Id7ccea22af67938883995a37c0acc054d9751aad
2017-05-08 18:18:00 +00:00
TreeHugger Robot
bf34f4922d Merge "Do not call updateApplicationInfo with mResourceManager lock" into oc-dev 2017-05-08 18:10:16 +00:00
Daniel Nicoara
57c32d93f6 Merge "Remove controller connection API" into oc-dev am: daefe1dcc7
am: 41950bc2c6

Change-Id: I48855908fe4fc4c284bc84b0d99bae5a82099c5d
2017-05-08 16:48:21 +00:00
Daniel Nicoara
41950bc2c6 Merge "Remove controller connection API" into oc-dev
am: daefe1dcc7

Change-Id: Ic46c8ed4e41b80927f74b2fa96ed997f6b581134
2017-05-08 16:38:56 +00:00
TreeHugger Robot
daefe1dcc7 Merge "Remove controller connection API" into oc-dev 2017-05-08 16:30:37 +00:00
Rubin Xu
59af7a82fa Update SystemUpdatePolicy wording
Make supporting security patch behaviour optional

Bug: 37266712
Test: make -j32 docs
Change-Id: Ied73b386396169d83bd152fcb882926f3222b599
2017-05-08 15:17:43 +01:00
Dianne Hackborn
cd260b0c1d Merge "Fix issue #38037532: Toasts cause apps to become foreground" into oc-dev am: 1801f688b9
am: 1d1a8c512c

Change-Id: I7c07a165dd882c9d9918c10d9d7071c4f9b9c646
2017-05-07 01:15:16 +00:00
Dianne Hackborn
1d1a8c512c Merge "Fix issue #38037532: Toasts cause apps to become foreground" into oc-dev
am: 1801f688b9

Change-Id: Ib812e0357e50b5af010552d0ef18d27e071370b2
2017-05-07 01:07:41 +00:00
Dianne Hackborn
1801f688b9 Merge "Fix issue #38037532: Toasts cause apps to become foreground" into oc-dev 2017-05-07 00:59:11 +00:00