655433 Commits

Author SHA1 Message Date
Treehugger Robot
99da93a0e7 Merge "Add the min aspect ratio to ActivityRecordProto and populate it" 2021-11-05 18:06:29 +00:00
Bernardo Rufino
f5cc73d25f Merge "Refactor Bundle for thread-safety of Bundle.hasFileDescriptors()" 2021-11-05 17:43:00 +00:00
Roopa Sattiraju
30cd5df67f Merge "Change getEnabledComponentOverrides return type" 2021-11-05 17:33:00 +00:00
Trevor Radcliffe
eaebd2cd54 Merge "Migrate rs/jni to Soong" 2021-11-05 16:10:56 +00:00
Bernardo Rufino
41d4be0fef Merge "Improve @hide Parcel.hasFileDescriptors(Object)" 2021-11-05 14:51:18 +00:00
tomnatan
61836d5b5a Add the min aspect ratio to ActivityRecordProto and populate it
This is needed for CompatChangeTests to verify that the min aspect ratio
is applied directly by checking the min aspect ratio.

Bug: 203541827
Test: N/A
Change-Id: I1736cd4a2c4a1c5857796fa9772def7b7d94ba33
Merged-In: I1736cd4a2c4a1c5857796fa9772def7b7d94ba33
2021-11-05 11:29:51 +00:00
Rahul Sabnis
eb806924d6 Merge "Deprecate GATT callbacks and methods that were not memory safe and replace with memory safe versions." 2021-11-05 05:13:01 +00:00
Rahul Sabnis
8e78d9fbf3 Deprecate GATT callbacks and methods that were not memory safe and
replace with memory safe versions.

Tag: #feature
Bug: 195157393
Test: Manual
CTS-Coverage-Bug: 205190062
Merged-In: I5ae604ec20febcf646bfe6a8f866b218448349c1
Change-Id: I5ae604ec20febcf646bfe6a8f866b218448349c1
2021-11-05 03:30:03 +00:00
Nathan Harold
b175697953 Add GERAN to Docstring for PhysicalChannelConfig
Bug: 8675309
Test: none (docstring-only-change)
Change-Id: I2d96980b1d2fcc665b63d126ae2ebb63e649a574
2021-11-05 02:06:24 +00:00
Treehugger Robot
3494086c36 Merge "Protect new LE Audio Broadcasts" 2021-11-04 18:43:36 +00:00
Rambo Wang
aac94b26a7 Merge "Clear up ALWAYS_REPORTED_SIGNAL_STRENGTH_CHANGED logic" 2021-11-04 18:15:50 +00:00
Steven Moreland
a83307fbd8 Merge "Binder: correction of javadoc formatting" 2021-11-04 17:33:56 +00:00
Trevor Radcliffe
c2968df46b Migrate rs/jni to Soong
Fixes: 203674447
Test: Treehugger
Change-Id: I30054bc293b5a6870abb0c1f1c3919f250372b0a
2021-11-04 14:44:07 +00:00
Xiao Ma
32bd9d6d05 Enable tethering namespace accessible in Android native level.
Add tethering namespace to sDeviceConfigScopes.

Bug: 202940451
Test: m -j passed
Test: manually verify connecting to wifi after flash
Change-Id: Ic049aac408e356c16ab6414cf40a025f504601e8
Merged-In: If840c79001134d2003cb6f0e03d38b4b4055fb54
2021-11-04 14:05:16 +00:00
Jack Yu
fd53b477cd NFC-F support in work profile
Add one function to get NfcF service based on user id.

Bug: 202367033
Test: mauanl tests
Change-Id: I15f3ef84198b0af40d33fd16f457fb9b6cb7ca32
2021-11-04 12:47:51 +00:00
Santiago Seifert
88aed3b81d Merge "Replace new with sp<>::make" 2021-11-04 10:21:35 +00:00
Remi NGUYEN VAN
a9d48f666a Remove AsyncChannel usage in NsdManager
Replace AsyncChannel with two AIDL interfaces: INsdManagerCallback and
INsdServiceConnector.

This will be helpful to move NsdManager into a module, avoiding the
dependency on the hidden AsyncChannel utility.

Bug: 190249673
Test: atest FrameworksNetTests CtsNetTestCases:NsdManagerTest
Change-Id: Id9e8feb95cbb5ba16f00893f6c3f37fced3358c1
2021-11-04 17:59:51 +09:00
Les Lee
f9520f6d7d Fix normalize doesn't work on carrier template
From android 12, the subscriberId is being used for different network
types. For instances:
The TYPE_WIFI with subscriberId means that it is a merged wifi network.
The TYPE_CARRIER means that the network associate to specific carrier
network (subscriberId).

So remove the check "isMatchRuleMobile" and only check whether subscriberId
is being used in NetworkTemplate or not.

Bug: 194939211
Test: atest -c NetworkTemplateTest
Change-Id: I80c9f887cf8b4714716d657da92ed273a532ce27
2021-11-04 14:12:09 +08:00
Jonathan Lepage
ff42a9938b Document that Log can quietly swallow UnknownHostExceptions.
Change-Id: I7d3239eadf7dd73dd1ff12d2924bb43d3e357299
2021-11-04 00:53:34 +00:00
Hai Zhang
bff35de778 Merge "Unify owners for default permission grant policy." 2021-11-04 00:44:08 +00:00
Sudheer Shanka
055cbb2089 Add documentation for BlobStore service.
Bug: 191168800
Test: n/a
Change-Id: Id55d593856d6194cd620211cc3bca981e572d15a
Merged-In: Id55d593856d6194cd620211cc3bca981e572d15a
2021-11-03 23:05:18 +00:00
Rambo Wang
14cc15dc37 Clear up ALWAYS_REPORTED_SIGNAL_STRENGTH_CHANGED logic
The feature is now replaced with TM#setSignalStrengthUpdateRequest
introduced in S release. The logic for the obsoleted feature is
cleared up.

The request to report system signal strength while idle is
still protected by permission to use internally.

Bug: 177924721
Test: atest TelephonyRegistryTest SignalStrengthUpdateRequestTest
Change-Id: Idad4ca59720fac50b5ec0fe50e2b6ac8e9dbb801
2021-11-03 11:39:17 -07:00
Brett Chabot
a90cb087c0 Merge changes from topic "cp_slim"
* changes:
  Lazy load Properties::isDrawingEnabled.
  Backport 'add config to disable snapshots'.
  Backport 'Add ability to disable GL draws'.
2021-11-03 18:00:49 +00:00
Bill Yi
982bb0f145 Merge "Merge SP1A.211105.004 to aosp-master - DO NOT MERGE" 2021-11-03 17:50:39 +00:00
Jing Ji
7e76d37fdb Merge "Explicitly exit from the am instrument after test completes" 2021-11-03 17:07:30 +00:00
Treehugger Robot
ec9a8515d7 Merge "remove AudioManager.setParameters from bluetooth" 2021-11-03 17:00:22 +00:00
Santiago Seifert
05f95dcaa7 Replace new with sp<>::make
As per sp's recommendations.

Bug: 204401299
Change-Id: Ida464b7ef44e2ad5855764e4e7d03b9f6bd5d1b0
Test: Built and flashed device.
Test: atest CtsMediaTestCases:MediaPlayerTest
2021-11-03 12:12:11 +00:00
Dima
0d9bb37a9a Binder: correction of javadoc formatting
Fixed javadoc formatting, namely references to methods that were typoed and displayed incorrectly in Android Studio.

Change-Id: I190eab35bc7ec6e162cb6d614b2c74523ff86c1c
2021-11-03 08:10:04 +00:00
Bill Yi
ba584f1fa1 Merge SP1A.211105.004 to aosp-master - DO NOT MERGE
Merged-In: I7e267e3c046d726750180efa81806cbbefb17b68
Merged-In: I5ff5973c95868bee2b7444ecded7443d6e6429c9
Change-Id: Ic3cd62083de4219dbf52f568ca4f34bdc7a08516
2021-11-02 21:07:53 -07:00
Hai Zhang
7ea5048947 Unify owners for default permission grant policy.
The list of owners is taken from:
- frameworks/base/services/core/java/com/android/server/pm/permission/OWNERS
- cts/common/device-side/util-axt/src/com/android/compatibility/common/util/OWNERS
- vendor/xts/gts-tests/tests/permission/src/com/google/android/permission/gts/OWNERS

Test: presubmit
Change-Id: I3cc073d4890a4295caba8b04752a02f1e00db03c
2021-11-03 03:41:45 +00:00
Lucas Lin
74ef57b885 Merge "Set underlying network of VCN" 2021-11-03 00:44:40 +00:00
Yifan Hong
d69e2b3f13 Merge "Revert "libandroid_runtime_vm_headers is recovery_available."" 2021-11-02 17:39:06 +00:00
William Escande
ef429b62b1 remove AudioManager.setParameters from bluetooth
All uses of AudioManager.setParameters are a hack that we have to remove.

Bug: 196440888
Tag: #refactor
Test: Build
Change-Id: I6deeffef8fbd8ba1c501f41c74b4763503106cc0
2021-11-02 16:38:15 +01:00
Bernardo Rufino
7c296d7514 Refactor Bundle for thread-safety of Bundle.hasFileDescriptors()
After aosp/1878338, I realized Bundle.hasFileDescriptors() was accessing
mParcelledData and mMap without a lock. So, to avoid locking
there, I made mParcelledData volatile (since after mParcelledData is
null, it can never be non-null again and mMap is guaranteed to be
non-null). So, moved assignments to mParcelledData to be last wrt mMap
and mParcelledByNative to ensure visibility of those fields.

While refactoring copyInternal(), realized that method was always used
after constructing an uninitialized Bundle, so to avoid mistakes with
objects not properly initialized, I created a constructor in Bundle,
PersistableBundle & BaseBundle that does that copyInternal() did.

Bug: 195622897
Test: atest -d android.os.cts.ParcelTest android.os.cts.BundleTest android.os.BundleTest android.os.ParcelTest
Change-Id: I5c9337496da7ecf87f10370726099dcb247a6789
2021-11-02 11:42:11 +00:00
Bernardo Rufino
31d70842e0 Improve @hide Parcel.hasFileDescriptors(Object)
Addressing Jeff's comment on aosp/1787847 to support List<> in
Parcel.hasFileDescriptor(), also added support for Map (+ArrayMap) and
Object[] that were missing. Made the checks recursive since it's
possible to put nested containers in bundle. Since that's @hide and only
used by bundle, included Parcel as a supported type too and clarified in
the javadoc.

That allowed to clean up Bundle.hasFileDescriptors().

Bug: 195622897
Test: atest -d android.os.cts.ParcelTest android.os.cts.BundleTest android.os.BundleTest android.os.ParcelTest
Change-Id: I6acf358763d8f544fc6ff1a5b0c8bdff567d50be
2021-11-02 10:54:58 +00:00
Mohammad Islam
e583e6d676 Merge "Propagate classpath info for staged apex to PackageManager" 2021-11-02 08:51:01 +00:00
Remi NGUYEN VAN
5318227f2a Merge "Add framework-annotations-lib to Wifi service deps" 2021-11-02 06:49:19 +00:00
Xiao Ma
8f2ec1df33 Merge "Add a separate namespace for Tethering module." 2021-11-02 02:42:31 +00:00
Hao Ke
bce40e7c6e Merge "Adding typed Parcel read APIs for Serializable." 2021-11-02 02:08:29 +00:00
Jing Ji
209ddf9871 Explicitly exit from the am instrument after test completes
To speed up the test. For a trivial am instrument run:

[Before]
0m01.53s real     0m00.16s user     0m00.16s system

[After]
0m00.72s real     0m00.21s user     0m00.11s system

Bug: 204195830
Test: am instrument -w
Change-Id: I66196d1db9169681dabb2e5dacdd18e6105ad75a
2021-11-01 17:35:37 -07:00
Nagendra Prasad Nagarle Basavaraju
839597dea5 Merge "Support encoding/decoding IkeSessionParams with IKE_OPTION_INITIAL_CONTACT" 2021-11-01 23:55:56 +00:00
Treehugger Robot
a0e2ccc173 Merge "Supported minimum aggregated bandwidth and roaming for 5G+" 2021-11-01 23:07:21 +00:00
Treehugger Robot
9ea37fe982 Merge "Add OWNERS for the health package." 2021-11-01 22:54:08 +00:00
Treehugger Robot
99d0fd69cb Merge "Adjust the OWNERS file for attestation verification" 2021-11-01 20:48:31 +00:00
Treehugger Robot
1b05dfe00d Merge "Use static utils from f/l/n instead of the networkstack" 2021-11-01 19:17:40 +00:00
Jack Yu
eea7397d88 Supported minimum aggregated bandwidth and roaming for 5G+
1. Added minimum bandwidth support. 5G+ icon is only
   shown when the aggregated bandwidth is above the threshold.
2. Allowed carrier to disable 5G+ while roaming.

Bug: 198831438
Bug: 201455505
Test: atest NetworkTypeControllerTest
Merged-In: I1f40de5ee559a6d703806e74d305267bde295dcc
Change-Id: I1f40de5ee559a6d703806e74d305267bde295dcc
(cherry picked from commit 5e7b8533ef4b9d355c8df051d377e91ff7bed85a)
2021-11-01 10:37:33 -07:00
lucaslin
07ca5cb00e Set underlying network of VCN
VCN has already known its underlying network, so set it into
NetworkCapabilities directly.

Bug: 191918368
Test: atest FrameworksVcnTests
Change-Id: Ibfe4f12bc5f3a8b7679d8a2c3b1b2f2161b9c9e5
2021-11-01 22:56:53 +08:00
Bernardo Rufino
98a4a1b8b9 Merge "Add range-based Parcel.compareData()" 2021-11-01 11:27:05 +00:00
Xiao Ma
f9335d9562 Add a separate namespace for Tethering module.
Bug: 202940451
Test: m -j passed
Merged-In: I393d25f4c1a15927686c984e47c01f2646d0867d
Change-Id: I8a2bc2c80b087f304c6f0471736d7a0a6e0b9cd7
2021-11-01 11:07:58 +00:00
Xiao Ma
c9b6889e04 Merge "Add a separate namespace for CaptivePortalLogin module." 2021-11-01 11:05:17 +00:00