Before this change, the MediaPlayer javadoc referenced VideoView's
javadoc, even though it was not relevant. The link can be removed
because a correct link is provided further down in MediaPlayer's
javadoc to the MediaPlayer guide.
Bug: 182880215
Bug: 182798119
Change-Id: Ife353257e10f73ef319f1913c9e59046e4ec10ce
setStartThresholdInFrames is used to set the start threshold
in frames for streaming AudioTrack playback.
Normally this is the entire buffer capacity in frames
but may be reduced for low latency playback,
compressed formats, and direct tracks.
See CTS test AudioTrackTest#testStartThresholdInFrames
for example calling details and behavior.
Test: atest AudioTrackTest#testStartThresholdInFrames
Test: atest AudioTrackTest#testStartThresholdInFramesExceptions
Bug: 183003720
Change-Id: I5064d04961e48b530c49071ff84c2e0d2065f41b
* Created isFullVolumeDevice to replace usage of dumpsys audio in cts
tests.
* Added a new permission QUERY_AUDIO_STATE to the newly created API and
the existing API that it depends on:
- getDevicesForAttributes
- getDeviceVolumeBehavior
Test: The new API is accessible from cts tests
Bug: 182260585
Change-Id: I9d6bd24695ae306930b2518b1b12288aca46ebe9
System MR2 should be able to get the routes right after creation,
if the app's router has already set the preference.
Bug: 181122201
Test: Test passed on transferTo.
Change-Id: I671d17b33ee43a939a02aee130333aef801d5789
This CL makes the system MediaRouter2 can receive transfer-related
events for the client application.
Also adds:
- startScan/stopScan
- setRouteVolume
- RouteCallback#onPreferredFeaturesChanged
- RoutingController methods' functionality
Also, this CL marks the system APIs as @SystemApi.
Bug: 181122201
Test: Passed tests locally. More test CLs are being added.
Change-Id: I0f733efb82faf2c4b0488a79335a97d4f7f7b466
Add an IntDef named MediaRecorder.SystemSource, which includes all
audio source that is defined in MediaRecorder.AudioSource. It can be
used for preferred device for capture preset APIs.
Test: atest AudioServiceHostTest
Bug: 180395563
Change-Id: If80a2875b64544c1e7e60999bad6dafdba712333
... 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
In addition:
1) Use attribution tag specified in the MusicRecognitionService's manifest.
2) Explicitly check for RECORD_AUDIO permission of receiving service.
Example audio attribution from dumpsys:
RECORD_AUDIO (allow):
MusicRecognitionDoneByServiceX=[
Access: [fg-tpd] 2021-02-23 18:21:01.753 (-14s877ms) duration=+8s250ms proxy[uid=1000, pkg=android, attributionTag=MusicRecognitionManagerService]
]
Test: atest and manual inspection of attributions with dumpsys.
Change-Id: Ie415104580a1814b0b74f2d5b489bf8247d9238d
Bug: 178174412
Bug: 169403302
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