660075 Commits

Author SHA1 Message Date
Brad Ebinger
b1e1f7b730 Merge changes from topics "delegate_regi_new_state_losing_pdn", "ims_rcs_api_improvement_delegate_regi_state" am: 5fd9a457ce
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1911013

Change-Id: Id4b43dee68b4ebb126dd979415b30097df87fbee
2021-12-07 20:37:01 +00:00
Jinyoung Jeong
90cd156539 IMS RCS API Improvements-DelegateRegistrationState am: b6518929e6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1899030

Change-Id: I8ec9ec5dfc048226090746984e11059a7358fb8c
2021-12-07 20:36:58 +00:00
Brad Ebinger
5fd9a457ce Merge changes from topics "delegate_regi_new_state_losing_pdn", "ims_rcs_api_improvement_delegate_regi_state"
* changes:
  DelegateRegistrationState Improvement adding new states for DelegateRegistrationState:  - DEREGISTERING_REASON_LOSING_PDN  - DEREGISTERING_REASON_UNSPECIFIED
  IMS RCS API Improvements-DelegateRegistrationState
2021-12-07 20:10:40 +00:00
Evgenii Stepanov
7842e7f363 Merge "Pass MTE RuntimeFlags to AppZygote." am: 1db942e761
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1910277

Change-Id: If16ed953afd35c4c58ee7ea966b889a1a3ca62fb
2021-12-07 19:19:15 +00:00
Evgenii Stepanov
1db942e761 Merge "Pass MTE RuntimeFlags to AppZygote." 2021-12-07 19:03:17 +00:00
Yan Yan
1f79b0cb09 Merge "Calculate priority based on caller configurations" am: 36a25527b4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1906130

Change-Id: I3817a344247104eb4056e949d09a123662fb6b65
2021-12-07 18:29:48 +00:00
Yan Yan
36a25527b4 Merge "Calculate priority based on caller configurations" 2021-12-07 18:10:47 +00:00
Andrei-Valentin Onea
1c565d5b4b Merge "Allow privapp permission allowlist in apex" am: e978ec5b07
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1766011

Change-Id: I3bb67e833b6c167ba24b974abcce9cde75317a89
2021-12-07 15:46:06 +00:00
Andrei-Valentin Onea
e978ec5b07 Merge "Allow privapp permission allowlist in apex" 2021-12-07 15:31:01 +00:00
Etienne Ruffieux
2a55386e82 Added missing equals override in new Transport Data classes
Tag: #feature
Bug: 208904630
Test: atest
Change-Id: I92cbd152eb063c866f7101040cb228036ae2c07a
2021-12-07 15:00:28 +00:00
Neil Fuller
22ed1a7a79 Merge "Use ISO 8601 format for LocalLog local timestamps" am: 172fd44b2f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1878440

Change-Id: I42db5ec854130e3e2eb5ebd7d392b367555b47de
2021-12-07 14:42:57 +00:00
Neil Fuller
172fd44b2f Merge "Use ISO 8601 format for LocalLog local timestamps" 2021-12-07 14:26:24 +00:00
Paul Hu
f8fb1fe955 Merge "Remove @hide symbols from NativeDaemonConnector" am: 68d5b22c2d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1899031

Change-Id: I6883153a5ec2f1002180905fe9972a650b9c0c84
2021-12-07 07:33:32 +00:00
Paul Hu
68d5b22c2d Merge "Remove @hide symbols from NativeDaemonConnector" 2021-12-07 07:12:28 +00:00
Paul Hu
db85fcfbbd Merge "Stop using NSD_ON setting" am: a37333ace6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1895245

Change-Id: I13cc751269756ba745f4327b35e3562e3aefd689
2021-12-07 06:01:15 +00:00
Paul Hu
a37333ace6 Merge "Stop using NSD_ON setting" 2021-12-07 05:43:44 +00:00
paulhu
e591c24c92 Remove @hide symbols from NativeDaemonConnector
- FgThread is an service internal class that NativeDaemonConnector
  can not use it after moving into mainline module. Thus, replace
  it by creating a new thread.

- Remove shutting down check because the original problem owner
  netd isn't used NativeDaemonConnector now.

Bug: 206702844
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: Ib2e227ef1e361f96b397abd7c2a88420ad5a2f22
2021-12-07 11:47:34 +08:00
Sudheer Shanka
87e632d7d7 Merge "Fix NetworkPolicy logs in dumpsys." am: bcca41baac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909697

Change-Id: Ib3aed17d6302b1a28796ead0037c5db629fbd4b3
2021-12-07 02:59:38 +00:00
Yan Yan
738ed7b7b2 Calculate priority based on caller configurations
Update NetworkPriorityClassifier to calculate priority
according to the VcnUnderlyingNetworkPriority list
configured in VcnGatewayConnectionConfig

Bug: 206044122
Test: atest FrameworksVcnTests(new)
Test: atest CtsVcnTestCses
Change-Id: I55afa916af44db655a568aae2488877f2c177d59
2021-12-06 18:52:23 -08:00
Sudheer Shanka
bcca41baac Merge "Fix NetworkPolicy logs in dumpsys." 2021-12-07 02:35:13 +00:00
Cole Faust
c546b3f7a6 Add instructions on how to annotate an AIDL interface
Fixes: 209500346
Test: m RUN_ERROR_PRONE=true framework |& grep -A 5 AndroidFrameworkRequiresPermission
Change-Id: If73e7c41543f3e8512e5ffe75e7620a6c4b0632b
2021-12-06 17:27:03 -08:00
Sooraj Sasindran
81be082283 Provide last known cell id for emergency call
Provide last known cell id to connection service
for emergency calls.

Bug: 198533763
Test: unit test
Change-Id: I8b660c0b5fbe095e3b9b67129b7404ebd7ec5ccd
2021-12-06 12:52:31 -08:00
Qasim Javed
562b6f9093 Merge "Add BluetoothLeBroadcast profile API." am: afd5a827a7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1881629

Change-Id: Id4c8274f8d03f58da0f6038d658519677252ad4d
2021-12-06 17:47:16 +00:00
Qasim Javed
afd5a827a7 Merge "Add BluetoothLeBroadcast profile API." 2021-12-06 17:27:31 +00:00
Hao Ke
d0ba47450c Merge "Set default ClassLoader for Parcel readSerializable API." am: 3760188d11
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1899432

Change-Id: I2a3c070553f6f198a8b34f0e3aa0a7cd64d4ee98
2021-12-06 17:21:29 +00:00
Hao Ke
3760188d11 Merge "Set default ClassLoader for Parcel readSerializable API." 2021-12-06 17:03:50 +00:00
Etienne Ruffieux
60ee51b45b Merge "Make BluetoothCodecConfig and BluetoothCodecStatus public." am: 720d74c835
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1849460

Change-Id: I3ac378fa125304253ffc8235642c292084af19d1
2021-12-06 15:40:20 +00:00
Patty
745b5edc47 Remove unnecessary test case
Tag: #refactor
Bug: 203535499
Bug: 150670922
Test: atest BluetoothLeAudioCodecConfigTest BluetoothInstrumentationTests
Change-Id: I5f3301c96990becca0f8baa0a5e61502c411e83c
2021-12-06 23:33:03 +08:00
Etienne Ruffieux
720d74c835 Merge "Make BluetoothCodecConfig and BluetoothCodecStatus public." 2021-12-06 15:16:44 +00:00
Hao Ke
e214082cb0 Set default ClassLoader for Parcel readSerializable API.
Set the default ClassLoader for the readSerializable(ClassLoader,
Class) API, when the ClassLoader parameter is null.

Doing so could enhance the security of Parcel deserialization,
as it would prevent resolving the Serializable class using unexpected
ClassLoaders.

Test: atest -d android.os.cts.ParcelTest
Bug: 195622897
Change-Id: I6da4b4f817c33e4464d90d1e9775b54793835c92
2021-12-06 14:34:03 +00:00
Bernardo Rufino
e3d8a1a299 Deprecate unsafe Parcel.readParcelableArray(ClassLoader)
Forgot this one.

Test: Builds
Bug: 195622897
Change-Id: Ia258f77fd2e706d2071c853c20d6ec3baa170a1f
2021-12-06 13:40:08 +00:00
Rhed Jao
ae0939cf4a Merge "Fix the typos on the java doc" am: 63fed23659
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909901

Change-Id: I9773daadb710c87c1b2df5d5931d563e01b83d47
2021-12-06 07:41:17 +00:00
Rhed Jao
63fed23659 Merge "Fix the typos on the java doc" 2021-12-06 07:19:52 +00:00
Jinyoung Jeong
0b1a783da6 DelegateRegistrationState Improvement
adding new states for DelegateRegistrationState:
 - DEREGISTERING_REASON_LOSING_PDN
 - DEREGISTERING_REASON_UNSPECIFIED

Bug: b/201522903, b/206557578
Test: atest CtsTelephonyTestCases:SipDelegateManagerTest
Change-Id: I3675c10a6dba55a49174509796c53b07b929c14f
Merged-In: I3675c10a6dba55a49174509796c53b07b929c14f
2021-12-06 03:55:54 +00:00
Qasim Javed
6a7bc39edf Add BluetoothLeBroadcast profile API.
Implementation for the APIs will be added later.

Bug: 205174140
Bug: 208222281
Tag: #feature
Test: gd/cert/run

Change-Id: I8781be89cba45a6e7a76fec7df24790a9f02d6a6
2021-12-05 19:45:08 -08:00
Jinyoung Jeong
b6518929e6 IMS RCS API Improvements-DelegateRegistrationState
Bug: b/197892699, b/202202874, b/203405794
Test: atest CtsTelephonyTestCases:SipDelegateManagerTest
Change-Id: Icfa7fd363ad4f9ad0131d78602c264742cd1785f
Merged-In: Icfa7fd363ad4f9ad0131d78602c264742cd1785f
2021-12-06 02:33:30 +00:00
Lucas Lin
49620a7f08 Merge "Update the transport types of metrics" am: 70be96ffbf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1884199

Change-Id: I041ead53badcad1480b7c5cd42f5fbd188440bbc
2021-12-06 02:25:04 +00:00
Lucas Lin
70be96ffbf Merge "Update the transport types of metrics" 2021-12-06 01:54:54 +00:00
Sudheer Shanka
67d3dd83ff Fix NetworkPolicy logs in dumpsys.
Right now, nothing is get logged due to an issue
with NetworkPolicyLogger.Data initialization.

Bug: 209236326
Test: adb shell dumpsys netpolicy
Change-Id: Ie0c3e3831802f317c5821676d426ff29a8bb5fa5
2021-12-04 23:05:19 -08:00
Treehugger Robot
44ee49d6c8 Merge "Allow flag-guarded Java optimizations for services" am: 4746631ed1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1897075

Change-Id: Ifbc5157860b63ecd48a469393f1eb06f9a3852da
2021-12-04 01:25:26 +00:00
Evgenii Stepanov
8895ef1256 Pass MTE RuntimeFlags to AppZygote.
Fix AppZygote process and its children (the actual service processes)
ignoring android:memtagMode attribute in the app manifest.

When starting a new AppZygote process, apply memtag-related flags as
determined by the app manifest (and modified by compat features and
actual h/w capabilities). If this is not done, MTE is always disabled in
an AppZygote process, which makes it impossible to enable it in the
AppZygote's children.

This change has no effect unless MTE is supported in the hardware
(ARMv9) and enabled in the system.

Bug: 207557677
Test: CtsTaggingHostTestCases
Change-Id: I8805958545fd790e4ca857184b749a21e58d68cd
2021-12-03 17:20:05 -08:00
Treehugger Robot
4746631ed1 Merge "Allow flag-guarded Java optimizations for services" 2021-12-04 01:07:34 +00:00
Hao Ke
479f10d9b7 Merge "Added End-of-Parcel check API." am: 93b3eb84ec
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1876569

Change-Id: I49bf528e536c18c64beb464d1021c5779d9f6325
2021-12-04 00:24:10 +00:00
Hao Ke
93b3eb84ec Merge "Added End-of-Parcel check API." 2021-12-03 23:54:12 +00:00
Guang Zhu
7d6a7c5f0e use test app's data folder as filter directory
During a retry, test methods to be retried are written into a
file, pushed onto device and read by the test instrumentation
for execution.

The default location for such filter file is /data/local/tmp,
which is prohibited for access by system uid packages, such
as the system UI tests package.

This change uses the test app's data folder for filter: this
is not generally applicable for all the tests since root
permission is required, but it is a relatively safe assumption
in case of testing against system uid pakcages since it
implies userdebug build is being used.

Bug: 152001555
Fixes: 208473429
Test: http://go/forrest-run/L76200000952166377
Change-Id: Ifc268a1cdb94ff8e47b6bd323464deb28e0c20ea
2021-12-03 15:29:32 -08:00
Etienne Ruffieux
7121cd7fa5 Make BluetoothCodecConfig and BluetoothCodecStatus public.
Made BluetoothCodecConfig and BluetoothCodecStatus public,
added Builder to BluetoothCodecConfig, added accessor for
SOURCE_CODEC_TYPE_MAX and changed Arrays returns to List.

Tag: #feature
Bug: 200202780
Bug: 170678351
Test: BluetoothCodecConfigTest & BluetoothCodecStatusTest
NoNonSdkCheck: Only user actually requested the changes
Change-Id: Ic61b7087f53f45781f7e0eecca8b6d983093a22d
2021-12-03 23:08:50 +00:00
Rambo Wang
dbc29cd5d2 Merge "Un-deprecate TelephonyManager SIM access APIs" am: 11f136cc06
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885962

Change-Id: I80959987bd2e851df3746ccd85291b26b89fd47a
2021-12-03 23:05:55 +00:00
Rambo Wang
11f136cc06 Merge "Un-deprecate TelephonyManager SIM access APIs" 2021-12-03 22:40:50 +00:00
Treehugger Robot
d3b9a7f1b2 Merge "ANDROID: Fix EventLog string class problem in ViewRootImpl#enqueueInputEvent()" am: 808e0a5e7a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909899

Change-Id: I1bc36b94f27ec90d484df3a468c1984d1ece8277
2021-12-03 22:21:12 +00:00
Treehugger Robot
808e0a5e7a Merge "ANDROID: Fix EventLog string class problem in ViewRootImpl#enqueueInputEvent()" 2021-12-03 22:05:19 +00:00