Commit Graph

83650 Commits

Author SHA1 Message Date
Seigo Nonaka
32afe26a00 Add TextLayout.measure test cases
Bug: 78464361
Test: atest android.text.TextLineTest
Change-Id: I62e05d4fe18c115060da918a2c9105f0e94fe4b0
2018-05-16 22:20:57 -07:00
Jason Monk
5364b63a51 Merge "Fix crash when loading resources without code" into pi-dev am: c46279aa98
am: 2af66fb30f

Change-Id: Ib5d396772eef78971a1c4750bebe72ba49fdaef2
2018-05-15 10:00:29 -07:00
Jason Monk
2af66fb30f Merge "Fix crash when loading resources without code" into pi-dev
am: c46279aa98

Change-Id: I3af4a66f050380c507ec59b9136f2ef6a4f41848
2018-05-15 09:52:15 -07:00
TreeHugger Robot
c46279aa98 Merge "Fix crash when loading resources without code" into pi-dev 2018-05-15 16:33:20 +00:00
Jeff Sharkey
ca46c6beea Merge "Let tests enumerate all transports/capabilities." into pi-dev am: 8e6445a1a5
am: 75299cffec

Change-Id: If07e77c92046807235229a4f67ee087bdd7bccf1
2018-05-15 08:37:39 -07:00
Jason Monk
2544c6917a Fix crash when loading resources without code
Should use default appComponentFactory, not the actual one from the
app because we have no code.

Test: manual
Change-Id: I982967543c4cf5c28b19b36b6d183a30052bf602
Fixes: 78883500
2018-05-15 11:30:09 -04:00
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
ef2b5b8a9a Merge "Don't call setAutofillClient() on base Context if it's null." into pi-dev am: 6d0842154b
am: aae288a6a5

Change-Id: I8f543b2e8066d8f54baf3bf846de585f8a7631da
2018-05-14 23:09:16 -07: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
0c94c5065d Merge "Allow Print subsystem to work with services provided by instant app" into pi-dev am: cc64fb9c8f
am: b098a03e84

Change-Id: Id4820d0df901304b1e10f19c62ee5d049f6cb103
2018-05-14 22:32:33 -07: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
0afc76ede5 Merge "Autofill: allow switch IME when autofill is showing" into pi-dev am: 7b6ecb7668
am: 0c268a1a89

Change-Id: Ia0ec98c603ecd69f4b54793df1228468596c6df6
2018-05-14 18:46:16 -07: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
dac9591e7d Merge "Improve a11y ordering" into pi-dev am: 3789bbc476
am: fbcae9d732

Change-Id: I0c234b9e3f2778951c729ed6daed96bcc3b394d2
2018-05-14 16:49:43 -07: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
daa0cbc6f9 Merge "Mitigating cache corruption in ArrayMap" into pi-dev am: 841de8fb31
am: 7e69f41b55

Change-Id: I9e5e678e89961720b25488aa13e5d35ef17f1f2a
2018-05-14 16:39:21 -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
2b8336f241 Merge "Allow device/profile owners to change app ops modes." into pi-dev am: adaca2146d
am: 82a87674ce

Change-Id: Id4a52aaca3d94075ff179141e96fba5c7326d4ee
2018-05-14 14:32:23 -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
TreeHugger Robot
a97cfa2fe7 Merge "Check against null text in TextView constructor" 2018-05-14 17:21:30 +00:00
Mihai Popa
a875271fcc Check against null text in TextView constructor
It is common for TextView subclasses to override the #setText method,
and there is nothing preventing the new implementations from leaving
mText and mTransformed unchanged. On the other hand, TextView assumes
mText and mTransformed will be non null at all times after the first
overridden implementations, these can remain null, causing null pointer
exceptions later.

Bug: 74411872
Test: atest FrameworksCoreTests:android.widget.TextViewTest
Test: atest FrameworksCoreTests:android.widget.TextViewActivityTest
Test: atest CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: Ifaddb46d156c495a371789c6f32cfd67ffaaaef2
2018-05-14 16:54:00 +01:00
Jan Althaus
5f84c4e6b3 Merge "Remove custom schema parsing in favor of Uri" into pi-dev am: e3125c7e89
am: 927c227845

Change-Id: Ic42e3a481e6ced6a74f795118e2d576f261790cc
2018-05-14 01:44:27 -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
7c41320e8a Merge "Do not parcel legacy TextClassification fields" into pi-dev am: 6db14d01c2
am: 164183125c

Change-Id: I2a7b4323e815f5a4868085be69e417439729ff90
2018-05-13 14:52:24 -07: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
10348578c8 Merge changes from topic "sysui_flags_drop" into pi-dev am: 53ae6a82cd
am: 59ff523949

Change-Id: I8d6fa49ba23b78648cf43fafe7c290f2e0c4b59f
2018-05-11 16:48:13 -07:00
Beverly Tai
a39ecad21d Merge "Show settings suggestion" into pi-dev am: 1b69d7b406
am: 647907274f

Change-Id: I09a30f210a7ddd2a602d600e7b91c58a26592039
2018-05-11 16:19:33 -07: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
TreeHugger Robot
70650a5747 Merge "Add annotation for CHANGE_COMPONENT_ENABLED_STATE permission" 2018-05-11 22:40:43 +00: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
eb966cdc1b Merge "Add limits to App Usage Observer Api" into pi-dev am: 98fd4fa0f4
am: 36424476bb

Change-Id: I42d3db50e61f06431c8071b42088bd00762239f6
2018-05-11 13:58:41 -07:00
Chad Brubaker
3875ce09fa Add annotation for CHANGE_COMPONENT_ENABLED_STATE permission
Test: builds
Bug: 79583362
Change-Id: Id7259d22b24ffdd0506ede28cce7307bdc44bd9b
2018-05-11 13:42:38 -07:00
Abodunrinwa Toki
c1116bc55b Merge "Fix TextClassifier logging." into pi-dev am: 1c60953f9d
am: c2aa28895a

Change-Id: Ia7efff7e3505053b21e4e7c6f55cc2394024f318
2018-05-11 13:40:26 -07: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