Commit Graph

62 Commits

Author SHA1 Message Date
paulhu
f45fe96a54 Split out the nsd API surface and use framework-connectivity-tiramisu
- Split out nsd APIs and hidden APIs to Connectivity module.
- Keep the all files in f/b/packages/Connectivity-T and add
  framework-connectivity-tiramisu library on p/m/Connectivity.
  Then make framework to use this module library.
- Remove NsdService from SystemServer which will register from
  ConnectivityServiceInitializer

Bug: 206893064
Test: m online-sdk-dev-docs
Test: atest FrameworksNetTests CtsNetTestCases
CTS-Coverage-Bug: 207804007
Change-Id: I72c7de124b9cc53f2263bd452ecd5f39e88e485b
2021-12-15 02:10:38 +00:00
Songchun Fan
502ab7764e Merge "[pm] change internal flags to long" 2021-11-30 15:47:16 +00:00
Martin Stjernholm
ba3dd28a69 Merge "Reconcile differences between boot image profiles." am: 181c8f0033 am: de2b0ded2e am: 0078967a5d am: 29816909b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1895131

Change-Id: Ie293f972eac247a8c1e333ce6f2ee25d1ec97aec
2021-11-24 20:34:54 +00:00
Songchun Fan
5fab45ef67 [pm] change internal flags to long
Changes IPackageManager.aidl methods to use long flags instead of int.
Public API change to be followed.

BUG: 204432643
BUG: 204433659
Test: manual
Change-Id: Ib5c42fef998f0116e312c71d620e1a15329e26e0
2021-11-24 06:58:50 -08:00
Martin Stjernholm
4c9551ed8b Reconcile differences between boot image profiles.
This makes art/build/boot/boot-image-profile.txt +
frameworks/base/boot/boot-image-profile.txt identical to
frameworks/base/config/boot-image-profile.txt, so we can rule out
performance regressions due to profile changes in
https://r.android.com/1896660.

Test: presubmits
Bug: 207590908
Change-Id: I599e8df8818d2d2dc9f471fdc22c9d92719e6cae
2021-11-24 11:37:53 +00:00
Gavin Corkery
bc0064491a Revert "Revert "Add SupplementalProcess stubs and bootclasspath ..."
Revert "Revert "Add framework-supplementalprocess to PRODUCT_APE..."

Revert^2 "Add framework-supplementalprocess prebuilts"

e0c2a4dea0d0e27abad0cd3e4d440ab8f82752e4

Change-Id: I98366465906bb6b78ecf75a9a2319f64feb25beb
2021-11-16 22:33:10 +00:00
Gavin Corkery
bddffaa432 Revert "Add SupplementalProcess stubs and bootclasspath fragment"
Revert "Add framework-supplementalprocess to PRODUCT_APEX_BOOT_JARS"

Revert "Add framework-supplementalprocess prebuilts"

Revert submission 16194363-supplementalprocess-stubs

Reason for revert: PDK build break
Reverted Changes:
Ie1d3605d2:Add SupplementalProcess stubs and bootclasspath fr...
I1ea34faba:Add framework-supplementalprocess to PRODUCT_APEX_...
I8ef2a4c0f:Add jars and fragment to SupplementalProcess apex
Ibf9444f89:Add framework-supplementalprocess prebuilts

Change-Id: Ic569389a4b3a54323c283e9573590686ce27f491
2021-11-15 20:39:32 +00:00
Gavin Corkery
1ed8ac994d Add SupplementalProcess stubs and bootclasspath fragment
Test: Builds
Bug: 204989700
Change-Id: Ie1d3605d2991fa0402db8238ca01e4aa6bad3fdb
2021-11-09 11:11:18 +00:00
Keun young Park
aab251fe6f Add com.android.car.framework to platform-bootclasspath
- Car framework apex includes car api which goes into bootclasspath
- This exists only in car product.

Bug: 202345178
Test: boot up + car api tests
Change-Id: I8808b275da7736526a2263b5f59799116f09c315
2021-10-15 19:42:53 +00:00
Roshan Pius
6c580dd473 Move existing UWB API classes to UWB apex
Following instructions from go/mainline-java-lib to move the existing
UWB API classes to the new apex.

Bug: 194906542
Test: Compiles
Change-Id: I08801b418c7ba42c76952f5a80745cd0057ca329
2021-08-10 11:35:09 -07:00
TreeHugger Robot
dbfa099a3c Merge "Update boot image and system server profiles [M5C5P90S0PP]" into sc-dev am: db2dd6d551 am: 90ef460d77
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15325625

Change-Id: Iac01cf4acc8098807e77656129a46273b03cd8d1
2021-07-19 17:26:29 +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
Paul Duffin
569a3c9f86 Merge "Move media related hidden API flag file entries to frameworks/av" into sc-dev am: d8c8547954 am: d7b1bb8f8b am: 2c97df99b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15132971

Change-Id: I5feae6088144eeb49d41366f36973ff5361459db
2021-06-30 08:05:53 +00:00
Paul Duffin
d8c8547954 Merge "Move media related hidden API flag file entries to frameworks/av" into sc-dev 2021-06-30 07:26:37 +00:00
Paul Duffin
58052a5588 Merge "Move tethering related hidden API flag file entries to packages/modules/Connectivity/Tethering" into sc-dev am: 8c37e55416 am: fbf590d3ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15132974

Change-Id: Ibe7a7f27a05e554f16ba90b949d30cad87ac3ac8
2021-06-29 23:07:47 +00:00
Paul Duffin
8c37e55416 Merge "Move tethering related hidden API flag file entries to packages/modules/Connectivity/Tethering" into sc-dev 2021-06-29 22:54:01 +00:00
Paul Duffin
5283c3cf68 Move media related hidden API flag file entries to frameworks/av
Bug: 179354495
Test: m com.android.media
      - ensure that the generated APEX is byte-for-byte identical
        before and after these changes.
      m out/soong/hiddenapi/hiddenapi-flags.csv
      - make sure that they are not changed by this.
Change-Id: I0dea4284723835c0592ce9aaf7382e344ae959f7
2021-06-29 17:27:08 +01:00
Paul Duffin
b0770ecb76 Merge "Move statsd related hidden API flag file entries to packages/modules/Statsd" into sc-dev 2021-06-29 15:45:46 +00:00
Paul Duffin
6350e5d3a8 Merge "Move media provider related hidden API flag file entries to packages/providers/MediaProvider" into sc-dev am: 35f226f727 am: 04dc9f2ad1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15132970

Change-Id: I482c007580f6e50c59da2bee6e3403d777134256
2021-06-29 15:40:22 +00:00
Paul Duffin
7c972c5399 Merge "Move wifi related hidden API flag file entries to packages/modules/Wifi" into sc-dev am: e39e5258e0 am: 9c1b527cd5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15132973

Change-Id: Id0898aa13518b408205cc968897c926b7dfd016c
2021-06-29 15:40:02 +00:00
Paul Duffin
35f226f727 Merge "Move media provider related hidden API flag file entries to packages/providers/MediaProvider" into sc-dev 2021-06-29 15:28:59 +00:00
Paul Duffin
297b8394ee Move tethering related hidden API flag file entries to packages/modules/Connectivity/Tethering
Bug: 179354495
Test: m com.android.tethering
      - ensure that the generated APEX is byte-for-byte identical
        before and after these changes.
      m out/soong/hiddenapi/hiddenapi-flags.csv
      - make sure that they are not changed by this.
Change-Id: I805f6f8553fb17f4c0aa78c3314786a8351ca1f4
2021-06-29 12:58:44 +01:00
Paul Duffin
3abf8d098a Move statsd related hidden API flag file entries to packages/modules/Statsd
Bug: 179354495
Test: m com.android.os.statsd
      - ensure that the generated APEX is byte-for-byte identical
        before and after these changes.
      m out/soong/hiddenapi/hiddenapi-flags.csv
      - make sure that they are not changed by this.
Merged-In: Iaa3d98ced5f3b67f891e5d648a5004acdf7a075c
Change-Id: Iaa3d98ced5f3b67f891e5d648a5004acdf7a075c
(cherry picked from commit 48736cdd37)
2021-06-29 12:49:41 +01:00
Paul Duffin
ecd5356f9a Move wifi related hidden API flag file entries to packages/modules/Wifi
Bug: 179354495
Test: m com.android.wifi
      - ensure that the generated APEX is byte-for-byte identical
        before and after these changes.
      m out/soong/hiddenapi/hiddenapi-flags.csv
      - make sure that they are not changed by this.
Change-Id: I45f46f9aebb90ca9ff0a60c37068b94238354578
2021-06-29 12:37:58 +01:00
Paul Duffin
bdaf3b1de7 Merge "Move statsd related hidden API flag file entries to packages/modules/Statsd" am: 42bdea3653 am: 40d7e0b98c am: 853fee306a am: 870bbf85f4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1747693

Change-Id: Ie6870d1bf179fb12cd3be4b81b94a8f46f8d89da
2021-06-29 11:02:16 +00:00
Paul Duffin
853fee306a Merge "Move statsd related hidden API flag file entries to packages/modules/Statsd" am: 42bdea3653 am: 40d7e0b98c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1747693

Change-Id: I878cacb7f36e49b7739afbef1dc6ceed7c875823
2021-06-29 10:29:51 +00:00
Paul Duffin
dd7640795c Move media provider related hidden API flag file entries to packages/providers/MediaProvider
Bug: 179354495
Test: m com.android.mediaprovider
      - ensure that the generated APEX is byte-for-byte identical
        before and after these changes.
      m out/soong/hiddenapi/hiddenapi-flags.csv
      - make sure that they are not changed by this.
Change-Id: I0615b68715de2bb953da27b60d29d37b2750d86b
2021-06-29 00:01:03 +01:00
Paul Duffin
48736cdd37 Move statsd related hidden API flag file entries to packages/modules/Statsd
Bug: 179354495
Test: m com.android.os.statsd
      - ensure that the generated APEX is byte-for-byte identical
        before and after these changes.
      m out/soong/hiddenapi/hiddenapi-flags.csv
      - make sure that they are not changed by this.
Change-Id: Iaa3d98ced5f3b67f891e5d648a5004acdf7a075c
2021-06-24 23:29:55 +01:00
Wei Wang
85435c04bb Add com.android.nearby to platform boot classpath.
Bug: 189355156
Test: flashed a device and verified nearby jar file was present in BOOTCLASSPATH.
Change-Id: Ie6396290b05c6497ecfba13f4d3a2ca6ff6e5377
2021-06-22 15:00:38 -07: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
Artur Satayev
8cde076e1e Merge "Revert "Revert "Add bootclasspath_fragments to platform-bootclas..."" into sc-dev 2021-05-26 16:10:57 +00:00
Paul Duffin
f7c02ed0f4 Move conscrypt related hidden API flag file contents
Moves the conscrypt related contents of the hidden API flag files to
external/conscrypt.

Bug: 179354495
Test: m com.android.conscrypt out/soong/hiddenapi/hiddenapi-flags.csv
      - verify that this does not change the contents of the apex files
        or the contents of the monolithic hidden API files.
Merged-In: I8dcc23b8123087cada42646f181d5409fba9eb35
Change-Id: I8dcc23b8123087cada42646f181d5409fba9eb35
(cherry picked from commit 6db4fc9e3b)
2021-05-25 22:32:07 +01:00
Artur Satayev
e19115dabd Revert "Revert "Add bootclasspath_fragments to platform-bootclas..."
Revert submission 14717811-revert-populate-platform-bootclasspath

Reason for revert: retry with a fix
Reverted Changes:
Ib58cd0211:Revert "Add bootclasspath_fragments to platform-bo...
I13b622d6c:Partial Revert "Populate individual classpath_frag...

Bug: 180105615
Test: atest sdkextensions_e2e_tests

Change-Id: Ic391fa4035f868b1ef92f5b275dad0ac5b1ab462
2021-05-25 19:43:21 +01:00
satayev
050c90c343 Revert "Add bootclasspath_fragments to platform-bootclasspath."
Reason for revert: test breakage b/189114287

Bug: 180105615
Bug: 189114287
Test: atest sdkextensions_e2e_tests
Change-Id: Ib58cd02117cf5a5632c4654c34de7643a16b1867
2021-05-25 15:12:01 +01:00
Paul Duffin
6db4fc9e3b Move conscrypt related hidden API flag file contents
Moves the conscrypt related contents of the hidden API flag files to
external/conscrypt.

Bug: 179354495
Test: m com.android.conscrypt out/soong/hiddenapi/hiddenapi-flags.csv
      - verify that this does not change the contents of the apex files
        or the contents of the monolithic hidden API files.
Change-Id: I8dcc23b8123087cada42646f181d5409fba9eb35
2021-05-23 22:57:50 +01:00
Artur Satayev
d699902447 Merge "Add bootclasspath_fragments to platform-bootclasspath." into sc-dev 2021-05-20 22:08:05 +00:00
satayev
9e441acd27 Add bootclasspath_fragments to platform-bootclasspath.
Bug: 180105615
Test: atest CtsClasspathsTestCases
Merged-In: I72c76685d337c683b79ccd38c8f3b91816e34102
Change-Id: If7c115f3fc39b908ee809d7734fad8c387f05ab7
2021-05-20 13:43:40 +01:00
satayev
f14149e81a Add bootclasspath_fragments to platform-bootclasspath.
Bug: 180105615
Test: atest CtsClasspathsTestCases
Change-Id: I72c76685d337c683b79ccd38c8f3b91816e34102
2021-05-20 13:41:24 +01: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
Treehugger Robot
b6ef3454bd Merge "Fix the path of boot image profile and preloaded classes for frameworks." am: 0e52d9c6f9 am: 43927fdefc am: 1938444d6c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1698770

Change-Id: I5524625c2c15bea22613ce7d8ed842cd355139a1
2021-05-11 17:05:41 +00:00
yawanng
c34748cf2c Fix the path of boot image profile and preloaded classes for frameworks.
They should locate under "boot" instead of "build/boot"

Bug: 186455808
Test: m
Change-Id: Ibde3edcb17135aec35aa7956d233768818d14178
2021-05-08 03:59:54 +00:00
Treehugger Robot
4f2e331f25 Merge "Add platform-systemserverclasspath." am: 61f27d7d52 am: 0fd596fddd am: b26407bef8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1665367

Change-Id: I8c19ef7991636512b920f40d75678ad77113f61b
2021-05-07 19:13:59 +00:00
Treehugger Robot
61f27d7d52 Merge "Add platform-systemserverclasspath." 2021-05-07 18:34:52 +00:00
Yan Wang
f34d715c17 Merge "Add empty boot image profile and preload classes for framework" am: d9c35709f8 am: 6f55caaaa4 am: d9fff75b25
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697307

Change-Id: Icaf0842e2b152fff1a0cea2435548cca7b9c09fa
2021-05-07 17:52:14 +00:00
satayev
8e93d887c9 Add platform-systemserverclasspath.
Make it required in platform-bootclasspath, to make sure both are
installed at the same time.

Bug: 180105615
Test: m && launch_cvd
Change-Id: I58fec3781309727e35c5eb53959e7b6ff58fee73
2021-05-06 13:32:13 +01:00
yawanng
eb2b1d53c7 Add empty boot image profile and preload classes for framework
The boot image profile and preloaded class files will be split
for two parts. One for art and one for framework.

These intial empty files are necessary for server side to
compare the difference.

Bug: 186455808
Test: m
Change-Id: I51a1ab6fa203a8e85e2cebeff3f64c9bfc59b58a
2021-05-05 17:09:55 +00:00
Paul Duffin
9660f4811b Merge "Move icu related hidden API flag file contents to icu" am: 653935b511 am: e8cf665edd am: f27b828bf9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675890

Change-Id: Id534f0ec692848bbb6c99074bcd4a7e92c0df9ce
2021-04-20 13:15:17 +00:00
Paul Duffin
b314a25c9e Merge "Move art related hidden API flag files to art" am: ef13360a02 am: 727dfbfe51 am: 414d8c1c95
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675868

Change-Id: Idf6c7bdce1f40cae109345c82b9a696675203285
2021-04-20 13:13:46 +00:00
Paul Duffin
fc8fd1018c Move icu related hidden API flag file contents to icu
Bug: 179354495
Test: verified that the out/soong/hiddenapi/... files are unchanged
      by this change
Change-Id: I965651e0d88b759f023620174be3c2fbd19cb31e
2021-04-15 10:45:40 +01:00
Paul Duffin
b2d391d2b2 Move art related hidden API flag files to art
Bug: 179354495
Test: verified that the out/soong/hiddenapi/... files are unchanged
      by this change
Change-Id: Ie5184cfdb4da9c03d804a6022a8981732c3137ba
2021-04-15 10:45:40 +01:00