Commit Graph

82717 Commits

Author SHA1 Message Date
Jeff Sharkey
75299cffec Merge "Let tests enumerate all transports/capabilities." into pi-dev
am: 8e6445a1a5

Change-Id: Ie5cd22cfa2b6a60510fd1e31d7ebcd8f6cc890a0
2018-05-15 08:27:40 -07:00
Jeff Sharkey
8e6445a1a5 Merge "Let tests enumerate all transports/capabilities." into pi-dev 2018-05-15 15:17:30 +00:00
Felipe Leme
aae288a6a5 Merge "Don't call setAutofillClient() on base Context if it's null." into pi-dev
am: 6d0842154b

Change-Id: Ifc971e81483b5bcf08c6f0af9789b88905dc17ad
2018-05-14 23:01:10 -07:00
TreeHugger Robot
6d0842154b Merge "Don't call setAutofillClient() on base Context if it's null." into pi-dev 2018-05-15 05:47:51 +00:00
Philip P. Moltmann
b098a03e84 Merge "Allow Print subsystem to work with services provided by instant app" into pi-dev
am: cc64fb9c8f

Change-Id: I462d3a5cdde32dc193b7ee0611ea79a7f8143df6
2018-05-14 22:10:25 -07:00
Philip P. Moltmann
cc64fb9c8f Merge "Allow Print subsystem to work with services provided by instant app" into pi-dev 2018-05-15 04:58:00 +00:00
Dake Gu
0c268a1a89 Merge "Autofill: allow switch IME when autofill is showing" into pi-dev
am: 7b6ecb7668

Change-Id: I4adefc4466dd9dc6168e36526b49b03a5d384f1d
2018-05-14 18:12:53 -07:00
Felipe Leme
d247de85bb Don't call setAutofillClient() on base Context if it's null.
Test: atest CtsAutoFillServiceTestCases
Test: changed activity on autofill sample to override attachBaseContext() by
      calling super.attachBaseContext(null) - the activity still crashes, but
      not on attachBaseContext().

Fixes: 79707861

Change-Id: Idfaa9c596cc338ab815441138ce06ba64cd3b4d2
2018-05-14 18:03:15 -07:00
Dake Gu
7b6ecb7668 Merge "Autofill: allow switch IME when autofill is showing" into pi-dev 2018-05-15 01:02:41 +00:00
Phil Weaver
fbcae9d732 Merge "Improve a11y ordering" into pi-dev
am: 3789bbc476

Change-Id: I873a9458755686d2e86d73fa001806c5e7bf0197
2018-05-14 16:40:30 -07:00
Suprabh Shukla
7e69f41b55 Merge "Mitigating cache corruption in ArrayMap" into pi-dev
am: 841de8fb31

Change-Id: Ia8e5eddc8837af23c2fdcb48b40e98f1eff3bc8b
2018-05-14 16:31:21 -07:00
Phil Weaver
3789bbc476 Merge "Improve a11y ordering" into pi-dev 2018-05-14 23:25:07 +00:00
Jeff Sharkey
a5ee62f356 Let tests enumerate all transports/capabilities.
This gives them a way to collect all included values without
resorting to manual probing of each newly added value.

Bug: 16207332
Test: atest com.android.cts.net.HostsideVpnTests
Change-Id: I35ca412512dc8515b44d5518e1ca4caa5bdc678f
2018-05-14 17:17:33 -06:00
TreeHugger Robot
841de8fb31 Merge "Mitigating cache corruption in ArrayMap" into pi-dev 2018-05-14 23:03:39 +00:00
Suprabh Shukla
1938e34e42 Mitigating cache corruption in ArrayMap
Before calling freeArrays, storing the array reference into a temporary
pointer so that the main pointer doesn't end up corrupting the static
pool of arrays on concurrent access. An earlier change missed a rare
case when removeAt was called for the last element in the map.

Test: atest android.util.ArrayMapTest
atest android.util.cts.ArrayMapTest

Bug: 78898947
Change-Id: I454c5b1600eb0a6c690e746df10f6a0ebcd8aa1d
2018-05-14 14:51:01 -07:00
Dianne Hackborn
82a87674ce Merge "Allow device/profile owners to change app ops modes." into pi-dev
am: adaca2146d

Change-Id: I23dc01f573266a182fff2106318b867920a3f91a
2018-05-14 14:22:38 -07:00
Dianne Hackborn
adaca2146d Merge "Allow device/profile owners to change app ops modes." into pi-dev 2018-05-14 20:43:31 +00:00
Phil Weaver
86b3260128 Improve a11y ordering
We use ids to break ties when sorting views just to
guarantee that we won't break sorting. But we don't
want to have our swipe order determined by arbitrary
ids.

Before resorting to such a crude tie-breaker, look at
a view's children to try to break a tie using their
bounds. That sort is more based on what's on the
screen, and will also produce the same result from
the same ui.

Bug: 78348191
Test: Switch access order is much more sensible on
Recents. Also ran a11y cts.

Change-Id: I918eae3b0d27e889a53d05a6ebe925e38ce5d7b4
2018-05-14 20:01:37 +00:00
Dianne Hackborn
d52544183e Allow device/profile owners to change app ops modes.
This allows them to continue to have this capability the
same as before we locked down access to it.

Bug: 78480444
Test: manual
Change-Id: If2b0722945235eb67676ace3f54efaa71a64bcde
2018-05-14 11:29:43 -07:00
Jan Althaus
927c227845 Merge "Remove custom schema parsing in favor of Uri" into pi-dev
am: e3125c7e89

Change-Id: Ia306e77a7047d6f8bdc923cfd1ad160e4c82863c
2018-05-14 01:31:22 -07:00
Jan Althaus
e3125c7e89 Merge "Remove custom schema parsing in favor of Uri" into pi-dev 2018-05-14 08:21:40 +00:00
Abodunrinwa Toki
164183125c Merge "Do not parcel legacy TextClassification fields" into pi-dev
am: 6db14d01c2

Change-Id: I8e26ed6f5dceaea509ea8d43c2088018ba4aac8e
2018-05-13 14:44:11 -07:00
TreeHugger Robot
6db14d01c2 Merge "Do not parcel legacy TextClassification fields" into pi-dev 2018-05-13 21:32:20 +00:00
Winson Chung
59ff523949 Merge changes from topic "sysui_flags_drop" into pi-dev
am: 53ae6a82cd

Change-Id: I88661e52aedee934e5b5cdbfd1d457d2c6a7d1c1
2018-05-11 15:59:45 -07:00
Winson Chung
53ae6a82cd Merge changes from topic "sysui_flags_drop" into pi-dev
* changes:
  Clean up Recents animation api
  Expose the system ui visibility flags and translucent state with snapshot
2018-05-11 22:18:37 +00:00
Beverly Tai
647907274f Merge "Show settings suggestion" into pi-dev
am: 1b69d7b406

Change-Id: I844f26a32f1c72ed605946d690154fa1f3141a0a
2018-05-11 14:09:30 -07:00
Beverly Tai
1b69d7b406 Merge "Show settings suggestion" into pi-dev 2018-05-11 20:59:49 +00:00
Amith Yamasani
36424476bb Merge "Add limits to App Usage Observer Api" into pi-dev
am: 98fd4fa0f4

Change-Id: I79e58fa83b389bffeb5b286cbddbbfe15de17caf
2018-05-11 12:19:32 -07:00
Amith Yamasani
98fd4fa0f4 Merge "Add limits to App Usage Observer Api" into pi-dev 2018-05-11 19:03:11 +00:00
Abodunrinwa Toki
c2aa28895a Merge "Fix TextClassifier logging." into pi-dev
am: 1c60953f9d

Change-Id: I51ade4a3ac7a75bef258faf487a279310fe1e2fb
2018-05-11 11:54:47 -07:00
TreeHugger Robot
1c60953f9d Merge "Fix TextClassifier logging." into pi-dev 2018-05-11 18:29:31 +00:00
Todd Kennedy
f08b40642a Merge changes from topic "b_78809704" into pi-dev
am: 92b64bb1bb

Change-Id: I08a9b59d00c9e7aa075c21c44b582d571fe79fd7
2018-05-11 11:15:10 -07:00
Mrten Kongstad
0ddacd34de OMS: rebase settings when overlays update
am: 2f1944bf0e

Change-Id: I1691fa4251182adf9484cafb12484aa8003cbf3c
2018-05-11 11:09:25 -07:00
Todd Kennedy
92b64bb1bb Merge changes from topic "b_78809704" into pi-dev
* changes:
  OMS: teach the OMS about static RROs
  OMS: rebase settings when overlays update
2018-05-11 17:44:53 +00:00
Jason Monk
16db9b96bf Merge "Allow onGetSliceDescendants to be slow" into pi-dev
am: 02b9592ff1

Change-Id: I91899f01fd769c313e62000eee277ab3242099f0
2018-05-11 10:37:59 -07:00
TreeHugger Robot
02b9592ff1 Merge "Allow onGetSliceDescendants to be slow" into pi-dev 2018-05-11 17:21:28 +00:00
Bo Zhu
542dbb9734 Merge "Revert "Revert "Change the root of trust for CryptAuth Vault Service""" into pi-dev
am: 90dbb0ed72

Change-Id: I96ddaa531db00ec6e925b276e5ba137af51bfed5
2018-05-11 09:59:59 -07:00
Bo Zhu
90dbb0ed72 Merge "Revert "Revert "Change the root of trust for CryptAuth Vault Service""" into pi-dev 2018-05-11 16:46:16 +00:00
Jason Monk
a66dfee8d0 Allow onGetSliceDescendants to be slow
Because sometimes it needs to be

Test: existing tests
Bug: 79132845
Bug: 77873463
Change-Id: I93aa8553c48c856bf96c347a229be6e770751708
2018-05-11 08:23:59 -07:00
Beverly
301e92a4dd Show settings suggestion
Bug: 78445134
Test: Settings tests
Change-Id: Ib66ebb3af3328ac1ffa9949282afaf800e1f1019
2018-05-11 09:45:04 -04:00
Bo Zhu
bd7879ce3e Revert "Revert "Change the root of trust for CryptAuth Vault Service""
This reverts commit be4f735cb1.

Reason for revert: Resubmit the CL http://ag/3983388 that was reverted. The server side change has been deployed now.

Bug: 78920513
Change-Id: If676799176ecf90fd51a97027a9ff83bec5d4bed
2018-05-11 05:11:11 +00:00
Brad Stenning
2b557bebaa Merge "Add a path to allow detection of task changes to the top of the ActivityView" into pi-dev
am: 47a8ecce90

Change-Id: I5c585d2ca5cb29fb9f4fc2188575233ea70277e3
2018-05-10 20:14:18 -07:00
Christopher Tate
b11cfdbb68 Merge "Document system activity intents that may not be implemented" into pi-dev
am: f9dbd76be3

Change-Id: I280d65623e070fbc2983f0e646f48d520842b2c9
2018-05-10 20:05:42 -07:00
TreeHugger Robot
47a8ecce90 Merge "Add a path to allow detection of task changes to the top of the ActivityView" into pi-dev 2018-05-11 02:45:25 +00:00
Christopher Tate
72da1e6f78 Document system activity intents that may not be implemented
All of these activity-start intents might be unimplemented on some
Android products.  Document this to make sure that developers are
aware of the need to safeguard against this.

Bug: 68300743
Bug: 62201251
Bug: 69587018
Fixes: 77282739
Test: atest CtsContentTestCases:.AvailableIntentsTest
Change-Id: Ia2346d03ccb7f2bdad2b84ba9efff72413fdc3c2
2018-05-10 17:55:26 -07:00
Dake Gu
ddf6c1e22c Autofill: allow switch IME when autofill is showing
IME used to allow startInput() *only* when window has focus.
This is no longer the case after we made changes to allow autofill
window to get window focus to receive physical keyevents.

The fix changed precondition of when InputMethodManager can startInput:
(hasWindowFocus() || isAutofillUIShowing()).

Test: manual test:
      - install two IMEs
      - install autofill sample service and autofill sample service
      - launch the Autofill sample app, click on edittext, both
        IME and autofill window are showing.
      - type "username", autofill datasets are being filtered.
      - click "globe" button in IME window to switch IME.
      - continue typing "username2" using new IME and autofill window
	continues to filtering.
      - also try the "IME switch" button in bottom bar to switch IME.
Bug: 79494235

Change-Id: I0d222b5fc13ad46834aa861647d8f2e1649093ec
2018-05-10 17:11:47 -07:00
Philip P. Moltmann
b3baaab4af Allow Print subsystem to work with services provided by instant app
Most functionality works, but the PrintActivity cannot directly interact
with the instant service.

As instant services should only appear in tests this functionality needs
to be enabled via shell commands.

Fixes: 79484768
Test: cts-tradefed run commandAndExit cts-instant-dev -m CtsPrintTestCases
      cts-tradefed run commandAndExit cts-dev -m CtsPrintTestCases

Change-Id: Ie4663c72b8c0f959b5d172ef28875479d120e386
2018-05-10 15:26:39 -07:00
Abodunrinwa Toki
ba196c5a3d Do not parcel legacy TextClassification fields
If we depend on legacyIntent, then TextClassifierService implementations
will have to always popuplate a deprecated field.
To avoid breaking legacy clients, the returned legacyOnClickListener should
represent the first pendingIntent (i.e. primary action) that was parcelled.

Bug: 78340399
Test: atest CtsViewTestCases:TextClassificationManagerTest
Test: atest FrameworksCoreTests:TextClassificationTest
Test: manual check with a TCS that only sets non-deprecated fields vs a
legacy TC client
Change-Id: I41d27a65f1ede6369dd2a66d92b2210edb0d11e2
2018-05-10 19:42:55 +01:00
Patrick Baumann
896935a5f8 Merge "Expands javadocs for Intent.FLAG_ACTIVITY_MATCH_EXTERNAL" into pi-dev
am: a1e56fb23b

Change-Id: I85e00cf89c6259c207976e99f3e7cbf074a42001
2018-05-10 11:36:09 -07:00
TreeHugger Robot
a1e56fb23b Merge "Expands javadocs for Intent.FLAG_ACTIVITY_MATCH_EXTERNAL" into pi-dev 2018-05-10 18:23:07 +00:00