660091 Commits

Author SHA1 Message Date
Treehugger Robot
0d39f92360 Merge "Check for initialization of mUpdateEngine" am: e3a84af1a7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1907970

Change-Id: Ic6dd9dcbc427d9c867f2b1ccb447a591deb05c96
2021-12-02 19:11:39 +00:00
Treehugger Robot
e3a84af1a7 Merge "Check for initialization of mUpdateEngine" 2021-12-02 18:44:59 +00:00
Jakub Pawlowski
6525f0d6b9 Bluetooth: Pretty print LE Audio profile name in logs
Bug: 159786353
Change-Id: I1157a34fa91883a861ff0573431009823c2cd8b1
2021-12-02 19:13:15 +01:00
Jack Nudelman
5dff75b3d6 Create a new key to backup Sim-specific data.
Bug: b/206309441
Test: b/206986278
Change-Id: I84b42690f8dd3de0cbd795cc13dd5f9ab5a7a725
Merged-In: I84b42690f8dd3de0cbd795cc13dd5f9ab5a7a725
2021-12-02 18:05:33 +00:00
Hao Ke
d117f6f6d5 Added End-of-Parcel check API.
Added End-of-Parcel check API, that verifies there are no
bytes left to be read on the Parcel.

Test: atest -d android.os.cts.ParcelTest#testEnforceNoDataAvail
Bug: 195622897
Bug: 204990745
Change-Id: I3068568d8d4371b071aecd357adeb45a2d7103e4
2021-12-02 16:16:54 +00:00
Hao Ke
aa4e9dfda8 Deprecate unsafe readParcelableList API.
Deprecate unsafe parcel APIs and point to the safer ones that take the
expected type as parameter. Also mentioned the typed ones
that take the creator as argument since those are also more performant.

Test: Builds
Bug: 195622897
Bug: 199275680
Bug: 205985058
Change-Id: I77a1a925d8759fd122936780587e3488705d4c56
2021-12-02 15:43:40 +00:00
Patty
ae425ca614 Parse audio config codec capability for LE devices
1. Rename function getHwOffloadEncodingFormatsSupportedForA2DP
    to getHwOffloadFormatsSupportedForBluetoothMedia
 2. Add audio format for LC3
 3. Add public class BluetoothLeAudioCodecConfig to store the
    codec for LE audio
 4. Add test case for BluetoothLeAudioCodecConfig

Tag: #feature
Bug: 203535499
Bug: 150670922
Test: atest BluetoothLeAudioCodecConfigTest BluetoothInstrumentationTests
Change-Id: I5f64d9078ca2c07e13cffd83b879dd95468ed313
Merged-In: I5f64d9078ca2c07e13cffd83b879dd95468ed313
2021-12-02 21:59:26 +08:00
Sorin Basca
fc7aabcf2e Updating locked_region_code_injection to use ASM7
Bug: 195387073
Test: m
Test: EXPERIMENTAL_TARGET_JAVA_VERSION_11=true m
Change-Id: I34463d3da4d085697f441b4ca68007cafa9d7b69
2021-12-02 08:16:24 +00:00
Treehugger Robot
63a204f231 Merge "Fix incorrect SID matching for bio prompts" am: 8d221843b7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1908470

Change-Id: Ia6343c364eec9af9ffff5fcae3ceb6518a1ab10c
2021-12-02 03:27:24 +00:00
Paul Hu
9238a7c49e Merge "Centralize nsd associated files" am: 32942299d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1895244

Change-Id: I15a6d3eaca8b0244258d08b1dc5e46f0394609cb
2021-12-02 03:26:56 +00:00
Yan Yan
5d69a99ee6 Merge "Create VcnUnderlyingNetworkPriority and the subclass for Wifi" am: cc09b29e59
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1901036

Change-Id: I0dca455cf6f2485faa84e926b6f8a318d5bd0f60
2021-12-02 03:26:30 +00:00
Treehugger Robot
3274e47ac9 Merge "Make StubVolumes visible for read" am: 6a20288d86
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1889176

Change-Id: Ie0f4b2ac621f81654c0d25aabbf97667affdd3ef
2021-12-02 03:25:42 +00:00
Thiébaud Weksteen
ae4bf7dda6 Add @JavaOnlyStableParcelable to AttributionSource
Annotate AttributionSource with @JavaOnlyStableParcelable as it is
already available as part of the SDK.

Bug: 197828948
Test: atest --host aidl_unittests
Change-Id: I3e9343030947404239c9a963a529d246c57a04a1
2021-12-02 13:14:21 +11:00
Treehugger Robot
8d221843b7 Merge "Fix incorrect SID matching for bio prompts" 2021-12-02 01:26:15 +00:00
Paul Hu
32942299d3 Merge "Centralize nsd associated files" 2021-12-02 01:14:07 +00:00
Seth Moore
c78e369c4c Fix incorrect SID matching for bio prompts
The default value for canUnlockViaBiometrics, which determines if we
are able to show a bio prompt, is true. However, if there are 0
biometric authenticator IDs, then it's impossible for the user to
satisfy a bio prompt. In this case, we should set canUnlockViaBiometrics
to false.

The loop that is normally expected to invert canUnlockViaBiometrics was
never run in the case of 0 bio authenticator ids, so we mistakenly
let the crypto init operation succeed when we should have blocked it.

Bug: 188864794
Test: Manual, using sample app that displays a biometric prompt.
Change-Id: Ib95b0564aa098157718b8d4a45b11baa69dad71b
2021-12-01 14:59:24 -08:00
Tim Van Patten
6e2a6588aa Correctly call setGpuStats() for ANGLE/system driver
In GraphicsEnvironment, correctly indicate if the loaded driver is ANGLE
or the system driver. This allows the 'dumpsys gpu' command to have the
correct value in the angleInUse field.

Bug: b/154955572
Test: adb shell dumpsys gpu
Test: atest CtsAngleIntegrationHostTestCases
Change-Id: I6db466b796e216367b0a220e432067b9ae6f485b
2021-12-01 12:50:59 -07:00
Kelvin Zhang
8af2abfcc7 Check for initialization of mUpdateEngine
Bug: 207768409
Test: th

Change-Id: Idc702658ab542566d775b296f1e82b63b0c1c2a4
2021-12-01 10:56:34 -08:00
Yan Yan
fee736f47c Support configuring VcnUnderlyingNetworkPriority in VcnGatwayConnectionConfig
Bug: 206044122
Test: atest FrameworksVcnTests(new tests)
Test: atest CtsVcnTestCases
Change-Id: I5cd2982fcbfe5ce4ee36edb91f1f9f9b55d28d9a
2021-12-01 10:34:02 -08:00
Yan Yan
0376684dea Create VcnCellUnderlyingNetworkPriority
Create VcnCellUnderlyingNetworkPriority to allow VCN callers
to configure network prioritization.

Bug: 206044122
Test: atest FrameworksVcnTests(new tests)
Test: atest CtsVcnTestCases
Change-Id: Ia7f44c5f956ff75c39e20d9761f1bd5c987644ee
2021-12-01 10:33:49 -08:00
Yan Yan
cc09b29e59 Merge "Create VcnUnderlyingNetworkPriority and the subclass for Wifi" 2021-12-01 18:23:23 +00:00
Treehugger Robot
6a20288d86 Merge "Make StubVolumes visible for read" 2021-12-01 16:10:39 +00:00
Neil Fuller
dac9456ac2 Fix OWNERS for time protos
The format is apparently incorrect, so split into 2 lines.

Also reference a master OWNERS file rather than listing individuals.

Test: None
Change-Id: Ib526bfc4868a17f00fea952759e685c95ec38606
2021-12-01 14:38:33 +00:00
paulhu
f11209c656 Replace @hide APIs
NSD associated files are going to move into connectivity
mainline module in T, so need convert all hidden APIs to formal
API surfaces.

- Replace Slog with Log
- Remove useless implements Watchdog.Monitor
- Replace Build.IS_DEBUGGABLE with Build.isDebuggable()
- Replace Preconditions.checkState90 by checking null directly.
- Replace Lists.newArrayList() by new ArrayList<>()
- Replace DumpUtils.checkDumpPermission() by checking DUMP
  permission directly.

Bug: 206702844
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: I6bc478b852c10591959d9e0615af63e675532abe
2021-12-01 22:31:50 +08:00
Treehugger Robot
7fcb1985de Merge "audio: Update TEST_MAPPING to include CtsMediaAudioTestCases" am: 679da0392d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1891497

Change-Id: I68968684df912ee83a9aac0a079f986c693641eb
2021-12-01 08:09:38 +00:00
Treehugger Robot
679da0392d Merge "audio: Update TEST_MAPPING to include CtsMediaAudioTestCases" 2021-12-01 07:49:33 +00:00
John Reck
200d79d156 Merge "Add owners for HardwareBuffer & friends" am: e8c5cf956f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1906882

Change-Id: I98c2f9f753b1434ab899dfaf5ab8772a3573bb02
2021-12-01 02:13:15 +00:00
John Reck
e8c5cf956f Merge "Add owners for HardwareBuffer & friends" 2021-12-01 01:57:00 +00:00
Yan Yan
629cb6935e Create VcnUnderlyingNetworkPriority and the subclass for Wifi
Create VcnUnderlyingNetworkPriority and VcnWifiUnderlyingNetworkPriority
to allow VCN callers to configure network prioritization.

Bug: 206044122
Test: atest FrameworksVcnTests(new tests)
Test: atest CtsVcnTestCases
Change-Id: I540f826176c7085780be93e42fdbc3ff0ad537d7
2021-11-30 16:55:55 -08:00
Hao Ke
42cd062e7b Merge "Adding typed Parcel readParcelableList API." am: edbe912fd3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1899430

Change-Id: Ie32cabcd2e878e9b56c2259a30146ad85202f751
2021-12-01 00:31:44 +00:00
Hao Ke
edbe912fd3 Merge "Adding typed Parcel readParcelableList API." 2021-12-01 00:16:28 +00:00
John Reck
b7b469bb28 Add owners for HardwareBuffer & friends
Test: this
Change-Id: I36531490b7736bc4ac9d8693fc3feffb4058ad6e
2021-11-30 18:42:52 -05:00
Treehugger Robot
537fa65325 Merge "Add OWNERS file to android.os.vibrator" am: 8e054179ea
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1906510

Change-Id: I0fb0d1136ef37b2966ce1abd522c0110fcf029d6
2021-11-30 18:48:40 +00:00
Treehugger Robot
8e054179ea Merge "Add OWNERS file to android.os.vibrator" 2021-11-30 18:34:05 +00:00
Sudheer Shanka
bfe9b8a9f3 Merge "Fix the case where restricted mode allowed reasons are ignored" am: e07b665eec
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1899431

Change-Id: I2b11393ca658db069262c8a20ccfdd12116b336b
2021-11-30 18:23:41 +00:00
Sudheer Shanka
e07b665eec Merge "Fix the case where restricted mode allowed reasons are ignored" 2021-11-30 18:01:59 +00:00
Neil Fuller
b9d11bfce5 Add a setting to support for NITZ retention
Add a setting to support for NITZ retention, see the comments for
details. The comments for related settings have also been updated to
better reflect their meaning / improve consistency with the new setting.

Bug: 204415203
Test: See frameworks/opt/telephony/ change
Change-Id: Idb21dc9ea7a1ad5cbb7a8bd238ab9a71174ee1ff
2021-11-30 16:03:06 +00:00
William Escande
d23ab35c01 replace CURRENT_OR_SELF with non hidden API
This API is called by a mainline module (Bluetooth), and needs
to be change to an available API.

Bug: 200200870
Tag: #refactor
Test: Build + start bt + switch user and restart bt
Change-Id: I37bb0d16e61d666d0aa51d5efe48fa9b39f9c1c3
2021-11-30 13:18:29 +00:00
Patty
b897f7728f Change isCISCentralSupported() to isLeAudioSupported() API
Tag: #feature
Bug: 200749925
Bug: 150670922
Test: atest BasicAdapterTest
Change-Id: Ie606f45e148f6d9026495279d718a3cc1523c36f
2021-11-30 20:36:30 +08:00
Lais Andrade
ffe9e9154a Add OWNERS file to android.os.vibrator
Change-Id: I1b8cd5446e8909bf20f4436a450bd7a0199ab508
2021-11-30 11:38:21 +00:00
Treehugger Robot
1796c893e7 Merge "Set default video parameters in Tx VideoFormatResolver" am: 014af4028e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1887497

Change-Id: I7e9dc5a852901befaa4afe647f142c5359e80cea
2021-11-29 22:33:38 +00:00
Treehugger Robot
014af4028e Merge "Set default video parameters in Tx VideoFormatResolver" 2021-11-29 22:16:40 +00:00
Treehugger Robot
42609ea486 Merge "BT MAINLINE ParcelFileDescriptor to dup method" am: 1e6ac5e1ff
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1895130

Change-Id: Id5aa16675c15f3dd7ab4cb86790eaacec3bed9db
2021-11-29 17:39:15 +00:00
Treehugger Robot
1e6ac5e1ff Merge "BT MAINLINE ParcelFileDescriptor to dup method" 2021-11-29 17:21:33 +00:00
Anton Hansson
851f8a23ea Merge "Make android.test.mock use api_srcs instead of jarjar" am: 6fc7c62572
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1900479

Change-Id: Ic3aa0b6c92e8a01ced8d6025ed4f3c64a3c59487
2021-11-29 16:08:44 +00:00
Anton Hansson
6fc7c62572 Merge "Make android.test.mock use api_srcs instead of jarjar" 2021-11-29 15:54:13 +00:00
Treehugger Robot
e86e0d5be2 Merge "MediaCodec:Add code for YCbCrP010 format support" am: f33f4b6f50
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1894875

Change-Id: I3fa5f2731b0d91aef0f197761bd96d1a4c94e7ee
2021-11-29 15:25:42 +00:00
Treehugger Robot
f33f4b6f50 Merge "MediaCodec:Add code for YCbCrP010 format support" 2021-11-29 15:10:11 +00:00
paulhu
4e690dd40d Centralize nsd associated files
Move all nsd associated files include framework, service and test
to package/Nsd first. After clear all hidden API dependencies, we
can easily migrate these files into connectivity mainline module.

Bug: 206893064
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: Id26f471a10fe7882e31ccc2dbb73219461f00dbd
2021-11-29 23:08:06 +08:00
Treehugger Robot
4c1e2a20ca Merge "Update vibrator file owners" am: fcab8baf60
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1905230

Change-Id: Ie0f0dc75410cec10173fdb99e8eebb50b24c04ea
2021-11-29 14:53:50 +00:00