Commit Graph

358535 Commits

Author SHA1 Message Date
Seigo Nonaka
7fd36d19e3 Reorganize MeasuredText API
This CL changes the MeasuredText API:
- Rename MeasuredText to PrecomputedText.
- PrecomputedText is no longer a Spanned.
- Introduce PrecomputedText.Param which holds all text layout parameters.
- Add API to get PrecomputedText.Param from TextView.
- Remove MeasuredText.Builder and add PrecomputedText.create method instead.
- Remove setRange from MeasuredText since it is not for normal use case.
  (It can not be used for TextView)

Here is a performance scores: (median, walleye-userdebug, N=20)

StaticLayout creation time (w/o patch -> w/ patch)
 PrecomputedText Balanced Hyphenation  :    743,615 ->    737,145: (-0.9%)
 PrecomputedText Balanced NoHyphenation:    551,544 ->    542,715: (-1.6%)
 PrecomputedText Greedy Hyphenation    :    500,343 ->    499,601: (-0.1%)
 PrecomputedText Greedy NoHyphenation  :    497,987 ->    492,587: (-1.1%)
 RandomText Balanced Hyphenation       : 19,100,592 -> 19,135,289: (+0.2%)
 RandomText Balanced NoHyphenation     :  8,015,088 ->  7,954,260: (-0.8%)
 RandomText Greedy Hyphenation         :  7,950,915 ->  7,877,424: (-0.9%)
 RandomText Greedy NoHyphenation       :  7,939,337 ->  7,863,471: (-1.0%)

PrecomputedText creation time (w/o patch -> w/ patch)
 NoStyled Hyphenation                  : 18,935,638 -> 18,925,422: (-0.1%)
 NoStyled Hyphenation WidthOnly        : 18,469,726 -> 18,978,413: (+2.8%)
 NoStyled NoHyphenation                :  7,940,792 ->  7,919,127: (-0.3%)
 NoStyled NoHyphenation WidthOnly      :  7,463,230 ->  7,922,643: (+6.2%)
 Styled Hyphenation                    : 14,822,501 -> 14,809,017: (-0.1%)
 Styled Hyphenation WidthOnly          : 13,891,770 -> 14,656,617: (+5.5%)
 Styled NoHyphenation                  : 14,511,134 -> 14,301,503: (-1.4%)
 Styled NoHyphenation WidthOnly        : 13,495,345 -> 14,264,314: (+5.7%)

StaticLayout draw time (w/o patch -> w/ patch)
 PrecomputedText NoStyled              :    663,974 ->    661,610: (-0.4%)
 PrecomputedText NoStyled WithoutCache :    648,294 ->    648,766: (+0.1%)
 PrecomputedText Styled                :    879,322 ->    852,770: (-3.0%)
 PrecomputedText Styled WithoutCache   :  1,084,570 ->  1,110,147: (+2.4%)
 RandomText NoStyled                   :    565,682 ->    555,435: (-1.8%)
 RandomText NoStyled WithoutCache      :  9,070,533 ->  9,064,825: (-0.1%)
 RandomText Styled                     :  2,955,202 ->  2,962,008: (+0.2%)
 RandomText Styled WithoutCache        : 12,242,325 -> 12,228,573: (-0.1%)

Bug: 67504091
Bug: 73091756
Test: bit FrameworksCoreTests:android.text.
Test: atest CtsWidgetTestCases:EditTextTest \
    CtsWidgetTestCases:TextViewFadingEdgeTest \
    FrameworksCoreTests:TextViewFallbackLineSpacingTest \
    FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest \
    CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest \
    CtsTextTestCases
Change-Id: I7db9e2ca4db68a16648cfb8fcf63555f501304c2
2018-02-12 20:50:41 -08:00
TreeHugger Robot
d3905e6544 Merge "Fix issue #72151749: Lock down 'clear cache' functionality to..." 2018-02-12 18:19:38 +00:00
TreeHugger Robot
b05edfe1ab Merge "Add more APIs to hidden API greylist" 2018-02-12 18:15:36 +00:00
Chavi Weingarten
44c165752b Merge "Prevent setting negative alpha for dim animations." 2018-02-12 18:01:21 +00:00
TreeHugger Robot
ffbc821046 Merge "Revert "Revert "Fix MediaDrm security level APIs""" 2018-02-12 17:55:50 +00:00
Beverly Tai
df210b4369 Merge "Added DND icon on muted streams on volume dialog" 2018-02-12 17:41:26 +00:00
Wyatt Riley
46304584a5 Merge "Non-functional refactor of Location Extras" 2018-02-12 17:01:10 +00:00
David Brazdil
70bcc12021 Add more APIs to hidden API greylist
APIs seen in use by common apps.

Bug: 73211878
Bug: 73211350
Bug: 73211163
Bug: 73211208
Bug: 73103890
Bug: 73103761
Test: make
Change-Id: Ic438f4614f6452b14ea07f4c35b39d3be34ff49d
2018-02-12 16:36:28 +00:00
hansson
90f285ba51 Merge "CtsShim: build tweaks for 64-bit only builds." am: a869d14343 am: a4428dc5e4
am: 60108dce1c

Change-Id: Ifc575a70b4b2fda3155353c78239a35220cf4b7d
2018-02-12 15:23:27 +00:00
Neil Fuller
d93e8866a3 Merge "Add support for time zone notifications" 2018-02-12 15:14:49 +00:00
hansson
60108dce1c Merge "CtsShim: build tweaks for 64-bit only builds." am: a869d14343
am: a4428dc5e4

Change-Id: I7e9db0098aeb6069dcd1f048a0cd6f690c947815
2018-02-12 15:10:22 +00:00
hansson
a4428dc5e4 Merge "CtsShim: build tweaks for 64-bit only builds."
am: a869d14343

Change-Id: I49f0696119d1aa52e420fa7c676a448d569ea941
2018-02-12 14:57:46 +00:00
TreeHugger Robot
9036a88d95 Merge "Logging for linkify selections" 2018-02-12 14:44:35 +00:00
Beverly
da0fe825a4 Added DND icon on muted streams on volume dialog
Now users cannot toggle off dnd from the volume dialog
since the ringer (volume footer) will be disabled if it's muted by dnd

Test: manual
Change-Id: I7d4dd552e0f791ee52135272d8d0837899abe152
Fixes: 72711020
2018-02-12 09:14:23 -05:00
TreeHugger Robot
d591904d1d Merge "Fix size of parcelled TextClassification icons." 2018-02-12 12:17:58 +00:00
TreeHugger Robot
f62b1d36df Merge "More unit tests for PerformBackupTask" 2018-02-12 11:07:51 +00:00
Narayan Kamath
bdaea11bf8 Merge "WallpaperCropper: Remove dependency on telephony-common." 2018-02-12 10:59:06 +00:00
hansson
a869d14343 Merge "CtsShim: build tweaks for 64-bit only builds." 2018-02-12 10:48:30 +00:00
Petr Cermak
10011fa917 Replace smart reply boolean setting with key-value list
This patch replaces the recently introduced
Settings.Global.ENABLE_SMART_REPLIES_IN_NOTIFICATIONS boolean setting
with a new Settings.Global.SMART_REPLIES_IN_NOTIFICATIONS_FLAGS
key-value list.

Rationale: This will allow us to add and tweak smart reply parameters
without polluting the global settings namespace.

Bug: 67765414
Test: atest SmartReplyConstantsTest
Change-Id: I284bb6b31618a234c4772d16ad6190a713035f1b
2018-02-12 09:40:37 +00:00
Bernardo Rufino
228a649635 More unit tests for PerformBackupTask
Around transport and agent failures. Caught a few possible errors, check
TODOs.

Test: m -j RunFrameworksServicesRoboTests
Change-Id: I9d04f4253511032473885ce6c0856c52639f2957
2018-02-12 09:18:12 +00:00
David Brazdil
ce706f6bfd Merge "Greylist java.nio.Buffer.address" 2018-02-12 06:31:37 +00:00
Baisheng Zheng
20b5dec9d3 Merge "Add dedicated signature permissions to platform manifest and shell manifest which could enable/disable BT and Wifi state on watch" 2018-02-12 01:34:00 +00:00
Zhi An Ng
d33dbf0e04 Merge "Log app start to statsd" 2018-02-12 00:34:36 +00:00
Jeff Tinker
2bca525460 Revert "Revert "Fix MediaDrm security level APIs""
This reverts commit fda717d501.

Change-Id: I5e51c7e8d7ab0626fdfd9726278cb762b79a512e
2018-02-11 18:59:14 +00:00
TreeHugger Robot
71a8fcfdc7 Merge "Revert "Fix MediaDrm security level APIs"" 2018-02-11 17:16:14 +00:00
Tobias Thierer
fda717d501 Revert "Fix MediaDrm security level APIs"
This reverts commit 778639efbe.

Reason for revert: Build cop here. The CL topic that I'm reverting broke several builds: Drm.h's openSession(Vector<uint8_t> &sessionId) hides overloaded virtual function openSession(DrmPlugin::SecurityLevel securityLevel, ..) from IDrm.h.

https://android-build.googleplex.com/builds/submitted/4598692/full-eng/latest/view/logs/build_error.log

Change-Id: I86bb202125b17bdeea12c414f3eca2a9e016dac2
2018-02-11 15:02:09 +00:00
baisheng
f62d869ea5 Add dedicated signature permissions to platform manifest and shell manifest which could enable/disable BT and Wifi state on watch
Skip Bluetooth consent UI if running on shell, also fix a typo in log message.

Test: Manual test running `adb root; adb shell service call bluetooth_manager 6` and see if BT is on without consent UI.
Bug: 69872231
Change-Id: Ie513794a7fc13041259fd84734bfc651495ba5cf
2018-02-11 15:03:19 +08:00
TreeHugger Robot
049ecedd92 Merge "Update netpolicy,bstats tests to not assume DUT will be plugged-in." 2018-02-11 03:06:22 +00:00
Sudheer Shanka
eab672411e Update netpolicy,bstats tests to not assume DUT will be plugged-in.
Bug: 73037837
Test: atest com.android.server.net.ConnOnActivityStartTest
Test: atest com.android.internal.os.BstatsCpuTimesValidationTest
Change-Id: I0647b6746d7d2cc9e4d24dfb14321f3fa5ac7f1c
2018-02-10 16:31:34 -08:00
Tomasz Wasilczyk
e6a72cce0b Remove broadcastradio HAL 1.2 support from the framework.
Bug: 62945293
Test: it boots
Change-Id: I7f434ed7ef07d0cf9afa93c17e78f2bf80f43b36
2018-02-10 12:40:14 +00:00
Pavlin Radoslavov
606a384678 Merge "Use proper string formatting for the "Active device" string" am: 1b5703f9e9 am: 7cb1dbd38a
am: b59037596a

Change-Id: Ie29b906d4592b613dc91f3ad858e543ff8e5f7a2
2018-02-10 09:40:05 +00:00
Pavlin Radoslavov
b59037596a Merge "Use proper string formatting for the "Active device" string" am: 1b5703f9e9
am: 7cb1dbd38a

Change-Id: I7b9eee4064112569c2dead6bc10d232d2b4cc118
2018-02-10 09:27:54 +00:00
Pavlin Radoslavov
7cb1dbd38a Merge "Use proper string formatting for the "Active device" string"
am: 1b5703f9e9

Change-Id: I53fcb586273b02339e83f2514274e3be662b67ba
2018-02-10 09:16:20 +00:00
Chen Xu
e8b3a537d3 Merge "add a current table in CarrierIdProvider" 2018-02-10 05:46:49 +00:00
TreeHugger Robot
b8ce4e96d1 Merge "Register for fallback vibration's death" 2018-02-10 04:30:30 +00:00
TreeHugger Robot
d6d5e0cc77 Merge changes from topic "revert-assetmanager2-02-09-2018"
* changes:
  Revert "Replace AssetManager with AssetManager2 implementation"
  Revert "libandroidfw: Make sure to set the 'app as lib' flag"
  Revert "Make idiomatic use of ApkAssets and AssetManager"
  Revert "libandroidfw: Add ApplyStyle and SetConfiguration benchmark"
  Revert "libandroidfw: Improve performance of AssetManager2"
  Revert "AssetManager2: Allow out of order type/type spec"
  Revert "AssetManager2: Fix list function"
  Revert "AssetManager2: Fix issue with native cast"
2018-02-10 03:42:41 +00:00
TreeHugger Robot
8a1bacaf91 Merge "Benchmark: stats_write" 2018-02-10 03:33:20 +00:00
TreeHugger Robot
7841ff5e88 Merge "Fix MediaDrm security level APIs" 2018-02-10 03:28:03 +00:00
TreeHugger Robot
a6ed522528 Merge "AOD font sizes" 2018-02-10 02:45:25 +00:00
Ng Zhi An
bbefdec6a4 Log app start to statsd
Bug: 72713338
Test: manual, open app, logcat -b stats
Change-Id: Ic5dc74a637601df443de29eb6f13bd63dd03c6e7
2018-02-09 18:43:11 -08:00
TreeHugger Robot
ef8e8ef334 Merge "MediaPlayer2: hook up srcId." 2018-02-10 02:31:46 +00:00
Tyler Gunn
4a0dde1f1c Merge "Add InCallService docs to state prerequisites for be being a dialer app." am: 6a3031713c am: 07545d18a2
am: a5627cd0e2

Change-Id: I8b423fba0e10abffc757e8d5ad4feb3b01732e01
2018-02-10 02:26:52 +00:00
TreeHugger Robot
a27ae0fdd1 Merge "Add clear method to ProtoOutputStream so it is reusable by just rewinding its internal pointer." 2018-02-10 02:20:30 +00:00
Tyler Gunn
a5627cd0e2 Merge "Add InCallService docs to state prerequisites for be being a dialer app." am: 6a3031713c
am: 07545d18a2

Change-Id: I040613717aef7626dff3eafb2f49c943255d5795
2018-02-10 02:11:17 +00:00
nharold
29d6c4367c Merge "Require NETWORK_STACK Permission for IpSec Tunnel Mode" am: 43699e90f3 am: e736f83caf
am: 0f7857e587

Change-Id: Ib33ccecfe2fc600c05a208d24df10a474addb0e5
2018-02-10 02:11:15 +00:00
TreeHugger Robot
b37ef221b9 Merge "Remove unnecessary interactive check from alarm dumpsys" 2018-02-10 02:05:28 +00:00
Treehugger Robot
1b5703f9e9 Merge "Use proper string formatting for the "Active device" string" 2018-02-10 02:05:12 +00:00
TreeHugger Robot
b6ff8364c9 Merge "[3rd try] JobScheduler to use UID active state for job exemption" 2018-02-10 01:59:36 +00:00
nharold
0f7857e587 Merge "Require NETWORK_STACK Permission for IpSec Tunnel Mode" am: 43699e90f3
am: e736f83caf

Change-Id: If7330b4fdf5d2ccbddb590ab81a4b19c1f612b66
2018-02-10 01:57:50 +00:00
Tyler Gunn
07545d18a2 Merge "Add InCallService docs to state prerequisites for be being a dialer app."
am: 6a3031713c

Change-Id: I08fb54de452d6f334232d24caf8f89caba85c515
2018-02-10 01:52:07 +00:00