Eliminate another duplicated list of all modules. This one has a couple
of workarounds due to different naming of impl libs, and bluetooth not
being ready.
Bug: 169103987
Test: m framework-all and diff intermediates (no diffs)
Merged-In: Ia8627c6e3977cd271e389ec482388ff73661881d
Change-Id: Ia8627c6e3977cd271e389ec482388ff73661881d
Set default value for getting width, height and
framerate video parameters in transcoding
VideoFormatResolver.
Bug: 198164635
Test: cts-tradefed run singleCommand cts
-m CtsMediaTranscodingTestCases
-t android.media.mediatranscoding.cts.
MediaTranscodingManagerTest#testVideoFormatResolver
Change-Id: I00258bc158b932a831df644e641ff226af1d02c7
Note: This needs to be exported from the APEX (ag/15937385) when a new
prebuilt is dropped.
The systemserver_fragment is needed for dexpreopting when the media APEX
is built from a prebuilt.
Bug: 194150908
Test: m nothing
Merged-In: I2cca8b206451858e636c6bd04617cf3933f702c6
Change-Id: I2cca8b206451858e636c6bd04617cf3933f702c6
(cherry picked from commit 381fb640c6e25dbd211d12c791a473c4611e70a7)
renamed to avoid conflict with existing copy in the R framework.jar.
The framework.jar copy was removed during S development
Bug: 195608856
Test: build
Test: cts-tradefed run cts -m CtsMediaTranscodingTestCases
Change-Id: I40ab066cd61be8d278f21cc788016f2edd6bb86e
(cherry picked from commit 1168d9d014cfc0e007c311db92ff2d69cc30df18)
This was removed in Iff38291b964de4116bcdefe4fd74136c4878c543 in favor
of using the bootclasspath fragment. However the bootclasspath fragment
for media does not contain the API tracking files, so it back for now
to make sure we can finalize the media API files.
This CL may be revertable in the future if we can get the
java_sdk_library into the bootclasspath_fragment somehow.
Bug: 190807367
Bug: 188427719
Test: m media-module-sdk and inspect the zip for api tracking files
Change-Id: Ia01c32d4c6c6bad734df053da0024a139a808a54
This subsumes the java_sdk_library in the sdk. Also add the service
java_sdk_library as it was missing.
Bug: 188427719
Test: build_mainline_modules.sh
Change-Id: Iff38291b964de4116bcdefe4fd74136c4878c543
Remove getService from the constructor, delay
getting the service until it's used.
bug: 187425268
test: CTS MediaTranscodeManagerTest
Change-Id: I502bb428fcde96874a1af431af07413feea64d7a
This CL cleans up how MediaCommunicationService
manages Session2Record instances.
It removes unnecessary codes and refactor locks.
It also adds/clean up tests for MCM.SessionCallback.
Bug: 183289655
Bug: 182907935
Test: atest MediaCommunicationManagerTest 10 times
Change-Id: Iff4643c7dc207ea14c752bdfb815598dc34f2368
We are enabling a new lint check where the min sdk != compile sdk.
It has produced a lot of errors and adding the baseline file(s)
allows us to continue work without introducing more problems.
Bug: 150847901
Test: m lint-check
Change-Id: Ide8a8fe80ba31396f23853ab266afcbcc33af9a6
Merged-In: Ide8a8fe80ba31396f23853ab266afcbcc33af9a6
We are enabling a new lint check where the min sdk != compile sdk.
It has produced a lot of errors and adding the baseline file(s)
allows us to continue work without introducing more problems.
Bug: 150847901
Test: m lint-check
Change-Id: Ide8a8fe80ba31396f23853ab266afcbcc33af9a6
Various modules were previously creating their own annotation libs
as some appeared to be missing from framework-annotations-lib. Add the
missing ones instead (they all have SOURCE retention), and delete the
custom ones.
Bug: 183133670
Test: m
Merged-In: I4583da7bf5849783d6c5e88a762e04a8fe3e8760
Change-Id: I4583da7bf5849783d6c5e88a762e04a8fe3e8760
Various modules were previously creating their own annotation libs
as some appeared to be missing from framework-annotations-lib. Add the
missing ones instead (they all have SOURCE retention), and delete the
custom ones.
Bug: 183133670
Test: m
Change-Id: I4583da7bf5849783d6c5e88a762e04a8fe3e8760
This is needed for MediaProvider to append a UID to an existing
transcoding session when there are multiple client waiting
for the file to be transcoded.
Bug: 171398942
Test: atest CtsMediaTranscodingTestCases:MediaTranscodeManagerTest
Change-Id: I58e561f7afed16314349764195a65386d1d0b909
Based on API review feedback from jmtrivi@ to reduce unexpected
usage of the APIs.
And add some stub APIs
Reference CLs:
MediaDrm ag/13835091 by robertshih@
MediaExtractor: ag/13607751 by aquilescanta@
MediaParser: ag/13714647 by aquilescanta@
MediaRecorder: ag/13545885 by dichenzhang@
AudioTrack & AudioRecord: ag/13712857 by hunga@
Bug: 183095725
Test: pending CTS
CTS-Coverage-Bug: 183366721
Change-Id: I931edf021a5ec6b27a25bc6142a129b92da0fc9a
Merged-In: I931edf021a5ec6b27a25bc6142a129b92da0fc9a
1. Create base class MediaFormat resolver for VideoFormatResolver
and upcoming ImageFormatResolver in T.
2. Move the setter of client capabilities and video format hint into
VideoFormatResolver's constructor.
3. Remove minProgressUpdateInterval as it is not implemented yet.
Bug: 181551684
Test: atest CtsMediaTranscodingTestCases:MediaTranscodeManagerTest
Change-Id: Icefb302d6ffc22182bed6a26daca7fc621ae54c5
1. Create a base class TranscodingRequest for VideoTranscodingRequest
and upcoming ImageTranscodingRequest in Androd T. Also have builder in each type
with VideoTranscodingRequest.builder inherit TranscodingRequest.builder.
2. Hiding the PRIORITY_REALTIME and setPrority api for Android S.
3. Hiding TRANSCODING_TYPE_VIDEO as it is only for internal bookkeeping
4. Move TRANSCODING_TYPE_* and PRIORITY_* to inside TranscodingRequest.
5. Remove the setSrcUri, setDstUri, setVideoTrackFormat and set them in constructor.
Bug: 181551684
Test: atest CtsMediaTranscodingTestCases:MediaTranscodeManagerTest
Change-Id: Ib6fead5e9fcb48bfd1db35f9f35402d6fa1ed73d
Remove ServiceNotAvailableException and use boolean to signal client
the service is not avaiable during enqueueRequest.
Bug: 181611895
Test: atest CtsMediaTranscodingTestCases:MediaTranscodeManagerTest
Change-Id: Ie5bbf65c77076839bee7619ed6ad45d8edfff617
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