... by switching from packageName/uid/pid to the Identity class.
This allows up to track which parts of the app trigger audio-recordings.
Test: atest CtsAppOpsTestCases
CtsNativeMediaAAudioTestCases
Fixes: 160150145
Change-Id: I0913a336a862e4a1cb38b9d967cfbdc490513ab0
This CL makes the system MediaRouter2 can receive route related
events for the client application.
Bug: 181122201
Test: Locally tested. Test code will be added when the system APIs
are actually makred as @SystemApi.
Change-Id: I516d90c725b6a72ba323b30c4c8a013edd737483
As a first step of adding MR2Manager functionality in MR2,
this CL makes MR2 able to:
- get routes for specific package
- make transfer / stop
For now, the future system APIs are not marked as @SystemApi yet.
They will be opened with adding CTS tests,
once the implementation is complete.
Bug: 181122201
Test: Manually tested transfer/stop using Support7Demos.
Test code will be added when MR2Manager's callback functionality
is implemented.
Change-Id: I71bea98b0ff3e42d193cf04c1b1735fe50c7d673
Split getSurroundSound in:
getSurroundSound for formats supported by source android device
getReportedSurroundSound for formats reported by any connected sound
device like soundbar etc.
Bug: 177990551
Test: Tested manually
Change-Id: I8687c2f827ce09df49d19c6f553a81dfd6caffe4
Remove dispatchMediaKeyEvent(KeyEvent) since it can be substituted
by calling dispatchMediaKeyEvent(KeyEvent, boolean) API with boolean
value as false.
Bug: 179116384
Test: build
Change-Id: I3692c712a780e8978bb8e3b2d19cfc242357e864
Address API council comments for new AudioManager
API setDeviceForCommunication.
Bug: 179709789
Test: ates AudioCommunicationTest
Change-Id: I1c656578f614c735e8ad839b814ddeb175213400
This CL adds
- MediaCommunicationManager#notifySession2Created
- MediaCommunicationManager#getSession2Tokens
, which replaces the same methods in MediaSessionManager
to let MediacommunicationService manage MediaSession2.
MediaSessionService gets notified of created MediaSession2 instances
by adding a callback to MCM.
Bug: 180417011
Test: atest MediaSessionManagerTest MediaCommunicationManagerTest
Change-Id: Ia5ffdcd15573d1223ca520cfa8eca3b976874118
- Relying on camera capture callbacks to switch appropriate
camera output surface image callbacks can result in timing
issues. For example a capture started callback from a new
capture request can execute before the sequence complete
callback gets scheduled for the old request. This can result
in images from the new request getting redirected to the
wrong/old callback.
Avoid this by using a single image callback instance per
camera output for the entire duration of the capture session
and allow individual images to be redirected to appropriate
handlers on a precise timestamp basis.
- Additionally refactor an odd looking if-else case within
'ImageWriter'.
Bug: 180451857
Bug: 180451435
Test: Camera CTS
Change-Id: Iae497ff2eefacc00ea45ff5e598581156aa64c0d
Setting flag param to true means that it should be used as a flag
rather than an enum.
Bug: 173657280
Test: build
Change-Id: I8add91bb3fc694e696df78817dd05fceaa92930e
Definitions for managing Video encoding Quantization Parameter (QP).
Providing a standardized key instead of various vendor-specific keys.
Bug: 161486623
Test: build, b/179554934 for functionality
Change-Id: I8f1976cff55e119a2b42332de3d7ae690dc9e1fa
(cherry picked from commit de66953c0a)
Added active audio presentation fields
- presentation id
- program id
- content classifier
- presentation language
to be notified via AudioTrack interface.
Also added int definitions related to audio presentation content
classifier to AudioPresentation interface.
Change-Id: I19924d3ba54149c433ae16b4488ff41df343281a