Age | Commit message (Collapse) | Author |
|
Test: m
Change-Id: I41bee1f48f77f61e5194fcc0e4607f04ab674c1f
|
|
Adding interface for set/remove/getDevicesRoleForStrategy. This will be
used for setting device(s) role, such as preferred, for strategy.
Set/remove/getPreferreDeviceForStrategy are reimplemented by calling
the new interfaces.
Test: atest AudioHostTest
Test: atest AudioServiceHostTest
Test: atest AudioServiceTest
Test: atest audiopolicy_tests
Bug: 160352965
Change-Id: I2ba02c6b50af80846a25010ead05c4ae364868de
Merged-In: I2ba02c6b50af80846a25010ead05c4ae364868de
|
|
We now have better tests in ART run tests, and it was also being added
to the shipping product for no good reason.
Test: m
Bug: 154796679
Change-Id: I8d7178873474ce84c6cf08c8af8bae96b0fab7e9
|
|
BasicShellCommandHandler is used by mainline modules and the
framwork. There is a new repo that was created for putting
this kind of utility class. Move BasicShellCommandHandler for
the incoming ConnectivityService mainline and updating the
related usage.
Bug: 170598012
Test: m ; verify with adb shell cmd
Change-Id: I8a2873df6e7d8342b7a8b466bda155f74c807ee3
Merged-In: Ida30c877116090616d4bf3f87fdad835446dac84
|
|
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1352358
Change-Id: Ib9cdd470cc9cb0f199dc97b1d05e1d833dd3808c
|
|
Test: m
Bug: 154796679
Change-Id: Id03d9be728c920616a7218fc5435640fc732c87e
|
|
rvc-dev am: 92fc2321cd
Change-Id: Ia8131417a5152664726c7b444f159742eeb0ce0c
|
|
= 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
|
|
rvc-dev am: d56a530ac9
Change-Id: I37fe17d14d8d1f95f0311ac57ecbb55c3bbdc998
|
|
= 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
|
|
1b49e036c0
Change-Id: Ia59f1348f10182c8149a25abc935735a629a5b8f
|
|
= 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
|
|
Bug: 144502743
Test: atest PreloadCheck
Test: cts-tradefed
Change-Id: I623ead2c26bf19a9198d0104e0c6a59242bb6eb1
|
|
= 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
|
|
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
|
|
This reverts commit 8e18a0ab8980a3092d6c7e1d2edc6407655af609.
Exempt-From-Owner-Approval: Revert to re-add approved change
Change-Id: I5b5195470f365a2347cbf444cc0494d119e42ffc
|
|
Bug: 142567528
Test: manual
Change-Id: Iefb426383f94ec89c896065c798b22cfb2977bf3
|
|
This change adds a bare-bones system service, implementation will follow
later.
Bug: 143559646
Test: atest cts/tests/BlobStore/src/com/android/cts/blob/BlobStoreManagerTest.java
Change-Id: Idf21dfcd11dd32a42b62c6ad965d6f5ad7eed1b4
|
|
|
|
today telephonyRegistry lives in system process
this is intended to persists all telephony listeners when
phone process crash. Telephony today notify system server by
using AIDL APIs directly. Instead, we are exposing a proper API
surface: telephonyRegistryManager where only phone app and
carrier privileged apps are allowed to use APIs in
TelephonyRegistryManger to notify telephony related status update.
Bug: 140908357
Test: Build & Manaul
Change-Id: I1b750751148925b4a7bd94553318907654012fc1
(cherry picked from commit 288b71c8c11dc25fa1dab4aadc1525d0c576008a)
Merged-in: I1b750751148925b4a7bd94553318907654012fc1
|
|
We'll be able to expose system APIs from jobscheduler-framework.jar and
use them from framework-minus-apex.jar, so these elaborated initialization
will not be needed.
Bug: 142281756
Test: boot, "dumpsys batterstats"
Change-Id: I957642fc2573818d138450747e0690d7176636ad
|
|
1. move CallerInfo from telephony.internal to andorid.telephony package
2. expose APIs inside CallerInfo which are consumed by non-telephony
code.
Bug: 140908357
Test: Build
Change-Id: Ie95897c77e97e40f5357c107aede82edfea44d5a
(cherry picked from commit b9a1eefec66e8c2cd5ab9dab512bb729ef2caae8)
Merged-in: Ie95897c77e97e40f5357c107aede82edfea44d5a
|
|
This reverts commit 243e7ea14b32747b3d12b1e83625eddb917c5990.
Reason for revert: b/141854898
Exempt-From-Owner-Approval: Revert for failure to boot
Change-Id: Id6812e5ecf7d88504706b2c4110d83f1034ab85c
|
|
Replaces PackageParser#Package and it's related structures with
ParsingPackage, ParsedPackage, and AndroidPackage.
This is a large scoped CL, the first step in an eventual goal
to refactor how data is handled in the package parsing and install
process. It introduces as few logic changes as necessary. Mostly
migrating to interfaces and renaming, moving parsing data calls into
3 separate interfaces that outline the intended flow for parsing.
ParsingPackage is built and used during what was PackageParser, now
replaced by ApkParseUtils and it's related classes. This is almost
exactly what was parsed from the XML/files on disk.
ParsedPackage is used when the object exits PackageParser and is
adjusted by PackageManagerService to what is considered the final
"parsed" state, adjusted from literal values, but consistent given
the same APK on disk. This should eventually be moved out of PMS
and possibly collapsed into the previous interface entirely.
AndroidPackage is the final state of the package after parsing and
adjustment has completed and no more mutations should be expected.
There are a few exceptions to this, included in AndroidPackageWrite,
which will eventually be refactored into PackageSetting or another
state class.
This marks PackageParser#Package and all the old infrastructure with
@Deprecated, as none of them are used internally. All usages were
converted, and the legacy Package is only built for un-converted tests
and @UnsupportedAppUsage methods.
There are numerous TODOs still outstanding, but addressing them
in this initial CL would introduce several logic changes. They've been
marked with the bug number and will be handled in follow ups.
This is being merged with caution thrown to the wind because
testing this on devices and in development will be the best way
to debug differences introduced by the migration. Getting it merged
as early as possible gives the most amount of time to fix regressions.
Waiting for tests of all the functionality could take literal years
before covering enough to merge this with all regressions verified.
Given a sample size of 4 heap dumps and the caveat it was taken very
early in the migration, there is a memory overhead of about 200 KB
versus the legacy implementation. This should be verified more
accurately and addressed in follow ups.
This CL also kills child/parent package support, since that's
broken already, and difficult to support with the new interface
structure.
Bug: 135203078
Test: booted an emulator, works generally as expected
Specific tests which failed / failed to build were fixed, but because
not all tests are currently passing before this change, not all were
verified.
Change-Id: I4ba050c228e6c60b8f63a9e3347b1f9a57ef794a
|
|
today telephonyRegistry lives in system process
this is intended to persists all telephony listeners when
phone process crash. Telephony today notify system server by
using AIDL APIs directly. Instead, we are exposing a proper API
surface: telephonyRegistryManager where only phone app and
carrier privileged apps are allowed to use APIs in
TelephonyRegistryManger to notify telephony related status update.
Bug: 140908357
Test: Build & Manaul
Change-Id: I1b750751148925b4a7bd94553318907654012fc1
|
|
1. move CallerInfo from telephony.internal to andorid.telephony package
2. expose APIs inside CallerInfo which are consumed by non-telephony
code.
Bug: 140908357
Test: Build
Change-Id: Ie95897c77e97e40f5357c107aede82edfea44d5a
|
|
In preparation of mainline.
Test: atest cts/tests/tests/batterysaving/src/android/os/cts/deviceidle/DeviceIdleTest.java
Bug: 137763703
Change-Id: Id3088ba65682722ff4c2808bdc86a0ade18a4ab5
|
|
- Also remove the dependency from SystemServiceRegistry to JobScheduler
See apex/jobscheduler/README_js-mainline.md for the details.
Bug: 137763703
Test: build and boot
Test: atest CtsJobSchedulerTestCases
Change-Id: I2386c78b7a6085d6e543a63f22cb620c4cabd06a
|
|
This reverts commit 136d1ecf1efa5208bc3007c8459dca91cd0dd290.
Reason for revert: My device didn't boot. :(
Change-Id: I11636c2ad03a3c14f5953a700fc3a2d629a81a42
|
|
- Also remove the dependency from SystemServiceRegistry to JobScheduler
See apex/jobscheduler/README_js-mainline.md for the details.
Bug: 137763703
Test: build and boot
Test: atest CtsJobSchedulerTestCases
Change-Id: Ic8ae8e99e6600b261618b5cfb6590d3f3664ae9f
|
|
Bug: 116364973
Test: build & reboot
Change-Id: I2475d9c34c0635d8a8f21abe3246d67fdd7273d2
|
|
SQLiteDebug.Const isn't supposed to be preloaded.
Fix: 134176355
Test: "setprop db.log.slow_query_threshold.10045 0" and make sure ...
it works for UID 10045
Change-Id: I06ca1531e968faa2378d0cb7f627e2c6a87cf502
|
|
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
|
|
Added these classes to prevent initialization of AsyncTask since
initializing AsyncTask may cause memory leaks.
Bug: 130206915
Test: make
Test: look at classes initialized during preloading
Change-Id: I6bacbbdf61d8a782d88debc29d9f0ca29d273888
|
|
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
|
|
Bug: 123352608
Test: builds
Change-Id: I7fb6785ba34673869eab8aa8651292dce0436e93
|
|
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
|
|
DropBox and EventLogger provide hooks for use by framework to intercept
messages sent by libcore. However, neither of these mechanisms are
actually used by libcore so there is no point in framework code using
it.
Bug: 119748341
Test: make checkbuild, flash
Change-Id: I9dbd1b6dea92f7441efb6d0a579efd13bc0e5139
|
|
|
|
Needed for Autofill Field Classification implementation
Bug: 118681526
Test: atest CtsAutoFillServiceTestCases
Change-Id: I0ecebc391a93928618f349a1fd1af6304ee44006
|
|
am: f79ecf7c82
am: 402dc485d0
Change-Id: If9c8cfdce9bd0b3bcd460216edca369fd75abdde
|
|
Some time zone related libcore classes are moving from
libcore.util to libcore.timezone.
Bug: 119026403
Test: build only
Change-Id: Ic807977a85276b888362295d1d305effe33076fc
|
|
am: ee231b550e
Change-Id: I5cbd74fbee218b5846c813e9657cc7981719c46d
|
|
The version information about time zone formats is moving
to a new libcore class TzDataSetVersion.
Bug: 119026403
Test: build
Change-Id: I6f80f16f9cd7e37fc04d75c89483497f4f00a6a5
|