Commit Graph

1545 Commits

Author SHA1 Message Date
art-benchmark-service
9ef6c57626 Update boot image and system server profiles [M10C10P80S0]
Bug: 254051423

= Perf stats =
(lower is better)

Startup and boot time, memory and code side are all improved.

Startup: -3.39%
Memory: -5.84%
Boot time: -1.50%
Code size: -2.35%

=Generation Strategy=

method_threshold: 0.1
image_class_threshold: 0.1
preloaded_classes_threshold: 0.8
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0

=Profile stats=

Data info:
- total aggregations: 183
- number of (device types, builds): 19

File boot-image-profile.txt
  - hot methods: 17 added, 1063 removed
  - methods: 17 added, 1112 removed
  - classes: 8 added, 1 removed
  - totals now: 22335 hot methods, 22337 methods, 13521 classes
  - totals before: 23381 hot methods, 23432 methods, 13514 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 15, 962, 7, 1, 20851, 9500
    com.android, 2, 100, 1, 0, 1388, 2959
    android.view, 3, 170, 2, 0, 3394, 951
    android.hardware, 0, 34, 0, 0, 470, 806
    android.animation, 0, 6, 0, 0, 391, 73
    android.app, 7, 205, 1, 1, 2933, 1035
    android.content, 1, 35, 0, 0, 1859, 562
    android.graphics, 2, 59, 1, 0, 1972, 335
    android.icu, 0, 26, 0, 0, 2036, 1472
    android.media, 0, 78, 0, 0, 792, 575
    android.net, 0, 14, 0, 0, 254, 218
    android.widget, 0, 79, 0, 0, 1398, 381

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 5 added, 3 removed
  - totals now: 0 hot methods, 0 methods, 13389 classes
  - totals before: 0 hot methods, 0 methods, 13387 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 5, 3, 0, 9423
    android.app, 0, 0, 0, 1, 0, 1025
    android.media, 0, 0, 5, 2, 0, 572

File boot-image-profile.txt
  - hot methods: 40 added, 1077 removed
  - methods: 40 added, 1126 removed
  - classes: 11 added, 1 removed
  - totals now: 32350 hot methods, 32352 methods, 16664 classes
  - totals before: 33387 hot methods, 33438 methods, 16654 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 15, 962, 7, 1, 20914, 9531
    com.android, 2, 100, 1, 0, 2398, 3382
    java, 23, 14, 2, 0, 7097, 2036
    android.view, 3, 170, 2, 0, 3394, 951
    android.hardware, 0, 34, 0, 0, 470, 806
    android.animation, 0, 6, 0, 0, 391, 73
    android.app, 7, 205, 1, 1, 2933, 1035
    android.content, 1, 35, 0, 0, 1859, 562
    android.graphics, 2, 59, 1, 0, 1972, 335
    android.icu, 0, 26, 0, 0, 2036, 1472
    android.media, 0, 78, 0, 0, 792, 575
    android.net, 0, 14, 0, 0, 254, 218
    android.widget, 0, 79, 0, 0, 1398, 381

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 5 added, 3 removed
  - totals now: 0 hot methods, 0 methods, 16498 classes
  - totals before: 0 hot methods, 0 methods, 16496 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 5, 3, 0, 9454
    android.app, 0, 0, 0, 1, 0, 1025
    android.media, 0, 0, 5, 2, 0, 572

File art-profile
  - hot methods: 1128 added, 531 removed
  - methods: 1883 added, 730 removed
  - classes: 61 added, 8 removed
  - totals now: 28149 hot methods, 54115 methods, 5183 classes
  - totals before: 27552 hot methods, 52962 methods, 5130 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 9, 1, 0, 0, 354, 121
    com.android, 1115, 530, 59, 8, 27782, 4964
    android.hardware, 9, 1, 0, 0, 283, 82

InternalReferenceRawProfileId: 16050
InternalReferenceCandidateProfileId: 16066

Test: build & benchmark

Ignore-AOSP-First: Updating boot image profiles

Change-Id: I3c6f9caae9bdf7efeb9d10cbac94ab729e9d4e6b
2022-10-18 09:11:19 +00:00
art-benchmark-service
9f6049f747 Update boot image and system server profiles [M10C10P80S0PP]
= Perf stats =
(lower is better)

Startup and boot time are improving at the cost of a slight increase in code size, which could be an acceptable cost.

Also it fixes a regression at
Bug: b/249424113

Startup: -1.71%
Memory: 0.02%
Boot time: -0.95%
Code size: 2.41%

=Generation Strategy=

method_threshold: 0.1
image_class_threshold: 0.1
preloaded_classes_threshold: 0.8
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.04
}
priority_packages_thresholds {
  key: "com.google.android.GoogleCamera"
  value: 0.04
}
priority_packages_thresholds {
  key: "com.google.android.dialer"
  value: 0.04
}
priority_packages_thresholds {
  key: "com.google.android.gms"
  value: 0.04
}
priority_packages_thresholds {
  key: "com.google.android.webview"
  value: 0.04
}

=Profile stats=

Data info:
- total aggregations: 138
- number of (device types, builds): 15

File boot-image-profile.txt
  - hot methods: 2288 added, 1228 removed
  - methods: 2339 added, 1228 removed
  - classes: 138 added, 246 removed
  - totals now: 23381 hot methods, 23432 methods, 13514 classes
  - totals before: 22321 hot methods, 22321 methods, 13622 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 2095, 1053, 75, 37, 21798, 9494
    com.android, 182, 165, 61, 199, 1486, 2958
    android.view, 455, 268, 22, 15, 3561, 949
    android.hardware, 44, 6, 0, 1, 504, 806
    android.animation, 39, 26, 1, 0, 397, 73
    android.app, 359, 136, 14, 3, 3131, 1035
    android.content, 130, 91, 6, 5, 1893, 562
    android.graphics, 124, 65, 3, 3, 2029, 334
    android.icu, 82, 53, 0, 0, 2062, 1472
    android.media, 82, 8, 0, 1, 870, 575
    android.net, 20, 6, 0, 1, 268, 218
    android.widget, 138, 57, 2, 0, 1477, 381

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 450 added, 229 removed
  - totals now: 0 hot methods, 0 methods, 13393 classes
  - totals before: 0 hot methods, 0 methods, 13172 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 286, 27, 0, 9427
    com.android, 0, 0, 42, 192, 0, 2908
    android.view, 0, 0, 68, 10, 0, 931
    android.hardware, 0, 0, 18, 1, 0, 806
    android.animation, 0, 0, 1, 0, 0, 72
    android.app, 0, 0, 39, 3, 0, 1026
    android.content, 0, 0, 8, 5, 0, 555
    android.graphics, 0, 0, 4, 3, 0, 332
    android.icu, 0, 0, 2, 0, 0, 1472
    android.media, 0, 0, 13, 0, 0, 575
    android.net, 0, 0, 3, 1, 0, 218
    android.widget, 0, 0, 11, 0, 0, 379

File boot-image-profile.txt
  - hot methods: 2876 added, 1749 removed
  - methods: 2927 added, 1749 removed
  - classes: 190 added, 262 removed
  - totals now: 33387 hot methods, 33438 methods, 16654 classes
  - totals before: 32260 hot methods, 32260 methods, 16726 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 2095, 1053, 82, 37, 21861, 9525
    com.android, 208, 191, 66, 199, 2496, 3381
    java, 471, 417, 18, 15, 7088, 2034
    android.view, 455, 268, 22, 15, 3561, 949
    android.hardware, 44, 6, 0, 1, 504, 806
    android.animation, 39, 26, 1, 0, 397, 73
    android.app, 359, 136, 18, 3, 3131, 1035
    android.content, 130, 91, 6, 5, 1893, 562
    android.graphics, 124, 65, 3, 3, 2029, 334
    android.icu, 82, 53, 0, 0, 2062, 1472
    android.media, 82, 8, 3, 1, 870, 575
    android.net, 20, 6, 0, 1, 268, 218
    android.widget, 138, 57, 2, 0, 1477, 381

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 511 added, 245 removed
  - totals now: 0 hot methods, 0 methods, 16502 classes
  - totals before: 0 hot methods, 0 methods, 16236 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 290, 27, 0, 9458
    com.android, 0, 0, 55, 192, 0, 3331
    java, 0, 0, 27, 15, 0, 2023
    android.view, 0, 0, 68, 10, 0, 931
    android.hardware, 0, 0, 18, 1, 0, 806
    android.animation, 0, 0, 1, 0, 0, 72
    android.app, 0, 0, 41, 3, 0, 1026
    android.content, 0, 0, 8, 5, 0, 555
    android.graphics, 0, 0, 4, 3, 0, 332
    android.icu, 0, 0, 2, 0, 0, 1472
    android.media, 0, 0, 13, 0, 0, 575
    android.net, 0, 0, 3, 1, 0, 218
    android.widget, 0, 0, 11, 0, 0, 379

File art-profile
  - hot methods: 6099 added, 11176 removed
  - methods: 8477 added, 16478 removed
  - classes: 512 added, 399 removed
  - totals now: 27552 hot methods, 52962 methods, 5130 classes
  - totals before: 32629 hot methods, 60963 methods, 5017 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 25, 97, 0, 23, 346, 121
    com.android, 6074, 11075, 492, 368, 27197, 4913
    android.hardware, 23, 83, 0, 20, 275, 82
    android.app, 0, 2, 0, 0, 1, 3
    android.content, 1, 0, 0, 0, 2, 5
    android.net, 1, 12, 0, 3, 50, 22

InternalReferenceRawProfileId: 14025
InternalReferenceCandidateProfileId: 15056

Test: build & benchmark

Ignore-AOSP-First: Updating boot image profiles

Change-Id: Id3e168b9ac675e6b3d12b1f7d69268732488e211
2022-10-07 13:13:57 +00:00
Pascal Muetschard
24a356607c DCL is broken and should not be used.
Use the acceptable instance holder pattern as a replacement.

Change-Id: I2fb29edd48e00ac36a7fb0907a21ae5ca1d5163f
2022-08-23 17:40:57 +02:00
Daniel Kim
11822c7941 Revert "DCL is broken and should not be used."
This reverts commit ab0cbeffdf.

Reason for revert: Droidmonitor-triggered revert due to breakage
Bug: b/243389642

Change-Id: I2121840da7bba800d3a6fbe2228ce70c952d11e6
2022-08-22 18:56:21 +00:00
Pascal Muetschard
ab0cbeffdf DCL is broken and should not be used.
Use the acceptable instance holder pattern as a replacement.

Change-Id: I0164b8c17db4e6e15aee5a862fa8e625a9b1bbf4
2022-08-22 13:00:03 +02:00
Nicolas Geoffray
3939ba6196 Merge "Add a new file for the boot image." am: a82115dc12
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2149813

Change-Id: If0cc1eb3280cae367ac3ad099205c4e185cb28d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-12 08:20:27 +00:00
Nicolas Geoffray
ee7e78cc29 Add a new file for the boot image.
In that file, we can list methods which we want to compile but that our
boot image profiling implementation did not cover.

Test: m
Bug: 235557326
Change-Id: Id5241dac826b5d4f581573d8b9b556bde2dabdeb
2022-07-11 14:57:17 +01:00
Almaz Mingaleev
86085aae14 Merge "Do not preload ThreadLocalRandom class." 2022-06-10 16:34:08 +00:00
Vali Dobrota
d4b13ed3b9 Merge "Remove obsolete owner of frameworks/base/config." am: 141c6a9f6f am: 14203720c8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2122612

Change-Id: I6a444f0ccc73e9435bb515dcaaeccb0389f20367
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-10 16:19:51 +00:00
Almaz Mingaleev
2a1c933d3e Do not preload ThreadLocalRandom class.
ThreadLocalRandom.seeder field uses time in its initialization.
Preloading the class fixes initial state of ThreadLocalRandom,
which leads to the same sequence of generated numbers across
different app runs.

Bug: 234816154
Test: verified manually that TLR.current().nextInt does not return
the same sequence of numbers.

Change-Id: I80868217e02862e8d0a568ea096e22e919ec06e3
Merged-In: I80868217e02862e8d0a568ea096e22e919ec06e3
2022-06-10 14:35:53 +01:00
Vali Dobrota
d3fbfb0ce6 Remove obsolete owner of frameworks/base/config.
Test: N/A

Change-Id: I8e11b550c83e588b9a9aa38437843eae0b52ab9d
2022-06-10 11:46:47 +01:00
Almaz Mingaleev
9e449649eb Do not preload ThreadLocalRandom class.
ThreadLocalRandom.seeder field uses time in its initialization.
Preloading the class fixes initial state of ThreadLocalRandom,
which leads to the same sequence of generated numbers across
different app runs.

Bug: 234816154
Test: verified manually that TLR.current().nextInt does not return
the same sequence of numbers.

Change-Id: I80868217e02862e8d0a568ea096e22e919ec06e3
2022-06-09 16:31:03 +01:00
art-benchmark-service
22928e1a85 Update boot image and system server profiles [M10C10P80S0]
Summary:
Startup: -1.18%
Memory: -3.75%
Code size: 0.52
Boot time: 2.45%

Reasoning: Improvements in startup and memory, at the cost of boot time and slight code size increases.

=Generation Strategy=

method_threshold: 0.1
image_class_threshold: 0.1
preloaded_classes_threshold: 0.8
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0

=Profile stats=

Data info:
- total aggregations: 4523
- number of (device types, builds): 144

File boot-image-profile.txt
  - hot methods: 337 added, 337 removed
  - methods: 337 added, 337 removed
  - classes: 107 added, 0 removed
  - totals now: 22321 hot methods, 22321 methods, 13622 classes
  - totals before: 22321 hot methods, 22321 methods, 13515 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 321, 320, 86, 0, 20756, 9456
    com.android, 6, 7, 17, 0, 1469, 3096
    android.view, 106, 106, 9, 0, 3374, 942
    android.hardware, 2, 2, 2, 0, 466, 807
    android.animation, 27, 27, 0, 0, 384, 72
    android.app, 18, 17, 10, 0, 2908, 1024
    android.content, 20, 20, 4, 0, 1854, 561
    android.graphics, 20, 20, 0, 0, 1970, 334
    android.icu, 28, 28, 1, 0, 2033, 1472
    android.media, 0, 0, 7, 0, 796, 576
    android.net, 2, 2, 3, 0, 254, 219
    android.widget, 25, 25, 3, 0, 1396, 379

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 0 added, 5 removed
  - totals now: 0 hot methods, 0 methods, 13172 classes
  - totals before: 0 hot methods, 0 methods, 13177 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 0, 5, 0, 9168
    android.view, 0, 0, 0, 5, 0, 873

File boot-image-profile.txt
  - hot methods: 524 added, 440 removed
  - methods: 524 added, 440 removed
  - classes: 127 added, 0 removed
  - totals now: 32260 hot methods, 32260 methods, 16726 classes
  - totals before: 32176 hot methods, 32176 methods, 16599 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 373, 319, 80, 0, 20819, 9480
    com.android, 36, 11, 25, 0, 2479, 3514
    java, 99, 94, 12, 0, 7034, 2031
    android.view, 109, 106, 9, 0, 3374, 942
    android.hardware, 3, 2, 2, 0, 466, 807
    android.animation, 27, 27, 0, 0, 384, 72
    android.app, 32, 17, 6, 0, 2908, 1020
    android.content, 23, 20, 4, 0, 1854, 561
    android.graphics, 20, 20, 0, 0, 1970, 334
    android.icu, 36, 27, 1, 0, 2033, 1472
    android.media, 11, 0, 4, 0, 796, 573
    android.net, 3, 2, 3, 0, 254, 219
    android.widget, 29, 25, 3, 0, 1396, 379

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 1 added, 7 removed
  - totals now: 0 hot methods, 0 methods, 16237 classes
  - totals before: 0 hot methods, 0 methods, 16243 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 0, 7, 0, 9195
    java, 0, 0, 1, 0, 0, 2012
    android.view, 0, 0, 0, 5, 0, 873
    android.app, 0, 0, 0, 2, 0, 988

File art-profile
  - hot methods: 4524 added, 1108 removed
  - methods: 3185 added, 1274 removed
  - classes: 474 added, 4 removed
  - totals now: 32629 hot methods, 60963 methods, 5017 classes
  - totals before: 29213 hot methods, 59052 methods, 4547 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 38, 12, 6, 0, 418, 144
    com.android, 4480, 1096, 453, 4, 32198, 4789
    android.hardware, 23, 12, 0, 0, 335, 102
    android.net, 15, 0, 6, 0, 61, 25

InternalReferenceRawProfileId: 7132
InternalReferenceCandidateProfileId: 7146

Test: build & benchmark
Bug: 223366272

Change-Id: Idbced6f8ef01d883370d566b0a0200cdded3dc6c
2022-06-06 13:16:57 +00:00
art-benchmark-service
46a3a0d91b Update boot image and system server profiles [M5C5P80S0]
=Generation Strategy=

method_threshold: 0.05
image_class_threshold: 0.05
preloaded_classes_threshold: 0.8
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0

=Profile stats=

Data info:
- total aggregations: 2245
- number of (device types, builds): 83

File boot-image-profile.txt
  - hot methods: 1213 added, 157 removed
  - methods: 1213 added, 157 removed
  - classes: 41 added, 4 removed
  - totals now: 22321 hot methods, 22321 methods, 13515 classes
  - totals before: 21265 hot methods, 21265 methods, 13478 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 1110, 154, 37, 4, 20755, 9370
    com.android, 103, 3, 1, 0, 1470, 3079
    android.view, 238, 29, 7, 2, 3374, 933
    android.hardware, 67, 0, 10, 0, 466, 805
    android.app, 171, 60, 0, 2, 2907, 1014
    android.content, 92, 8, 0, 0, 1854, 557
    android.graphics, 24, 1, 1, 0, 1970, 334
    android.icu, 145, 2, 0, 0, 2033, 1471
    android.media, 53, 0, 1, 0, 796, 569
    android.net, 9, 2, 0, 0, 254, 216
    android.widget, 39, 3, 0, 0, 1396, 376

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 366 added, 363 removed
  - totals now: 0 hot methods, 0 methods, 13177 classes
  - totals before: 0 hot methods, 0 methods, 13174 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 4, 3, 0, 9173
    android.view, 0, 0, 0, 1, 0, 878
    android.app, 0, 0, 2, 2, 0, 990

File boot-image-profile.txt
  - hot methods: 1660 added, 225 removed
  - methods: 1660 added, 225 removed
  - classes: 48 added, 4 removed
  - totals now: 32176 hot methods, 32176 methods, 16599 classes
  - totals before: 30741 hot methods, 30741 methods, 16555 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 1058, 154, 36, 4, 20765, 9400
    com.android, 135, 10, 1, 0, 2454, 3489
    java, 373, 45, 5, 0, 7029, 2019
    android.view, 235, 29, 7, 2, 3371, 933
    android.hardware, 66, 0, 10, 0, 465, 805
    android.app, 157, 60, 0, 2, 2893, 1014
    android.content, 89, 8, 0, 0, 1851, 557
    android.graphics, 25, 1, 1, 0, 1970, 334
    android.icu, 136, 2, 0, 0, 2024, 1471
    android.media, 42, 0, 1, 0, 785, 569
    android.net, 8, 2, 0, 0, 253, 216
    android.widget, 35, 3, 0, 0, 1392, 376

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 764 added, 536 removed
  - totals now: 0 hot methods, 0 methods, 16243 classes
  - totals before: 0 hot methods, 0 methods, 16015 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 2, 0, 0, 9202
    com.android, 0, 0, 62, 0, 0, 3468
    java, 0, 0, 113, 0, 0, 2011
    android.app, 0, 0, 2, 0, 0, 990

File art-profile
  - hot methods: 3750 added, 924 removed
  - methods: 6074 added, 1212 removed
  - classes: 125 added, 9 removed
  - totals now: 29213 hot methods, 59052 methods, 4547 classes
  - totals before: 26387 hot methods, 54190 methods, 4431 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 29, 9, 2, 0, 392, 138
    com.android, 3721, 915, 122, 9, 28814, 4340
    android.hardware, 27, 8, 2, 0, 324, 102
    android.net, 2, 1, 0, 0, 46, 19

InternalReferenceRawProfileId: 7112
InternalReferenceCandidateProfileId: 7121

Test: build & benchmark
Bug: 223366272

Change-Id: I9f938d3279919d91c7cd1c9ba40aca62f6404b0a
2022-05-24 08:49:22 +00:00
art-benchmark-service
a846e4e358 Update boot image and system server profiles [M15C15P85S0]
=Generation Strategy=

method_threshold: 0.15
image_class_threshold: 0.15
preloaded_classes_threshold: 0.85
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0

=Profile stats=

Data info:
- total aggregations: 728
- number of (device types, builds): 39

File boot-image-profile.txt
  - hot methods: 7827 added, 9252 removed
  - methods: 7827 added, 9252 removed
  - classes: 498 added, 1007 removed
  - totals now: 21265 hot methods, 21265 methods, 13478 classes
  - totals before: 22690 hot methods, 22690 methods, 13987 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 7358, 8683, 323, 595, 19799, 9337
    com.android, 431, 531, 51, 395, 1370, 3078
    android.view, 1320, 1356, 58, 11, 3165, 928
    android.hardware, 109, 116, 27, 27, 399, 795
    android.bluetooth, 0, 173, 0, 170, 0, 0
    android.animation, 193, 210, 1, 0, 384, 72
    android.app, 886, 984, 45, 12, 2796, 1016
    android.content, 765, 1139, 12, 49, 1770, 557
    android.graphics, 776, 801, 14, 1, 1947, 333
    android.icu, 630, 680, 11, 68, 1890, 1471
    android.media, 133, 164, 11, 10, 743, 568
    android.net, 92, 556, 1, 200, 247, 216
    android.widget, 574, 595, 8, 0, 1360, 376

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 2379 added, 682 removed
  - totals now: 0 hot methods, 0 methods, 13174 classes
  - totals before: 0 hot methods, 0 methods, 11477 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 1248, 508, 0, 9172
    com.android, 0, 0, 766, 174, 0, 3058
    android.view, 0, 0, 143, 7, 0, 879
    android.hardware, 0, 0, 134, 25, 0, 789
    android.bluetooth, 0, 0, 0, 164, 0, 0
    android.app, 0, 0, 131, 8, 0, 990
    android.content, 0, 0, 78, 40, 0, 552
    android.graphics, 0, 0, 36, 0, 0, 331
    android.icu, 0, 0, 66, 64, 0, 1470
    android.media, 0, 0, 72, 9, 0, 562
    android.net, 0, 0, 40, 165, 0, 216
    android.widget, 0, 0, 39, 0, 0, 368

File boot-image-profile.txt
  - hot methods: 11908 added, 13507 removed
  - methods: 11908 added, 13507 removed
  - classes: 895 added, 1047 removed
  - totals now: 30741 hot methods, 30741 methods, 16555 classes
  - totals before: 32340 hot methods, 32340 methods, 16707 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 7393, 8717, 323, 595, 19861, 9368
    com.android, 842, 942, 121, 395, 2329, 3488
    java, 2712, 2914, 231, 24, 6701, 2014
    android.view, 1320, 1356, 58, 11, 3165, 928
    android.hardware, 109, 116, 27, 27, 399, 795
    android.bluetooth, 0, 173, 0, 170, 0, 0
    android.animation, 193, 210, 1, 0, 384, 72
    android.app, 886, 984, 45, 12, 2796, 1016
    android.content, 765, 1139, 12, 49, 1770, 557
    android.graphics, 775, 801, 14, 1, 1946, 333
    android.icu, 630, 680, 11, 68, 1890, 1471
    android.media, 133, 164, 11, 10, 743, 568
    android.net, 92, 556, 1, 200, 247, 216
    android.widget, 574, 595, 8, 0, 1360, 376

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 2820 added, 709 removed
  - totals now: 0 hot methods, 0 methods, 16015 classes
  - totals before: 0 hot methods, 0 methods, 13904 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 1254, 507, 0, 9200
    com.android, 0, 0, 775, 174, 0, 3406
    java, 0, 0, 198, 14, 0, 1898
    android.view, 0, 0, 142, 6, 0, 878
    android.hardware, 0, 0, 135, 25, 0, 789
    android.bluetooth, 0, 0, 0, 164, 0, 0
    android.app, 0, 0, 132, 8, 0, 988
    android.content, 0, 0, 78, 40, 0, 552
    android.graphics, 0, 0, 36, 0, 0, 331
    android.icu, 0, 0, 66, 64, 0, 1470
    android.media, 0, 0, 72, 9, 0, 562
    android.net, 0, 0, 40, 165, 0, 216
    android.widget, 0, 0, 39, 0, 0, 368

File art-profile
  - hot methods: 16518 added, 25602 removed
  - methods: 31902 added, 28848 removed
  - classes: 1107 added, 2440 removed
  - totals now: 26387 hot methods, 54190 methods, 4431 classes
  - totals before: 35471 hot methods, 51136 methods, 5764 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 219, 316, 42, 343, 372, 136
    com.android, 16297, 25136, 1048, 2045, 26008, 4227
    android.hardware, 206, 143, 40, 67, 305, 100
    android.app, 2, 0, 1, 1, 3, 3
    android.content, 0, 2, 0, 2, 1, 5
    android.media, 0, 0, 0, 1, 0, 0
    android.net, 10, 167, 1, 269, 45, 19

InternalReferenceRawProfileId: 6586
InternalReferenceCandidateProfileId: 6607

Test: build & benchmark

Bug: 223366272

Change-Id: Id523f8c8e9aa78afc560c4876feba7d65c5b29e1
2022-05-17 18:31:21 +01:00
Nicolas Geoffray
637477eb87 Merge "Remove obsolete files on preloaded classes." 2021-11-17 10:36:58 +00:00
Nicolas Geoffray
26ef5ab715 Fix typo.
Test: n/a
Change-Id: Iacfde2e7b3e85e41233681302beed4db3f9ca576
2021-11-11 10:27:02 +00:00
Nicolas Geoffray
417a3ac589 Remove obsolete files on preloaded classes.
These files look to be unused.

Test: m
Change-Id: Idb7a9aa9e71290919b06a48fb4ee2df699494aa4
2021-11-10 10:25:19 +00:00
Nicolas Geoffray
83eb7d1759 Add a README to frameworks/base/config.
Bug: 174746397
Test: N/A
Change-Id: Ie1131c9ff818d1a5308774eb51337f8200a85d79
2021-11-10 09:36:47 +00:00
TreeHugger Robot
6ad573b6a5 Merge "Update boot image and system server profiles [M5C5P90S0PP]" into sc-dev am: db2dd6d551
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15325625

Change-Id: I52ec5aab82ffee901df46c6a61c1c09e6718b452
2021-07-19 17:04:07 +00:00
art-benchmark-service
66b4d95bc5 Update boot image and system server profiles [M5C5P90S0PP]
= Perf stats =
(lower is better)

Start, memory and code size are improving at a slight expense of boot
time. The increase in boot time is however small, and could well be
in the noise.

Cold startup (speed-profile): -1.21%
PSS: -3.40%
RSS: -2.58%
Privat Dirty: -4.68%
Boot time: 0.04%
Code size: 2.79%

=Generation Strategy=

method_threshold: 0.05
image_class_threshold: 0.05
preloaded_classes_threshold: 0.9
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
  key: "android"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.android.systemui"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.GoogleCamera"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.dialer"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.gms"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.webview"
  value: 0.02
}

=Profile stats=

Data info:
- total aggregations: 6988
- number of (device types, builds): 256

File boot-image-profile.txt
  - hot methods: 3564 added, 2353 removed
  - methods: 3564 added, 2353 removed
  - classes: 498 added, 29 removed
  - totals now: 22707 hot methods, 22707 methods, 13987 classes
  - totals before: 21496 hot methods, 21496 methods, 13518 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 3418, 2238, 39, 11, 21138, 9609
    com.android, 145, 114, 89, 18, 1473, 3422
    android.view, 575, 372, 4, 0, 3202, 881
    android.hardware, 88, 41, 2, 0, 407, 795
    android.bluetooth, 26, 23, 0, 0, 173, 170
    android.animation, 95, 56, 0, 0, 401, 71
    android.app, 392, 225, 7, 0, 2896, 983
    android.content, 329, 243, 5, 1, 2146, 594
    android.graphics, 425, 246, 0, 0, 1974, 320
    android.icu, 115, 86, 0, 0, 1940, 1528
    android.media, 98, 62, 0, 0, 777, 567
    android.net, 78, 51, 2, 10, 711, 415
    android.widget, 344, 277, 0, 0, 1382, 368

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 3 added, 19 removed
  - totals now: 0 hot methods, 0 methods, 11477 classes
  - totals before: 0 hot methods, 0 methods, 11493 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 3, 1, 0, 8432
    com.android, 0, 0, 0, 18, 0, 2466
    android.hardware, 0, 0, 1, 0, 0, 680
    android.app, 0, 0, 2, 0, 0, 867
    android.content, 0, 0, 0, 1, 0, 514

File boot-image-profile.txt
  - hot methods: 4788 added, 2939 removed
  - methods: 4788 added, 2939 removed
  - classes: 678 added, 29 removed
  - totals now: 32340 hot methods, 32340 methods, 16707 classes
  - totals before: 30491 hot methods, 30491 methods, 16058 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 3432, 2249, 39, 11, 21185, 9640
    com.android, 291, 154, 89, 18, 2429, 3762
    java, 825, 434, 0, 0, 6903, 1807
    android.view, 574, 372, 4, 0, 3201, 881
    android.hardware, 87, 41, 2, 0, 406, 795
    android.bluetooth, 37, 23, 0, 0, 173, 170
    android.animation, 95, 56, 0, 0, 401, 71
    android.app, 390, 225, 7, 0, 2894, 983
    android.content, 327, 243, 5, 1, 2144, 594
    android.graphics, 423, 246, 0, 0, 1972, 320
    android.icu, 115, 86, 0, 0, 1940, 1528
    android.media, 95, 62, 0, 0, 774, 567
    android.net, 78, 51, 2, 10, 711, 415
    android.widget, 344, 277, 0, 0, 1381, 368

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 0 added, 20 removed
  - totals now: 0 hot methods, 0 methods, 13904 classes
  - totals before: 0 hot methods, 0 methods, 13924 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 0, 2, 0, 8453
    com.android, 0, 0, 0, 18, 0, 2805
    android.view, 0, 0, 0, 1, 0, 742
    android.content, 0, 0, 0, 1, 0, 514

File art-profile
  - hot methods: 4595 added, 2644 removed
  - methods: 5217 added, 3300 removed
  - classes: 359 added, 13 removed
  - totals now: 35471 hot methods, 51136 methods, 5764 classes
  - totals before: 33520 hot methods, 49219 methods, 5418 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 37, 12, 157, 0, 469, 437
    com.android, 4557, 2631, 142, 13, 34847, 5224
    android.hardware, 8, 8, 0, 0, 242, 127
    android.net, 29, 4, 157, 0, 202, 287

InternalReferenceRawProfileId: 4117
InternalReferenceCandidateProfileId: 4124

Bug: 169104277
Test: build & benchmark

Change-Id: I6dd60b5d0457e0fa35d57082677892ae65b9e920
2021-07-19 01:59:38 +00:00
Orion Hodson
1752ac5faa Update art-team@ related OWNERS am: 7c5a5c137c am: 5a871ea77c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1739553

Change-Id: I9ff8a9b00e4ae3c00d3bf4d44081b54490bd2b2d
2021-06-25 09:30:43 +00:00
Orion Hodson
7c5a5c137c Update art-team@ related OWNERS
Bug: none
Test: none
Change-Id: Ia950ae80af64f1d64c2bb1948cea842776a42f59
2021-06-25 09:46:53 +01:00
art-benchmark-service
ec0f5b9e8d Update boot image and system server profiles [M5C5P89S0PP]
= Perf stats =
    (lower is better)

    Startup time is improving at the cost of slight increase in memory usage.
    This is due the a large number of extra preloaded classes which will
    be trimmed down in further updates.

    Cold startup (speed-profile): -2.05%
    PSS: -1.41%
    RSS: -0.63%
    Privat Dirty: -2.03%
    Boot time: -0.71%
    Code size: 0.47%

=Generation Strategy=

method_threshold: 0.05
image_class_threshold: 0.05
preloaded_classes_threshold: 0.899
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
  key: "android"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.android.systemui"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.GoogleCamera"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.webview"
  value: 0.02
}

=Profile stats=

Data info:
- total aggregations: 5637
- number of (device types, builds): 179

File boot-image-profile.txt
  - hot methods: 1354 added, 873 removed
  - methods: 1354 added, 873 removed
  - classes: 165 added, 2 removed
  - totals now: 21496 hot methods, 21496 methods, 13518 classes
  - totals before: 21015 hot methods, 21015 methods, 13355 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 1304, 833, 156, 2, 19958, 9581
    com.android, 49, 39, 9, 0, 1442, 3351
    android.view, 157, 128, 3, 2, 2999, 877
    android.hardware, 5, 4, 0, 0, 360, 793
    android.bluetooth, 3, 3, 0, 0, 170, 170
    android.animation, 24, 24, 0, 0, 362, 71
    android.app, 139, 127, 0, 0, 2729, 976
    android.content, 121, 106, 1, 0, 2060, 590
    android.graphics, 96, 79, 1, 0, 1795, 320
    android.icu, 39, 35, 0, 0, 1911, 1528
    android.media, 20, 21, 1, 0, 741, 567
    android.net, 381, 14, 141, 0, 684, 423
    android.widget, 94, 94, 2, 0, 1315, 368

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 108 added, 0 removed
  - totals now: 0 hot methods, 0 methods, 11493 classes
  - totals before: 0 hot methods, 0 methods, 11385 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 108, 0, 0, 8430
    android.view, 0, 0, 1, 0, 0, 743
    android.app, 0, 0, 1, 0, 0, 865
    android.net, 0, 0, 106, 0, 0, 341

File boot-image-profile.txt
  - hot methods: 1685 added, 1227 removed
  - methods: 1685 added, 1227 removed
  - classes: 167 added, 2 removed
  - totals now: 30491 hot methods, 30491 methods, 16058 classes
  - totals before: 30033 hot methods, 30033 methods, 15893 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 1303, 843, 158, 2, 20002, 9612
    com.android, 112, 102, 9, 0, 2292, 3691
    java, 216, 229, 0, 0, 6512, 1807
    android.view, 157, 128, 3, 2, 2999, 877
    android.hardware, 5, 4, 0, 0, 360, 793
    android.bluetooth, 3, 14, 0, 0, 159, 170
    android.animation, 24, 24, 0, 0, 362, 71
    android.app, 140, 126, 0, 0, 2729, 976
    android.content, 121, 106, 1, 0, 2060, 590
    android.graphics, 96, 79, 1, 0, 1795, 320
    android.icu, 39, 35, 0, 0, 1911, 1528
    android.media, 20, 21, 1, 0, 741, 567
    android.net, 381, 14, 141, 0, 684, 423
    android.widget, 93, 94, 2, 0, 1314, 368

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 110 added, 0 removed
  - totals now: 0 hot methods, 0 methods, 13924 classes
  - totals before: 0 hot methods, 0 methods, 13814 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 110, 0, 0, 8455
    android.view, 0, 0, 1, 0, 0, 743
    android.media, 0, 0, 1, 0, 0, 499
    android.net, 0, 0, 106, 0, 0, 341

File art-profile
  - hot methods: 2406 added, 1622 removed
  - methods: 2927 added, 1862 removed
  - classes: 77 added, 4 removed
  - totals now: 33520 hot methods, 49219 methods, 5418 classes
  - totals before: 32736 hot methods, 48154 methods, 5345 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 23, 4, 8, 0, 444, 280
    com.android, 2383, 1618, 69, 4, 32921, 5095
    android.hardware, 2, 2, 0, 0, 242, 127
    android.content, 2, 1, 1, 0, 3, 7
    android.net, 16, 1, 7, 0, 177, 130

InternalReferenceRawProfileId: 3925
InternalReferenceCandidateProfileId: 3934

Bug: 169104277
Test: build & benchmark

Change-Id: Ifd03de98020a738cfa7687fe83d7d3e5c89f5c10
2021-05-26 17:09:59 +00:00
art-benchmark-service
84deab3dfe Update boot image and system server profiles [M5C5P89S0PP]
= Perf stats =
(lower is better)

Reduction in the overall memory consumptions as well as faster
cold startups. The trade-off is a slight increase of code size.

Cold startup (speed-profile): -1.25%
PSS: -1.67%
RSS: -1.79%
Privat Dirty: -5.96%
Boot time: -0.82%
Code size: +4.85%

=Generation Strategy=

method_threshold: 0.05
image_class_threshold: 0.05
preloaded_classes_threshold: 0.899
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
  key: "android"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.android.systemui"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.GoogleCamera"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.webview"
  value: 0.02
}

=Profile stats=

Data info:
- total aggregations: 5307
- number of (device types, builds): 168

File boot-image-profile.txt
  - hot methods: 21015 added, 0 removed
  - methods: 21015 added, 0 removed
  - classes: 13355 added, 0 removed
  - totals now: 21015 hot methods, 21015 methods, 13355 classes
  - totals before: 0 hot methods, 0 methods, 0 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 19487, 0, 9427, 0, 19487, 9427
    com.android, 1432, 0, 3342, 0, 1432, 3342
    java, 2, 0, 114, 0, 2, 114
    android.view, 2970, 0, 876, 0, 2970, 876
    android.hardware, 359, 0, 793, 0, 359, 793
    android.bluetooth, 170, 0, 170, 0, 170, 170
    android.animation, 362, 0, 71, 0, 362, 71
    android.app, 2717, 0, 976, 0, 2717, 976
    android.content, 2045, 0, 589, 0, 2045, 589
    android.graphics, 1778, 0, 319, 0, 1778, 319
    android.icu, 1907, 0, 1528, 0, 1907, 1528
    android.media, 742, 0, 566, 0, 742, 566
    android.net, 317, 0, 282, 0, 317, 282
    android.widget, 1315, 0, 366, 0, 1315, 366

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 11385 added, 0 removed
  - totals now: 0 hot methods, 0 methods, 11385 classes
  - totals before: 0 hot methods, 0 methods, 0 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 8322, 0, 0, 8322
    com.android, 0, 0, 2484, 0, 0, 2484
    java, 0, 0, 114, 0, 0, 114
    android.view, 0, 0, 742, 0, 0, 742
    android.hardware, 0, 0, 679, 0, 0, 679
    android.bluetooth, 0, 0, 164, 0, 0, 164
    android.animation, 0, 0, 71, 0, 0, 71
    android.app, 0, 0, 864, 0, 0, 864
    android.content, 0, 0, 515, 0, 0, 515
    android.graphics, 0, 0, 295, 0, 0, 295
    android.icu, 0, 0, 1468, 0, 0, 1468
    android.media, 0, 0, 499, 0, 0, 499
    android.net, 0, 0, 235, 0, 0, 235
    android.widget, 0, 0, 329, 0, 0, 329

File boot-image-profile.txt
  - hot methods: 2663 added, 2687 removed
  - methods: 2659 added, 2687 removed
  - classes: 201 added, 248 removed
  - totals now: 30033 hot methods, 30033 methods, 15893 classes
  - totals before: 30057 hot methods, 30061 methods, 15940 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 1988, 1537, 113, 228, 19542, 9456
    com.android, 295, 255, 86, 20, 2282, 3682
    java, 304, 673, 0, 0, 6525, 1807
    android.view, 210, 127, 21, 0, 2970, 876
    android.hardware, 35, 10, 5, 2, 359, 793
    android.bluetooth, 18, 16, 0, 0, 170, 170
    android.animation, 28, 13, 0, 0, 362, 71
    android.app, 285, 190, 16, 19, 2715, 976
    android.content, 298, 104, 5, 0, 2045, 589
    android.graphics, 143, 65, 0, 0, 1778, 319
    android.icu, 103, 43, 0, 0, 1907, 1528
    android.media, 71, 18, 4, 2, 742, 566
    android.net, 42, 387, 5, 138, 317, 282
    android.widget, 143, 88, 3, 0, 1315, 366

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 33 added, 175 removed
  - totals now: 0 hot methods, 0 methods, 13814 classes
  - totals before: 0 hot methods, 0 methods, 13956 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 6, 170, 0, 8345
    com.android, 0, 0, 27, 5, 0, 2823
    android.app, 0, 0, 2, 1, 0, 864
    android.graphics, 0, 0, 2, 0, 0, 295
    android.net, 0, 0, 0, 107, 0, 235

File art-profile
  - hot methods: 4351 added, 2717 removed
  - methods: 5688 added, 3427 removed
  - classes: 174 added, 40 removed
  - totals now: 32736 hot methods, 48154 methods, 5345 classes
  - totals before: 31102 hot methods, 45893 methods, 5211 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 11, 37, 0, 18, 425, 272
    com.android, 4337, 2679, 173, 22, 32156, 5030
    android.hardware, 2, 2, 0, 0, 242, 127
    android.net, 9, 32, 0, 15, 162, 123

InternalReferenceRawProfileId: 3892
InternalReferenceCandidateProfileId: 3900

Test: build & benchmark
Bug: 169104277

Change-Id: I64897afc1d6899d729d9086f64ac3a9574429526
(cherry picked from commit c6c95e8d93)
2021-05-14 17:07:47 +00:00
Paul Duffin
3f0bc6b4ba Merge "Remove unnecessary entries in frameworks/base/config/OWNERS" am: a2baa71441 am: e9ec371853 am: a8329471e4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1665364

Change-Id: I41bcbbc966570eb53feb276ff89a65b9854d92c3
2021-04-09 01:05:37 +00:00
Paul Duffin
4d7845e51c Remove unnecessary entries in frameworks/base/config/OWNERS
The relevant files (and corresponding OWNERS entries) have been moved
to frameworks/base/boot/hiddenapi/.

Bug: 179354495
Test: m nothing
Change-Id: Ie0d7bb8c0c5176c165102f83d2d2f71d152cfd7a
2021-04-07 22:17:36 +01:00
Paul Duffin
26c79b9600 resolve merge conflicts of 86472844bc to sc-dev
Bug: 179354495
Test: m nothing
Change-Id: I44f047eb68624d66dd215b4a8395d52dec22e4f2
2021-04-07 20:17:28 +01:00
Paul Duffin
15d97d8865 Move hiddenapi config into frameworks/base/boot
As part of the work to modularize the hiddenapi this change moves the
hiddenapi configuration files into the frameworks/base/boot directory
which is where the platform_bootclasspath module that will end up
using it resides.

Bug: 179354495
Test: verified that the out/soong/hiddenapi/... files are unchanged
      by this change
Change-Id: Ic1c3ac9b717c34fa8ff36f349a75fb397101a077
2021-04-06 13:55:50 +01:00
art-benchmark-service
f45ca2fb70 Update boot image and system server profiles [M5C5P90S0PP]
= Perf stats =
(lower is better)

Big reduction in the overall memory consumptions as well as faster cold startups. The trade-off is a slight increase of code size.
 
Cold startup (speed-profile): -2.45%
PSS: -6.93%
RSS: -2.06%
Privat Dirty: -8.15%
Boot time: -0.71%
Code size: +5.73%

=Generation Strategy=

method_threshold: 0.05
image_class_threshold: 0.05
preloaded_classes_threshold: 0.9
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
  key: "android"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.android.systemui"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.GoogleCamera"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.dialer"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.gms"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.webview"
  value: 0.02
}

=Profile stats=

Data info:
- total aggregations: 4778
- number of (device types, builds): 138

File boot-image-profile.txt
  - hot methods: 4497 added, 2661 removed
  - methods: 4497 added, 2661 removed
  - classes: 760 added, 34 removed
  - totals now: 30057 hot methods, 30061 methods, 15940 classes
  - totals before: 28221 hot methods, 28225 methods, 15214 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 3051, 1971, 263, 22, 19091, 9571
    com.android, 348, 157, 436, 12, 2242, 3616
    java, 799, 398, 59, 0, 6894, 1807
    android.view, 573, 390, 60, 1, 2887, 855
    android.hardware, 51, 29, 3, 0, 334, 790
    android.bluetooth, 21, 1, 1, 0, 168, 170
    android.animation, 105, 104, 0, 0, 347, 71
    android.app, 350, 168, 38, 1, 2620, 979
    android.content, 272, 181, 17, 0, 1851, 584
    android.graphics, 319, 310, 16, 0, 1700, 319
    android.icu, 241, 152, 0, 0, 1847, 1528
    android.media, 67, 26, 13, 2, 689, 564
    android.net, 78, 49, 8, 3, 662, 415
    android.widget, 246, 182, 11, 0, 1260, 363

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 0 added, 18 removed
  - totals now: 0 hot methods, 0 methods, 13956 classes
  - totals before: 0 hot methods, 0 methods, 13974 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 0, 15, 0, 8509
    com.android, 0, 0, 0, 3, 0, 2801
    android.view, 0, 0, 0, 1, 0, 742
    android.app, 0, 0, 0, 2, 0, 863
    android.graphics, 0, 0, 0, 2, 0, 293
    android.media, 0, 0, 0, 1, 0, 498

File art-profile
  - hot methods: 4156 added, 2740 removed
  - methods: 4967 added, 3444 removed
  - classes: 415 added, 11 removed
  - totals now: 31102 hot methods, 45893 methods, 5211 classes
  - totals before: 29686 hot methods, 44370 methods, 4807 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 26, 34, 8, 1, 451, 290
    com.android, 4107, 2698, 407, 10, 30498, 4879
    android.hardware, 12, 12, 0, 0, 242, 127
    android.content, 0, 0, 0, 0, 2, 6
    android.net, 14, 21, 8, 1, 185, 138

InternalReferenceRawProfileId: 3751
InternalReferenceCandidateProfileId: 3761

Test: build & benchmark
Bug: 169104277
Change-Id: Ie9de3cba7c952b28cb48e53d44cab6e21cc8d81f
2021-04-06 00:05:36 +00:00
Janis Danisevskis
9ba0f37f8a Merge "Keystore 2.0: Remove Keystore 1.0 SPI with all remaining references" am: a8b1b1a2e6 am: 08945c21ef am: 66ead4fb0b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1624872

Change-Id: I08fcf329e59c309d9292edc846653b02e7a60f21
2021-04-03 02:02:03 +00:00
Janis Danisevskis
a6dcf091f5 Keystore 2.0: Remove Keystore 1.0 SPI with all remaining references
Bug: 171305684
Test: CtsKeystoreTestCases
Change-Id: I337515dadc9e45b909bff058d4e13371b4fa843c
2021-04-01 17:06:41 -07:00
art-benchmark-service
ba35403064 Update boot image and system server profiles [M5C5P90S0PP]
= Perf stats =
(lower is better)

Start and memory are improving at a slight expense of code size and
boot time. The boot time metric is very noisy however. This changes
adds inline-caches to the boot profile.

An inline cache is formatted like:

```
HSPLthis/is/a/classMethod;->descriptor()V+]Ltarget/type;Lresult/type1;,Lresult/type2;]Ltarget/type2;megamorphic_types
HSPLandroid/content/pm/parsing/ParsingPackageUtils;->hasDomainURLs(Landroid/content/pm/parsing/ParsingPackage;)Z+]Landroid/content/pm/parsing/component/ParsedActivity;Landroid/content/pm/parsing/component/ParsedActivity;]Ljava/util/List;Ljava/util/Collections$EmptyList;,Ljava/util/ArrayList;]Landroid/content/pm/parsing/component/ParsedIntentInfo;Landroid/content/pm/parsing/component/ParsedIntentInfo;
```

Cold startup (speed-profile): -2.35%
PSS: -1.60%
RSS: -0.44%
Private Dirty: -2.14%
Boot time: +3.24%
Code size: +5.83%


=Generation Strategy=

method_threshold: 0.05
image_class_threshold: 0.05
preloaded_classes_threshold: 0.9
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
  key: "android"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.android.systemui"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.GoogleCamera"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.webview"
  value: 0.02
}

=Profile stats=

Data info:
- total aggregations: 4247
- number of (device types, builds): 128

File boot-image-profile.txt
  - hot methods: 7863 added, 8398 removed
  - methods: 7857 added, 8398 removed
  - classes: 352 added, 848 removed
  - totals now: 28221 hot methods, 28225 methods, 15214 classes
  - totals before: 28756 hot methods, 28766 methods, 15710 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 3992, 4543, 246, 358, 18011, 9330
    com.android, 590, 593, 96, 429, 2051, 3192
    java, 2521, 2494, 9, 59, 6493, 1748
    android.view, 729, 805, 15, 74, 2704, 796
    android.hardware, 36, 43, 16, 8, 312, 787
    android.bluetooth, 12, 10, 0, 1, 148, 169
    android.animation, 99, 106, 0, 0, 346, 71
    android.app, 415, 493, 24, 48, 2438, 942
    android.content, 400, 462, 14, 22, 1760, 567
    android.graphics, 321, 393, 2, 19, 1691, 303
    android.icu, 489, 424, 58, 4, 1758, 1528
    android.media, 61, 91, 4, 19, 648, 553
    android.net, 134, 157, 27, 15, 633, 410
    android.widget, 307, 382, 11, 16, 1196, 352

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 5 added, 474 removed
  - totals now: 0 hot methods, 0 methods, 13974 classes
  - totals before: 0 hot methods, 0 methods, 14443 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 5, 121, 0, 8524
    com.android, 0, 0, 0, 308, 0, 2804
    java, 0, 0, 0, 43, 0, 1714
    android.view, 0, 0, 0, 11, 0, 743
    android.hardware, 0, 0, 0, 1, 0, 679
    android.app, 0, 0, 0, 29, 0, 865
    android.content, 0, 0, 0, 4, 0, 515
    android.graphics, 0, 0, 0, 8, 0, 295
    android.icu, 0, 0, 0, 4, 0, 1468
    android.media, 0, 0, 0, 3, 0, 499
    android.net, 0, 0, 4, 1, 0, 342
    android.widget, 0, 0, 0, 5, 0, 329

File art-profile
  - hot methods: 15265 added, 13296 removed
  - methods: 18373 added, 16318 removed
  - classes: 490 added, 1810 removed
  - totals now: 29686 hot methods, 44370 methods, 4807 classes
  - totals before: 27717 hot methods, 42315 methods, 6127 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 185, 140, 10, 14, 459, 283
    com.android, 15050, 13109, 480, 1788, 29089, 4482
    android.hardware, 101, 69, 9, 6, 242, 127
    android.app, 0, 0, 0, 0, 1, 3
    android.content, 1, 0, 0, 0, 2, 6
    android.net, 80, 68, 0, 8, 192, 131

InternalReferenceRawProfileId: 3661
InternalReferenceCandidateProfileId: 3664

Test: build & benchmark
Bug: 168941430

Merged-In: I82493824bf0f383c0db81cdc11051df50b5e813f
Merged-In: Icf870c90dd68b8450ad0928ae8e5594c5eb94423

(cherry picked from commit 740d4947b9)

Change-Id: Ifd87d506d710d1a1eaf31842f0327eeab50684be
2021-03-23 18:48:50 +00:00
Nicolas Geoffray
9c9887381c Merge "Remove some methods from DdmVmInternal." am: af174a5708 am: 5f117b3491 am: 55eafcc5a7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549965

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5f82f7d8ea56944f1243cca55aa6631dc53d29d4
2021-03-12 13:47:59 +00:00
Nicolas Geoffray
cfbebc15ae Remove some methods from DdmVmInternal.
Test: m
Change-Id: I41bee1f48f77f61e5194fcc0e4607f04ab674c1f
2021-03-05 15:02:34 +00:00
Vladimir Marko
cde7c9f16f Merge "Change dirty-image-objects file format." am: 523e3b9b79 am: e70dab7633 am: 87cb8b5efe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1606454

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I68d174ca59fea49ce1828f0c828b32fbb5d2c214
2021-03-01 08:10:53 +00:00
Vladimir Marko
b946a3a339 Change dirty-image-objects file format.
Use actual descriptors instead of "pretty decriptors".

Test: m
Bug: 175869411
Change-Id: Iad3b4c78947e653c24ff80052cc5dc75f5c4b6c7
2021-02-25 12:19:58 +00:00
Bob Badour
8a6a2bce6c [LSC] Add LOCAL_LICENSE_KINDS to frameworks/base
Added SPDX-license-identifier-Apache-2.0 to:
  apct-tests/perftests/autofill/Android.bp
  apct-tests/perftests/blobstore/Android.bp
  apct-tests/perftests/core/Android.bp
  apct-tests/perftests/core/apps/overlay/Android.bp
  apct-tests/perftests/core/apps/reources_manager/Android.bp
  apct-tests/perftests/core/jni/Android.bp
  apct-tests/perftests/multiuser/Android.bp
  apct-tests/perftests/multiuser/apps/dummyapp/Android.bp
  apct-tests/perftests/packagemanager/Android.bp
  apct-tests/perftests/packagemanager/apps/query-all/Android.bp
  apct-tests/perftests/textclassifier/Android.bp
  apct-tests/perftests/utils/Android.bp
  apct-tests/perftests/windowmanager/Android.bp
  apex/Android.bp
  apex/blobstore/framework/Android.bp
  apex/blobstore/service/Android.bp
  apex/jobscheduler/framework/Android.bp
  apex/jobscheduler/service/Android.bp
  apex/media/Android.bp
  apex/media/aidl/Android.bp
  apex/media/framework/Android.bp
  cmds/am/Android.bp
  cmds/app_process/Android.bp
  cmds/appops/Android.bp
  cmds/appwidget/Android.bp
  cmds/backup/Android.bp
  cmds/bmgr/Android.bp
  cmds/bootanimation/Android.bp
  cmds/bu/Android.bp
  cmds/content/Android.bp
  cmds/dpm/Android.bp
  cmds/hid/Android.bp
  cmds/hid/jni/Android.bp
  cmds/idmap2/Android.bp
  cmds/ime/Android.bp
  cmds/incident/Android.bp
  cmds/incident_helper/Android.bp
  cmds/incidentd/Android.bp
  cmds/input/Android.bp
  cmds/interrupter/Android.bp
  cmds/locksettings/Android.bp
  cmds/pm/Android.bp
  cmds/requestsync/Android.bp
  cmds/screencap/Android.bp
  cmds/sm/Android.bp
  cmds/svc/Android.bp
  cmds/telecom/Android.bp
  cmds/uiautomator/Android.bp
  cmds/uiautomator/cmds/uiautomator/Android.bp
  cmds/uiautomator/instrumentation/Android.bp
  cmds/uiautomator/library/Android.bp
  cmds/vr/Android.bp
  cmds/wm/Android.bp
  config/Android.bp
  core/java/android/service/wallpaper/Android.bp
  core/jni/Android.bp
  core/sysprop/Android.bp
  core/tests/BroadcastRadioTests/Android.bp
  core/tests/ConnectivityManagerTest/Android.bp
  core/tests/PackageInstallerSessions/Android.bp
  core/tests/PlatformCompatFramework/Android.bp
  core/tests/bandwidthtests/Android.bp
  core/tests/benchmarks/Android.bp
  core/tests/bluetoothtests/Android.bp
  core/tests/bugreports/Android.bp
  core/tests/coretests/Android.bp
  core/tests/coretests/BinderDeathRecipientHelperApp/Android.bp
  core/tests/coretests/BinderProxyCountingTestApp/Android.bp
  core/tests/coretests/BinderProxyCountingTestService/Android.bp
  core/tests/coretests/BstatsTestApp/Android.bp
  core/tests/coretests/DisabledTestApp/Android.bp
  core/tests/coretests/EnabledTestApp/Android.bp
  core/tests/coretests/aidl/Android.bp
  core/tests/coretests/apks/Android.bp
  core/tests/coretests/apks/install/Android.bp
  core/tests/coretests/apks/install_bad_dex/Android.bp
  core/tests/coretests/apks/install_complete_package_info/Android.bp
  core/tests/coretests/apks/install_decl_perm/Android.bp
  core/tests/coretests/apks/install_jni_lib/Android.bp
  core/tests/coretests/apks/install_jni_lib_open_from_apk/Android.bp
  core/tests/coretests/apks/install_loc_auto/Android.bp
  core/tests/coretests/apks/install_loc_internal/Android.bp
  core/tests/coretests/apks/install_loc_sdcard/Android.bp
  core/tests/coretests/apks/install_loc_unspecified/Android.bp
  core/tests/coretests/apks/install_use_perm_good/Android.bp
  core/tests/coretests/apks/install_uses_feature/Android.bp
  core/tests/coretests/apks/install_verifier_bad/Android.bp
  core/tests/coretests/apks/install_verifier_good/Android.bp
  core/tests/coretests/apks/keyset/Android.bp
  core/tests/coretests/apks/locales/Android.bp
  core/tests/coretests/apks/overlay_config/Android.bp
  core/tests/coretests/apks/version/Android.bp
  core/tests/coretests/apks/version_nosys/Android.bp
  core/tests/featureflagtests/Android.bp
  core/tests/hdmitests/Android.bp
  core/tests/hosttests/test-apps/AutoLocTestApp/Android.bp
  core/tests/hosttests/test-apps/AutoLocVersionedTestApp_v1/Android.bp
  core/tests/hosttests/test-apps/AutoLocVersionedTestApp_v2/Android.bp
  core/tests/hosttests/test-apps/ExternalLocAllPermsTestApp/Android.bp
  core/tests/hosttests/test-apps/ExternalLocPermsFLTestApp/Android.bp
  core/tests/hosttests/test-apps/ExternalLocTestApp/Android.bp
  core/tests/hosttests/test-apps/ExternalLocVersionedTestApp_v1/Android.bp
  core/tests/hosttests/test-apps/ExternalLocVersionedTestApp_v2/Android.bp
  core/tests/hosttests/test-apps/ExternalSharedPerms/Android.bp
  core/tests/hosttests/test-apps/ExternalSharedPermsBT/Android.bp
  core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/Android.bp
  core/tests/hosttests/test-apps/ExternalSharedPermsFL/Android.bp
  core/tests/hosttests/test-apps/InternalLocTestApp/Android.bp
  core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/Android.bp
  core/tests/hosttests/test-apps/NoLocTestApp/Android.bp
  core/tests/hosttests/test-apps/NoLocVersionedTestApp_v1/Android.bp
  core/tests/hosttests/test-apps/NoLocVersionedTestApp_v2/Android.bp
  core/tests/hosttests/test-apps/SharedUid/32/Android.bp
  core/tests/hosttests/test-apps/SharedUid/32/jni/Android.bp
  core/tests/hosttests/test-apps/SharedUid/64/Android.bp
  core/tests/hosttests/test-apps/SharedUid/64/jni/Android.bp
  core/tests/hosttests/test-apps/SharedUid/dual/Android.bp
  core/tests/hosttests/test-apps/SharedUid/dual/jni/Android.bp
  core/tests/hosttests/test-apps/SharedUid/java_only/Android.bp
  core/tests/hosttests/test-apps/SimpleTestApp/Android.bp
  core/tests/hosttests/test-apps/UpdateExtToIntLocTestApp_v1_ext/Android.bp
  core/tests/hosttests/test-apps/UpdateExtToIntLocTestApp_v2_int/Android.bp
  core/tests/hosttests/test-apps/UpdateExternalLocTestApp_v1_ext/Android.bp
  core/tests/hosttests/test-apps/UpdateExternalLocTestApp_v2_none/Android.bp
  core/tests/hosttests/test-apps/VersatileTestApp_Auto/Android.bp
  core/tests/hosttests/test-apps/VersatileTestApp_External/Android.bp
  core/tests/hosttests/test-apps/VersatileTestApp_Internal/Android.bp
  core/tests/hosttests/test-apps/VersatileTestApp_None/Android.bp
  core/tests/mockingcoretests/Android.bp
  core/tests/notificationtests/Android.bp
  core/tests/overlaytests/device/Android.bp
  core/tests/overlaytests/device/test-apps/AppOverlayOne/Android.bp
  core/tests/overlaytests/device/test-apps/AppOverlayTwo/Android.bp
  core/tests/overlaytests/device/test-apps/FrameworkOverlay/Android.bp
  core/tests/overlaytests/host/Android.bp
  core/tests/overlaytests/remount/Android.bp
  core/tests/overlaytests/remount/test-apps/Overlay/Android.bp
  core/tests/overlaytests/remount/test-apps/SharedLibrary/Android.bp
  core/tests/overlaytests/remount/test-apps/SharedLibraryOverlay/Android.bp
  core/tests/overlaytests/remount/test-apps/Target/Android.bp
  core/tests/packagemanagertests/Android.bp
  core/tests/privacytests/Android.bp
  core/tests/screenshothelpertests/Android.bp
  core/tests/systemproperties/Android.bp
  core/tests/utillib/Android.bp
  core/tests/utiltests/Android.bp
  core/tests/utiltests/jni/Android.bp
  core/tests/uwbtests/Android.bp
  core/xsd/Android.bp
  core/xsd/vts/Android.bp
  data/etc/Android.bp
  data/etc/car/Android.bp
  data/fonts/Android.bp
  data/keyboards/Android.mk
  drm/jni/Android.bp
  errorprone/Android.bp
  graphics/proto/Android.bp
  keystore/Android.bp
  keystore/tests/Android.bp
  libs/WindowManager/Jetpack/Android.bp
  libs/WindowManager/Shell/Android.bp
  libs/WindowManager/Shell/tests/Android.bp
  libs/androidfw/Android.bp
  libs/androidfw/fuzz/resourcefile_fuzzer/Android.bp
  libs/hostgraphics/Android.bp
  libs/incident/Android.bp
  libs/input/Android.bp
  libs/input/tests/Android.bp
  libs/protoutil/Android.bp
  libs/services/Android.bp
  libs/storage/Android.bp
  libs/usb/tests/AccessoryChat/Android.bp
  libs/usb/tests/AccessoryChat/accessorychat/Android.bp
  location/lib/Android.bp
  location/tests/Android.bp
  location/tests/locationtests/Android.bp
  lowpan/tests/Android.bp
  media/Android.bp
  media/java/Android.bp
  media/java/android/media/tv/tunerresourcemanager/Android.bp
  media/jni/Android.bp
  media/jni/audioeffect/Android.bp
  media/jni/soundpool/Android.bp
  media/jni/soundpool/tests/Android.bp
  media/lib/remotedisplay/Android.bp
  media/lib/signer/Android.bp
  media/lib/tvremote/Android.bp
  media/lib/tvremote/tests/Android.bp
  media/mca/filterfw/Android.bp
  media/mca/filterfw/native/Android.bp
  media/mca/filterpacks/Android.bp
  media/mca/samples/CameraEffectsRecordingSample/Android.bp
  media/mca/tests/Android.bp
  media/native/midi/Android.bp
  media/packages/BluetoothMidiService/Android.bp
  media/packages/BluetoothMidiService/tests/unit/Android.bp
  media/tests/AudioPolicyTest/Android.bp
  media/tests/CameraBrowser/Android.bp
  media/tests/EffectsTest/Android.bp
  media/tests/MediaDump/Android.bp
  media/tests/MediaFrameworkTest/Android.bp
  media/tests/MediaRouter/Android.bp
  media/tests/MtpTests/Android.bp
  media/tests/ScoAudioTest/Android.bp
  media/tests/SoundPoolTest/Android.bp
  media/tests/TunerTest/Android.bp
  media/tests/audiotests/Android.bp
  media/tests/players/Android.bp
  mime/Android.bp
  native/android/Android.bp
  native/graphics/jni/Android.bp
  native/webview/loader/Android.bp
  nfc-extras/Android.bp
  nfc-extras/tests/Android.bp
  packages/AppPredictionLib/Android.bp
  packages/BackupEncryption/Android.bp
  packages/BackupEncryption/test/robolectric-integration/Android.bp
  packages/BackupEncryption/test/robolectric/Android.bp
  packages/BackupEncryption/test/unittest/Android.bp
  packages/BackupRestoreConfirmation/Android.bp
  packages/CarSystemUI/Android.bp
  packages/CarrierDefaultApp/Android.bp
  packages/CarrierDefaultApp/tests/unit/Android.bp
  packages/CompanionDeviceManager/Android.bp
  packages/Connectivity/framework/Android.bp
  packages/Connectivity/service/Android.bp
  packages/CtsShim/Android.bp
  packages/CtsShim/build/Android.bp
  packages/CtsShim/build/jni/Android.bp
  packages/DynamicSystemInstallationService/Android.bp
  packages/DynamicSystemInstallationService/tests/Android.bp
  packages/EasterEgg/Android.bp
  packages/EncryptedLocalTransport/Android.bp
  packages/ExtShared/Android.bp
  packages/ExternalStorageProvider/Android.bp
  packages/ExternalStorageProvider/tests/Android.bp
  packages/FakeOemFeatures/Android.bp
  packages/FusedLocation/Android.bp
  packages/InputDevices/Android.bp
  packages/LocalTransport/Android.bp
  packages/PackageInstaller/Android.bp
  packages/PrintRecommendationService/Android.bp
  packages/PrintSpooler/Android.bp
  packages/PrintSpooler/jni/Android.bp
  packages/PrintSpooler/tests/outofprocess/Android.bp
  packages/SettingsLib/ActionBarShadow/Android.bp
  packages/SettingsLib/ActionButtonsPreference/Android.bp
  packages/SettingsLib/AdaptiveIcon/Android.bp
  packages/SettingsLib/Android.bp
  packages/SettingsLib/AppPreference/Android.bp
  packages/SettingsLib/BarChartPreference/Android.bp
  packages/SettingsLib/DisplayDensityUtils/Android.bp
  packages/SettingsLib/EntityHeaderWidgets/Android.bp
  packages/SettingsLib/HelpUtils/Android.bp
  packages/SettingsLib/LayoutPreference/Android.bp
  packages/SettingsLib/ProgressBar/Android.bp
  packages/SettingsLib/RadioButtonPreference/Android.bp
  packages/SettingsLib/RestrictedLockUtils/Android.bp
  packages/SettingsLib/SchedulesProvider/Android.bp
  packages/SettingsLib/SearchProvider/Android.bp
  packages/SettingsLib/SearchWidget/Android.bp
  packages/SettingsLib/SettingsSpinner/Android.bp
  packages/SettingsLib/SettingsTheme/Android.bp
  packages/SettingsLib/Tile/Android.bp
  packages/SettingsLib/Utils/Android.bp
  packages/SettingsLib/search/Android.bp
  packages/SettingsLib/tests/integ/Android.bp
  packages/SettingsLib/tests/robotests/Android.bp
  packages/SettingsProvider/Android.bp
  packages/SharedStorageBackup/Android.bp
  packages/Shell/Android.bp
  packages/Shell/tests/Android.bp
  packages/SimAppDialog/Android.bp
  packages/SoundPicker/Android.bp
  packages/StatementService/Android.bp
  packages/SystemUI/Android.bp
  packages/SystemUI/plugin/Android.bp
  packages/SystemUI/plugin/ExamplePlugin/Android.bp
  packages/SystemUI/plugin_core/Android.bp
  packages/SystemUI/shared/Android.bp
  packages/VpnDialogs/Android.bp
  packages/WAPPushManager/Android.bp
  packages/WAPPushManager/tests/Android.bp
  packages/WallpaperBackup/Android.bp
  packages/WallpaperCropper/Android.bp
  packages/overlays/Android.mk
  packages/overlays/tests/Android.bp
  packages/services/PacProcessor/Android.bp
  packages/services/PacProcessor/jni/Android.bp
  packages/services/Proxy/Android.bp
  proto/Android.bp
  rs/jni/Android.mk
  samples/demo/haptic-assessment/Android.bp
  sax/tests/saxtests/Android.bp
  services/Android.bp
  services/accessibility/Android.bp
  services/appprediction/Android.bp
  services/appwidget/Android.bp
  services/autofill/Android.bp
  services/backup/Android.bp
  services/backup/backuplib/Android.bp
  services/companion/Android.bp
  services/contentcapture/Android.bp
  services/contentsuggestions/Android.bp
  services/core/Android.bp
  services/core/java/com/android/server/vcn/Android.bp
  services/core/jni/Android.bp
  services/core/xsd/Android.bp
  services/core/xsd/vts/Android.bp
  services/coverage/Android.bp
  services/devicepolicy/Android.bp
  services/incremental/Android.bp
  services/midi/Android.bp
  services/net/Android.bp
  services/people/Android.bp
  services/print/Android.bp
  services/profcollect/Android.bp
  services/restrictions/Android.bp
  services/robotests/Android.bp
  services/robotests/backup/Android.bp
  services/systemcaptions/Android.bp
  services/tests/PackageManagerComponentOverrideTests/Android.bp
  services/tests/PackageManagerServiceTests/host/Android.bp
  services/tests/PackageManagerServiceTests/host/test-apps/Android.bp
  services/tests/mockingservicestests/Android.bp
  services/tests/rescueparty/Android.bp
  services/tests/servicestests/Android.bp
  services/tests/servicestests/aidl/Android.bp
  services/tests/servicestests/apks/Android.bp
  services/tests/servicestests/apks/install-split-base/Android.bp
  services/tests/servicestests/apks/install-split-feature-a/Android.bp
  services/tests/servicestests/apks/install_intent_filters/Android.bp
  services/tests/servicestests/apks/install_uses_sdk/Android.bp
  services/tests/servicestests/test-apps/ConnTestApp/Android.bp
  services/tests/servicestests/test-apps/JobTestApp/Android.bp
  services/tests/servicestests/test-apps/PackageParserApp/Android.bp
  services/tests/servicestests/test-apps/PackageParsingTestManifests/Android.bp
  services/tests/servicestests/test-apps/SimpleServiceTestApp/Android.bp
  services/tests/servicestests/test-apps/SuspendTestApp/Android.bp
  services/tests/shortcutmanagerutils/Android.bp
  services/tests/uiservicestests/Android.bp
  services/tests/wmtests/Android.bp
  services/usage/Android.bp
  services/usb/Android.bp
  services/voiceinteraction/Android.bp
  services/wifi/Android.bp
  startop/apps/test/Android.bp
  startop/iorap/Android.bp
  startop/iorap/functional_tests/Android.bp
  startop/iorap/stress/Android.bp
  startop/iorap/tests/Android.bp
  startop/view_compiler/Android.bp
  startop/view_compiler/dex_builder_test/Android.bp
  test-base/hiddenapi/Android.bp
  test-mock/Android.bp
  test-runner/tests/Android.bp
  tests/AccessibilityEventsLogger/Android.bp
  tests/AccessoryDisplay/common/Android.bp
  tests/AccessoryDisplay/sink/Android.bp
  tests/AccessoryDisplay/source/Android.bp
  tests/ActivityManagerPerfTests/stub-app/Android.bp
  tests/ActivityManagerPerfTests/test-app/Android.bp
  tests/ActivityManagerPerfTests/tests/Android.bp
  tests/ActivityManagerPerfTests/utils/Android.bp
  tests/ActivityTests/Android.bp
  tests/ActivityViewTest/Android.bp
  tests/AmSlam/Android.bp
  tests/ApkVerityTest/Android.bp
  tests/ApkVerityTest/ApkVerityTestApp/Android.bp
  tests/ApkVerityTest/block_device_writer/Android.bp
  tests/AppLaunch/Android.bp
  tests/AppLaunchWear/Android.bp
  tests/AppResourcesLoaders/Android.bp
  tests/AppResourcesLoaders/Overlay/Android.bp
  tests/Assist/Android.bp
  tests/AutoVerify/app1/Android.bp
  tests/AutoVerify/app2/Android.bp
  tests/AutoVerify/app3/Android.bp
  tests/AutoVerify/app4/Android.bp
  tests/BackgroundDexOptServiceIntegrationTests/Android.bp
  tests/BandwidthTests/Android.bp
  tests/BatteryWaster/Android.bp
  tests/BiDiTests/Android.bp
  tests/BlobStoreTestUtils/Android.bp
  tests/BootImageProfileTest/Android.bp
  tests/BrowserPowerTest/Android.bp
  tests/Camera2Tests/SmartCamera/SimpleCamera/jni/Android.bp
  tests/CameraPrewarmTest/Android.bp
  tests/Codegen/Android.bp
  tests/Compatibility/Android.bp
  tests/CoreTests/android/Android.bp
  tests/DataIdleTest/Android.bp
  tests/DozeTest/Android.bp
  tests/DpiTest/Android.bp
  tests/DynamicCodeLoggerIntegrationTests/Android.mk
  tests/FeatureSplit/base/Android.bp
  tests/FeatureSplit/feature1/Android.bp
  tests/FeatureSplit/feature2/Android.bp
  tests/FixVibrateSetting/Android.bp
  tests/FlickerTests/Android.bp
  tests/FlickerTests/test-apps/Android.bp
  tests/FlickerTests/test-apps/flickerapp/Android.bp
  tests/FrameworkPerf/Android.bp
  tests/GamePerformance/Android.bp
  tests/GridLayoutTest/Android.bp
  tests/HierarchyViewerTest/Android.bp
  tests/HugeBackup/Android.bp
  tests/HwAccelerationTest/Android.bp
  tests/Internal/Android.bp
  tests/JankBench/Android.bp
  tests/JobSchedulerPerfTests/Android.bp
  tests/JobSchedulerTestApp/Android.bp
  tests/LargeAssetTest/Android.bp
  tests/LegacyAssistant/Android.bp
  tests/LocalizationTest/Android.bp
  tests/LocationTracker/Android.bp
  tests/LotsOfApps/Android.bp
  tests/LowStorageTest/Android.bp
  tests/ManagedProfileLifecycleStressTest/Android.bp
  tests/ManagedProfileLifecycleStressTest/app/DummyDPC/Android.bp
  tests/MemoryUsage/Android.bp
  tests/MirrorSurfaceTest/Android.bp
  tests/NativeProcessesMemoryTest/Android.bp
  tests/NetworkSecurityConfigTest/Android.bp
  tests/NullHomeTest/Android.bp
  tests/OdmApps/Android.bp
  tests/OdmApps/app/Android.bp
  tests/OdmApps/priv-app/Android.bp
  tests/OneMedia/Android.bp
  tests/PackageWatchdog/Android.bp
  tests/PlatformCompatGating/Android.bp
  tests/PlatformCompatGating/test-rules/Android.bp
  tests/ProtoInputStreamTests/Android.bp
  tests/RemoteDisplayProvider/Android.bp
  tests/RenderThreadTest/Android.bp
  tests/RollbackTest/Android.bp
  tests/SerialChat/Android.bp
  tests/ServiceCrashTest/Android.bp
  tests/SharedLibrary/client/Android.bp
  tests/SharedLibrary/lib/Android.bp
  tests/ShowWhenLockedApp/Android.bp
  tests/SmokeTest/Android.bp
  tests/SmokeTest/tests/Android.bp
  tests/SmokeTestApps/Android.bp
  tests/SoundTriggerTestApp/Android.bp
  tests/Split/Android.bp
  tests/StagedInstallTest/Android.bp
  tests/StatusBar/Android.bp
  tests/SurfaceComposition/Android.bp
  tests/SurfaceControlViewHostTest/Android.bp
  tests/SystemMemoryTest/device/Android.bp
  tests/SystemMemoryTest/host/Android.bp
  tests/SystemUIDemoModeController/Android.bp
  tests/TaskOrganizerTest/Android.bp
  tests/TelephonyCommonTests/Android.bp
  tests/TouchLatency/Android.bp
  tests/TransformTest/Android.bp
  tests/TtsTests/Android.bp
  tests/UiBench/Android.bp
  tests/UsageReportingTest/Android.bp
  tests/UsageStatsPerfTests/Android.bp
  tests/UsageStatsTest/Android.bp
  tests/UsbHostExternalManagmentTest/AoapTestDevice/Android.bp
  tests/UsbHostExternalManagmentTest/AoapTestHost/Android.bp
  tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/Android.bp
  tests/UsbManagerTests/Android.bp
  tests/UsbManagerTests/lib/Android.bp
  tests/UsbTests/Android.bp
  tests/UsesFeature2Test/Android.bp
  tests/VectorDrawableTest/Android.bp
  tests/VoiceEnrollment/Android.bp
  tests/VoiceInteraction/Android.bp
  tests/WallpaperTest/Android.bp
  tests/WindowAnimationJank/Android.bp
  tests/WindowInsetsTests/Android.bp
  tests/appwidgets/AppWidgetHostTest/Android.bp
  tests/appwidgets/AppWidgetProviderTest/Android.bp
  tests/backup/Android.mk
  tests/benchmarks/Android.bp
  tests/libs-permissions/Android.bp
  tests/net/Android.bp
  tests/net/common/Android.bp
  tests/net/deflake/Android.bp
  tests/net/integration/Android.bp
  tests/net/jni/Android.bp
  tests/net/smoketest/Android.bp
  tests/notification/Android.bp
  tests/permission/Android.bp
  tests/privapp-permissions/Android.bp
  tests/testables/Android.bp
  tests/testables/tests/Android.bp
  tests/utils/StubIME/Android.bp
  tests/utils/hostutils/Android.bp
  tests/utils/testutils/Android.bp
  tests/vcn/Android.bp
  tools/aapt/Android.bp
  tools/aapt2/Android.bp
  tools/aapt2/integration-tests/AutoVersionTest/Android.bp
  tools/aapt2/integration-tests/BasicTest/Android.bp
  tools/aapt2/integration-tests/MergeOnlyTest/LeafLib/Android.mk
  tools/aapt2/integration-tests/MergeOnlyTest/LocalLib/Android.mk
  tools/aapt2/integration-tests/NamespaceTest/LibOne/Android.mk
  tools/aapt2/integration-tests/NamespaceTest/LibTwo/Android.mk
  tools/aapt2/integration-tests/StaticLibTest/App/Android.bp
  tools/aapt2/integration-tests/StaticLibTest/LibOne/Android.bp
  tools/aapt2/integration-tests/StaticLibTest/LibTwo/Android.bp
  tools/aapt2/integration-tests/SymlinkTest/Android.bp
  tools/bit/Android.bp
  tools/codegen/Android.bp
  tools/dump-coverage/Android.bp
  tools/incident_report/Android.bp
  tools/incident_section_gen/Android.bp
  tools/lock_agent/Android.bp
  tools/locked_region_code_injection/Android.bp
  tools/obbtool/Android.bp
  tools/powermodel/Android.bp
  tools/preload-check/Android.bp
  tools/preload-check/device/Android.bp
  tools/preload/loadclass/Android.bp
  tools/processors/staledataclass/Android.bp
  tools/processors/view_inspector/Android.bp
  tools/protologtool/Android.bp
  tools/sdkparcelables/Android.bp
  tools/split-select/Android.bp
  tools/streaming_proto/Android.bp
  tools/validatekeymaps/Android.bp
  wifi/java/Android.bp
  wifi/tests/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
  libs/hwui/Android.bp
  native/webview/plat_support/Android.bp
  obex/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-CC-BY SPDX-license-identifier-CPL-1.0
    SPDX-license-identifier-GPL SPDX-license-identifier-GPL-2.0
    SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS
    SPDX-license-identifier-W3C legacy_unencumbered
to:
  Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    legacy_unencumbered
to:
  core/java/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-CPL-1.0
to:
  test-base/Android.bp
  test-runner/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-GPL
to:
  core/res/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-GPL-2.0
to:
  libs/usb/Android.bp
  libs/usb/tests/accessorytest/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT
to:
  tools/preload/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT
    SPDX-license-identifier-Unicode-DFS
to:
  api/Android.bp
  boot/Android.bp
  cmds/device_config/Android.bp
  cmds/settings/Android.bp
  core/api/Android.bp
  core/tests/coretests/certs/Android.bp
  core/tests/overlaytests/remount/test-apps/certs/Android.bp
  core/tests/overlaytests/remount/test-apps/overlaid_apex/Android.bp
  core/tests/overlaytests/remount/test-apps/overlay_apex/Android.bp
  libs/tracingproxy/Android.bp
  services/startop/Android.bp
  test-legacy/Android.mk
  tests/ApkVerityTest/testdata/Android.bp
  tests/TransitionTests/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Ib9737d8fb5ef5b90a2c14fe71f1a571079edcf02
Merged-In: Ib9737d8fb5ef5b90a2c14fe71f1a571079edcf02
2021-02-21 20:12:24 +00:00
Prabir Pradhan
50b3cc03e6 Move launcher activities to the back when back pressed on root task
This change partially reverts the back button behavior change introduced
in: I48ec35f841ab3b306fe80845150000c390908f5e

Instead of always moving the task to the back when the back button is
pressed on the root task, we only do it when the activity that is open
is a "launcher activity". These are activities that act as the main
entry points into an application, indicated with an intent filter with
ACTION_MAIN and CATEGORY_LAUNCHER.

Bug: 176235889
Test: atest WmTests
Test: atest CtsWindowManagerDeviceTestCases
Test: manual: flash crosshatch, press back button on a launcher activity,
observe task is moved to back; press back on non-launcher activity,
observe task is finished.

Change-Id: I1cbf85f1a007aeedcb66b9343d182188bacc78e7
2021-02-18 20:30:06 +00:00
Bob Badour
051ef786ac [LSC] Add LOCAL_LICENSE_KINDS to frameworks/base
Added SPDX-license-identifier-Apache-2.0 to:
  apct-tests/perftests/autofill/Android.bp
  apct-tests/perftests/blobstore/Android.bp
  apct-tests/perftests/core/Android.bp
  apct-tests/perftests/core/apps/overlay/Android.bp
  apct-tests/perftests/core/apps/reources_manager/Android.bp
  apct-tests/perftests/core/jni/Android.bp
  apct-tests/perftests/multiuser/Android.bp
  apct-tests/perftests/multiuser/apps/dummyapp/Android.bp
  apct-tests/perftests/packagemanager/Android.bp
  apct-tests/perftests/packagemanager/apps/query-all/Android.bp
  apct-tests/perftests/textclassifier/Android.bp
  apct-tests/perftests/utils/Android.bp
  apct-tests/perftests/windowmanager/Android.bp
  apex/Android.bp
  apex/blobstore/framework/Android.bp
  apex/blobstore/service/Android.bp
  apex/jobscheduler/framework/Android.bp
  apex/jobscheduler/service/Android.bp
  apex/media/Android.bp
  apex/media/aidl/Android.bp
  apex/media/framework/Android.bp
  cmds/am/Android.bp
  cmds/app_process/Android.bp
  cmds/appops/Android.bp
  cmds/appwidget/Android.bp
  cmds/backup/Android.bp
  cmds/bmgr/Android.bp
  cmds/bootanimation/Android.bp
  cmds/bu/Android.bp
  cmds/content/Android.bp
  cmds/dpm/Android.bp
  cmds/hid/Android.bp
  cmds/hid/jni/Android.bp
  cmds/idmap2/Android.bp
  cmds/ime/Android.bp
  cmds/incident/Android.bp
  cmds/incident_helper/Android.bp
  cmds/incidentd/Android.bp
  cmds/input/Android.bp
  cmds/interrupter/Android.bp
  cmds/locksettings/Android.bp
  cmds/pm/Android.bp
  cmds/requestsync/Android.bp
  cmds/screencap/Android.bp
  cmds/sm/Android.bp
  cmds/svc/Android.bp
  cmds/telecom/Android.bp
  cmds/uiautomator/Android.bp
  cmds/uiautomator/cmds/uiautomator/Android.bp
  cmds/uiautomator/instrumentation/Android.bp
  cmds/uiautomator/library/Android.bp
  cmds/vr/Android.bp
  cmds/wm/Android.bp
  config/Android.bp
  core/java/android/service/wallpaper/Android.bp
  core/jni/Android.bp
  core/sysprop/Android.bp
  core/tests/BroadcastRadioTests/Android.bp
  core/tests/ConnectivityManagerTest/Android.bp
  core/tests/PackageInstallerSessions/Android.bp
  core/tests/PlatformCompatFramework/Android.bp
  core/tests/bandwidthtests/Android.bp
  core/tests/benchmarks/Android.bp
  core/tests/bluetoothtests/Android.bp
  core/tests/bugreports/Android.bp
  core/tests/coretests/Android.bp
  core/tests/coretests/BinderDeathRecipientHelperApp/Android.bp
  core/tests/coretests/BinderProxyCountingTestApp/Android.bp
  core/tests/coretests/BinderProxyCountingTestService/Android.bp
  core/tests/coretests/BstatsTestApp/Android.bp
  core/tests/coretests/DisabledTestApp/Android.bp
  core/tests/coretests/EnabledTestApp/Android.bp
  core/tests/coretests/aidl/Android.bp
  core/tests/coretests/apks/Android.bp
  core/tests/coretests/apks/install/Android.bp
  core/tests/coretests/apks/install_bad_dex/Android.bp
  core/tests/coretests/apks/install_complete_package_info/Android.bp
  core/tests/coretests/apks/install_decl_perm/Android.bp
  core/tests/coretests/apks/install_jni_lib/Android.bp
  core/tests/coretests/apks/install_jni_lib_open_from_apk/Android.bp
  core/tests/coretests/apks/install_loc_auto/Android.bp
  core/tests/coretests/apks/install_loc_internal/Android.bp
  core/tests/coretests/apks/install_loc_sdcard/Android.bp
  core/tests/coretests/apks/install_loc_unspecified/Android.bp
  core/tests/coretests/apks/install_use_perm_good/Android.bp
  core/tests/coretests/apks/install_uses_feature/Android.bp
  core/tests/coretests/apks/install_verifier_bad/Android.bp
  core/tests/coretests/apks/install_verifier_good/Android.bp
  core/tests/coretests/apks/keyset/Android.bp
  core/tests/coretests/apks/locales/Android.bp
  core/tests/coretests/apks/overlay_config/Android.bp
  core/tests/coretests/apks/version/Android.bp
  core/tests/coretests/apks/version_nosys/Android.bp
  core/tests/featureflagtests/Android.bp
  core/tests/hdmitests/Android.bp
  core/tests/hosttests/test-apps/AutoLocTestApp/Android.bp
  core/tests/hosttests/test-apps/AutoLocVersionedTestApp_v1/Android.bp
  core/tests/hosttests/test-apps/AutoLocVersionedTestApp_v2/Android.bp
  core/tests/hosttests/test-apps/ExternalLocAllPermsTestApp/Android.bp
  core/tests/hosttests/test-apps/ExternalLocPermsFLTestApp/Android.bp
  core/tests/hosttests/test-apps/ExternalLocTestApp/Android.bp
  core/tests/hosttests/test-apps/ExternalLocVersionedTestApp_v1/Android.bp
  core/tests/hosttests/test-apps/ExternalLocVersionedTestApp_v2/Android.bp
  core/tests/hosttests/test-apps/ExternalSharedPerms/Android.bp
  core/tests/hosttests/test-apps/ExternalSharedPermsBT/Android.bp
  core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/Android.bp
  core/tests/hosttests/test-apps/ExternalSharedPermsFL/Android.bp
  core/tests/hosttests/test-apps/InternalLocTestApp/Android.bp
  core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/Android.bp
  core/tests/hosttests/test-apps/NoLocTestApp/Android.bp
  core/tests/hosttests/test-apps/NoLocVersionedTestApp_v1/Android.bp
  core/tests/hosttests/test-apps/NoLocVersionedTestApp_v2/Android.bp
  core/tests/hosttests/test-apps/SharedUid/32/Android.bp
  core/tests/hosttests/test-apps/SharedUid/32/jni/Android.bp
  core/tests/hosttests/test-apps/SharedUid/64/Android.bp
  core/tests/hosttests/test-apps/SharedUid/64/jni/Android.bp
  core/tests/hosttests/test-apps/SharedUid/dual/Android.bp
  core/tests/hosttests/test-apps/SharedUid/dual/jni/Android.bp
  core/tests/hosttests/test-apps/SharedUid/java_only/Android.bp
  core/tests/hosttests/test-apps/SimpleTestApp/Android.bp
  core/tests/hosttests/test-apps/UpdateExtToIntLocTestApp_v1_ext/Android.bp
  core/tests/hosttests/test-apps/UpdateExtToIntLocTestApp_v2_int/Android.bp
  core/tests/hosttests/test-apps/UpdateExternalLocTestApp_v1_ext/Android.bp
  core/tests/hosttests/test-apps/UpdateExternalLocTestApp_v2_none/Android.bp
  core/tests/hosttests/test-apps/VersatileTestApp_Auto/Android.bp
  core/tests/hosttests/test-apps/VersatileTestApp_External/Android.bp
  core/tests/hosttests/test-apps/VersatileTestApp_Internal/Android.bp
  core/tests/hosttests/test-apps/VersatileTestApp_None/Android.bp
  core/tests/mockingcoretests/Android.bp
  core/tests/notificationtests/Android.bp
  core/tests/overlaytests/device/Android.bp
  core/tests/overlaytests/device/test-apps/AppOverlayOne/Android.bp
  core/tests/overlaytests/device/test-apps/AppOverlayTwo/Android.bp
  core/tests/overlaytests/device/test-apps/FrameworkOverlay/Android.bp
  core/tests/overlaytests/host/Android.bp
  core/tests/overlaytests/remount/Android.bp
  core/tests/overlaytests/remount/test-apps/Overlay/Android.bp
  core/tests/overlaytests/remount/test-apps/SharedLibrary/Android.bp
  core/tests/overlaytests/remount/test-apps/SharedLibraryOverlay/Android.bp
  core/tests/overlaytests/remount/test-apps/Target/Android.bp
  core/tests/packagemanagertests/Android.bp
  core/tests/privacytests/Android.bp
  core/tests/screenshothelpertests/Android.bp
  core/tests/systemproperties/Android.bp
  core/tests/utillib/Android.bp
  core/tests/utiltests/Android.bp
  core/tests/utiltests/jni/Android.bp
  core/tests/uwbtests/Android.bp
  core/xsd/Android.bp
  core/xsd/vts/Android.bp
  data/etc/Android.bp
  data/etc/car/Android.bp
  data/fonts/Android.bp
  data/keyboards/Android.mk
  drm/jni/Android.bp
  errorprone/Android.bp
  graphics/proto/Android.bp
  keystore/Android.bp
  keystore/tests/Android.bp
  libs/WindowManager/Jetpack/Android.bp
  libs/WindowManager/Shell/Android.bp
  libs/WindowManager/Shell/tests/Android.bp
  libs/androidfw/Android.bp
  libs/androidfw/fuzz/resourcefile_fuzzer/Android.bp
  libs/hostgraphics/Android.bp
  libs/incident/Android.bp
  libs/input/Android.bp
  libs/input/tests/Android.bp
  libs/protoutil/Android.bp
  libs/services/Android.bp
  libs/storage/Android.bp
  libs/usb/tests/AccessoryChat/Android.bp
  libs/usb/tests/AccessoryChat/accessorychat/Android.bp
  location/lib/Android.bp
  location/tests/Android.bp
  location/tests/locationtests/Android.bp
  lowpan/tests/Android.bp
  media/Android.bp
  media/java/Android.bp
  media/java/android/media/tv/tunerresourcemanager/Android.bp
  media/jni/Android.bp
  media/jni/audioeffect/Android.bp
  media/jni/soundpool/Android.bp
  media/jni/soundpool/tests/Android.bp
  media/lib/remotedisplay/Android.bp
  media/lib/signer/Android.bp
  media/lib/tvremote/Android.bp
  media/lib/tvremote/tests/Android.bp
  media/mca/filterfw/Android.bp
  media/mca/filterfw/native/Android.bp
  media/mca/filterpacks/Android.bp
  media/mca/samples/CameraEffectsRecordingSample/Android.bp
  media/mca/tests/Android.bp
  media/native/midi/Android.bp
  media/packages/BluetoothMidiService/Android.bp
  media/packages/BluetoothMidiService/tests/unit/Android.bp
  media/tests/AudioPolicyTest/Android.bp
  media/tests/CameraBrowser/Android.bp
  media/tests/EffectsTest/Android.bp
  media/tests/MediaDump/Android.bp
  media/tests/MediaFrameworkTest/Android.bp
  media/tests/MediaRouter/Android.bp
  media/tests/MtpTests/Android.bp
  media/tests/ScoAudioTest/Android.bp
  media/tests/SoundPoolTest/Android.bp
  media/tests/TunerTest/Android.bp
  media/tests/audiotests/Android.bp
  media/tests/players/Android.bp
  mime/Android.bp
  native/android/Android.bp
  native/graphics/jni/Android.bp
  native/webview/loader/Android.bp
  nfc-extras/Android.bp
  nfc-extras/tests/Android.bp
  packages/AppPredictionLib/Android.bp
  packages/BackupEncryption/Android.bp
  packages/BackupEncryption/test/robolectric-integration/Android.bp
  packages/BackupEncryption/test/robolectric/Android.bp
  packages/BackupEncryption/test/unittest/Android.bp
  packages/BackupRestoreConfirmation/Android.bp
  packages/CarSystemUI/Android.bp
  packages/CarrierDefaultApp/Android.bp
  packages/CarrierDefaultApp/tests/unit/Android.bp
  packages/CompanionDeviceManager/Android.bp
  packages/Connectivity/framework/Android.bp
  packages/Connectivity/service/Android.bp
  packages/CtsShim/Android.bp
  packages/CtsShim/build/Android.bp
  packages/CtsShim/build/jni/Android.bp
  packages/DynamicSystemInstallationService/Android.bp
  packages/DynamicSystemInstallationService/tests/Android.bp
  packages/EasterEgg/Android.bp
  packages/EncryptedLocalTransport/Android.bp
  packages/ExtShared/Android.bp
  packages/ExternalStorageProvider/Android.bp
  packages/ExternalStorageProvider/tests/Android.bp
  packages/FakeOemFeatures/Android.bp
  packages/FusedLocation/Android.bp
  packages/InputDevices/Android.bp
  packages/LocalTransport/Android.bp
  packages/PackageInstaller/Android.bp
  packages/PrintRecommendationService/Android.bp
  packages/PrintSpooler/Android.bp
  packages/PrintSpooler/jni/Android.bp
  packages/PrintSpooler/tests/outofprocess/Android.bp
  packages/SettingsLib/ActionBarShadow/Android.bp
  packages/SettingsLib/ActionButtonsPreference/Android.bp
  packages/SettingsLib/AdaptiveIcon/Android.bp
  packages/SettingsLib/Android.bp
  packages/SettingsLib/AppPreference/Android.bp
  packages/SettingsLib/BarChartPreference/Android.bp
  packages/SettingsLib/DisplayDensityUtils/Android.bp
  packages/SettingsLib/EntityHeaderWidgets/Android.bp
  packages/SettingsLib/HelpUtils/Android.bp
  packages/SettingsLib/LayoutPreference/Android.bp
  packages/SettingsLib/ProgressBar/Android.bp
  packages/SettingsLib/RadioButtonPreference/Android.bp
  packages/SettingsLib/RestrictedLockUtils/Android.bp
  packages/SettingsLib/SchedulesProvider/Android.bp
  packages/SettingsLib/SearchProvider/Android.bp
  packages/SettingsLib/SearchWidget/Android.bp
  packages/SettingsLib/SettingsSpinner/Android.bp
  packages/SettingsLib/SettingsTheme/Android.bp
  packages/SettingsLib/Tile/Android.bp
  packages/SettingsLib/Utils/Android.bp
  packages/SettingsLib/search/Android.bp
  packages/SettingsLib/tests/integ/Android.bp
  packages/SettingsLib/tests/robotests/Android.bp
  packages/SettingsProvider/Android.bp
  packages/SharedStorageBackup/Android.bp
  packages/Shell/Android.bp
  packages/Shell/tests/Android.bp
  packages/SimAppDialog/Android.bp
  packages/SoundPicker/Android.bp
  packages/StatementService/Android.bp
  packages/SystemUI/Android.bp
  packages/SystemUI/plugin/Android.bp
  packages/SystemUI/plugin/ExamplePlugin/Android.bp
  packages/SystemUI/plugin_core/Android.bp
  packages/SystemUI/shared/Android.bp
  packages/VpnDialogs/Android.bp
  packages/WAPPushManager/Android.bp
  packages/WAPPushManager/tests/Android.bp
  packages/WallpaperBackup/Android.bp
  packages/WallpaperCropper/Android.bp
  packages/overlays/Android.mk
  packages/overlays/tests/Android.bp
  packages/services/PacProcessor/Android.bp
  packages/services/PacProcessor/jni/Android.bp
  packages/services/Proxy/Android.bp
  proto/Android.bp
  rs/jni/Android.mk
  samples/demo/haptic-assessment/Android.bp
  sax/tests/saxtests/Android.bp
  services/Android.bp
  services/accessibility/Android.bp
  services/appprediction/Android.bp
  services/appwidget/Android.bp
  services/autofill/Android.bp
  services/backup/Android.bp
  services/backup/backuplib/Android.bp
  services/companion/Android.bp
  services/contentcapture/Android.bp
  services/contentsuggestions/Android.bp
  services/core/Android.bp
  services/core/java/com/android/server/vcn/Android.bp
  services/core/jni/Android.bp
  services/core/xsd/Android.bp
  services/core/xsd/vts/Android.bp
  services/coverage/Android.bp
  services/devicepolicy/Android.bp
  services/incremental/Android.bp
  services/midi/Android.bp
  services/net/Android.bp
  services/people/Android.bp
  services/print/Android.bp
  services/profcollect/Android.bp
  services/restrictions/Android.bp
  services/robotests/Android.bp
  services/robotests/backup/Android.bp
  services/systemcaptions/Android.bp
  services/tests/PackageManagerComponentOverrideTests/Android.bp
  services/tests/PackageManagerServiceTests/host/Android.bp
  services/tests/PackageManagerServiceTests/host/test-apps/Android.bp
  services/tests/mockingservicestests/Android.bp
  services/tests/rescueparty/Android.bp
  services/tests/servicestests/Android.bp
  services/tests/servicestests/aidl/Android.bp
  services/tests/servicestests/apks/Android.bp
  services/tests/servicestests/apks/install-split-base/Android.bp
  services/tests/servicestests/apks/install-split-feature-a/Android.bp
  services/tests/servicestests/apks/install_intent_filters/Android.bp
  services/tests/servicestests/apks/install_uses_sdk/Android.bp
  services/tests/servicestests/test-apps/ConnTestApp/Android.bp
  services/tests/servicestests/test-apps/JobTestApp/Android.bp
  services/tests/servicestests/test-apps/PackageParserApp/Android.bp
  services/tests/servicestests/test-apps/PackageParsingTestManifests/Android.bp
  services/tests/servicestests/test-apps/SimpleServiceTestApp/Android.bp
  services/tests/servicestests/test-apps/SuspendTestApp/Android.bp
  services/tests/shortcutmanagerutils/Android.bp
  services/tests/uiservicestests/Android.bp
  services/tests/wmtests/Android.bp
  services/usage/Android.bp
  services/usb/Android.bp
  services/voiceinteraction/Android.bp
  services/wifi/Android.bp
  startop/apps/test/Android.bp
  startop/iorap/Android.bp
  startop/iorap/functional_tests/Android.bp
  startop/iorap/stress/Android.bp
  startop/iorap/tests/Android.bp
  startop/view_compiler/Android.bp
  startop/view_compiler/dex_builder_test/Android.bp
  test-base/hiddenapi/Android.bp
  test-mock/Android.bp
  test-runner/tests/Android.bp
  tests/AccessibilityEventsLogger/Android.bp
  tests/AccessoryDisplay/common/Android.bp
  tests/AccessoryDisplay/sink/Android.bp
  tests/AccessoryDisplay/source/Android.bp
  tests/ActivityManagerPerfTests/stub-app/Android.bp
  tests/ActivityManagerPerfTests/test-app/Android.bp
  tests/ActivityManagerPerfTests/tests/Android.bp
  tests/ActivityManagerPerfTests/utils/Android.bp
  tests/ActivityTests/Android.bp
  tests/ActivityViewTest/Android.bp
  tests/AmSlam/Android.bp
  tests/ApkVerityTest/Android.bp
  tests/ApkVerityTest/ApkVerityTestApp/Android.bp
  tests/ApkVerityTest/block_device_writer/Android.bp
  tests/AppLaunch/Android.bp
  tests/AppLaunchWear/Android.bp
  tests/AppResourcesLoaders/Android.bp
  tests/AppResourcesLoaders/Overlay/Android.bp
  tests/Assist/Android.bp
  tests/AutoVerify/app1/Android.bp
  tests/AutoVerify/app2/Android.bp
  tests/AutoVerify/app3/Android.bp
  tests/AutoVerify/app4/Android.bp
  tests/BackgroundDexOptServiceIntegrationTests/Android.bp
  tests/BandwidthTests/Android.bp
  tests/BatteryWaster/Android.bp
  tests/BiDiTests/Android.bp
  tests/BlobStoreTestUtils/Android.bp
  tests/BootImageProfileTest/Android.bp
  tests/BrowserPowerTest/Android.bp
  tests/Camera2Tests/SmartCamera/SimpleCamera/jni/Android.bp
  tests/CameraPrewarmTest/Android.bp
  tests/Codegen/Android.bp
  tests/Compatibility/Android.bp
  tests/CoreTests/android/Android.bp
  tests/DataIdleTest/Android.bp
  tests/DozeTest/Android.bp
  tests/DpiTest/Android.bp
  tests/DynamicCodeLoggerIntegrationTests/Android.mk
  tests/FeatureSplit/base/Android.bp
  tests/FeatureSplit/feature1/Android.bp
  tests/FeatureSplit/feature2/Android.bp
  tests/FixVibrateSetting/Android.bp
  tests/FlickerTests/Android.bp
  tests/FlickerTests/test-apps/Android.bp
  tests/FlickerTests/test-apps/flickerapp/Android.bp
  tests/FrameworkPerf/Android.bp
  tests/GamePerformance/Android.bp
  tests/GridLayoutTest/Android.bp
  tests/HierarchyViewerTest/Android.bp
  tests/HugeBackup/Android.bp
  tests/HwAccelerationTest/Android.bp
  tests/Internal/Android.bp
  tests/JankBench/Android.bp
  tests/JobSchedulerPerfTests/Android.bp
  tests/JobSchedulerTestApp/Android.bp
  tests/LargeAssetTest/Android.bp
  tests/LegacyAssistant/Android.bp
  tests/LocalizationTest/Android.bp
  tests/LocationTracker/Android.bp
  tests/LotsOfApps/Android.bp
  tests/LowStorageTest/Android.bp
  tests/ManagedProfileLifecycleStressTest/Android.bp
  tests/ManagedProfileLifecycleStressTest/app/DummyDPC/Android.bp
  tests/MemoryUsage/Android.bp
  tests/MirrorSurfaceTest/Android.bp
  tests/NativeProcessesMemoryTest/Android.bp
  tests/NetworkSecurityConfigTest/Android.bp
  tests/NullHomeTest/Android.bp
  tests/OdmApps/Android.bp
  tests/OdmApps/app/Android.bp
  tests/OdmApps/priv-app/Android.bp
  tests/OneMedia/Android.bp
  tests/PackageWatchdog/Android.bp
  tests/PlatformCompatGating/Android.bp
  tests/PlatformCompatGating/test-rules/Android.bp
  tests/ProtoInputStreamTests/Android.bp
  tests/RemoteDisplayProvider/Android.bp
  tests/RenderThreadTest/Android.bp
  tests/RollbackTest/Android.bp
  tests/SerialChat/Android.bp
  tests/ServiceCrashTest/Android.bp
  tests/SharedLibrary/client/Android.bp
  tests/SharedLibrary/lib/Android.bp
  tests/ShowWhenLockedApp/Android.bp
  tests/SmokeTest/Android.bp
  tests/SmokeTest/tests/Android.bp
  tests/SmokeTestApps/Android.bp
  tests/SoundTriggerTestApp/Android.bp
  tests/Split/Android.bp
  tests/StagedInstallTest/Android.bp
  tests/StatusBar/Android.bp
  tests/SurfaceComposition/Android.bp
  tests/SurfaceControlViewHostTest/Android.bp
  tests/SystemMemoryTest/device/Android.bp
  tests/SystemMemoryTest/host/Android.bp
  tests/SystemUIDemoModeController/Android.bp
  tests/TaskOrganizerTest/Android.bp
  tests/TelephonyCommonTests/Android.bp
  tests/TouchLatency/Android.bp
  tests/TransformTest/Android.bp
  tests/TtsTests/Android.bp
  tests/UiBench/Android.bp
  tests/UsageReportingTest/Android.bp
  tests/UsageStatsPerfTests/Android.bp
  tests/UsageStatsTest/Android.bp
  tests/UsbHostExternalManagmentTest/AoapTestDevice/Android.bp
  tests/UsbHostExternalManagmentTest/AoapTestHost/Android.bp
  tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/Android.bp
  tests/UsbManagerTests/Android.bp
  tests/UsbManagerTests/lib/Android.bp
  tests/UsbTests/Android.bp
  tests/UsesFeature2Test/Android.bp
  tests/VectorDrawableTest/Android.bp
  tests/VoiceEnrollment/Android.bp
  tests/VoiceInteraction/Android.bp
  tests/WallpaperTest/Android.bp
  tests/WindowAnimationJank/Android.bp
  tests/WindowInsetsTests/Android.bp
  tests/appwidgets/AppWidgetHostTest/Android.bp
  tests/appwidgets/AppWidgetProviderTest/Android.bp
  tests/backup/Android.mk
  tests/benchmarks/Android.bp
  tests/libs-permissions/Android.bp
  tests/net/Android.bp
  tests/net/common/Android.bp
  tests/net/deflake/Android.bp
  tests/net/integration/Android.bp
  tests/net/jni/Android.bp
  tests/net/smoketest/Android.bp
  tests/notification/Android.bp
  tests/permission/Android.bp
  tests/privapp-permissions/Android.bp
  tests/testables/Android.bp
  tests/testables/tests/Android.bp
  tests/utils/StubIME/Android.bp
  tests/utils/hostutils/Android.bp
  tests/utils/testutils/Android.bp
  tests/vcn/Android.bp
  tools/aapt/Android.bp
  tools/aapt2/Android.bp
  tools/aapt2/integration-tests/AutoVersionTest/Android.bp
  tools/aapt2/integration-tests/BasicTest/Android.bp
  tools/aapt2/integration-tests/MergeOnlyTest/LeafLib/Android.mk
  tools/aapt2/integration-tests/MergeOnlyTest/LocalLib/Android.mk
  tools/aapt2/integration-tests/NamespaceTest/LibOne/Android.mk
  tools/aapt2/integration-tests/NamespaceTest/LibTwo/Android.mk
  tools/aapt2/integration-tests/StaticLibTest/App/Android.bp
  tools/aapt2/integration-tests/StaticLibTest/LibOne/Android.bp
  tools/aapt2/integration-tests/StaticLibTest/LibTwo/Android.bp
  tools/aapt2/integration-tests/SymlinkTest/Android.bp
  tools/bit/Android.bp
  tools/codegen/Android.bp
  tools/dump-coverage/Android.bp
  tools/incident_report/Android.bp
  tools/incident_section_gen/Android.bp
  tools/lock_agent/Android.bp
  tools/locked_region_code_injection/Android.bp
  tools/obbtool/Android.bp
  tools/powermodel/Android.bp
  tools/preload-check/Android.bp
  tools/preload-check/device/Android.bp
  tools/preload/loadclass/Android.bp
  tools/processors/staledataclass/Android.bp
  tools/processors/view_inspector/Android.bp
  tools/protologtool/Android.bp
  tools/sdkparcelables/Android.bp
  tools/split-select/Android.bp
  tools/streaming_proto/Android.bp
  tools/validatekeymaps/Android.bp
  wifi/java/Android.bp
  wifi/tests/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
  libs/hwui/Android.bp
  native/webview/plat_support/Android.bp
  obex/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-CC-BY SPDX-license-identifier-CPL-1.0
    SPDX-license-identifier-GPL SPDX-license-identifier-GPL-2.0
    SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS
    SPDX-license-identifier-W3C legacy_unencumbered
to:
  Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    legacy_unencumbered
to:
  core/java/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-CPL-1.0
to:
  test-base/Android.bp
  test-runner/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-GPL
to:
  core/res/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-GPL-2.0
to:
  libs/usb/Android.bp
  libs/usb/tests/accessorytest/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT
to:
  tools/preload/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT
    SPDX-license-identifier-Unicode-DFS
to:
  api/Android.bp
  boot/Android.bp
  cmds/device_config/Android.bp
  cmds/settings/Android.bp
  core/api/Android.bp
  core/tests/coretests/certs/Android.bp
  core/tests/overlaytests/remount/test-apps/certs/Android.bp
  core/tests/overlaytests/remount/test-apps/overlaid_apex/Android.bp
  core/tests/overlaytests/remount/test-apps/overlay_apex/Android.bp
  libs/tracingproxy/Android.bp
  services/startop/Android.bp
  test-legacy/Android.mk
  tests/ApkVerityTest/testdata/Android.bp
  tests/TransitionTests/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work

Change-Id: Ic44d662936d1ff0cae7fbe915932b37aa4e4869a
Merged-in: I6e9103c3275cb2e6df5dc586588eccd7d2ab6b06
2021-02-16 04:09:57 -08:00
Lais Andrade
55a0aebe7f Introduce SystemVibratorManager
Add default system implementation of vibrator manager service that uses
IVibratorManagerService to access the device vibrators.

Change implementation of SystemVibrator to use VibratorManagerService
and delete local service VibratorService.

Introduce missing public APIs for VibratorManager and Vibrator.getId.

Bug: 167946816
Test: VibratorManagerServiceTest, VibratorTest, VibrationEffectTest
Change-Id: I55cdeb72c7ca39ccf0c7b2fda60b16de1031801e
2021-02-11 09:26:21 +00:00
Orion Hodson
cd272e3402 preloaded-classes-denylist: remove retired class
Remove com.android.server.BootReceiver$2 from the denylist as this
anonymous class was retired in change https://r.android.com/1565971.

(cherry picked from commit 1653aba6bf)

Bug: 159164105
Bug: 179645293
Test: atest PreloadCheck
Change-Id: I94122241dc4cef84524ca83513a68d1fa8ffbe65
Merged-In: I94122241dc4cef84524ca83513a68d1fa8ffbe65
2021-02-08 13:24:41 +00:00
Orion Hodson
1653aba6bf preloaded-classes-denylist: remove retired class
Remove com.android.server.BootReceiver$2 from the denylist as this
anonymous class was retired in change https://r.android.com/1565971.

Bug: 159164105
Bug: 179645293
Test: atest PreloadCheck
Change-Id: I94122241dc4cef84524ca83513a68d1fa8ffbe65
2021-02-08 11:49:58 +00:00
Calin Juravle
b059b3faa0 Merge "Update boot image and system server profiles [M5C5P85S0PP]" 2021-01-26 02:11:04 +00:00
Calin Juravle
e8b91349d5 Merge "Update boot image profiles OWNERS" am: 547556cfb7 am: b7ae05e92b am: 15ad2d977b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556947

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idb424b52bc26749c9287b9252db5f10601c16c9e
2021-01-26 00:47:52 +00:00
Calin Juravle
173b3eb10c Update boot image profiles OWNERS
Test: m

Change-Id: Ic4190cba73d40621a82ea818051d40e6b578357b
2021-01-22 17:57:45 -08:00
art-benchmark-service
b61bce68d3 Update boot image and system server profiles [M5C5P85S0PP]
= Perf stats =
(lower is better)

Start, memory and code size are improving at a slight expense of boot
time. The increase in boot time is however small, and could well be
in the noise.

Cold startup (speed-profile): -2.01%
PSS: -3.40%
RSS: -5.53%
Privat Dirty: -0.08%
Boot time: 1.58%
Code size: -22.4%

=Generation Strategy=

method_threshold: 0.05
image_class_threshold: 0.05
preloaded_classes_threshold: 0.85
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
  key: "android"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.android.systemui"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.GoogleCamera"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.webview"
  value: 0.02
}

=Profile stats=

Data info:
- total aggregations: 1547
- number of (device types, builds): 62

File boot-image-profile.txt
  - hot methods: 1431 added, 11395 removed
  - methods: 1388 added, 12571 removed
  - classes: 883 added, 112 removed
  - totals now: 28756 hot methods, 28766 methods, 15710 classes
  - totals before: 38720 hot methods, 39949 methods, 14939 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 700, 8119, 514, 46, 18562, 9442
    com.android, 194, 2682, 342, 65, 2054, 3525
    java, 383, 465, 19, 0, 6466, 1798
    android.view, 107, 876, 31, 10, 2780, 855
    android.hardware, 2, 408, 88, 1, 319, 779
    android.bluetooth, 13, 88, 4, 3, 146, 170
    android.animation, 0, 91, 0, 0, 353, 71
    android.app, 221, 1362, 41, 7, 2516, 966
    android.content, 41, 952, 36, 0, 1822, 575
    android.graphics, 63, 386, 5, 0, 1763, 320
    android.icu, 54, 150, 1, 4, 1693, 1474
    android.media, 33, 522, 47, 3, 678, 568
    android.net, 5, 431, 45, 0, 656, 398
    android.widget, 36, 461, 5, 1, 1271, 357

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 518 added, 476 removed
  - totals now: 0 hot methods, 0 methods, 14446 classes
  - totals before: 0 hot methods, 0 methods, 14404 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 0, 319, 0, 8643
    com.android, 0, 0, 0, 136, 0, 3112
    java, 0, 0, 101, 21, 0, 1757
    android.view, 0, 0, 0, 80, 0, 754
    android.hardware, 0, 0, 0, 12, 0, 680
    android.bluetooth, 0, 0, 0, 5, 0, 164
    android.app, 0, 0, 0, 40, 0, 891
    android.content, 0, 0, 0, 19, 0, 519
    android.graphics, 0, 0, 0, 12, 0, 303
    android.icu, 0, 0, 0, 5, 0, 1472
    android.media, 0, 0, 0, 22, 0, 502
    android.net, 0, 0, 0, 9, 0, 343
    android.widget, 0, 0, 0, 18, 0, 334

File art-profile
  - hot methods: 9847 added, 2417 removed
  - methods: 9201 added, 4241 removed
  - classes: 1432 added, 563 removed
  - totals now: 27717 hot methods, 42315 methods, 6127 classes
  - totals before: 20287 hot methods, 37355 methods, 5258 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 159, 2, 32, 2, 414, 287
    com.android, 9632, 2415, 1389, 561, 27148, 5790
    android.hardware, 82, 0, 27, 0, 210, 124
    android.app, 0, 0, 1, 0, 1, 3
    android.content, 0, 0, 2, 0, 1, 6
    android.net, 77, 1, 2, 0, 180, 139

InternalReferenceRawProfileId: 3305
InternalReferenceCandidateProfileId: 3307

Test: build & benchmark
Bug: 169104277

Change-Id: I30494a9c879cd226252749a350df686d4ef99eed
2021-01-23 01:45:35 +00:00
Mathieu Chartier
b95347ff56 Remove android.net.rtp from preloaded classes
These cause /dev/urandom to be opened as CLO_EXEC and test
android.security.cts.FileDescriptorTest#testCLOEXEC to fail.

Also added to denylist except for AudioCodec that is pulled from
somewhere.

Bug: 174053659
Test: atest ./cts/tests/tests/security/src/android/security/cts/FileDescriptorTest.java
Change-Id: I1d83a1127ef3a0dce7ba0afa7549d2e4ec8ba453
2021-01-22 13:45:15 -08:00
Mathew Inwood
1819ed49f5 resolve merge conflicts of a07e6debf0 to master
Test: m
Bug: None

Change-Id: I895c1e86e49b3dc97cf0be1d0a975774fbc11ed3
2021-01-14 13:20:14 +00:00
Mathew Inwood
e329f3b03c Move temp blocklist APIs to max-sdk-r list.
These APIs were temporarily blocked but are now being moved to the
max-sdk-r for final release. Tag these APIs as "lo-prio" since we
believe that they are unused.

Bug: 173499988
Test: m
Change-Id: Iee7b3c2d18fb9fb93ffe3fa3fca8ac6be7604673
2021-01-13 15:48:43 +00:00