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
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
Also unhide the relevant class: Session2Token.
Bug: 122055262
Test: pass MediaSession2Test and MediaController2Test
Change-Id: I7fb94b24082d683ff6367961e300f9ce5f6f8821
New codes are being added to handle resource
contention, lost session state, frame size too
large and insufficient security level for
decryption. Also cleans up inconsistent use of
tamper detected error where invalid state error
should have been used.
bug:111504510
bug:111505796
test: cts and gts media test cases
Change-Id: Ifa652d31ea151fbdc9faa0dd15b19f885d82b916
This currently only returns tokens with the TYPE_SESSION.
Follow up CLs will change this to also return tokens with other types.
Bug: 122234817
Test: Build and flash manually.
Change-Id: Ia2f67983393696439020d5ea58976b9ed1662566