Use Arrays.equals() instead of equals() methods on the effects
Arrays contained in AudioRecordingConfiguration.
Bug: 123702064
Test: cts-tradefed run cts-dev -m CtsMediaTestCases -t android.media.cts.AudioRecordingConfigurationTest
Change-Id: I11d1321f1a5d8f50c248a4702bbba6a309280b5a
This reverts commit cdcaed6acb.
Reason for revert: <Verified build locally, CL is fine. original issue may be caused by conflict between merges>
Change-Id: Id9707692a704c3d4475aee1f6c580208eb6ab744
Test: Manual
Bug: 122472761
This reverts commit c1e4316e02.
Reason for revert: Now the circular dependency problem is resolved, this change is now obsolete.
Bug: 123336670
Change-Id: I065d811e9b8a3c7f851fb66d9527d62b417f1420
Fix inconsistent naming of offline license states
bug:120489407
bug:120488811
test:cts and gts media tests
Change-Id: I6cceac233cf8882c5bf7fbef7503764c611125d1
As suggested in API review, change IllegalArgumentException
to NullPointerException for the case when the argument is null.
Bug: 123569725
Test: make
Change-Id: I4f0d6fd609b1c2f2096fe0f610804f49432cb650
This CL also removes SessionCallbackLink.CallbackStub class
from the system API list.
Bug: 123500993
Test: make update-api -j; make -j;
atest CtsMediaTestCases:android.media.cts.MediaSessionTest;
atest CtsMediaTestCases:android.media.cts.MediaControllerTest;
Change-Id: I59b4d4ce058c53c82d816152039c51b109f0c245
This removes hidden API usages from the fwk to apex, which would be
prohibited.
With this API, the dispatching logic is changed as follows for sending
key events directly to MediaSessionRecord through MediaSessionService.
Before:
PhoneWindow
-> MediaController.dispatch***AsSystemService(key)
-> MediaSessionRecord
After:
PhoneWindow
-> MediaSessionManager.dispatch**AsSystemService(sessionToken, key)
-> MediaSessionService
-> MediaSessionRecord
Bug: 123485698
Test: Build, flash and injected some key events
Change-Id: I3e0bca7565ae2f142c3389322d867700646d5038
Due to the @UnsupportedAppUsage on
MediaMetadata.getKeyFromMetadataEditorKey, we'd better not to move the
class to APEX. This CL moves the MediaMetadata back to framework.
Also, in order to avoid hidden framework API usages in mainline module,
this CL moves the usage of hidden constructor of MediaMetadata.Builder()
from MediaSessionEngine to MediaSession.
Bug: 123488217
Test: make update-api -j; make -j;
vendor/google/tools/flashall;
atest CtsMediaTestCases:android.media.cts.MediaSessionTest;
atest CtsMediaTestCases:android.media.cts.MediaControllerTest;
Change-Id: I21b4f0f59214478071bb0eafa93bb9538e44bf4e
This removes hidden annotation usages from the framework to the apex,
which would be prohibited.
Test: Build
Bug: 123485698
Change-Id: I9f6b17a61c5438e0d538a7a97587c375d8603613
This CL changes the return type of ISessionManager.getSessions()
from List<ControllerLink> to List<MediaSession.Token>.
Bug: 123488663
Test: Ran below tests
atest CtsMediaTestCases:android.media.cts.MediaSessionTest;
atest CtsMediaTestCases:android.media.cts.MediaControllerTest;
atest CtsMediaTestCases:android.media.cts.MediaSessionManagerTest;
Change-Id: Ie4d259dc3691977451c7751ae06816d67079a3f4
In order to support reading HEIF format images in AndroidX
ExifInterface, we need to unhide the Exif-related constants
inside MediaMetadataRetriever.
Bug: 123493429
Test: update-api
Change-Id: I8b9c1709d9fb00f7ad2d7815d4c280678408ea03
To help confirm that we're actually testing developer-visible
behaviors, we need to build against public APIs, since there have
been plenty of examples in this suite of "testing" hidden API
behaviors, which are then misleading to developers.
Bug: 120429729
Test: atest cts/tests/tests/provider/
Exempt-From-Owner-Approval: Trivial API annotations
Change-Id: I07fe33e54f611a6060217f0706fb99b809961f4d
Add API to add support for specifying delay and padding values
for the current compressed stream.
Add API to indicate the end of stream after a write() operation
Bug: 122825812
Test: atest AudioTrackOffloadTest
Change-Id: Ib4dc76938fb5cea77ce67aa12aca7d38f66e756c
Need to actually respect the given usage or the API doesn't
work. Shift the default to be done Java-side where it's clear
if usage was user-provided or not. Remove the incorrect
validations and assertions around usages.
Add missing HardwareBuffer#isSupported to let users
check if a usage & format combination is supported.
Change-Id: I70bfe6e6c41e78425a38af6b17d421f0e80e818b
Fixes: 123423319
Test: HardwareBuffer CTS tests
New AudioDeviceBroker class running in audio service.
Has dedicated message loop for handling audio device
connections and disconnections.
New helper classes for AudioDeviceBroker:
- BtHelper for Bluetooth
- AudioDeviceInventory to manage list of devices
Bug: 112863932
Test: media CTS + audio CTS Verifier
Change-Id: I3e8f662a9d82fa7245695888e14fac7f4fc6e728