Age | Commit message (Collapse) | Author |
|
Two APIs were added as @SystemApi and then @Deprecated within
the same API level (RVC). These methods were never exposed
publicly, and instead were replaced with more-appropriate
named methods that were added to the public API. As such they
were not fully deleted in RVC but were never exposed and expected
to be deleted following SDK finalization. This CL does precisely
that - removes all traces of these methods, as per the will of
the API Council.
-Remove #getDataConnectionLinkProperties()
-Remove #getDataConnectionNetworkType()
Bug: 152787887
Test: make update-api && make
Merged-In: I89463b0bd641e9316f90fe4f535d326f6e74a061
Change-Id: I89463b0bd641e9316f90fe4f535d326f6e74a061
(cherry picked from commit 3a47293cb4624c1dd1cceab49cfbe761349add05)
|
|
Bug: 166295507
Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27
Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
|
|
This reorders methods, omits a redundant "implements" spec, and adds
<x>ValueExact() methods, which are in OpenJDK 8, but hadn't been
implemented on Android.
Also update the boot image profile to compile BigInteger-required
methods that used to be native. Some of these must be compiled to
avoid ART test timeouts.
Bug: 136887041
Bug: 119491938
Bug: 28214673
Bug: 28251030
Bug: 2950143
Test: AOSP Boots. Ran some manual Calculator tests on Cuttlefish.
Change-Id: Idd72ec6a6fd54ed4ad96a82b26840b41a3882678
|
|
= Perf stats =
(lower is better)
Avg Startup time change: -1.75%
Avg Memory at boot PSS change: -0.44%
Code size: +3.36%
Boot time: -0.33%
=Generation Strategy=
method_threshold: 0.1
image_class_threshold: 0.1
preloaded_classes_threshold: 0.3
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
key: "android"
value: 0.01
}
priority_packages_thresholds {
key: "com.android.systemui"
value: 0.01
}
priority_packages_thresholds {
key: "com.google.android.GoogleCamera"
value: 0.01
}
priority_packages_thresholds {
key: "com.google.android.webview"
value: 0.01
}
=Profile stats=
Data info:
- total aggregations: 7130
- number of (device types, builds): 205
File boot-image-profile.txt
- hot methods: 1746 added, 2138 removed
- methods: 1705 added, 2226 removed
- classes: 2103 added, 240 removed
- totals now: 39682 hot methods, 40091 methods, 13821 classes
- totals before: 40074 hot methods, 40612 methods, 11958 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 1369, 1520, 569, 202, 26942, 8058
com.android, 243, 246, 995, 23, 4450, 3033
java, 94, 285, 107, 0, 6526, 1778
android.view, 191, 316, 19, 53, 4089, 813
android.hardware, 13, 44, 24, 2, 718, 694
android.bluetooth, 6, 22, 0, 1, 269, 168
android.animation, 0, 14, 0, 0, 458, 71
android.app, 103, 315, 12, 20, 3749, 920
android.content, 41, 120, 31, 46, 1996, 523
android.graphics, 33, 53, 0, 0, 2180, 302
android.icu, 8, 127, 0, 0, 2293, 609
android.media, 65, 66, 10, 8, 1040, 511
android.net, 25, 49, 29, 20, 1054, 357
android.widget, 89, 118, 1, 1, 2059, 344
File preloaded-classes
- hot methods: 0 added, 0 removed
- methods: 0 added, 0 removed
- classes: 428 added, 246 removed
- totals now: 0 hot methods, 0 methods, 12125 classes
- totals before: 0 hot methods, 0 methods, 11943 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 0, 0, 341, 204, 0, 7817
com.android, 0, 0, 86, 23, 0, 2122
java, 0, 0, 1, 3, 0, 1668
android.view, 0, 0, 2, 53, 0, 796
android.hardware, 0, 0, 5, 2, 0, 675
android.bluetooth, 0, 0, 0, 1, 0, 168
android.app, 0, 0, 0, 20, 0, 907
android.content, 0, 0, 2, 46, 0, 493
android.icu, 0, 0, 0, 1, 0, 608
android.media, 0, 0, 1, 8, 0, 502
android.net, 0, 0, 0, 20, 0, 327
android.widget, 0, 0, 0, 1, 0, 342
File art-profile
- hot methods: 1658 added, 5108 removed
- methods: 2941 added, 9987 removed
- classes: 450 added, 1451 removed
- totals now: 24562 hot methods, 40313 methods, 5925 classes
- totals before: 28012 hot methods, 47359 methods, 6926 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 34, 12, 15, 3, 546, 305
com.android, 1612, 5094, 434, 1448, 23915, 5572
android.hardware, 10, 0, 0, 0, 220, 133
android.net, 21, 11, 14, 3, 290, 147
InternalReferenceRawProfileId: 2161
InternalReferenceCandidateProfileId: 2193
Test: build & benchmark
Bug: 148471769
Change-Id: Id1728cd51db8052e6f47cfe006a3ca4b62766f9e
|
|
It was removed from boot-image-profile when we tried to expose them
for mainlining. Now it's @hide again, so we should add it back
into boot-image-profile otherwise it will break appss.
Bug: 153825725
Test: build
Change-Id: I7dcce69d3d2b3b2601f98817a4ee4467f7efb47a
|
|
= Perf stats =
(lower is better)
Avg Startup time change: -1.36%
Avg Memory at boot PSS change: -5.05%
Code size: -5.05%
Boot time: -2.79%
=Generation Strategy=
method_threshold: 0.1
image_class_threshold: 0.1
preloaded_classes_threshold: 0.1
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
key: "android"
value: 0.01
}
priority_packages_thresholds {
key: "com.android.systemui"
value: 0.01
}
priority_packages_thresholds {
key: "com.google.android.GoogleCamera"
value: 0.01
}
priority_packages_thresholds {
key: "com.google.android.dialer"
value: 0.05
}
priority_packages_thresholds {
key: "com.google.android.gms"
value: 0.05
}
priority_packages_thresholds {
key: "com.google.android.webview"
value: 0.01
}
=Profile stats=
Data info:
- total aggregations: 4215
- number of (device types, builds): 137
File boot-image-profile.txt
- hot methods: 876 added, 5178 removed
- methods: 812 added, 5267 removed
- classes: 466 added, 428 removed
- totals now: 40072 hot methods, 40610 methods, 11958 classes
- totals before: 44374 hot methods, 45065 methods, 11920 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 597, 3775, 372, 334, 27091, 7691
com.android, 198, 478, 89, 89, 4453, 2061
java, 68, 715, 4, 3, 6717, 1671
android.view, 162, 220, 66, 0, 4214, 847
android.hardware, 26, 109, 19, 0, 749, 672
android.bluetooth, 3, 96, 5, 0, 285, 169
android.animation, 1, 4, 1, 0, 472, 71
android.app, 148, 374, 42, 2, 3961, 928
android.content, 52, 890, 26, 0, 2075, 538
android.graphics, 11, 51, 6, 0, 2200, 302
android.icu, 14, 99, 8, 0, 2412, 609
android.media, 15, 77, 39, 0, 1041, 509
android.net, 30, 185, 18, 5, 1078, 348
android.widget, 3, 203, 33, 0, 2088, 344
File preloaded-classes
- hot methods: 0 added, 0 removed
- methods: 0 added, 0 removed
- classes: 465 added, 429 removed
- totals now: 0 hot methods, 0 methods, 11942 classes
- totals before: 0 hot methods, 0 methods, 11906 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 0, 0, 371, 334, 0, 7679
com.android, 0, 0, 89, 89, 0, 2060
java, 0, 0, 4, 3, 0, 1670
android.view, 0, 0, 66, 0, 0, 847
android.hardware, 0, 0, 19, 0, 0, 672
android.bluetooth, 0, 0, 5, 0, 0, 169
android.animation, 0, 0, 1, 0, 0, 71
android.app, 0, 0, 41, 2, 0, 927
android.content, 0, 0, 26, 0, 0, 537
android.graphics, 0, 0, 6, 0, 0, 302
android.icu, 0, 0, 8, 0, 0, 609
android.media, 0, 0, 39, 0, 0, 509
android.net, 0, 0, 18, 5, 0, 347
android.widget, 0, 0, 33, 0, 0, 343
File art-profile
- hot methods: 1028 added, 0 removed
- methods: 3388 added, 0 removed
- classes: 261 added, 0 removed
- totals now: 28014 hot methods, 47361 methods, 6926 classes
- totals before: 26986 hot methods, 43973 methods, 6665 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 29, 0, 7, 0, 524, 293
com.android, 996, 0, 253, 0, 27399, 6586
android.hardware, 2, 0, 0, 0, 210, 133
android.media, 0, 0, 1, 0, 0, 1
android.net, 26, 0, 6, 0, 280, 136
InternalReferenceRawProfileId: 1088
InternalReferenceCandidateProfileId: 1092
Bug: 148471769
Test: build & benchmark
Change-Id: I165d69a3a50b504e226d910f328da635571870a6
|
|
= Perf stats =
(lower is better)
Avg Startup time change: -4.03%
Avg Memory at boot PSS change: -0.49%
Code size: +53.37%
Boot time: +2.98%
=Generation Strategy=
method_threshold: 0.1
image_class_threshold: 0.1
preloaded_classes_threshold: 0.1
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
key: "android"
value: 0.01
}
priority_packages_thresholds {
key: "com.android.systemui"
value: 0.01
}
priority_packages_thresholds {
key: "com.google.android.GoogleCamera"
value: 0.01
}
priority_packages_thresholds {
key: "com.google.android.dialer"
value: 0.01
}
priority_packages_thresholds {
key: "com.google.android.gms"
value: 0.01
}
priority_packages_thresholds {
key: "com.google.android.webview"
value: 0.01
}
=Profile stats=
Data info:
- total aggregations: 2637
- number of (device types, builds): 94
File boot-image-profile.txt
- hot methods: 21082 added, 1 removed
- methods: 21770 added, 1 removed
- classes: 117 added, 3 removed
- totals now: 44374 hot methods, 45065 methods, 11920 classes
- totals before: 23293 hot methods, 23296 methods, 11806 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 15134, 0, 95, 0, 30269, 7653
com.android, 3423, 1, 20, 0, 4733, 2061
java, 1988, 0, 2, 3, 7364, 1670
android.view, 1973, 0, 8, 0, 4272, 781
android.hardware, 677, 0, 4, 0, 832, 653
android.bluetooth, 297, 0, 0, 0, 378, 164
android.animation, 115, 0, 0, 0, 475, 70
android.app, 2165, 0, 3, 0, 4187, 888
android.content, 1765, 0, 4, 0, 2913, 512
android.graphics, 639, 0, 4, 0, 2240, 296
android.icu, 368, 0, 64, 0, 2497, 601
android.media, 720, 0, 3, 0, 1103, 470
android.net, 748, 0, 2, 0, 1233, 335
android.widget, 1387, 0, 0, 0, 2288, 311
File preloaded-classes
- hot methods: 0 added, 0 removed
- methods: 0 added, 0 removed
- classes: 117 added, 3 removed
- totals now: 0 hot methods, 0 methods, 11905 classes
- totals before: 0 hot methods, 0 methods, 11791 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 0, 0, 95, 0, 0, 7642
com.android, 0, 0, 20, 0, 0, 2060
java, 0, 0, 2, 3, 0, 1669
android.view, 0, 0, 8, 0, 0, 781
android.hardware, 0, 0, 4, 0, 0, 653
android.app, 0, 0, 3, 0, 0, 888
android.content, 0, 0, 4, 0, 0, 511
android.graphics, 0, 0, 4, 0, 0, 296
android.icu, 0, 0, 64, 0, 0, 601
android.media, 0, 0, 3, 0, 0, 470
android.net, 0, 0, 2, 0, 0, 334
File art-profile
- hot methods: 2191 added, 0 removed
- methods: 3356 added, 0 removed
- classes: 484 added, 0 removed
- totals now: 26986 hot methods, 43973 methods, 6665 classes
- totals before: 24795 hot methods, 40617 methods, 6181 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 19, 0, 18, 0, 495, 286
com.android, 2171, 0, 466, 0, 26403, 6333
android.hardware, 9, 0, 13, 0, 208, 133
android.content, 1, 0, 0, 0, 2, 3
android.net, 9, 0, 5, 0, 254, 130
InternalReferenceRawProfileId: 494
InternalReferenceCandidateProfileId: 506
Bug: 148471769
Test: build & benchmark
Change-Id: I5773982b7cd3c9925e0ff5fd3cfbe8e8fb8c3522
|
|
= Perf stats =
(lower is better)
Avg Startup time change: -1.35%
Avg Memory at boot PSS change: -4.25%
Code size: +5.52%
Boot time: +0.03%
=Generation Strategy=
method_threshold: 0.1
image_class_threshold: 0.1
preloaded_classes_threshold: 0.1
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
key: "android"
value: 0.04
}
priority_packages_thresholds {
key: "com.android.systemui"
value: 0.05
}
priority_packages_thresholds {
key: "com.google.android.GoogleCamera"
value: 0.05
}
priority_packages_thresholds {
key: "com.google.android.dialer"
value: 0.05
}
priority_packages_thresholds {
key: "com.google.android.gms"
value: 0.05
}
priority_packages_thresholds {
key: "com.google.android.webview"
value: 0.05
}
=Profile stats=
Data info:
- total aggregations: 1935
- number of (device types, builds): 70
File boot-image-profile.txt
- hot methods: 1179 added, 413 removed
- methods: 1174 added, 413 removed
- classes: 1801 added, 0 removed
- totals now: 23293 hot methods, 23296 methods, 11806 classes
- totals before: 22527 hot methods, 22535 methods, 10005 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 949, 338, 1461, 0, 15135, 7558
com.android, 55, 29, 254, 0, 1311, 2041
java, 134, 31, 59, 0, 5376, 1671
android.view, 194, 31, 119, 0, 2299, 773
android.hardware, 6, 24, 89, 0, 155, 649
android.bluetooth, 6, 4, 9, 0, 81, 164
android.animation, 22, 0, 0, 0, 360, 70
android.app, 66, 64, 132, 0, 2022, 885
android.content, 15, 25, 108, 0, 1148, 508
android.graphics, 54, 10, 8, 0, 1601, 292
android.icu, 238, 7, 288, 0, 2129, 537
android.media, 22, 8, 66, 0, 383, 467
android.net, 7, 53, 83, 0, 485, 333
android.widget, 167, 0, 31, 0, 901, 311
File preloaded-classes
- hot methods: 0 added, 0 removed
- methods: 0 added, 0 removed
- classes: 1799 added, 0 removed
- totals now: 0 hot methods, 0 methods, 11791 classes
- totals before: 0 hot methods, 0 methods, 9992 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 0, 0, 1461, 0, 0, 7548
com.android, 0, 0, 254, 0, 0, 2040
java, 0, 0, 59, 0, 0, 1670
android.view, 0, 0, 119, 0, 0, 773
android.hardware, 0, 0, 89, 0, 0, 649
android.bluetooth, 0, 0, 9, 0, 0, 164
android.app, 0, 0, 132, 0, 0, 885
android.content, 0, 0, 108, 0, 0, 507
android.graphics, 0, 0, 8, 0, 0, 292
android.icu, 0, 0, 288, 0, 0, 537
android.media, 0, 0, 66, 0, 0, 467
android.net, 0, 0, 83, 0, 0, 332
android.widget, 0, 0, 31, 0, 0, 310
File art-profile
- hot methods: 1508 added, 51 removed
- methods: 1174 added, 110 removed
- classes: 253 added, 55 removed
- totals now: 24797 hot methods, 40621 methods, 6183 classes
- totals before: 23340 hot methods, 39557 methods, 5985 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 21, 4, 26, 1, 476, 268
com.android, 1478, 47, 222, 54, 24234, 5869
android.hardware, 12, 4, 2, 1, 199, 120
android.net, 9, 0, 24, 0, 245, 125
InternalReferenceRawProfileId: 463
InternalReferenceCandidateProfileId: 465
Test: build & benchmark
Bug: 148471769
Change-Id: Iedee8b9637fd7cc621f32545bc354d1a69a3650e
(cherry picked from commit 435ffc9d43e3ecb4b7b56e3756be75ea14d46641)
|
|
= Perf stats =
(lower is better)
Avg Startup time change: -2.79%
Avg Memory at boot PSS change: -9.64%
Code size: -31.34%
Boot time: -3.78%
Atp Tests:
health/memory/boot
health/microbench/startup/thirdparty/stable-apps/open-twitter
health/microbench/startup/thirdparty/stable-apps/open-snapchat
health/microbench/startup/thirdparty/stable-apps/open-netflix
health/microbench/startup/thirdparty/stable-apps/open-instagram
health/microbench/startup/thirdparty/stable-apps/open-facebookmessenger
health/microbench/startup/thirdparty/stable-apps/open-facebook
health/microbench/startup/firstparty/open-youtube
health/microbench/startup/firstparty/open-settings
health/microbench/startup/firstparty/open-photos
health/microbench/startup/firstparty/open-phone
health/microbench/startup/firstparty/open-messenger
health/microbench/startup/firstparty/open-maps
health/microbench/startup/firstparty/open-google
health/microbench/startup/firstparty/open-gmail
health/microbench/startup/firstparty/open-contacts
health/microbench/startup/firstparty/open-clock
health/microbench/startup/firstparty/open-chrome
health/microbench/startup/firstparty/open-camera
health/microbench/startup/firstparty/open-calendar
health/microbench/startup/firstparty/open-calculator
asit/perf/hermetic_app_launch_small_test
asit/perf/boottime_test
=Generation Strategy=
method_threshold: 0.1
image_class_threshold: 0.9
preloaded_classes_threshold: 0.9
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
key: "android"
value: 0.04
}
priority_packages_thresholds {
key: "com.google.android.gms"
value: 0.05
}
priority_packages_thresholds {
key: "com.google.android.webview"
value: 0.05
}
priority_packages_thresholds {
key: "com.google.android.GoogleCamera"
value: 0.05
}
priority_packages_thresholds {
key: "com.google.android.dialer"
value: 0.05
}
=Profile stats=
Data info:
- total aggregations: 1151
- number of (device types, builds): 61
File boot-image-profile.txt
- hot methods: 4265 added, 18862 removed
- methods: 3289 added, 25892 removed
- classes: 1028 added, 619 removed
- totals now: 22527 hot methods, 22535 methods, 9596 classes
- totals before: 37124 hot methods, 45138 methods, 9596 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 4032, 12915, 354, 508, 14524, 6097
com.android, 122, 2930, 674, 69, 1285, 1787
java, 72, 2192, 0, 25, 5273, 1612
android.view, 539, 1314, 1, 39, 2136, 654
android.hardware, 27, 628, 24, 14, 173, 560
android.bluetooth, 22, 186, 0, 2, 79, 155
android.animation, 77, 93, 0, 0, 338, 70
android.app, 340, 1903, 5, 39, 2020, 753
android.content, 71, 1641, 1, 32, 1158, 400
android.graphics, 296, 495, 2, 4, 1557, 284
android.icu, 1898, 0, 249, 0, 1898, 249
android.media, 73, 672, 11, 24, 369, 401
android.net, 74, 837, 24, 175, 531, 250
android.widget, 115, 876, 0, 15, 734, 280
File preloaded-classes
- hot methods: 0 added, 0 removed
- methods: 0 added, 0 removed
- classes: 1028 added, 534 removed
- totals now: 0 hot methods, 0 methods, 9498 classes
- totals before: 0 hot methods, 0 methods, 9498 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 0, 0, 354, 454, 0, 6087
com.android, 0, 0, 674, 64, 0, 1786
java, 0, 0, 0, 7, 0, 1611
android.view, 0, 0, 1, 39, 0, 654
android.hardware, 0, 0, 24, 12, 0, 560
android.bluetooth, 0, 0, 0, 2, 0, 155
android.app, 0, 0, 5, 36, 0, 753
android.content, 0, 0, 1, 29, 0, 399
android.graphics, 0, 0, 2, 4, 0, 284
android.icu, 0, 0, 249, 0, 0, 249
android.media, 0, 0, 11, 21, 0, 401
android.net, 0, 0, 24, 174, 0, 249
android.widget, 0, 0, 0, 14, 0, 279
File art-profile
- hot methods: 11611 added, 0 removed
- methods: 15375 added, 0 removed
- classes: 2513 added, 0 removed
- totals now: 23340 hot methods, 39557 methods, 3473 classes
- totals before: 11729 hot methods, 24182 methods, 3473 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 229, 0, 106, 0, 459, 243
com.android, 11334, 0, 2387, 0, 22803, 5702
android.hardware, 104, 0, 74, 0, 191, 119
android.app, 0, 0, 1, 0, 1, 2
android.net, 124, 0, 28, 0, 236, 101
InternalReferenceRawProfileId: 383
InternalReferenceCandidateProfileId: 388
Test: build & benchmark
Bug: 148471769
Change-Id: I1726b729dbbb60e5983670432a2714e8911d3755
|
|
=Generation Strategy=
method_threshold: 0.02
image_class_threshold: 0.02
preloaded_classes_threshold: 0.2
upgrade_startup_methods_to_hot: true
method_threshold_for_image_classes: 5.0E-4
system_server_threshold: 0.0
priority_packages_thresholds {
key: "android"
value: 0.005
}
priority_packages_thresholds {
key: "com.google.android.gms"
value: 0.005
}
priority_packages_thresholds {
key: "com.android.chrome"
value: 0.005
}
priority_packages_thresholds {
key: "com.google.android.GoogleCamera"
value: 0.005
}
=Profile stats=
Data info:
- total aggregations: 593
- number of (device types, builds): 42
File boot-image-profile.txt
- hot methods: 21552 added, 208 removed
- methods: 29176 added, 88 removed
- classes: 88 added, 813 removed
- totals now: 37124 hot methods, 45138 methods, 10321 classes
- totals before: 15780 hot methods, 16050 methods, 10321 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 15476, 155, 68, 85, 23407, 6251
com.android, 2832, 17, 4, 724, 4093, 1182
java, 2358, 28, 8, 4, 7393, 1637
android.view, 1971, 26, 2, 4, 2911, 692
android.hardware, 681, 6, 4, 24, 774, 550
android.bluetooth, 193, 16, 0, 0, 243, 157
android.animation, 165, 1, 0, 0, 354, 70
android.app, 2357, 38, 5, 2, 3583, 787
android.content, 1608, 14, 12, 7, 2728, 431
android.graphics, 908, 5, 0, 0, 1756, 286
android.media, 848, 9, 5, 0, 968, 414
android.net, 763, 16, 1, 1, 1294, 401
android.widget, 1224, 0, 1, 0, 1495, 295
File preloaded-classes
- hot methods: 0 added, 0 removed
- methods: 0 added, 0 removed
- classes: 35 added, 799 removed
- totals now: 0 hot methods, 0 methods, 10262 classes
- totals before: 0 hot methods, 0 methods, 10262 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 0, 0, 31, 75, 0, 6187
com.android, 0, 0, 3, 724, 0, 1176
java, 0, 0, 1, 0, 0, 1618
android.view, 0, 0, 2, 4, 0, 692
android.hardware, 0, 0, 2, 24, 0, 548
android.app, 0, 0, 3, 1, 0, 784
android.content, 0, 0, 10, 7, 0, 427
android.media, 0, 0, 2, 0, 0, 411
android.net, 0, 0, 1, 1, 0, 399
android.widget, 0, 0, 1, 0, 0, 293
File art-profile
- hot methods: 8824 added, 187 removed
- methods: 5425 added, 1144 removed
- classes: 545 added, 26 removed
- totals now: 11729 hot methods, 24182 methods, 2954 classes
- totals before: 3092 hot methods, 19901 methods, 2954 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 214, 0, 30, 0, 230, 137
com.android, 8580, 187, 508, 26, 11469, 3315
android.hardware, 87, 0, 8, 0, 87, 45
android.app, 1, 0, 0, 0, 1, 1
android.content, 0, 0, 1, 0, 1, 3
android.net, 100, 0, 19, 0, 112, 73
= Perf stats =
(lower is better)
Avg Startup time change: -4.33%
Avg Memory at boot PSS change: +0.8%
Avg Code size: +71.68%
ATP tests:
health/memory/boot
health/microbench/startup/firstparty/am-start/coldlaunch/open-calculator
health/microbench/startup/firstparty/am-start/coldlaunch/open-calendar
health/microbench/startup/firstparty/am-start/coldlaunch/open-camera
health/microbench/startup/firstparty/am-start/coldlaunch/open-chrome
health/microbench/startup/firstparty/am-start/coldlaunch/open-clock
health/microbench/startup/firstparty/am-start/coldlaunch/open-contacts
health/microbench/startup/firstparty/am-start/coldlaunch/open-gmail
health/microbench/startup/firstparty/am-start/coldlaunch/open-google
health/microbench/startup/firstparty/am-start/coldlaunch/open-maps
health/microbench/startup/firstparty/am-start/coldlaunch/open-messenger
health/microbench/startup/firstparty/am-start/coldlaunch/open-phone
health/microbench/startup/firstparty/am-start/coldlaunch/open-photos
health/microbench/startup/firstparty/am-start/coldlaunch/open-settings
health/microbench/startup/firstparty/am-start/coldlaunch/open-youtube
InternalReferenceRawProfileId: 153
InternalReferenceCandidateProfileId: 158
Test: build & benchmark
Change-Id: Iec81f61abb4675710c638451d8fea37d53854908
|
|
=Generation Strategy=
method_threshold: 0.04
image_class_threshold: 0.04
preloaded_classes_threshold: 0.2
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
=Profile stats=
Data info:
- total aggregations: 64
- number of (device types, builds): 17
File boot-image-profile.txt
- hot methods: 3769 added, 22337 removed
- methods: 3863 added, 22867 removed
- classes: 872 added, 952 removed
- totals now: 15780 hot methods, 16050 methods, 10401 classes
- totals before: 34348 hot methods, 35054 methods, 10401 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 1510, 14674, 659, 601, 8086, 6268
com.android, 479, 5495, 178, 100, 1278, 1902
java, 1403, 1603, 26, 3, 5063, 1633
android.view, 101, 1562, 78, 9, 966, 694
android.hardware, 25, 690, 26, 2, 99, 570
android.bluetooth, 22, 296, 16, 2, 66, 157
android.animation, 10, 141, 2, 0, 190, 70
android.app, 304, 2080, 81, 13, 1264, 784
android.content, 252, 992, 37, 10, 1134, 426
android.graphics, 140, 977, 6, 0, 853, 286
android.icu, 0, 1491, 0, 465, 0, 0
android.media, 35, 711, 29, 7, 129, 409
android.net, 123, 800, 81, 13, 547, 401
android.widget, 17, 992, 18, 2, 271, 294
File preloaded-classes
- hot methods: 0 added, 0 removed
- methods: 0 added, 0 removed
- classes: 3233 added, 577 removed
- totals now: 0 hot methods, 0 methods, 7606 classes
- totals before: 0 hot methods, 0 methods, 7606 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 0, 0, 2359, 539, 0, 6231
com.android, 0, 0, 803, 32, 0, 1897
java, 0, 0, 49, 3, 0, 1617
android.view, 0, 0, 244, 6, 0, 694
android.hardware, 0, 0, 286, 0, 0, 570
android.bluetooth, 0, 0, 62, 1, 0, 157
android.animation, 0, 0, 8, 0, 0, 70
android.app, 0, 0, 245, 8, 0, 782
android.content, 0, 0, 145, 8, 0, 424
android.graphics, 0, 0, 28, 0, 0, 286
android.icu, 0, 0, 0, 459, 0, 0
android.media, 0, 0, 115, 4, 0, 409
android.net, 0, 0, 247, 0, 0, 399
android.widget, 0, 0, 69, 2, 0, 292
File art-profile
- hot methods: 1547 added, 10249 removed
- methods: 8926 added, 7543 removed
- classes: 889 added, 754 removed
- totals now: 3092 hot methods, 19901 methods, 2819 classes
- totals before: 11794 hot methods, 18518 methods, 2819 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 16, 165, 31, 25, 16, 107
com.android, 1531, 10062, 846, 728, 3076, 2833
android.hardware, 0, 46, 7, 2, 0, 37
android.app, 0, 0, 1, 0, 0, 1
android.content, 1, 0, 2, 0, 1, 2
android.net, 12, 101, 18, 22, 12, 54
= Perf stats =
(lower is better)
Avg Startup time change: -0.29%
Avg Memory at boot PSS change: 0.99%
Avg Code size: -44.19%
ATP tests:
health/memory/boot
health/microbench/startup/firstparty/am-start/coldlaunch/open-calculator
health/microbench/startup/firstparty/am-start/coldlaunch/open-calendar
health/microbench/startup/firstparty/am-start/coldlaunch/open-camera
health/microbench/startup/firstparty/am-start/coldlaunch/open-chrome
health/microbench/startup/firstparty/am-start/coldlaunch/open-clock
health/microbench/startup/firstparty/am-start/coldlaunch/open-contacts
health/microbench/startup/firstparty/am-start/coldlaunch/open-gmail
health/microbench/startup/firstparty/am-start/coldlaunch/open-google
health/microbench/startup/firstparty/am-start/coldlaunch/open-maps
health/microbench/startup/firstparty/am-start/coldlaunch/open-messenger
health/microbench/startup/firstparty/am-start/coldlaunch/open-phone
health/microbench/startup/firstparty/am-start/coldlaunch/open-photos
health/microbench/startup/firstparty/am-start/coldlaunch/open-settings
health/microbench/startup/firstparty/am-start/coldlaunch/open-youtube
InternalReferenceRawProfileId: 62
InternalReferenceCandidateProfileId: 81
Test: build & benchmark
Bug: 148471769
Change-Id: I3569f00a1900ca92397e83186b2fad76c891f75c
|
|
Previously we were using a separate SLEEP message to communicate
with the client. The sleeping implementation on the client though
simply transitioned it between STARTED and STOPPED states.
This CL relies on visibility updates to communicate the sleeping
state. The "sleeping" status field is still used in the server-side
to record when device started going to sleep, and prevents any
activity that was launched before to influence the power state of
the device.
Bug: 137329632
Test: AM/WM CTS and unit tests
Change-Id: Idd7f5bf6730d3372168d862ef713a44f700430f1
|
|
API
The APIs are used in several placed where listens to
SERVICE_STATE_CHANGE broadcast.
Bug: 140908357
Test: build
Change-Id: I84543dbb056694d975799c7959c7ed66e286c530
Merged-In: I84543dbb056694d975799c7959c7ed66e286c530
|
|
Also remove the reference to PhoneStateIntentReceiver as its being
removed as part of this CL
Bug: 147314715
Test: Build and basic sanity
Change-Id: I04d766ddae7958f0d2f35b50154e5e6d2f8dce7e
|
|
API
The APIs are used in several placed where listens to
SERVICE_STATE_CHANGE broadcast.
Bug: 140908357
Test: build
Change-Id: I84543dbb056694d975799c7959c7ed66e286c530
|
|
Add arrays and classes that are referenced by compiled code.
Test: boot
Change-Id: Iabc1789dc28e45901cb7052765655073bd37467e
|
|
Compiled methods don't get any interpreter activity modifying their
hotness counters. This CL compiles more methods to prevented
Original set of profile is the updated profile with revised thresholds
for image classes. Here we used a 3% threshold.
Additionally, the CL adds imgdiag diagnosed methods that have dirty JIT
counters shortly after boot on the following apps:
system_server
com.android.systemui
com.android.phone
com.android.nfc
com.google.android.networkstack
com.android.bluetooth
com.google.android.apps.nexuslauncher
com.google.android.gms.persistent
com.google.android.as
com.google.process.gservices
com.google.android.gms
com.google.android.inputmethod.latin
Before:
Boot oat size: 32,800,596 bytes
Persistent app .art PSS: 19115K
Persistent app .art Private Dirty: 15356K
System boot .art PSS: 60948K
After:
Boot oat size: 37261124 bytes
Persistent app .art PSS: 12610K
Persistent app .art Private Dirty: 8740K
System boot .art PSS: 50735K
Private dirty savings for persistent apps: 7MB
Net RAM savings: 5MB (10MB dirty .art PSS, 5MB oat size incrase)
Bug: 134776403
Test: Reboot and inspect RAM usage
Change-Id: Ia1c59b4be341a28de02b7d20aedcb6b69815c652
|
|
Bug: 132233794
Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest;
atest CtsMediaTestCases:android.media.cts.MediaControllerTest;
atest CtsMediaTestCases:android.media.cts.MediaBrowserTest;
atest CtsMediaTestCases:android.media.cts.MediaSessionManagerTest;
atest CtsMediaTestCases:android.media.cts.MediaSession2Test;
atest CtsMediaTestCases:android.media.cts.MediaController2Test;
atest CtsMediaTestCases:android.media.cts.MediaSession2ServiceTest;
Change-Id: I0a5c576b3fc9d2e236256d8f9f4e992914b147be
|
|
This is a conservative tuning for the last profile update (commit
5b70220fb5a174a7142ca5403563bf528120a63f) which regressed a few metrics
(b/130553966). The numbers below are quoated relative to the sate before
that update.
=Perf numbers=
The boot image compilation artifacts are 17MiB smaller (art/vdex/oat for
arm and arm64).
System server .art file is 100KiB smaller.
Startup and memory number are within the noise. Startup shows 0.72%
improvement. However that's most likely noise. The tests were run with:
- atest google/perf/app-startup/hermetic-apps/cold-dropcache-lock-test
- atest google/perf/app-startup/non-hermetic-apps/cold-dropcache-lock-test
- atest google/perf/memory/memory-test
- atest
google/perf/app-startup/benchmark-app-hermetic/cold-dropcache-lock-test
- atest
google/perf/app-startup/third-party-apps/cold-dropcache-stable-test
=Profile metrics=
Boot:
- methods and classes used by at least 9% of the sampled (non unique)
applications (see below for more explanations)
- 1.13% of hot methods added, 33.77% removed
- 0.65% of classes added, 21.61% removed
- 29256 hot methods in the profile (vs 43429 in the old one)
- 8681 classes in the profile (vs 10985 in the old one)
Preloaded clases:
- classes used by at least 20% of sampled applications during startup
- 1.5% added, 0.3% removed
- 7601 classes in the profile (vs 7516 in the old one)
System server:
- methods and classes used on at least 5% of sampled devices
- system server is speed compile and the image classes are the most
relevant
- 4% classes added, 23% of classes removed
- 2819 classes in the profile (vs 3418 in the old one)
=Data sample=
- 35000+ (non unique) applications contributed to the final profile
- these were spread across 4000+ (non unique) devices
- 'non unique' means that the same app or the same device (or a
combination of both) could have contributed to the final profile multiple
times
Bug: 122068885
Bug: 130553966
Test: m, build, boot, atest startup-tests
(cherry picked from commit 439305caddf8ad574b230a24cd7523ee6c591364)
Merged-In: Ic61ed2784af034ed4ae4bc8346ed67c6bed04152
Change-Id: I1fc3b301bf80bfc7dda3540c5a204af8321279bf
|
|
=Perf numbers=
The boot image compilation artifacts are 28MiB smaller (art/vdex/oat for
arm and arm64).
System server .art file is 100KiB smaller.
Startup and memory number are within the noise. Startup shows 0.11%
improvement and memory shows 0.22% improvements. However that's most
likely noise. The tests were run with:
- atest google/perf/app-startup/hermetic-apps/cold-dropcache-lock-test
- atest google/perf/app-startup/non-hermetic-apps/cold-dropcache-lock-test
- atest google/perf/memory/memory-test
=Profile metrics=
Boot:
- methods and classes used by at least 9% of the sampled (non unique)
applications (see below for more explanations)
- 0.6% of hot methods added, 51.31% removed
- 0.3% of classes added, 29.96% removed
- 21403 hot methods in the profile (vs 43429 in the old one)
- 7826 classes in the profile (vs 10985 in the old one)
Preloaded clases:
- classes used by at least 20% of sampled applications during startup
- 1.5% added, 0.3% removed
- 7601 classes in the profile (vs 7516 in the old one)
System server:
- methods and classes used on at least 5% of sampled devices
- system server is speed compile and the image classes are the most
relevant
- 4% classes added, 23% of classes removed
- 2819 classes in the profile (vs 3418 in the old one)
=Data sample=
- 35000+ (non unique) applications contributed to the final profile
- these were spread across 4000+ (non unique) devices
- 'non unique' means that the same app or the same device (or a
combination of both) could have contributed to the final profile multiple
times
Bug: 122460899
Bug: 122068885
Test: m, build, boot, atest startup-tests
(cherry picked from commit 5b70220fb5a174a7142ca5403563bf528120a63f)
Merged-In: Ib3aac3c7efae64af9d2b46e350146e53ba653cbd
Change-Id: Ib42ab29e3d28591817a396407445a6c23e5c9a27
|
|
Some API changes per API reivew:
- Move DynamicAndroidClient and ~Manager to android.os.image.
- Rename them to DynamicSystemClient and ~Manager.
- Rename permission MANAGE_DYNAMIC_ANDROID to MANAGE_DYNAMIC_SYSTEM
- Corresponding changes in the installation service.
- Corresponding changes in privapp-permissions-platform.xml.
- Add missing annotations.
- Change setOnStatusChangedListener's parameters order.
- Improve documentations.
- Re-generate api/system-current.txt.
Bug: 126613281
Test: adb shell am
Change-Id: Ia920e9ccf6de1dbbd38c52910cb72cb81b9b5b32
|
|
Boot profile:
- we added 164 methods & classes and remove 2312.
- everything that gets used is in the profile (without filtering).
Preloaded classes:
- we added 1000 classes (we used to have 6563 classes preloaded,
now we have 7528)
- all the classes that are used on more than 7 devices are
preloaded.
This is the initial update for Q. More tuning will follow up.
In particular, we have access on how many apps reported a particular
sample, which will provide grounds for more aggressive filtering.
This CL also update the preload blacklist. SystemConfig attempts to parse
OEM properties which is not allowed by SELinux and the PermissionManager
attempts to statically initialize the SystemConfig.
Bug: 122068885
Test: m & boot
Change-Id: I1f929d2c365db23f1c2c15475d59d1006e7c0a66
|
|
Currently, IWindowSession#performHapticFeedback() would first lookup
the WindowState via IWindow token. That would also hold the WMS lock,
so if some function like relayout window is still hold WMS lock,
it may block the function.
Use uid and package name from Session that they already restored.
Bug: 62330939
Test: Open app with autofill edit, type with IME.
Change-Id: I359c106d213b87aa8afee48b0f1ad70011970eab
|
|
Bug: 123352608
Test: builds
Change-Id: I7fb6785ba34673869eab8aa8651292dce0436e93
|
|
|
|
This CL enables the framework to manage an arbitrary number of physical
displays. It also surfaces physical display IDs, which are stable across
reboots and encode (model, port) information that will be propagated
further up in a follow-up CL.
Bug: 116025192
Test: Boot with more than two displays
Test: Hotplug works with any number of displays
Test: Verify stable display IDs with "dumpsys display"
Change-Id: Idb2eaff66b2e0873be6ad27d337ff18b730d1331
|
|
Bug: 118866213
Test: m -j
Change-Id: Iba5e933b7db8dd36d5c720dba128cdce7d76e6d5
|
|
The bitmap.createHardwareBitmap doesn't take a ColorSpace as input, as a result
the returned bitmap is always in SRGB color space. Given that we want to remove
the assumption of SRGB color space, we replace the usage of
createHardwareBitmap with wrapHardwareBuffer which takes an extra argument
ColorSpace. As a result, we will be able to also fix SurfaceControl and various
other places that use screenshot in follow up patches.
BUG: 120904891
Test: CtsUiRenderingTestCases
Change-Id: I57fc0c85d68df43b0e69f9a1ebac00d2ba39554d
|
|
This reverts commit e24f1b095b020382f555c7f34f22ff3fb5005f90.
Reason for revert: b/123172409
Change-Id: Ic5863a8e8b36c8c4d8636cc4c004ad9606a3f523
|
|
Removing AR from the Android code base. We had already severed the
connection to the AR HAL in Android Oreo. This change simply removes all
unused references and uses of the stubs.
Test: Build compiles. Ensure that clients that provide AR through other
channels continue to work.
Change-Id: I79d19c0bd2b80962cdecc8ad88065911fd6311ac
|
|
f22673adb8
am: f390a48710
Change-Id: I2a1c0c98adcefa7085431b381de2ba4504846a52
|
|
|
|
am: f79ecf7c82
am: 402dc485d0
Change-Id: If9c8cfdce9bd0b3bcd460216edca369fd75abdde
|
|
The warning was caused by 6ea0cb0d65ee13b9c4014d56ccb4926ac49c6e4a
Test: m droid
Change-Id: Icafd6b841778f3d1dd79b2f5f8b5b70e79c36621
|
|
|
|
f5ed99558a
am: a0bbbc886f
Change-Id: I372ae7ade0452626484fca1ac7915503e02ff2dc
|
|
Some time zone related libcore classes are moving from
libcore.util to libcore.timezone.
Bug: 119026403
Test: build only
Change-Id: Ic807977a85276b888362295d1d305effe33076fc
|
|
1) For sysui or launcher used APIs to support multi-display:
- overridePendingAppTransitionMultiThumbFuture
- overridePendingAppTransitionRemote
2) Modify WindowAnimator pending layout change debug log for all displays.
Bug: 119530958
Test: atest ActivityManagerMultiDisplayTests
Test: atest SystemUITests
Change-Id: I46a118a21b4df42c0d1767b77d838956a53262d3
|
|
Some classes have recently moved from libcore.util to libcore.timezone.
Bug: 120039104
Bug: 119026403
Test: build only
Change-Id: Ia1b4b9d096cbaeba85e7da032a4e6927b389b8f0
|
|
b896d4fa3b am: 7d2ae7480f
am: deadb0cbbb
Change-Id: Id2307673c82a0fcaf4dee53aa880de61137f3e02
|
|
|
|
28773473d1
am: 6cb15cffb6
Change-Id: Ia3d84dc7890d8d8ddb5f7651c150134180116a30
|
|
Bug: 118748230
Test: systrace shows 70% improvement of initialize the class DateTimePatternGenerator$FormatParser
Change-Id: I0c29b7892ac57a49c1f93c8b759e547a5bb881cb
|
|
|
|
Include below refectoring items to support per display AppTransition:
WMS / AM refectoring parts:
- Move AppTransition related stuff from WMS into DisplayContent.
- Move WMS.prepareAppTransition into DisplayWindowController.
- Move WMS.executeAppTransition to DisplayWindowController.
- Move ATM.isNextTransitionForward to DisplayWindowController.
- Move WMS.getPendingAppTransition to DisplayWindowController.
- Move WMS.overrideAppTransition like APIs to DisplayWindowController.
- Move ActivityRecord.applyOptionsLocked to AppContainerController.
- Support tracing all display's AppTransition status for
DisplayContent.pendingLayoutChanges & window hierachy update.
- Modify logics for AppTransition related caller parts.
- Move WindowSurfacePlacer.handleAppTransitionReadyLocked related
stuffs into added class AppTransitionController.
WM unit test parts:
- Add test case for verifying app transition state per display:
- AppTransitionTests.testAppTransitionStateForMultiDisplay
- AppTransitionTests.testCleanAppTransitionWhenTaskStackReparent
- Rename WindowSurfacePlacerTest to AppTransitionControllerTest since
the test is related handle AppTransition flow.
Bug: 111362605
Test: go/wm-smoke
Test: atest ActivityManagerTransitionSelectionTests
Test: atest ActivityManagerMultiDisplayTests
Test: atest FrameworksServicesTests for DisplayContent / AppTransition
related tests.
Change-Id: Ic1793aa794eb161bec31fda57847a6ba2ff4f84f
|
|
Test: build the system, and installed
Test: frameworks/base/libs/hwui/tests/scripts/prep_marlfish.sh
Test: m CorePerfTests
Test: adb install -r $OUT/data/app/CorePerfTests/CorePerfTests.apk
Test: adb shell cmd package compile -m speed -f \
com.android.perftests.core
Test: adb shell am instrument -w -e class \
android.text.StaticLayoutPerfTest \
com.android.perftests.core/android.support.test.runner.AndroidJUnitRunner
Bug: 117888473
Change-Id: I756dff7960db221b587535a7664913cc8bd4d0de
|
|
Remove methods that currently cannot be compiled.
Bug: 76145463
Test: m
Change-Id: I956113b55796d0666db9dbfd387105a7d27b0868
|
|
Fixes: 117177943
Test: run google/template/local --template:map test \
google/continuous/boot-successive --no-first-boot --successive-boot \
--boot-count 2 --granular-boot-info -f \
SystemServerTiming_StartUsageService
Change-Id: Id49b063a99a7f6c2c79e6f1d8f7a892d2ab9e47c
|
|
am: 0d68d68b39
am: 4af76de6da
Change-Id: Ibd56ba7fd9ef20dd94072aa8f22235f22d56cbf6
|
|
Bug: 116028959
Test: m
Test: inspect oatdump
Change-Id: I5aefa4e334d61cd24f110a35a0084d563a8aca63
|