Commit Graph

571585 Commits

Author SHA1 Message Date
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
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
Devin Moore
e731e209d3 Merge "ServiceManagerNative: add getConnectionInfo" 2021-09-22 16:25:48 +00:00
Anton Hansson
996aab2adc Merge "Add doc stubs target that uses module stub source" 2021-09-22 14:51:34 +00:00
Anton Hansson
6c20a2d6b2 Merge "Make merged api compat checks output baseline" 2021-09-21 17:16:49 +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
af88579f14 Merge "Wifi use state machine from modules-utils" 2021-09-21 12:36:25 +00: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
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
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
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
ef483e49cd Merge "Migrate dependency from base to modules-utils" 2021-09-20 14:12:37 +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
9fe8f3ee27 Merge "Add patb@ as a owner of SystemConfig tests" 2021-09-20 10:19:45 +00:00
Thiébaud Weksteen
8bf8b19e84 Merge "Replace security_context_t type" 2021-09-20 07:06:33 +00:00
Yi Kong
c10adebed6 Merge "Fix an instance of -Wunused-but-set-variable." 2021-09-18 07:57:46 +00:00
Alice Kuo
399c36babb csip: Expose an extra data with intent and store in CachedBluetoothDevice
Bug: 178981521
Bug: 150670922
Test: Discover and pair with the CSIP supported device, and check the
pairing string in the dialog

Merged-In: I3e99c59e0cb974409291e1b4c28393106784e133
Change-Id: I3e99c59e0cb974409291e1b4c28393106784e133
2021-09-18 01:02:32 +00:00
wescande
4f2420f84b Migrate dependency from base to modules-utils
Use stand-alone modules-utils library.

Bug: 198418216
Tag: #refactor
Test: Build
Merged-In: I248dc29e68d3564c6723626b683b10c8a863853f
Change-Id: I248dc29e68d3564c6723626b683b10c8a863853f
2021-09-17 20:41:26 +00:00
Yi Kong
b5cab25730 Fix an instance of -Wunused-but-set-variable.
Test: presubmit
Bug: 197240255
Change-Id: Iedb28903cfada8d23e931196b72059a0fc8797aa
2021-09-18 02:28:22 +08:00
Anton Hansson
6492126ca3 Add doc stubs target that uses module stub source
The framework-doc-stubs target currently takes the module source code
as input. Work is being done to change that over to use module sdk
artifacts, primarily the jar stub source code. Check in a
work-in-progress target that does so, to avoid it breaking and to
simplify iterating on improvements.

Bug: 186197911
Test: m framework-doc-stubs{,-module-stubs}
Merged-In: I1a275b3f44632e6655dc84d711a58fc0c5b3a46a
Change-Id: I1a275b3f44632e6655dc84d711a58fc0c5b3a46a
2021-09-17 17:21:41 +01:00
Pedro Loureiro
6476e035da Add patb@ as a owner of SystemConfig tests
Giving ownership of
    services/tests/servicestests/src/com/android/server/systemconfig/

Test: N/A
Change-Id: Ifae11b700bd5f2134cb7e31d50d02d204b649f7c
2021-09-17 16:06:08 +00:00
Anton Hansson
f664101210 Merge "Move annotations in public api to frameworks/base" 2021-09-17 14:01:20 +00:00
Anton Hansson
e0f3d2348f Move annotations in public api to frameworks/base
These two are the only annotations in the android.annotations package
that are not @hide -- they are actually in the public API.

As such, they are not suitable in the annotations library. Move them
back to frameworks/base where the other core java APIs live.

Bug: 186197911
Test: m
Merged-In: Ide01e4e7840bddf1e024e9024771e528d17a1d80
Change-Id: Ide01e4e7840bddf1e024e9024771e528d17a1d80
2021-09-17 12:31:50 +00:00
Aaron Huang
bc48cdaf46 Merge "Remove forceAllNetworkTypes from test" 2021-09-17 12:08:59 +00:00
Roopa Sattiraju
b3ba6cdbed Adding sattiraju@ as OWNER and also changing the order of ldaps to be
alphabetical

Tag: #feature
Bug: 200240100
Test: Manual
Change-Id: I15ccfeae1e1a061a002be9c2e202104352b1ce98
2021-09-16 23:47:19 -07:00
Treehugger Robot
70a0869f49 Merge "Keep only the classes in the android.test.mock package" 2021-09-17 04:15:39 +00:00
Colin Cross
3ba8a37ee5 Merge "Fix idmap2 compiling against musl" 2021-09-17 01:48:03 +00:00
Colin Cross
2cba49ac56 Merge "Fix framworks/base compiling against musl" 2021-09-17 01:47:58 +00:00
Qasim Javed
d93483f74b Make createBond(int) a system API
BUG: 195156317
Test: Manual

Change-Id: I10d9ac305cbc1bb28c8150e1b167a0e61ad3f04e
Merged-In: I10d9ac305cbc1bb28c8150e1b167a0e61ad3f04e
2021-09-16 22:38:47 +00:00
Colin Cross
8af0caf41d Fix idmap2 compiling against musl
Add missing includes that are not transitively provided when compiling
against musl.

Bug: 190084016
Test: m USE_HOST_MUSL=true
Change-Id: If8829cebb0c62b539d7a336b75cf106755588cdd
Merged-In: If8829cebb0c62b539d7a336b75cf106755588cdd
2021-09-16 19:25:28 +00:00
Jakub Pawlowski
b77efab6f3 Merge "settingslib: Add Coordinated Set Profile" 2021-09-16 18:22:19 +00:00
Jakub Tyszkowski
565cd270ca settingslib: Add Coordinated Set Profile
Test: manually tested
Bug: 150670922
Sponsor: jpawlowski@
Change-Id: I9dc21c011ee2e2d6c9d4d671210d7fef390419e9
2021-09-16 18:20:10 +00:00
Treehugger Robot
9acfdcf214 Merge changes I8c36f5af,I800bc352
* changes:
  AudioEffect: fix racy access to callback data
  Analyze native crash in AudioEffect via event listener
2021-09-15 23:26:15 +00:00
Colin Cross
7cdbd68610 Fix framworks/base compiling against musl
Add missing includes that are not transitively provided when compiling
against musl.

Bug: 190084016
Test: m USE_HOST_MUSL=true
Change-Id: Ia22c3df2e904e7a479bb636b7db22e5a0c341b98
2021-09-15 14:59:24 -07:00
Mikhail Naganov
9690a02f80 AudioEffect: fix racy access to callback data
Since the EffectCallback in android::AudioEffect can
keep an instance of the latter alive for a longer time
than Java AudioEffect is alive, the callback need to
ensure that it's not trying to use deallocated objects
and deleted JVM references.

Bug: 178363662
Test: manual using EffectsTest app
Test: atest CtsMediaTestCases:AudioEffectTest
Test: atest CtsMediaTestCases:BassBoostTest
Test: atest CtsMediaTestCases:DynamicsProcessingTest
Test: atest CtsMediaTestCases:EnvReverbTest
Test: atest CtsMediaTestCases:EqualizerTest
Test: atest CtsMediaTestCases:LoudnessEnhancerTest
Test: atest CtsMediaTestCases:PresetReverbTest
Test: atest CtsMediaTestCases:VisualizerTest
Change-Id: I8c36f5af4a1a2b14e81b1344570d2f8746ffa91e
2021-09-15 13:58:30 -07:00
Thiébaud Weksteen
1fa50e17f4 Replace security_context_t type
security_context_t has been marked as deprecated in libselinux from
version 3.2. Update to the `char*` type.

Bug: 190808996
Test: m
Change-Id: Ia632230e28c313d08119286973a5cf6401ef6910
2021-09-15 19:50:31 +02:00
Aaron Huang
8216831b36 Remove forceAllNetworkTypes from test
A test should test the actual behavior as much as possible.
However, if the flag is true, matchesMobile/matchesMobileWildcard
will always return true regardless of the network type and metered.
Thus, remove this flag would be closer to the actual behavior.

Bug: 183776809
Test: atest FrameworksNetTests
Change-Id: I0907a08ca1dd8a14a738db4057ea5ff6a0cd925a
2021-09-15 18:30:09 +08:00
Austin Shin
61c3d559c8 Merge "Fix onStateChanged issue." 2021-09-15 03:57:16 +00:00
Roopa Sattiraju
2ef5e10f45 Merge "Changing BluetoothHeadset APIs from @hide to @SystemApi" 2021-09-15 01:12:09 +00:00
Mikhail Naganov
7d6d9bd6c3 Analyze native crash in AudioEffect via event listener
Add repro code to the EffectsTest app. Steps:
 1. Start playback on the "Environmental Reverb Test",
    memorize the session id.
 2. Enter the session id on the "Bass Boost Test" or
    the "Visualizer" tab.
 3. Press "Hammer on release()" multiple times and check
    if the app crashes. Currently this happens for
    the Bass Boost effect.

Bug: 178363662
Test: see above
Change-Id: I800bc352fc8bc7073d1523c837008dc6fcfb957a
2021-09-14 17:55:36 -07:00
Treehugger Robot
a78fa61ba8 Merge "MediaCodecInfo: do not alter performance points for 32-bit processes (2)" 2021-09-14 23:21:32 +00:00
Treehugger Robot
37677f40d0 Merge "Fix typos in IdentityCredential.java javadoc" 2021-09-14 22:06:33 +00:00
Treehugger Robot
bca93eafe5 Merge "New API for getting enabledcomponent" 2021-09-14 18:18:30 +00:00
Seth Moore
fab34c1adc Fix typos in IdentityCredential.java javadoc
"byt" -> "but"
"readerAuth" -> "readerSignature"

Test: N/A
Change-Id: Ie8e8c4fa4479d3694871fe00bb0d99698fa05966
2021-09-14 11:01:28 -07:00