Commit Graph

69347 Commits

Author SHA1 Message Date
Hugo Benichi
ada3f6b8f1 Merge "Improve utility of IntArray and LongArray" am: 35786735df am: e718797a37 am: 4ca1cb7c10
am: 6f75cb52e8

Change-Id: I82032bf85861cfc8aebffd9e49796fb61b5a19ed
2017-04-10 01:46:36 +00:00
Hugo Benichi
6f75cb52e8 Merge "Improve utility of IntArray and LongArray" am: 35786735df am: e718797a37
am: 4ca1cb7c10

Change-Id: If206b2b4d837dbbb8d0fd0c9a75fad240bb5379e
2017-04-10 01:36:20 +00:00
Hugo Benichi
4ca1cb7c10 Merge "Improve utility of IntArray and LongArray" am: 35786735df
am: e718797a37

Change-Id: I21587b63e670e9a67ff23aeeda9c2ee9cc5a3a0a
2017-04-10 01:26:49 +00:00
Hugo Benichi
35786735df Merge "Improve utility of IntArray and LongArray" 2017-04-10 01:09:04 +00:00
Philip P. Moltmann
2b0e121c9c Merge "Restore session on new window after app kill" into oc-dev am: 51785edbe9
am: a839e15a65

Change-Id: Ieba9858a808080aba74a3fd45021dac69ad83453
2017-04-08 02:48:05 +00:00
Philip P. Moltmann
a839e15a65 Merge "Restore session on new window after app kill" into oc-dev
am: 51785edbe9

Change-Id: I692398a7f044db7f50e1b2f5155e4683f6f5bc31
2017-04-08 02:40:33 +00:00
TreeHugger Robot
51785edbe9 Merge "Restore session on new window after app kill" into oc-dev 2017-04-08 02:35:35 +00:00
Andrii Kulian
4cab4b3a6a Merge "Use feature instead of hidden config for multi-display" into oc-dev am: 72790bade5
am: 2d27f1c538

Change-Id: I2f8c876f53c021e4eca8fb50b4de8f7d5390e673
2017-04-08 02:07:08 +00:00
Andrii Kulian
2d27f1c538 Merge "Use feature instead of hidden config for multi-display" into oc-dev
am: 72790bade5

Change-Id: I557c1b47e960ff2b7715dc71827ac200a21952db
2017-04-08 02:00:57 +00:00
Andrii Kulian
72790bade5 Merge "Use feature instead of hidden config for multi-display" into oc-dev 2017-04-08 01:51:29 +00:00
Philip P. Moltmann
eab62baabf Restore session on new window after app kill
Also:
- Give the session an integer ID as the activityToken is not stable over
  restarts of the activity
- Verify that session is only accessed by one UID
- stabilize AccessibilityViewIds over activity lifecycle at least for
  the IDs we can do that. This required to split the ID namespace in
  "per-app" and "per-activity" views. Only the later ones can be
  restored.
- Do not end session when app is killed (as it can be restarted)

Bug: 35484143
Fixes: 36392498
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases --test=android.autofillservice.cts.SessionLifecycleTest
      cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
Change-Id: I229acc1b3ce35fb57262da7d7466b5d4328b49d4
2017-04-08 00:48:55 +00:00
Bryce Lee
19aa040685 Merge "Do not make strong reference to Resources." into oc-dev am: 6f36255adc
am: 43b1a5f433

Change-Id: I68a836fcb17b727140c22a6e886122114626362d
2017-04-08 00:10:55 +00:00
Felipe Leme
d10879d146 Merge "Autofill Partitioning: support multiple SaveInfos." into oc-dev am: 5c8d88e855
am: 49b37310ab

Change-Id: I5967cd823a11dc049a593918c29b5950f36ef0e4
2017-04-08 00:06:53 +00:00
Bryce Lee
43b1a5f433 Merge "Do not make strong reference to Resources." into oc-dev
am: 6f36255adc

Change-Id: I39c456cfb25d030a482ff4c17760b55409f58b96
2017-04-08 00:03:05 +00:00
Felipe Leme
49b37310ab Merge "Autofill Partitioning: support multiple SaveInfos." into oc-dev
am: 5c8d88e855

Change-Id: Ia363ebbbf73514936776b7b0a9ca7ba0f65bf1bc
2017-04-08 00:01:51 +00:00
TreeHugger Robot
6f36255adc Merge "Do not make strong reference to Resources." into oc-dev 2017-04-07 23:57:29 +00:00
TreeHugger Robot
5c8d88e855 Merge "Autofill Partitioning: support multiple SaveInfos." into oc-dev 2017-04-07 23:52:11 +00:00
Andrii Kulian
1981f5fd17 Use feature instead of hidden config for multi-display
Using a feature will allow app developers to find out if a
particular device supports running activities on secondary
screens before using the APIs.

Bug: 36776777
Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: I7121bdb782cac9df70121e9df5cbf3fcb76f4a93
2017-04-07 16:23:12 -07:00
Phil Weaver
a65782072a Make a11y node info parceling more robust am: 487d869733
am: 27e1f88a28

Change-Id: Ic602da1e45e4e906d9e3475a229886913e5dec16
2017-04-07 23:16:55 +00:00
Phil Weaver
27e1f88a28 Make a11y node info parceling more robust
am: 487d869733

Change-Id: I5c85f0dd279f8263aad5b76cbf51dd9d4e0ef549
2017-04-07 23:09:30 +00:00
Phil Weaver
aa2da19dc6 Make a11y node info parceling more robust
am: 487d869733

Change-Id: I57d8feb17000692b6b93d976de43362ce3a34001
2017-04-07 23:09:28 +00:00
Todd Kennedy
84b3954974 Merge "copy 'visbileToInstantApps' setting" into oc-dev am: e467be5e14
am: 266d20db8e

Change-Id: I9c235580967e1852ac6ee48b5b4f4bbd27543343
2017-04-07 22:20:52 +00:00
Todd Kennedy
266d20db8e Merge "copy 'visbileToInstantApps' setting" into oc-dev
am: e467be5e14

Change-Id: Ib3551cf0dce0afc169b89bc504b8f9ef88746423
2017-04-07 22:10:43 +00:00
Bryce Lee
fea79005bd Do not make strong reference to Resources.
This CL removes the strong reference added for mapping display ids
and Resources to Displays. Instead, the key pair is now the display
id and ResourcesKey, and the mapping is pruned when key is
invalidated.

Change-Id: If91368171212b28c40e03c15fb39c72412a44811
Fixes: 36625868
Test: make -j32 cts; cts-tradefed; run cts --module CtsAppTestCases --test android.app.cts.DisplayTest#testRotation
2017-04-07 22:06:52 +00:00
TreeHugger Robot
e467be5e14 Merge "copy 'visbileToInstantApps' setting" into oc-dev 2017-04-07 22:04:09 +00:00
Robert Carr
7e34a1ea7b Merge "ViewRootImpl: Fix child lifetime." into oc-dev am: ca2622b860
am: 016d3ceac2

Change-Id: I5b7e6d9092fe9d324488c3c6c6dfd443fba11d15
2017-04-07 21:59:57 +00:00
Robert Carr
016d3ceac2 Merge "ViewRootImpl: Fix child lifetime." into oc-dev
am: ca2622b860

Change-Id: Ibd108646edf7217a9f7656b3c83cd87820649c2d
2017-04-07 21:52:59 +00:00
TreeHugger Robot
ca2622b860 Merge "ViewRootImpl: Fix child lifetime." into oc-dev 2017-04-07 21:44:48 +00:00
Jeff Davidson
b265f8c11e Merge "Fix NPE when parceling getMetadata result." 2017-04-07 21:25:40 +00:00
Andrii Kulian
56e84d0118 Merge "Add hidden API to check support of Multi-Display" into oc-dev am: 4eab3cb11a
am: b7c802094b

Change-Id: Icb5882f5e6e5b1a8054a8bd9889d46fc403bee98
2017-04-07 20:35:50 +00:00
Andrii Kulian
b7c802094b Merge "Add hidden API to check support of Multi-Display" into oc-dev
am: 4eab3cb11a

Change-Id: I93855ada112e51892d5978c23de506388593aa9e
2017-04-07 20:30:17 +00:00
Andrii Kulian
4eab3cb11a Merge "Add hidden API to check support of Multi-Display" into oc-dev 2017-04-07 20:22:58 +00:00
Todd Kennedy
66b5c042c2 copy 'visbileToInstantApps' setting
Change-Id: I342a133ae8d7f38008cb03706d160e6f2e2cca97
Fixes: 37002720
Test: Start instant app [adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d http://www.realestate.com.au/property-apartment-nsw-pyrmont-124879602] and see that hitting the 'share' icon works
2017-04-07 12:48:13 -07:00
Roozbeh Pournader
0eb9ce4a55 Merge "Special-case English for DateTime and Time key listeners" into oc-dev am: 91d289903c
am: 300d74e34e

Change-Id: Ic6dfb3e20ef409d9ef7e63578d8db25013537046
2017-04-07 19:39:54 +00:00
Roozbeh Pournader
300d74e34e Merge "Special-case English for DateTime and Time key listeners" into oc-dev
am: 91d289903c

Change-Id: Ibeaea13b146e30b5f7d67c49295081632a6a7736
2017-04-07 19:32:45 +00:00
Robert Carr
ba29dbc3b3 ViewRootImpl: Fix child lifetime.
As far as I can tell this has always been broken. We've always had
intermittent reports of buffer-queue-abandoned as well (a recent bug
came with some reports from N). During onStop SurfaceView relies on
onWindowVisibilityChanged, to trigger a visibility change. At this
point SurfaceView will emit the SurfaceDestroyed callback in order to
stop the client from further use of the Surface. The contract we've
been using with ViewRootImpl is at any point following
Activity.performStop returning the WindowManager was free to destroy
the Surfaces. This is why in setWindowsStopped we destroy the hardware
resources for the ViewRoot. However we aren't dispatching anything to
the SurfaceView. The WindowManager will send an app visibility
notification, but that would go through the handler. This means by the
time we return from Stop, there is no guarantee that the
onWindowVisibilityChanged callbacks have been invoked at all. It
seemed most sensible to dispatch the visibility callbacks directly. We
also ensure that getHostVisibility will return false after this point,
so that performTraversals will not reverse our visibility request if
it occurs again prior to the window visibility notification from the
WindowManager. We also guard against emitting a second window
visibility changed callback in the traversals. I don't know at this
point what value the window visibility notification provides but I
don't feel excited about removing it in this CL at this point in
the development cycle.

Test: Put Chrome in PiP. Turn screen off. No Crash!
Bug: 36561071
Change-Id: Id1673561b2299d477b2761b3ac6afa14eabbf7fb
2017-04-07 12:24:43 -07:00
Wale Ogunwale
23e8f273da Merge "Revert "Do not make strong reference to Resources."" into oc-dev am: 2f2e3f8ad5
am: d8351abc88

Change-Id: I7e5a4d46a4a524f2a7196adc9f39e27aced5bbdd
2017-04-07 19:23:57 +00:00
TreeHugger Robot
91d289903c Merge "Special-case English for DateTime and Time key listeners" into oc-dev 2017-04-07 19:21:56 +00:00
Wale Ogunwale
d8351abc88 Merge "Revert "Do not make strong reference to Resources."" into oc-dev
am: 2f2e3f8ad5

Change-Id: I4b2f25475531003f8a4928e0b4a8eef05dfb9378
2017-04-07 19:14:41 +00:00
Wale Ogunwale
2f2e3f8ad5 Merge "Revert "Do not make strong reference to Resources."" into oc-dev 2017-04-07 19:06:55 +00:00
Phil Weaver
487d869733 Make a11y node info parceling more robust
Fix a bug where a malformed Parceled representation
of an AccessibilityNodeInfo could be used to mess with
Bundles as they get reparceled.

Bug: 36491278
Test: Verified that POC no longer works, a11y cts still passes.
Change-Id: I10f24747e3ab87d77cd1deba56db4526e3aa5441
(cherry picked from commit 687bb44b43)
2017-04-07 18:45:38 +00:00
Bryce Lee
4eb4f05ea9 Revert "Do not make strong reference to Resources."
This reverts commit 2d2315a66d.

Reason for revert: possible cause for b/37156733

Change-Id: I02d468449f0632d1281ab5ad2a381e7e36a5b0ea
2017-04-07 18:44:26 +00:00
Phil Weaver
718264a3f8 Merge "Make a11y node info parceling more robust" 2017-04-07 18:42:29 +00:00
Andrii Kulian
597f390681 Add hidden API to check support of Multi-Display
Added ActivityManager#supportsMultiDisplay() to check if system
supports running activities on secondary displays.

Bug: 36776777
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testMultiDisplayDisabled
Change-Id: I18f98f2f6a9e865ad8dc63a470210190536d3271
2017-04-07 11:08:55 -07:00
Dmitry Dementyev
1df502fc75 Merge "Make visible only accounts for which authenticator supports contacts operations for callers with READ_CONTACTS permission." 2017-04-07 17:49:35 +00:00
Selim Cinek
810d99e265 Merge changes If96c0146,I0d68ad60 into oc-dev am: 5393a0e2d9
am: e1fcf8edd6

Change-Id: I59b73215058df60ad93e59a76f01143c6a935d30
2017-04-07 16:17:44 +00:00
Selim Cinek
e1fcf8edd6 Merge changes If96c0146,I0d68ad60 into oc-dev
am: 5393a0e2d9

Change-Id: Ic70d9eb07b53ccda5fafb8c37177e130d4b279de
2017-04-07 16:08:26 +00:00
TreeHugger Robot
5393a0e2d9 Merge changes If96c0146,I0d68ad60 into oc-dev
* changes:
  Improved accessibility behavior of the notification shelf
  Fixed a bug where the indeterminate progressbar janky
2017-04-07 15:59:17 +00:00
Bryce Lee
149fd497e8 Merge "Check component before notifying activity is visible." into oc-dev am: 13acf25cfd
am: 6b8907d8ed

Change-Id: Ife37bdfb4bee6479688defad0446efaecfb7838b
2017-04-07 15:11:51 +00:00
Bryce Lee
6b8907d8ed Merge "Check component before notifying activity is visible." into oc-dev
am: 13acf25cfd

Change-Id: I58d215ae33994274a364ec71ba59bae25e0e1c12
2017-04-07 15:03:54 +00:00