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
In order to avoid direct AIDL usages in framework, this CL introduces a
new public class SessionCallbackLink which can prevent usages of
ISessionCallback.
Bug: 122336924
Test: make update-api -j / make -j
atest CtsMediaTestCases:android.media.cts.MediaSessionTest
atest CtsMediaTestCases:android.media.cts.MediaControllerTest
Change-Id: I185d372335104067b6f4ed512fcd2f3b3925642f
In order to avoid direct AIDL usages in framework, this CL introduces a
new public class ControllerCallbackLink which can prevent usages of
ISessionControllerCallback.
Bug: 122337578
Test: make update-api -j / make -j
atest CtsMediaTestCases:android.media.cts.MediaSessionTest
atest CtsMediaTestCases:android.media.cts.MediaControllerTest
Change-Id: Id674576aa071b7fdbd0082bf6189fef2af2d919b
Currently, Session2CommandGroup#writeToParcel tries to cast Object[]
to Session2Command[]. This CL casts each object instead.
Bug: 122686869
Test: Will add cts in later CL
Change-Id: I1a7c1e387bdbb089ae77d729527317959e47fce2