This change adds support for privileged apps with the MODIFY_PHONE_STATE
permission to mute the bluetooth sco stream using the adjustStreamVolume
method.
The change adds specific handling for BLUETOOTH_SCO as a mutable stream.
Bug: 111195322
Test: Mute works by AudioManager.adjustStreamVolume
(STREAM_BLUETOOTH_SCO, ADJUST_MUTE, 0)
Change-Id: I932f9e152e9b6df93a749b083a7bcc7e08c2ad70
MediaSession will be a wrapper of MediaSessionEngine, and
MediaSessionEngine will be moved into mainline module.
Bug: 119749862
Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest
atest CtsMediaTestCases:android.media.cts.MediaControllerTest
Change-Id: I122b1e13c9c9d658ee03b91d0ebd8a41a954a79a
ISessionController will be moved to mainline module.
Test: pass MediaSessionTest and MediaControllerTest
Change-Id: I45b4da502e2b262730255a6cda1ab932d154ecbd
This CL copies the AML-related changes under frameworks/av to
frameworks/base. This CL includes changes in following merged commits:
a003298 AML: Replace ParceledListSlice
b82512b AML: Remove use of Bundle#setDefusable
70b92a4 AML: Use config_mediaMetadataBitmapMaxSize which is @SystemApi
b4dbc2d Replace hidden Parcel.(read|write)CharSequence usages
Bug:122711373, Bug:122432476
Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest;
atest CtsMediaTestCases:android.media.cts.MediaControllerTest;
atest CtsMediaTestCases:android.media.cts.MediaBrowserTest;
atest CtsMediaTestCases:android.media.cts.MediaBrowserServiceTest;
atest CtsMediaTestCases:android.media.cts.MediaBrowserServiceTest;
Change-Id: I1a13e0ae71097caa90f677bc19b7864929dbc20f
This fixes two issues
1. NPE in writeToParcel()
2. Leave log for invalid ComponentName
Bug: 122563346
Test: Run Cts
Change-Id: Idd544ffa7e1b9d202e3bb8f4edb8bcb85096a22c
ImageReader: unhide the factory method to assign usage flag
ImageWriter: unhide the factory method to assign format
Test: new CTS tests
Bug: 112171574
Change-Id: Ia2579c466cdad378ecedc6398a652bb5f4e6aeec
Add API in AudioManager to query offload A2DP encoding formats
supported on primary HAL. This can be used instead of reading
from property
Bug: 111812273
Test: make
Change-Id: I168f288d0bf32d6c9733c9b57934084667e794ee
Add API to handle active device change based on
whether we are switching between:
null to 'X'
'X' to 'Y'
'X' to null
This API must be called from A2dpService to update
active device.
Same API also caters to device config change on
an already connected A2DP device.
Bug: 111812273
Test: make
Change-Id: I9f28092934ee611fbc2cd7c81447b4ed22288ac9
Add A2DP codec parameter to AudioSystem and AudioService APIs
for connection state change and device config change. Update
native interface to pass codec parameter.
Bug: 111812273
Test: make
Change-Id: I9bcc9c97241a2ac2d941ae6902469ef9957a993c
"media2.jar" is renamed to "updatable-media.jar" in order to
show its purpose clearly.
Test: build & boot & MediaPlayer2Test
Bug: 112766913
Change-Id: Ia2ea05e0ed1a8bb2cfea20c9e2585e3d3cbfffd9
This is regression introduced by my previous commit
45d94a4844 MediaSession2Service: Initial commit
Test: Run CTS
Change-Id: Id1490e1897e502c2a6008e5ed72158d4d5cf9685
This fixes MediaController2's connection failure when the token is from
the remote process.
Test: Build and run CTS test
Change-Id: Ic44b31b0088bc59ead4d341c27eebc57beac7d20
This commit adds the following audio capture sources:
- AudioSource.VOICE_PERFORMANCE: for real time live performances like Karaoke.
- AudioSource.ECHO_REFERENCE: for capturing the reference signal to suppress by an echo
canceller. Protected by privileged permission CAPTURE_AUDIO_OUTPUT.
Also added device AUDIO_DEVICE_IN_ECHO_REFERENCE selected when the requested
capture source is AudioSource.ECHO_REFERENCE.
Bug: 118203066
Test: CTS tests for audio capture
Change-Id: I8258296736848986562f7fc89c9260aad562d3d1