Commit Graph

18008 Commits

Author SHA1 Message Date
TreeHugger Robot
64059f2eec Merge "Support extra linespacing based on fallback fonts" 2017-08-19 01:15:37 +00:00
TreeHugger Robot
997eafcbf2 Merge "Expose grantPermission via systemApi." 2017-08-18 17:05:19 +00:00
Joachim Sauer
0f1314db8f Adapt ICU 59 API update to Doclava changes.
Add methods that were missing from the previous API update because the
update-api version used for that had different behaviour from the
current one.

Specifically overrides for methods that differ only in sychronization
are now considered API-worthy and weren't before (b/62576297).

All methods added in this commit are methods that exist in the base
class without synchronization and are synchronized in the class they are
now being added in.

Bug: 64807220
Test: m checkapi
Change-Id: Iff584fb72dc8d651f9482b573f4b8cec89840ca6
2017-08-18 11:52:44 +01:00
Casey Burkhardt
4262286fda Merge "Make isAccessibilityButtonSupported public" into oc-mr1-dev am: 8e74686fb4
am: 58770c5759

Change-Id: I65262bf2903b72d60bb4d9cef5be145d8f1f0acd
2017-08-18 01:11:03 +00:00
Casey Burkhardt
58770c5759 Merge "Make isAccessibilityButtonSupported public" into oc-mr1-dev
am: 8e74686fb4

Change-Id: I1db829cce2962e526892ae486ff9567003051a8b
2017-08-18 00:33:16 +00:00
Doris Liu
f374446100 Merge "Expose necessary methods/fields to CTS using testApi" 2017-08-18 00:30:14 +00:00
Casey Burkhardt
8e74686fb4 Merge "Make isAccessibilityButtonSupported public" into oc-mr1-dev 2017-08-17 23:50:43 +00:00
Roozbeh Pournader
737dfead64 Support extra linespacing based on fallback fonts
* Increase the ascent and descent of individual lines in StaticLayout
  as needed, if any fallback fonts that end up getting used call for
  it. For backward compatibility, this is hidden behind a builder
  flag.
* Document in Paint.java that the returned parameters are only for
  the default font, and a layout may need more space based on
  fallbacks used.

Also update for changes in minikin API:

* MinikinFont now requires a method for getting vertical extents
  (ascent, descent, and line gap).
* minikin API now allows asking for vertical extents of laid out
  text.
* minikin API's LineBreaker now returns ascents and descents for each
  line.

Finally, added performances test for creating a StaticLayout.
Follwing are the numbers on a marlin with a stable clock before and
after this CL.

For fixed text almost always hitting the cache:
Before: mean=260684 median=260188 min=258532 standardDeviation=1897
After:  mean=262432 median=261509 min=260429 standardDeviation=2185

For random text almost never hitting the cache:
Before: mean=5971827 median=5991126 min=5886871 standardDeviation=83724
After:  mean=6337093 median=6317010 min=6311222 standardDeviation=40213

Bug: 28963299
Bug: 29063863
Bug: 32057121
Bug: 37756858
Test: bit FrameworksCoreTests:android.text.
Test: bit CtsTextTestCases:*
Change-Id: I482a98ff8f472e8bab4f0ba9d1d7b368858038ff
2017-08-17 12:10:31 -07:00
Hall Liu
6a396b2d02 Merge "Do not throw IOException from RttCall.read()" into oc-mr1-dev am: d33be52592
am: 31efc0e30a

Change-Id: Id81c1060abe1de16d5b6b905956240c868de0d64
2017-08-17 16:36:27 +00:00
Hall Liu
31efc0e30a Merge "Do not throw IOException from RttCall.read()" into oc-mr1-dev
am: d33be52592

Change-Id: I9fe75eee8b3aaf8d96de20dfffbff2a0ad7e6508
2017-08-17 16:27:04 +00:00
Hall Liu
d33be52592 Merge "Do not throw IOException from RttCall.read()" into oc-mr1-dev 2017-08-17 16:17:53 +00:00
Philip P. Moltmann
f3189e6836 Expose grantPermission via systemApi.
Test: none
Bug: 64200118
Change-Id: I9aad9959a48fb5dfb31114145c19cae1128cc33c
2017-08-17 08:38:00 -07:00
Daniel Sandler
1b5b4a9b38 Merge changes from topic "revert-injectors" into oc-mr1-dev am: d33fe05c66
am: bb143bafe2

Change-Id: Ifb14907d0ac210a247d3014235193c13c7e20263
2017-08-17 14:50:53 +00:00
Daniel Sandler
bb143bafe2 Merge changes from topic "revert-injectors" into oc-mr1-dev
am: d33fe05c66

Change-Id: I7e66180252232f22e23e68b8aec7eedbd2bed82b
2017-08-17 14:37:54 +00:00
Daniel Sandler
d33fe05c66 Merge changes from topic "revert-injectors" into oc-mr1-dev
* changes:
  Revert "Add API to allow apps more control over instantiation"
  Revert "Add plugin to swap out recents"
2017-08-17 14:32:40 +00:00
Casey Burkhardt
02f3b807db Make isAccessibilityButtonSupported public
Bug: 62342696
Test: Builds
Change-Id: I02082f2db349181473b2a7fd367fc8892d495fc1
2017-08-17 02:50:45 -07:00
Charles He
478b2b7cbf Merge "Opt-out for always-on VPN: rename API." into oc-mr1-dev am: 8b2513e439
am: 337ee0771e

Change-Id: Ib4eca8d5ea79e5ac65496bee8390e5ce4cd8fb64
2017-08-17 08:12:56 +00:00
Charles He
337ee0771e Merge "Opt-out for always-on VPN: rename API." into oc-mr1-dev
am: 8b2513e439

Change-Id: Ie511c6f1034b75b4e797dbc0ca31c7c5c30f336e
2017-08-17 08:01:53 +00:00
Charles He
8b2513e439 Merge "Opt-out for always-on VPN: rename API." into oc-mr1-dev 2017-08-17 07:54:05 +00:00
Jeff Davidson
96d9986d03 Merge "Merge "Make KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL public." into oc-mr1-dev am: f2a70fc116" into oc-mr1-dev-plus-aosp
am: f98abfaf81

Change-Id: Id24288e3810c045babbc7397edf655f59a4642dd
2017-08-17 06:00:10 +00:00
Hall Liu
22b09c973d Merge "Merge "Revert "Fix lint errors in the streaming API"" am: 42d3eadb37 am: cb63a47d41 am: c7ac478f51 am: e2f5f4b110" into oc-mr1-dev-plus-aosp
am: 701f31e343

Change-Id: Ice1fc35e804b28a4c9ee28a177164d8c7d415aa5
2017-08-17 05:30:48 +00:00
Hall Liu
76344358dc Merge "Merge "Fix lint errors in the streaming API" am: b0f5d57489 am: 90b923f398 am: 34639cbbab am: e168449b32" into oc-mr1-dev-plus-aosp
am: 839a419bdb

Change-Id: I3606e777fbbb3c2a1080dc71f762241fb0c7f199
2017-08-17 03:48:58 +00:00
Lucas Dupin
1d0eda938a Merge "API Council feedback" into oc-mr1-dev am: 07c83d00c9
am: fda1152e59

Change-Id: I056fbfc35e8523f50c6194ce4b80e70eb17b8aee
2017-08-17 03:24:34 +00:00
Romain Guy
11159d15ed Merge "Merge "Hide shared buffer mode/auto refresh on Surface" into oc-mr1-dev am: ee3602595a" into oc-mr1-dev-plus-aosp
am: 9446e27025

Change-Id: Ib0068aee9bc2c4c7b605c5ba024c1fa7c0b59cf4
2017-08-17 03:17:39 +00:00
Jeff Davidson
c4d573345c Merge "Make KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL public." into oc-mr1-dev
am: f2a70fc116

Change-Id: Ib50f88db345783ac735885880daec890efd31b76
2017-08-17 03:02:42 +00:00
Hall Liu
faeb18da84 Merge "Revert "Fix lint errors in the streaming API"" am: 42d3eadb37 am: cb63a47d41 am: c7ac478f51
am: e2f5f4b110

Change-Id: I00442fe091dab72bb114ac77c20845de0050cb0f
2017-08-17 02:01:40 +00:00
Hall Liu
e2f5f4b110 Merge "Revert "Fix lint errors in the streaming API"" am: 42d3eadb37 am: cb63a47d41
am: c7ac478f51

Change-Id: I55f9d7e583950a5a67de8775b6c0f1640430aac8
2017-08-17 01:53:47 +00:00
Hall Liu
c7ac478f51 Merge "Revert "Fix lint errors in the streaming API"" am: 42d3eadb37
am: cb63a47d41

Change-Id: I16e4b79d7fd40bf5d0e500e0cb3ba9bf33113fc8
2017-08-17 01:40:58 +00:00
Hall Liu
cb63a47d41 Merge "Revert "Fix lint errors in the streaming API""
am: 42d3eadb37

Change-Id: I4229c1eb42edba2c2c7df08f87bfded5402c01c7
2017-08-17 01:30:56 +00:00
Hall Liu
42d3eadb37 Merge "Revert "Fix lint errors in the streaming API"" 2017-08-17 01:22:19 +00:00
Doris Liu
197a67435d Expose necessary methods/fields to CTS using testApi
BUG: 62066083
Test: CtsViewTestCases

Change-Id: Iea7d752e38d046e3547c41cb987115472a7630f6
2017-08-17 01:04:45 +00:00
Hall Liu
591fea2504 Revert "Fix lint errors in the streaming API"
This reverts commit e1f10cbd7f.

Change-Id: Id3666b27b0d07b0a1d4f3179f2073aa75440f2ee
2017-08-17 00:46:24 +00:00
Hall Liu
ed85bf291a Merge "Fix lint errors in the streaming API" am: b0f5d57489 am: 90b923f398 am: 34639cbbab
am: e168449b32

Change-Id: Idc7b2897dc4a1bda38455d6fade54153770d176f
2017-08-16 23:59:45 +00:00
Hall Liu
e168449b32 Merge "Fix lint errors in the streaming API" am: b0f5d57489 am: 90b923f398
am: 34639cbbab

Change-Id: I82cb1673fc8a066d5101bde8ae26d97ce781e253
2017-08-16 23:40:02 +00:00
Lucas Dupin
fda1152e59 Merge "API Council feedback" into oc-mr1-dev
am: 07c83d00c9

Change-Id: I115e1145b47d97b29a988133d9ec94ebe6e39637
2017-08-16 23:38:38 +00:00
TreeHugger Robot
abe61c2a47 Merge "Add deltaX/Y to a11y scroll events" 2017-08-16 23:33:09 +00:00
Jeff Davidson
0ac6e0e22c Make KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL public.
There is a reasonable use case for carrier apps to turn off this key
(b/64544341) so it should be visible to apps in the SDK.

Change-Id: I1a06196d4d4c7d6d06026ef74f3f1159c973f8e3
Test: TreeHugger
Fixes: 64721199
2017-08-16 23:30:36 +00:00
Hall Liu
34639cbbab Merge "Fix lint errors in the streaming API" am: b0f5d57489
am: 90b923f398

Change-Id: Ic6bd1488a735f2535e4a34fd2df4dc154a777639
2017-08-16 23:29:08 +00:00
Romain Guy
7d513b6538 Merge "Hide shared buffer mode/auto refresh on Surface" into oc-mr1-dev
am: ee3602595a

Change-Id: Iee7c4a40a545eefeeac0729a825e208fb03eb1b0
2017-08-16 23:24:55 +00:00
Hall Liu
90b923f398 Merge "Fix lint errors in the streaming API"
am: b0f5d57489

Change-Id: Ic12810c6a3c795419ff7440218ffa23bad7d8401
2017-08-16 23:16:30 +00:00
TreeHugger Robot
07c83d00c9 Merge "API Council feedback" into oc-mr1-dev 2017-08-16 22:55:52 +00:00
Hall Liu
b0f5d57489 Merge "Fix lint errors in the streaming API" 2017-08-16 22:51:13 +00:00
Hall Liu
e1f10cbd7f Fix lint errors in the streaming API
Fix the errors that cropped up when trying to upload the unhide CL in
MR1.

Bug: 30981736
Test: manual, with testapps
Change-Id: I94e1bcccea4b9f50dae4c93f247ab78058d15bb5
2017-08-16 11:33:40 -07:00
Christopher Tate
682bd55847 Merge "Add privileged permission for reading the current wallpaper image" into oc-mr1-dev am: 4b7b5a6c59
am: 2402e4b385

Change-Id: Ia9131e41b536a4cccd154d58d7662bc2aa92beb2
2017-08-16 17:15:08 +00:00
Romain Guy
010f082490 Hide shared buffer mode/auto refresh on Surface
Bug: 63858546
Test: Compile & boot

Change-Id: I34372593d4b47b143e65d30f669f883c69653f62
2017-08-16 10:02:10 -07:00
Christopher Tate
2402e4b385 Merge "Add privileged permission for reading the current wallpaper image" into oc-mr1-dev
am: 4b7b5a6c59

Change-Id: I6d8bb5b15b7c9b13edbb6d8b4e3a69af1d9ca17f
2017-08-15 23:50:11 +00:00
TreeHugger Robot
4b7b5a6c59 Merge "Add privileged permission for reading the current wallpaper image" into oc-mr1-dev 2017-08-15 23:38:40 +00:00
Christopher Tate
8a71c48d1c Add privileged permission for reading the current wallpaper image
OEMs can therefore arrange factory-default access to have access prior
to setup or user interaction.

Bug: 30770233
Bug: 64029450
Test: manual

Change-Id: I2cb30721f2a64ef50275b711ca10ca571248504a
2017-08-15 16:36:06 -07:00
Dan Sandler
07fe63e5de Revert "Add API to allow apps more control over instantiation"
This reverts commit 6945710e12.

Bug: 64345190
Test: n/a
Change-Id: Id0aa0f3c9fca64476d163ea8b42a74182050b3ae
2017-08-15 16:48:42 -04:00
Neil Fuller
11f7eebe5b Merge "Change SystemApi as per API council feedback" into oc-mr1-dev
am: a22dcfed28

Change-Id: I924dff530736fced6ca12543ead67314aec11bff
2017-08-15 16:09:41 +00:00