The calculation formula is now set to be the inverse of the one used
in VolumeControlService.java when calculating volume index from the
BLE audio volume level.
This also fixes not using the absolute volume for BLE audio stream,
which could result with very low volume levels at the lower registers
of the volume slider. It was caused by lowering the volume on both
ends. Not transmitting the sound at the maximum volume level could
also reduce the sound quality due to effective sound sample resolution
being lower.
Bug: 238587620
Bug: 241501978
Test: built and manually tested
Tag: #feature
Change-Id: I368c8978be5fbd94b0f62df2551fe179a9f203a0
metalava now accepts the --sdk-extensions-info flag. The argument is a
file containing metadata regarding extension SDKs; the SdkExtensions
module defines such a file. Update the droidstub targets to point to
this file.
Bug: 228828986
Test: m sdk dist
Change-Id: I3a5d92c640d9b22add416a20dbec3c8e352ba963
After the test is completed, the notification is not closed,
so that subsequent test cannot get the focus.
Close notification in tearDown to solve the issue.
Bug: 241723484
Test: run InputMethodStressTest pass
Change-Id: I876173e83488e18a884d8bc180f9681e726fff1d
Fix two problems:
1) It was possible to add a device to the list of compatible devices
even if the type was not compatible with the supported spatialization
modes.
2) Fix the logic conditions on wireless category when checking if a
SADeviceState matches a given AudioDeviceAttributes.
Bug: 237080475
Test: check Spatial Audio settings UI
Merged-In: I1747875efb7400b1be503431d2697daff8894306
Change-Id: I1747875efb7400b1be503431d2697daff8894306
There are still issues with importing implicit versions. Switching to explicit versions while b/188871598 is worked out.
Bug: 242678729
Test: m; AIDL_TRANSITIVE_FREEZE=true m aidl-freeze-api && AIDL_FROZEN_REL=true m
Merged-In: If5a96c05b6448b588aa6326225dc6962ca7da6c7
Change-Id: If5a96c05b6448b588aa6326225dc6962ca7da6c7
(cherry picked from commit 56ec5d9ed5a02e7302b150c6f608ffdcb013c7bd)
This requires a version bump to android.media.audio.common.types.
cc_defaults and java_defaults are used in order to avoid explicitly updating version references in several Android.bp files when we do future version bumps.
Test: m
Merged-In: I481d4b4e7b4f1302d508ab6eb2c7ed4336a8f801
Change-Id: I481d4b4e7b4f1302d508ab6eb2c7ed4336a8f801
(cherry picked from commit 6088f4b7bb3d3f569328b7c332dd7bce0dcedbed)
When the program is run to unlockCanvasAndPost method,
if mSurface.unlockCanvasAndPost throws an exception,
the mSurfaceLock.unlock() will not getting the chance to execute.
If an app executes unlockCanvasAndPost in a catch and does not handle the exception,
it will remain locked for a long time after the next execution of mSurfacelock.lock.
make sure the msurfacelock.unlock is executed after unlockCanvasAndPost
bug:245050059 in partnerissuetracker
Change-Id: Ib849c840c61ac261cfaab0daefa7ae2afdbfcba3
Signed-off-by: xiaoxin <xiaoxin@xiaomi.corp-partner.google.com>