Adds a parameter for exposing chunk indices as MediaFormats.
The parameter is disabled by default.
Bug: 149906115
Bug: 154120292
Test: atest CtsMediaParserTestCases
Change-Id: I2b64cab71edf0496c1ea730b4833fa2f4dbb6aad
Allows integration with ExoPlayer-DASH module. Before extracting
each chunk, ExoPlayer makes a seek call with the start time of
the chunk and position 0. It's not possible to perform this early
seek using MediaParser:
- Before a seek map is exposed by MediaParser, only seeking to
(0, 0) is possible.
- Once a seek map is exposed, there's no guarantee that the
required position is a legal position.
Bug: 149906115
Bug: 154120292
Test: Manual
Test: atest CtsMediaParserTestCases
Change-Id: I5986170cba4ec1b9f8b902809a9845f93550d103
Removes use of the special framework-modules naming scheme.
Bug: 155164730
Test: m java
Exempt-From-Owner-Approval: Build cleanup.
Change-Id: I3b78fcbcacc3df787e171d6eedeef1e51b087615
Merged-In: I0c31e2183353dfb5bd49f04f3455cb7b10be6866
(cherry picked from 8b864fb45ce79051437f13c2a19510718ea3b7aa)
Removes use of the special framework-modules naming scheme.
Bug: 155164730
Test: m java
Exempt-From-Owner-Approval: Build cleanup.
Change-Id: I0c31e2183353dfb5bd49f04f3455cb7b10be6866
Switching from java_library to java_sdk_library switched the meaning
of the module name from referring to the implementation library to
referring to the stubs. This change updates the visibility rules to
reflect that new meaning.
Visibility rules that were previously set for the java_library have
been moved to the impl_library_visibility property and the special
//visibility:override value has been prepended to prevent it from
inheriting the values from the visibility property.
Visibility rules set for the stubs (via stubs_library_visibility)
property have been moved to the visibility property.
Bug: 155164730
Test: m nothing
Exempt-From-Owner-Approval: Build cleanup
Change-Id: Icc9bc5a9ef86cf7ba0f15c2b2a4abd596ec9f640
The API for the updatable-media library is prefixed with
framework-media so it cannot be switched to use java_sdk_library
directly. Instead a new API only java_sdk_library was added for
framework-media.
The names of the individual modules do not quite follow the pattern
that java_sdk_library uses so this temporarily sets the following:
naming_scheme: "frameworks-modules"
That causes java_sdk_library to use a naming scheme that matches the
one used by the individual modules of this. It will be cleaned up
later.
Test: m update-api
Bug: 155164730
Change-Id: Ib9dd6d276856146e161578697cc6ba83b26e4ad8
CryptoInfo.pattern is private, so users need to ensure
CryptoInfo instances do not change between being obtained
from MediaParser, and being passed to MediaCodec. This CL
ensures that MediaParser does not modify any already output
CryptoInfo instances.
Bug: 154120292
Test: manually.
Test: atest CtsMediaParserTestCases.
Change-Id: I800b6e6ae98af490e5001a5da35cae5d3b8449e6
HLS requires the following two special behaviors:
- The track type needs to be declared eagerly in order
to map tracks to the correct sample queue.
- Sample timestamps should not be offset, in order to
synchronize across tracks.
Bug: 154120292
Bug: 149906115
Test: atest CtsMediaParserTestCases
Change-Id: Ida5f0b203746e993e351974b444e4446aa931cd5
Also support in-band sample data format, for
efficient exoplayer use.
Bug: 154120292
Test: atest CtsMediaParserTestCases
Change-Id: Ieb209d1033bd5a66c6f51008bd0c382868a58be7
This adds checking of module api compatibility to the individual module
api rules. Until now, this checking has been done via the monolithic
metalava runs which we are aiming to get rid of.
Now is a good time to do this because we can compare them to the just
finalized version 30 API, which we have no diffs with. Baseline the
existing wifi failures that metalava fails to find in the previous API.
Bug: 144149403
Test: m checkapi
Change-Id: Id222895daa3a769c265965b052a17d5a1ca18462
Modules contributing mainline modules (APK/APEX) should set
min_sdk_version as well as apex_available.
For now setting min_sdk_version doesn't change build outputs.
But build-time checks will be added soon.
updatable-media is a member of com.android.media.
Bug: 152655956
Test: m
Change-Id: I82cecd20888189657693cb9f406c831c6aa42905
This makes the filenames of the disted artifacts (api txts and stubs)
match the module name of the modules they're from. This matches the
naming scheme used by java_sdk_library, which should make the future
transition to this build rule easier.
Bug: 149293194
Test: lunch sdk_phone_armv7 && m sdk dist && find out/dist/apistubs
Change-Id: I076f30931bf2524d57703873cd7de25b3f23b457
Instead of doing it immediately after sniff success.
This prevents some extractor implementations from
outputting formats during the "sniffing" advance.
Bug: 154120292
Test: atest CtsMediaParserTestCases
Change-Id: I4f3349a8053d371cd06beaf24bd9745da0a4a093