654724 Commits

Author SHA1 Message Date
Jacob Hobbie
f76e50ba48 Cherrypicking flags and override methods for allowing dynamically
registered receivers to mark themselves explicitly as exported or not
exported.

Test: will add tests with enforcement
Change-Id: I9a16f566c54e389743dcf460734ecdc0b1081768
2021-09-23 08:20:04 -07:00
Treehugger Robot
83a970d901 Merge "Migrate IPsec modules to use state machine lib" am: 4e23d56de4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1834516

Change-Id: Ic803f5ca7acc720e0291caacb414c6ef453bebd0
2021-09-23 14:53:03 +00:00
Treehugger Robot
4e23d56de4 Merge "Migrate IPsec modules to use state machine lib" 2021-09-23 14:40:55 +00:00
Treehugger Robot
ad6a3dacb3 Merge "csip: seamless pair with the coordinated set" am: 90ba3faab4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1829332

Change-Id: I17cb45059f03a550603e149eb071c1b410717d4c
2021-09-23 13:33:00 +00:00
Treehugger Robot
90ba3faab4 Merge "csip: seamless pair with the coordinated set" 2021-09-23 13:16:58 +00:00
wescande
f2f8648816 Migrate Cellbroadcast modules to use modules-utils
StateMachine stand-alone library will replace all specific filegroup
created for module.
It will be then moved into modules-utils
Preconditions and handlerExecutor are arlready moved in modules-utils

Bug: 198418216
Tag: #refactor
Test: Build
Merged-In: Ia72c92d6be150edfee3743878d988f21a585e808
Change-Id: Ia72c92d6be150edfee3743878d988f21a585e808
2021-09-23 13:05:47 +00:00
wescande
1aff432fda Migrate Cellbroadcast modules to use modules-utils
StateMachine stand-alone library will replace all specific filegroup
created for module.
It will be then moved into modules-utils
Preconditions and handlerExecutor are arlready moved in modules-utils

Bug: 198418216
Tag: #refactor
Test: Build
Change-Id: Ia72c92d6be150edfee3743878d988f21a585e808
2021-09-23 15:04:54 +02:00
wescande
3f9c6ba8ad Migrate IPsec modules to use state machine lib
StateMachine stand-alone library will replace all specific filegroup
created for module.
It will be then moved into modules-utils

Bug: 198418216
Tag: #refactor
Test: Build
Change-Id: I9dacffe74be54f378d1034f0ec4ef8b3b16afb29
2021-09-23 14:01:11 +02:00
Alice Kuo
e7cb6bd26f csip: seamless pair with the coordinated set
1. Handle the set member avaiabler intent, check the group is existing and create bond automatically.
2. Accept the paring request for the ongoing set member

Bug: 150670922
Bug: 178981521
Test: pair with one of the CSIP supported device,and get bonded with the
whole coordinated set

Change-Id: Ia95e1ba6dccde0a4e61a9eafdef746b1415704a4
2021-09-23 09:11:50 +00:00
Treehugger Robot
31b986daf2 [automerger skipped] Merge "Update CSIP base uuid devie set into a single device detail preference" am: e7d2554f18 -s ours
am skip reason: Merged-In I1a8d570da1af7fa4c8b3a99f8ce69d23b574e96c with SHA-1 a1868538bd is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1824614

Change-Id: I5b8d4afaa3d6415b2f5745af5539f9ea816fb495
2021-09-23 08:42:44 +00:00
Treehugger Robot
e7d2554f18 Merge "Update CSIP base uuid devie set into a single device detail preference" 2021-09-23 08:23:19 +00:00
Alice Kuo
c32061b88e Update CSIP base uuid devie set into a single device detail preference
Bug: 178981521
Bug: 150670922
Test: pair with two device which are a coordinated set, and make sure
the UI only show one device

Merged-In: I1a8d570da1af7fa4c8b3a99f8ce69d23b574e96c
Change-Id: I1a8d570da1af7fa4c8b3a99f8ce69d23b574e96c
2021-09-23 07:20:03 +00:00
Brad Ebinger
f1163c51d2 Add a device overlay for radio off delay due to IMS deregistration
Adds a new device overlay that allows a device to tune how long it
should wait for IMS deregistration in response to APM off or power
off indication. If 0, the feature should be disabled.

Bug: 195304068
Test: atest FrameworksTelephonyTests:ServiceStateTrackerTest
Change-Id: Id7b16d75c512106b56cb49974570811679498a0b
Merged-In: Id7b16d75c512106b56cb49974570811679498a0b
2021-09-23 00:35:25 +00:00
William Escande
c05e55ffbf Use AttributionSource Builder
Attribution source constructor are hidden api
Add a Builder option to take a AttributionSource as parameter

Test: atest BluetoothInstrumentationTests
Bug: 195144968
Tag: #refactor
Ignore-AOSP-First: No such thing on aosp
Change-Id: I901c8afff6a40bd8484fd8e10baf290aa483c280
2021-09-22 20:22:36 +02:00
Devin Moore
5ae740f8eb Merge "ServiceManagerNative: add getConnectionInfo" am: e731e209d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1823886

Change-Id: Ib67c5cc25b23d8f75d96c845ffdc63d7a6e61ec9
2021-09-22 16:42:41 +00:00
Devin Moore
e731e209d3 Merge "ServiceManagerNative: add getConnectionInfo" 2021-09-22 16:25:48 +00:00
Anton Hansson
ff208a6d4f [automerger skipped] Merge "Add doc stubs target that uses module stub source" am: 996aab2adc -s ours
am skip reason: Merged-In I1a275b3f44632e6655dc84d711a58fc0c5b3a46a with SHA-1 fa5d0bc676 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1829886

Change-Id: Ic807e4fb6c993c93489eec923ad91c54d7a9d293
2021-09-22 15:08:00 +00:00
Anton Hansson
996aab2adc Merge "Add doc stubs target that uses module stub source" 2021-09-22 14:51:34 +00:00
Bernardo Rufino
9293dca91c Synchronize in LazyValue.get()
When we use Bundle's copy constructor we perform a shallow copy of the
underlying map, so lazy values are the same across the original and the
clone. So, if we're accessing the same item backed by a lazy value in 2
different threads, each one accessing a different bundle (the original
and the clone), both would have to synchronize on a common lock.

Although Bundle is not thread-safe, we should keep the expectation that
the client only needs to properly synchronize access to one bundle, not
more. To achieve this, we synchronize on the original parcel held by
LazyValue in get(), this removes the need for the above.

Note that after we produce the lazy values and put them in the map, we
don't have a reference to mParcelledData anymore inside the Bundle, the
only objects holding a reference to that parcel are the lazy values.

Also fixed some stuff in LazyValue:
* Fixed condition inside LazyValue that used mObject == null as
  signal for "not deserialized" state since mObject can be null, so
  switched to mSource != null.
* Made mSource volatile and adjusted operations to always check it
  before, ensuring visibility of itself and mObject via happens-before.
  This works because after checking mSource, if that's null, mObject is
  guaranteed to be visible and valid, if it's not null, we can use it
  since we're in the serialized state and this works even if another
  thread deserializes in between as long as we hold on to a reference of
  mSource in a local because the parcel is still valid.
* Remove the recycling of mValueParcel, otherwise we'd need locking to
  ensure whatever was using it was still using a valid object. Decided
  to just remove recycling for now since the plan is to remove
  mValueParcel entirely when we add comparison and hasFileDescriptor()
  methods that operate on a range to Parcel.

Bug: 195622897
Test: atest -d android.os.cts.ParcelTest android.os.cts.BundleTest
      android.os.BundleTest android.os.ParcelTest
Test: More tests coming
Change-Id: I501c91f505950338b23e7837e55f89b2f63ff93a
2021-09-22 11:58:24 +01:00
Mohammad Samiul Islam
9b02b2e12c Merge "libbinder: split out PackageManagerNative aidl" into stage-aosp-master 2021-09-22 10:28:10 +00:00
Anton Hansson
c010164844 Merge "Make merged api compat checks output baseline" am: 6c20a2d6b2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1832239

Change-Id: If57aae144cb15d6704a36311b358e892f8ae4f2f
2021-09-21 17:32:26 +00:00
Anton Hansson
6c20a2d6b2 Merge "Make merged api compat checks output baseline" 2021-09-21 17:16:49 +00:00
TreeHugger Robot
179a9be4b1 Merge "Update CSIP base uuid devie set into a single device detail preference" into stage-aosp-master 2021-09-21 16:40:38 +00:00
Rambo Wang
44a43030c4 Merge "Limit the uniqueness of SignalMeasurementType instead of RAN in SignalStrengthUpdateRequest" am: 68b121111d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1826890

Change-Id: Iba5234e267a672be13a0262c53b93a5b1996c5a7
2021-09-21 16:27:14 +00:00
Rambo Wang
68b121111d Merge "Limit the uniqueness of SignalMeasurementType instead of RAN in SignalStrengthUpdateRequest" 2021-09-21 16:13:58 +00:00
Anton Hansson
b8ce081c1a Make merged api compat checks output baseline
When intentional API breakages are made, the incompatibilities tracking
file must be updated. This makes the failing build rule output the
baseline/incompatibilities file that would have made the build rule
succeed. This file can then be used to update prebuilts/sdk.

Whilst here, also make metalava quiet so we don't need to capture
stdout.

Test: make breaking change, build compat rule, inspect output dir
Change-Id: Ia95b65548371329cd467fd3093db92b471e6986d
2021-09-21 16:29:41 +01:00
Treehugger Robot
ec3d9e84b3 [automerger skipped] Merge "Wifi use state machine from modules-utils" am: af88579f14 -s ours
am skip reason: Merged-In I2087b15cf34b76dabeb14d51d041533f55e1b5ba with SHA-1 b52b48c9d1 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1831873

Change-Id: I0e95997b21e94675fd38b2c22533e6ada7532590
2021-09-21 12:51:26 +00:00
Treehugger Robot
af88579f14 Merge "Wifi use state machine from modules-utils" 2021-09-21 12:36:25 +00:00
TreeHugger Robot
49d0f6788a Merge "Wifi use state machine from modules-utils" into stage-aosp-master 2021-09-21 09:55:23 +00:00
Alice Kuo
a1868538bd Update CSIP base uuid devie set into a single device detail preference
Bug: 178981521
Bug: 150670922
Test: pair with two device which are a coordinated set, and make sure
the UI only show one device

Change-Id: I1a8d570da1af7fa4c8b3a99f8ce69d23b574e96c
2021-09-21 11:11:18 +08:00
William Escande
b52b48c9d1 Wifi use state machine from modules-utils
Bug: 198418216
Tag: #refactor
Test: atest FrameworkWifiApiTests
Change-Id: I2087b15cf34b76dabeb14d51d041533f55e1b5ba
2021-09-20 23:19:09 +02:00
William Escande
0153d5ff19 Wifi use state machine from modules-utils
Bug: 198418216
Tag: #refactor
Test: atest FrameworkWifiApiTests
Merged-In: I2087b15cf34b76dabeb14d51d041533f55e1b5ba
Change-Id: I2087b15cf34b76dabeb14d51d041533f55e1b5ba
2021-09-20 21:18:45 +00:00
Colin Cross
abb70e433a Merge "Convert DownloadManagerTestApp to Android.bp" am: 46d22e3c87
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1829055

Change-Id: Ief2fc9ff1f69ae768f3d4b54242a2f95deea6344
2021-09-20 20:38:38 +00:00
Colin Cross
35f4acb9bd Merge "Convert MultiDexLegacy* tests to Android.bp and d8 --main-dex-rules" am: 58210e2960
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1829054

Change-Id: I11dfd1a08745f9d45861ec296416bad0aa4e20d9
2021-09-20 20:37:50 +00:00
Colin Cross
46d22e3c87 Merge "Convert DownloadManagerTestApp to Android.bp" 2021-09-20 20:22:56 +00:00
Colin Cross
58210e2960 Merge "Convert MultiDexLegacy* tests to Android.bp and d8 --main-dex-rules" 2021-09-20 20:22:44 +00:00
Colin Cross
6f4e26df2b Convert DownloadManagerTestApp to Android.bp
See build/soong/README.md for more information.

Test: mma
Change-Id: I2d3fefc4467cde83d8a93217935b908230bcbade
2021-09-20 20:22:35 +00:00
Colin Cross
5f4f5562e0 Convert MultiDexLegacy* tests to Android.bp and d8 --main-dex-rules
The mainDexClasses script is obsolete, pass the rule to d8 with
--main-dex-rules instead.

Test: mma
Change-Id: Ia88660550c3e57749b8ccb154e97c31aaf2fcf3a
2021-09-20 20:22:25 +00:00
Roopa Sattiraju
e7087432f6 Merge "Adding sattiraju@ as OWNER and also changing the order of ldaps to be alphabetical" am: 2279402490
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1829234

Change-Id: I95bc17bce0aedca17e0cf8ae57a66a8056fe3c68
2021-09-20 19:42:30 +00:00
Roopa Sattiraju
2279402490 Merge "Adding sattiraju@ as OWNER and also changing the order of ldaps to be alphabetical" 2021-09-20 19:05:39 +00:00
Treehugger Robot
0cf0b71c17 [automerger skipped] Merge "Make createBond(int) a system API" am: a9c6fbdff7 -s ours
am skip reason: Merged-In I10d9ac305cbc1bb28c8150e1b167a0e61ad3f04e with SHA-1 5cebaaa562 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1802874

Change-Id: If50aa9db7269acb8e13e6b556a8cb3081accac96
2021-09-20 16:10:40 +00:00
Treehugger Robot
a9c6fbdff7 Merge "Make createBond(int) a system API" 2021-09-20 15:52:02 +00:00
Rambo Wang
924964767c Limit the uniqueness of SignalMeasurementType instead of RAN in
SignalStrengthUpdateRequest

Support different SignalMeasurementType with same type of RAN
is valid user case. For example, client may be interested to
measure both RSRP and RSRQ for EUTRAN.

Throw IAE if the SignalThresholdInfo collection is empty. This
is behavior specified in the public interface.

Bug: 198318496
Test: atest SignalStrengthUpdateRequestTest
Change-Id: I87ea5e356189f61fc58dff80456aff35ea2a8e55
2021-09-20 08:13:57 -07:00
Treehugger Robot
b2ffc47407 [automerger skipped] Merge "Migrate dependency from base to modules-utils" am: ef483e49cd -s ours
am skip reason: Merged-In I248dc29e68d3564c6723626b683b10c8a863853f with SHA-1 9150afa330 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1818905

Change-Id: If29845540145e5c150b783ab9ea508c06d2e1d48
2021-09-20 14:25:48 +00:00
Treehugger Robot
ef483e49cd Merge "Migrate dependency from base to modules-utils" 2021-09-20 14:12:37 +00:00
Treehugger Robot
054817d68c [automerger skipped] Merge "csip: Expose an extra data with intent and store in CachedBluetoothDevice" am: 09170fdb8a -s ours
am skip reason: Merged-In I3e99c59e0cb974409291e1b4c28393106784e133 with SHA-1 e12ff23a6d is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1820432

Change-Id: Ia2f296def970b74ad91465e1d70f51d0db76ffe2
2021-09-20 13:23:43 +00:00
Treehugger Robot
09170fdb8a Merge "csip: Expose an extra data with intent and store in CachedBluetoothDevice" 2021-09-20 13:09:04 +00:00
Treehugger Robot
4c3b610bcb Merge "Add patb@ as a owner of SystemConfig tests" am: 9fe8f3ee27
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1829887

Change-Id: I66005e106592bc5c3dbef006f09780d3b9e28d7e
2021-09-20 11:54:02 +00:00
Anton Hansson
e18d971443 Merge "Add doc stubs target that uses module stub source" into stage-aosp-master 2021-09-20 11:21:47 +00:00
Treehugger Robot
9fe8f3ee27 Merge "Add patb@ as a owner of SystemConfig tests" 2021-09-20 10:19:45 +00:00