Commit Graph

566909 Commits

Author SHA1 Message Date
satayev
a8e4e5dcc3 Expose SharedLibraryInfo#getAllCodePaths as @TestApi.
The method is called by CTS helper app to list all java shared libraries
present on the device. All classes present in the reported jar/apk files
are then collected by a CTS/GTS EDI collector.

Bug: 187823488
Test: m
Change-Id: I750065112d70bc3ab45c8b6c6cc8aa4d429488a8
2021-05-11 17:26:47 +01:00
Lucas Lin
7283a692b0 Merge "Replace hidden API with public API" 2021-05-11 09:52:50 +00:00
Anton Hansson
0ee8641209 Merge "Fix incorrect package in PackageChangeReceiver" 2021-05-11 09:46:29 +00:00
Anton Hansson
dbf1544b68 Merge "Inline two constants from CorePlatform" 2021-05-11 09:00:57 +00:00
Treehugger Robot
b369ebee31 Merge "Add back @UnsupportedAppUsage to IS_DEBUGGABLE" 2021-05-11 07:32:37 +00:00
Tianjie Xu
964fccfefd Merge "Check null for before using LockSettingsService" 2021-05-11 04:50:15 +00:00
Benedict Wong
fae9ba6535 Merge "Add log prefixes to uniquely identify each VCN/gwConn" 2021-05-11 01:34:58 +00:00
Benedict Wong
d7d2d2a15b Merge changes from topic "vcn-fwd"
* changes:
  Apply transform to FWD policy if configured to provide tethering
  Add internal support for IPsec forward policies
2021-05-11 01:30:31 +00:00
Tianjie
31b3cbf029 Check null for before using LockSettingsService
If the locksettings service fails to start, the resume on reboot
APIs will throw a nullptr exception in RecoverySystemService. Add
some check to prevent crashing the system server.

Bug: 184596745
Test: build
Change-Id: I5b1781612ec8d855d94b2828b5b5cfee9a84aebe
2021-05-10 18:01:16 -07:00
Benedict Wong
3996048bad Merge "Add additional logging to improve debugability of VcnManagementService" 2021-05-10 21:22:23 +00:00
Benedict Wong
d155b44859 Add log prefixes to uniquely identify each VCN/gwConn
This change adds additional logging prefixes to uniquely identify
connections and vcn instances to allow for better debugging.

Test: atest FrameworksVcnTests
Change-Id: Ied1aa2b2502c9cbe59358755eb65ed369fdbd987
2021-05-10 14:17:30 -07:00
Brad Ebinger
0ad0a88143 Merge "Add the REGISTRATION_TECH_NR Tech type" 2021-05-10 21:02:25 +00:00
Siim Sammul
60cd2fa626 Merge "Create BinderLatencyObserver to collect binder call latency stats. Pushing these as a metric will come in a future change." 2021-05-10 18:10:58 +00:00
Rahul Sabnis
d8c539d8b8 Merge "Update docs for BluetoothDevice#fetchUuidsWithSdp to reflect that if the device is bonding, we either broadcast cached UUIDs or wait for SDP to be performed after the device is bonded." 2021-05-10 17:41:36 +00:00
Siim Sammul
5e6453dc94 Create BinderLatencyObserver to collect binder call latency stats.
Pushing these as a metric will come in a future change.

This is a direct cherrypick with no changes.

Test: unit tests

Change-Id: I8a123f7aed7c0ce416814372f2287b04a8a04ac0
Merged-In: I8a123f7aed7c0ce416814372f2287b04a8a04ac0
(cherry picked from commit 8d0ecde2b8)
2021-05-10 16:53:05 +00:00
Calin Juravle
c900ba3cd6 Merge "Enforce system/root/shell for dexopt operation." 2021-05-10 16:39:50 +00:00
Andy Hung
ba32f57428 Merge "AudioFormat: Retrieve sample rate capability from framework" 2021-05-10 16:23:37 +00:00
Andy Hung
4afe15ccb0 AudioFormat: Retrieve sample rate capability from framework
Allows a device to specify a higher sample rate (e.g. 384kHz)
and have it acknowledged by CTS.

Test: AudioTrackTest#testGetMinBufferSizeTooHighSR
Bug: 135474352
Bug: 187062102
Change-Id: I2a44590970b437c1090c615961432afce974f2ba
2021-05-10 16:22:59 +00:00
Jay Patel
249034de9d Merge "AudioSystem: update framework channel capabilities" 2021-05-10 14:47:52 +00:00
Remi NGUYEN VAN
0ef41fbca2 Add back @UnsupportedAppUsage to IS_DEBUGGABLE
The annotation was removed when adding the constant to the public API,
but it was removed from the public API in favor of Build.isDebuggable() in
a later change.

Add back the @UnsupportedAppUsage annotation that should have been
added back when removing the constant from the public API.

Change-Id: Ic2fda01a8c0e90712a1b7b435443d32f7e226d33
Fixes: 187432390
Test: m
2021-05-10 14:45:38 +00:00
Gavin Corkery
c27a2ab087 Merge "Add OWNERS to RescueParty" 2021-05-10 13:54:23 +00:00
Gavin Corkery
b9d9b1ac79 Add OWNERS to RescueParty
Test: Builds
Bug: 180579911
Change-Id: Icb592c7db07feefe7e35278496532a91e49f9b3d
2021-05-10 13:00:17 +01:00
Anton Hansson
6c4de79bcc Fix incorrect package in PackageChangeReceiver
This class is  meant to be internal but accidentally had the wrong
package name set. Rectify that to avoid it appearing in documentation.

Test: diff docs with internal filter applied, verify PCR is gone.
Change-Id: I498d460a524c878aafdf4f1a4497fcc51979c343
2021-05-10 12:16:32 +01:00
Anton Hansson
4e86dcad12 Inline two constants from CorePlatform
Inlining these constants allow the public api metalava run to depend on
ART's public API rather than the "internal" CorePlatform API, which
prevents picking up unintentional classes (such as annotations) from the
CorePlatform API in the public stubs.

Because these constants get inlined in the API/stubs, and the constants
have been finalized for many years, they can never change. Because they
cannot change, reusing the constant is of limited value. I've added
some comments to point readers to other places the constant is used.

Bug: 154796679
Test: m checkapi
Change-Id: I0b347a2964cfe5a1206145fdc56934727b890469
2021-05-10 10:28:02 +01:00
Anton Hansson
ee95f486e5 Merge "Add targets to build doc-stubs for non-updatable" 2021-05-10 08:55:07 +00:00
Paul Hu
e01bb41ad7 Merge "Add missed break" 2021-05-10 01:42:24 +00:00
Mark Chien
20df56adb7 Merge "startTethering with silent entitlement in systemui" 2021-05-09 16:16:55 +00:00
James Lin
011be0d15a Merge "Add carrier config for the SIP 486 request forbidden and add API for SHELL command to remove the UCE requests cannot be sent the network status." 2021-05-09 13:50:14 +00:00
Treehugger Robot
3736d7ac1b Merge "Call apexd's API to allocate space before install non-AB package" 2021-05-08 21:44:57 +00:00
Treehugger Robot
d943c45349 Merge "DO NOT MERGE - Merge RQ2A.210505.003." 2021-05-08 21:38:02 +00:00
Xin Li
4ba43d5b0b DO NOT MERGE - Merge RQ2A.210505.003.
Bug: 187544653
Merged-In: If9e34a0120121ed851b911c8a8bd2bbe0e0f9e34
Merged-In: Ia6bd5658b77a26ab15fea013ec875050457473e0
Change-Id: I2e22d2bdd2c54eb3489fe82f2601ded2af16bd5c
2021-05-08 08:39:19 +00:00
Rahul Sabnis
6f92ae94ab Update docs for BluetoothDevice#fetchUuidsWithSdp to reflect that if the
device is bonding, we either broadcast cached UUIDs or wait for SDP to
be performed after the device is bonded.

Tag: #feature
Bug: 187157597
Test: Manual
Change-Id: I1bd694195c4e974b7cd72f81848a6343b45c98fd
2021-05-07 19:13:25 -07:00
Benedict Wong
1d9c19a635 Add additional logging to improve debugability of VcnManagementService
Test: atest FrameworksVcnTests
Change-Id: I23af20ea655e11934f6ac679c1bfc0943d5a148f
2021-05-07 17:18:21 -07:00
James.cf Lin
cf451204eb Add carrier config for the SIP 486 request forbidden and add API for SHELL command to remove the UCE requests cannot be sent the network status.
Bug: 186131340
Test: atest ImsServiceTest RcsUceAdapterTest
Change-Id: Id3a97fc975764754d6b610478c17a501f65aa229
2021-05-08 07:33:03 +08:00
Calin Juravle
f4a6ba88b3 Enforce system/root/shell for dexopt operation.
Dexopt acquires system level locks (e.g. installd locks) so it should
not be called by artbitrary apps via `adb shell` commands.

Test: manual
Bug: 180652564
Change-Id: I385d5346df7721d95edf40c45d06b969870e4bda
2021-05-07 15:31:09 -07:00
Benedict Wong
0c1a3b9db2 Apply transform to FWD policy if configured to provide tethering
This change allows the VCN to trigger the application of IpSecTransforms
as in the FWD path, ensuring that tethering works across interfaces

Bug: 185495453
Test: atest FrameworksVcnTests
Test: manual testing with cross-device tethering
Change-Id: I90fc77226ca971dbd8ac549b96a4828da1079cd5
2021-05-07 15:09:42 -07:00
Benedict Wong
7f5a2fe728 Add internal support for IPsec forward policies
This change adds support for IPsec forward policies, which are necessary
for packets to be allowed to be forwarded to another interface, as is
the case with tethering. This is necessary and useful only within the
system server, and as such is not exposed as a public API.

This change is safe, since the addition of a FWD policy on IPsec tunnel
interfaces will by default block forwarded traffic (as would be the case
without this patch). In the event that the (system) owner of the tunnel
requires support for forwarded packets (eg tethering), this patch allows
application of transforms in the FWD direction as well.

This will be used to ensure that the VCN can be used as the underlying
network for the purposes of tethering.

Bug: 185495453
Test: atest IpSecServiceTest
Test: atest IpSecServiceParameterizedTest
Test: manual testing with tethering over VCN
Change-Id: I74ecea71f1954029f6fbdbe34598c82e0aac386b
2021-05-07 15:09:42 -07:00
Zhangrui Zhang
cee3c552b8 AudioSystem: update framework channel capabilities
Anticipate more than 8 channels (such as 7.1.4) on
future devices, but keep at 8 for now.

Test: atest AudioTrackTest#testImmersiveStreaming
Test: same test by manually adjusting to 24 channels.
Bug: 127896072
Bug: 187062102
Change-Id: I72c2ff0faa7794f22deaeb794920afb65788f40b
2021-05-07 13:06:18 -07:00
Brad Ebinger
500397d3e8 Add the REGISTRATION_TECH_NR Tech type
Adds the new NR registration technology for devices
that support IMS over NR so that the APIs can report
this technology.

Bug: 179724463
Test: atest CtsTelephonyTestCases
Merged-In: I4b0f9882dcf36e2ff7151778cbadb8e83513df5a
Change-Id: I4b0f9882dcf36e2ff7151778cbadb8e83513df5a
2021-05-07 19:08:37 +00:00
Treehugger Robot
61f27d7d52 Merge "Add platform-systemserverclasspath." 2021-05-07 18:34:52 +00:00
Yan Wang
d9c35709f8 Merge "Add empty boot image profile and preload classes for framework" 2021-05-07 16:31:39 +00:00
Treehugger Robot
9417be4487 Merge "Remove non-updatable-* prefix from .txt files" 2021-05-07 15:39:04 +00:00
Anton Hansson
c7f5e7d439 Add targets to build doc-stubs for non-updatable
Like the jar stubs, the doc stubs need modularization to avoid depending
on module sources and instead being assembled by merging the doc stubs
of the constituent modules. This will allow generating e.g. the lint
database, annotation zips, and the documentation itself from prebuilts
(which in turn allows mixing e.g. non-updatable R with the latest
modules).

Move the defaults for the non-updatable jar stubs to the shared bp file
and reuse it for the non-updatable doc stubs, and add two targets for
the public and the system stubs.

Bug: 186197911
Test: m android-non-updatable-doc-stubs{,-system}
Merged-In: Ic2cef748c42c141ea42b8cd7b4afd7ee78a1399d
Change-Id: Ic2cef748c42c141ea42b8cd7b4afd7ee78a1399d
2021-05-07 13:51:28 +01:00
Lucas Lin
9639cd6242 Merge "Replace MAX_NETWORK_TYPE with TYPE_VPN" 2021-05-07 08:48:28 +00:00
markchien
5024d4d046 startTethering with silent entitlement in systemui
During R development cycle, default entitlement check is changed from
silent to showUI(start activity) in TetheringRequest. So start hotspot
by systemui is changed from silent to trigger UI. Expcility set
entitlement back to silent check in systemui for better user experience.

Fix: 182724427
Fix: 169493230
Test: atest HotspotControllerImplTest
      atest CtsTetheringTest
      on/off hotspot by systemui
Change-Id: Ida1964e28a7b2d0f1a1394e5de2ec437e0bc420a
2021-05-07 07:26:57 +00:00
Treehugger Robot
c8fd9b844b Merge "Move myself to emeritus section" 2021-05-06 22:24:55 +00:00
Wessam Hassanein
45087d31f8 Merge "Enable PerfettoJavaHeapStackProf in the zygote." 2021-05-06 21:08:01 +00:00
Rambo Wang
a863b0297b Merge "Make LocationAccessQuery's builder safer to use" 2021-05-06 18:45:03 +00:00
Seth Moore
27bc799e7e Merge "Don't re-wrap DeviceIdAttestationExceptions" 2021-05-06 17:09:56 +00:00
Treehugger Robot
44da0f67b4 Merge "Allow ART profile saver period to be parsed from sys props" 2021-05-06 16:01:15 +00:00