Commit Graph

86 Commits

Author SHA1 Message Date
TreeHugger Robot
8e7a983e84 Merge "Change Bluetooth apex mountpoint" into tm-dev am: 7a1c701712
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19038084

Change-Id: I0a607b5e69c7baa5c3ae43a53a78bac387f179ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 10:33:36 +00:00
William Escande
7b012e937e Change Bluetooth apex mountpoint
Apex name has been changed to com.android.btservices
Changing mount point accordingly
Bug: 235892590
Test: Flash / boot bt / look logs & pair a device

Change-Id: I8cff5f6449ee19466b3df571a40e062964a9e46c
2022-06-22 13:19:14 -07:00
Victor Chang
de05f19334 Merge "Remove the *byteShort string resources from the frameworks" am: 73caeda3ad am: 8e6a5fa450
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2100172

Change-Id: I944d0d73a165e7817cf4a10d85cd49d880640432
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 15:12:44 +00: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
Victor Chang
756c8c3f5b Remove the *byteShort string resources from the frameworks
The "byteShort" is still kept because ICU's version is too long for this
use case.

This commit is separated to unblock the previous commit which removed
the usage of these strings.

Bug: 36994779
Bug: 71580745
Bug: 217592956
Test: m droid
Change-Id: I1833bd357860841037aa323cdf6acf9366b6ca1e
2022-05-17 17:07:11 +01:00
Xiao Ma
f4d72b212c Split out the ethernet API surface and use framework-connectivity-t
Ethernet framework and service source code is going to be moved to
Connectivity mainline module, this CL contains below corresponding
changes to adapt the migration in f/b side:

1. Split out ethernet module-lib APIs to Connectivity module.
   Add the ethernet resource filegroup to tiramisu-updatable-sources
   filegroup as well, build them together. Also update the module-lib
   and system api txt to reflect the APIs change. Remove the hidden
   APIs which are moved to Connectivity module. This removal fixes the
   api inconsistent issue with Tethering/apex/hidden/.

2. Remove EthernetService from SystemServer which will be registered
   from ConnectivityServiceInitializer.

3. Replace the BackgroundThread class(imported from f/b/core/java)
   with the one in the modules-utils-backgroundthread lib, which is
   visible to Connectivity module.

Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Change-Id: I3e13cb9c0e348333af295c2537d459aa6700ff17
Merged-In: I1956848d3248cc56e9841d221e5e4c160bed65a4
2022-03-14 13:47:01 +00:00
Xiao Ma
218c4d3162 Split out the ethernet API surface and use framework-connectivity-t
Ethernet framework and service source code is going to be moved to
Connectivity mainline module, this CL contains below corresponding
changes to adapt the migration in f/b side:

1. Split out ethernet module-lib APIs to Connectivity module.
   Add the ethernet resource filegroup to tiramisu-updatable-sources
   filegroup as well, build them together. Also update the module-lib
   and system api txt to reflect the APIs change. Remove the hidden
   APIs which are moved to Connectivity module. This removal fixes the
   api inconsistent issue with Tethering/apex/hidden/.

2. Remove EthernetService from SystemServer which will be registered
   from ConnectivityServiceInitializer.

3. Replace the BackgroundThread class(imported from f/b/core/java)
   with the one in the modules-utils-backgroundthread lib, which is
   visible to Connectivity module.

Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Change-Id: I1956848d3248cc56e9841d221e5e4c160bed65a4
2022-03-10 21:22:42 +09:00
Frank Wang
22c3bb0c72 Merge "Remove Auxiliary stubs and bootclasspath fragment" into tm-dev 2022-03-04 16:38:39 +00:00
Frank Wang
0ce30dd193 Remove Auxiliary stubs and bootclasspath fragment
Test: TH
Bug: 210728915
Change-Id: I9434a5cc50d3dbea0b55a8b8deda987fbd5e66ea
2022-03-03 06:13:41 +00:00
Nikita Ioffe
e267cc6f42 Remove supplementalprocess APEX
Bug: 220320098
Test: m
Change-Id: Ib3392d9609e6ef421c53c38d7f5e32df2e2d6a6d
2022-03-02 18:44:11 +00:00
Roopa Sattiraju
82c71dd74d Merge "Enabling Apex in BT" into tm-dev 2022-02-25 06:30:19 +00:00
Roopa Sattiraju
293ed88b2f Enabling Apex in BT
Bug: 217736913
Test: Compile, bringup and test user journeys
Change-Id: I3e796e3618ad9a077fa5e8ac387e314e896d1051
2022-02-24 20:42:33 +00:00
Neha Pattan
fa46dd2aae (1/6) AdServices setup.
Bug: 219953633
Test: build
      mmm -j packages/modules/AdServices
      mmm -j packages/modules/SupplementalApi
Change-Id: I2fe660daf8f90b41526d946fb66e83aaf9fd1ed0
2022-02-24 16:28:26 +00:00
Junyu Lai
6b708138c1 [MS54.1] Move NetworkStats to updatable sources
This CL builds NetworkStats related code with the
connectivity module instead of platform.

This includes:
1. Add netstats.proto to the module.
2. Add lib dependencies for all callers.
3. Include several source files in platform and add jarjar rule
   to it. Modify callers accordingly.

Test: TH
Bug: 197717846
Change-Id: I244693aebe1782d9e67502638ff8145c51462e1e
Merged-In: I244693aebe1782d9e67502638ff8145c51462e1e
2022-02-18 16:20:47 +08:00
Frank Wang
e97ff9ebfe Add ondevicepersonalization stubs and bootclasspath fragment
Test: Build
Bug: b/218749359
Change-Id: I651ca865a3215fa2a541636c3af495fdcd4ba8f9
2022-02-13 07:06:31 +00:00
Aaron Huang
794d210854 Split out the ipsec API surface and use framework-connectivity-tiramisu
(cherry picked from commit 1dad7aa006)
Bug: 204153604
Test: TH
Change-Id: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
Merged-In: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
2022-02-10 19:01:00 +09:00
Junyu Lai
a8f1f762eb [MS54.1] Move NetworkStats to updatable sources
This CL builds NetworkStats related code with the
connectivity module instead of platform.

This includes:
1. Add netstats.proto to the module.
2. Add lib dependencies for all callers.
3. Include several source files in platform and add jarjar rule
   to it. Modify callers accordingly.

Test: TH
Bug: 197717846
Change-Id: I244693aebe1782d9e67502638ff8145c51462e1e
2022-02-07 11:45:17 +09:00
Aaron Huang
1dad7aa006 Split out the ipsec API surface and use framework-connectivity-tiramisu
Bug: 204153604
Test: TH
Change-Id: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
2022-02-03 09:47:41 +09:00
Remi NGUYEN VAN
0b692d5b50 Remove nearby API surface
It is being merged into the tethering/connectivity API surface, under
the existing framework-connectivity-t API.

Bug: 189355156
Test: m
Change-Id: I5878ffc1449f0eb19abdccd34d5c8ca1f711fbc8
2022-01-28 11:25:09 +09:00
Frank Wang
07861f70d3 Revert "Revert "Add SupplementalProcess stubs and bootclasspath ..."
Revert^2 "Add bootclasspath config in Auxiliary."

ba33413304d140c02bd8d2477576fb19889af031

Change-Id: I2e8f05406c90565b517f5d7d05aae0dc6d8a4200
2022-01-27 07:52:21 +00:00
Calvin Pan
a9ace2c620 Clean <plurals> in FindActionModeCallback
Bug: 199230228
Test: make
Change-Id: I59618e5467696d3173dfb4782ce55964694a42fc
2022-01-24 14:46:19 +08:00
paulhu
c100db56a2 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
Merged-In: I72c7de124b9cc53f2263bd452ecd5f39e88e485b
Change-Id: I72c7de124b9cc53f2263bd452ecd5f39e88e485b
2022-01-19 18:47:45 +08:00
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