766543 Commits

Author SHA1 Message Date
Jakub Tyszkowski
51d75fbc69 LeAudio: Fix volume control
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
2022-09-07 10:06:09 +00:00
Mårten Kongstad
5484533fba Update droidstubs to use the SdkExt info file
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
2022-09-07 10:23:45 +02:00
Robert Chou
7f5baabe2a Merge "Activity gain focus failed in InputMethodStressTest" 2022-09-07 06:12:17 +00:00
ot904697
19a0a4ec91 Activity gain focus failed in InputMethodStressTest
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
2022-09-07 03:16:46 +00:00
Yike Zhang
6040384899 Merge "Use PushFilePreparer to push files in PreloadCheck" 2022-09-07 02:18:23 +00:00
Eric Laurent
c5b2da71dd SpatializerHelper: fix Settings UI when transaural is not supported
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
2022-09-06 18:21:04 -07:00
Xiaozhen Lin
aa343c0c78 Add Bug component ID to the OWNER file
Test: N/A
Change-Id: Ia751187afc3b9446d85f76825c8a6b9a8597974b
2022-09-07 00:49:15 +00:00
Prameet Shah
9946834795 Merge "Fix a couple of NPEs in AdbDebuggingManager.AdbDebuggingHandler" 2022-09-07 00:17:24 +00:00
Lorena Torres-Huerta
2e3c6db6a6 Use explicit aidl versions for audio hal and soundtrigger dependencies.
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)
2022-09-06 21:28:25 +00:00
Lorena Torres-Huerta
4cd3884564 Add AudioAttributes and AudioFlag for use in HAL interface for engine configuration.
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)
2022-09-06 21:28:19 +00:00
Bernardo Rufino
2e933599ed Merge "Add ownership for BackgroundActivityStartController." 2022-09-05 13:31:23 +00:00
Treehugger Robot
724eea8b2e Merge "Update OWNERS file for Multiuser." 2022-09-05 10:55:36 +00:00
xiaoxin
71e3abfa1e make sure mSurfaceLock.unlock can be executed in unlockCanvasAndPost
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>
2022-09-05 09:17:17 +00:00
Treehugger Robot
10d1ebad5c Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 22:16:49 +00:00
Treehugger Robot
25d1b9cc58 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 22:16:49 +00:00
Treehugger Robot
523a9f9e3d Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 22:16:49 +00:00
Treehugger Robot
447a6ea758 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 20:18:39 +00:00
Treehugger Robot
3bcc3b5f03 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 20:18:39 +00:00
Treehugger Robot
f2982fd0dc Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 20:18:39 +00:00
Treehugger Robot
699ea46438 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 20:18:39 +00:00
Treehugger Robot
7c187f6140 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 20:18:39 +00:00
Treehugger Robot
f7692bbab8 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 20:18:39 +00:00
Treehugger Robot
cb55d0da4b Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 20:18:39 +00:00
Treehugger Robot
1e03937942 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 20:18:10 +00:00
Treehugger Robot
a77af6dae8 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 20:18:10 +00:00
Treehugger Robot
fbafc1c9ef Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 20:18:10 +00:00
Treehugger Robot
b303dac194 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 20:18:10 +00:00
Treehugger Robot
eed8a616de Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 20:18:10 +00:00
Treehugger Robot
a419fc3ba8 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 20:18:10 +00:00
Treehugger Robot
0f030c79d5 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-09-04 20:18:10 +00:00
Bill Yi
0950bd467b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icda3eefeba16b835c9407b3dc8355636c6939639
2022-09-02 23:55:40 -07:00
Bill Yi
8823cf65bc Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icdd5a12f2a1afa71522a538005df77dee1142675
2022-09-02 23:52:05 -07:00
Bill Yi
8d4ae9f1a4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1da7f778940b3f6f335ebf1675717fb86134bb06
2022-09-02 23:48:44 -07:00
Bill Yi
ecbff6e2c4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iffd69e215c548fb7b722a9e19dd5c52a52316151
2022-09-02 21:24:53 -07:00
Bill Yi
04f6602a3d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If255b6d25cdca3c6b96788febc8214c781a6a929
2022-09-02 21:20:02 -07:00
Bill Yi
005179f87c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I65d73db27bd1cb2ba1e01aabc9d6955059552471
2022-09-02 21:18:38 -07:00
Bill Yi
1501777d45 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4c93630a560f9410c90c3aefe1ad7fa8e385e3b1
2022-09-02 21:16:31 -07:00
Bill Yi
e8279ea26d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I84f2e11defee81288e8426ec26fe6d1c0acdb323
2022-09-02 21:15:15 -07:00
Bill Yi
dba9ce4ad0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2cd76a73410981775361ffeb17a8b28991ea2e2c
2022-09-02 21:14:04 -07:00
Bill Yi
a048294e16 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iad6a2a1c1332ba913c46a68d70373db707fc6061
2022-09-02 21:12:50 -07:00
Bill Yi
428587bace Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7d33fc31de7667f43f8ae292f0bcbd7f08c5167b
2022-09-02 21:11:28 -07:00
Bill Yi
1f21466321 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0940bc6aab348b6b89855f493894f55609b3f121
2022-09-02 21:01:52 -07:00
Bill Yi
d500493fff Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I385921609d32e61a2b554ebc222dad1772fccbfe
2022-09-02 20:59:24 -07:00
Bill Yi
9f2a6394fe Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id733696fa659455b203410d76341bdca96c797ee
2022-09-02 20:49:36 -07:00
Bill Yi
3ab69e62df Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7930f20650b0813007110d4ecf943f6c51d57b9a
2022-09-02 20:48:17 -07:00
Bill Yi
a02d1dae9c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1f3e5580455ee041e21532a5e99e6be7acdc5653
2022-09-02 20:46:56 -07:00
Bill Yi
c1b0cffe53 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifff4314d0b0eb614c4485a46ffb70d33d0d6913a
2022-09-02 20:45:38 -07:00
Bill Yi
81ddb23c17 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id89369a23c5a370ece49bc892c326000e20b7827
2022-09-02 20:22:21 -07:00
Bill Yi
51454a12cf Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib333567849e2ebfccacca8baeb2857c4b6c47e11
2022-09-02 20:19:42 -07:00
Andy Hung
4b50dd4f0e Merge "SoundPool: Fix channel mask reporting" 2022-09-02 21:18:43 +00:00