Add a method to synchronously unregister an AudioPolicy. This method
also flushes the AudioRecord and AudioTrack instances that
were associated with any AudioMix created by this policy.
Bug: 119057550
Test: see bug
Change-Id: Ia58ccdaf8a50580bcdd49aa2f6e204f0f6c7f814
This CL reverts API changes which were introduced by below CLs:
- "761c475: AML: Make config_mediaMetadataBitmapMaxSize as @SystemApi"
- "888b791: Make AudioManager.FLAG_FROM_KEY as @SystemApi"
- "3d1353a: AML: Unhide KeyEvent.isMediaSessionKey()"
Bug: 128245348
Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest;
atest CtsMediaTestCases:android.media.cts.MediaControllerTest;
atest CtsMediaTestCases:android.media.cts.MediaBrowserTest;
Change-Id: I263a958bf340336f699adb28424241fd00e46e28
This CL adds Javadoc for clarifying the relationship between the
framework and AndroidX versions of ExifInterface.
Bug: 122276930
Test: N/A
Change-Id: I096a7322348046662f02b07c98956dad7501a1cf
This CL fixes the previous implementation which stored the current
position of the file instead of the offset to the next IFD.
Bug: 63800695
Test: Run test file with malformatted thumbnail data
Change-Id: Iab5b9a1a8203e8de1027ecfb887e4f504a27151e
Make PlayerBase / PlayerProxy volume control act as a multiplier,
not as an override of the volume set by the subclass
Bug: 78930229
Test: see test app in bug
Change-Id: I4c189425282c1a709648e0be14791c3382e83e82
That allows better integration with tools and Kotlin.
Test: atest android.media.cts.AudioPlaybackCaptureTest
Bug: 126700282
Change-Id: I921d0b5580ad861c732f7b076142968e4da9989c
Signed-off-by: Kevin Rocard <krocard@google.com>
This method was only in docs, not in implementation, and
was never meant to be used by applications.
Bug: 126701135
Bug: 126702126
Bug: 126702177
Test: javap --class-path prebuilts/sdk/28/public/android.jar 'android.media.MediaPlayer' | grep deprecateStreamTypeForPlayback
Change-Id: I0417f4e2523889259536a9f66f20167886cac790
The method deprecateStreamTypeForPlayback() is inherited from
android.media.PlayerBase, which is hidden. This method was never
intended to be in the SDK, but somehow ended up in the public SDK.
Bug: 126701135
Bug: 126702126
Bug: 126702177
Test: make -j api-stubs-docs-update-current-api
Change-Id: Ibdd7898f18432c2179f81cd53b132164bcd4c670
Make AudioManager methods to (dis)connect a BT device
(hearing aid or A2DP) and handle config update run
on the AudioDeviceBroker event thread to prevent
concurrency issues between BtService and AudioService.
Bug: 126239173
Test: have multiple A2DP devices connected, switch between them
Change-Id: Iefd4b4d29e28b15cbb74e8a175ee5e6cc7918c1d
If they were null, then the Parcelable would fail to work.
Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations