Member variable of mVideoActiveFormatDescription is not compared
on equals API. The variable should be compared on the equals API.
Test: build
Change-Id: Ib8fde63afb0504140f34ebd695f4524db9c74748
With this, MediaRouter2Manager.Callback.onRouteSelected will be called properly.
This CL also adds provider id to MediaRoute2Info to distinguish routes
with the same id from different providers.
Test: atest mediaroutertest
Change-Id: If353a4decad489576a39b1a93c7d99c7fe238abe
Using the new tag, users can distiguish orientation from IFD0 and IFD1.
Bug: 135583583
Test: manually with a file attached on the bug
Test: atest ExifInterfaceTest (in cts)
Change-Id: I0ac22f5d740eadc8662920b3e87619d094f0098c
Add content observer for RTT mode: when RTT is ON during a call,
The assistant is allowed to capture audio similarly to when an
accessibility service is in the foreground.
Bug: 132976361
Test: use voice input during a call with RTT enabled.
Change-Id: Ief04d886370b50ae3dac0a72dbd1a4ea5f2c66a3
Migration in preparation for deletion of ByteStringUtils.
Also contains an import ordering change needed for upload.
Bug: 124232146
Test: build only
Change-Id: I0c71751de9a142a81ce43b4eaea497bf291afcbc
(cherry picked from commit 8fdca745d6)
MPEG4Writer::writeGeoDataBox() has always written latitude
before longitude since it was introduced. And the ISO-6709
is also to have +-{latitude}+-{longitude}/ so we should have
the correct information here.
This is likely to be important for Q since lat/long are no
longer accessible via MediaStore.
Bug: 134100244
Test: documentation change only
Change-Id: If157e3b0a639da9e012c0dd23fcfacfa0a59c28e
video files with mimetype “video/x-ms-asf” are considered as PlayList
file type due to below check in MediaFile.Java
Do not consider it as playlist file and remove case of “video/x-ms-asf”
Bug: 133940458
Test: The video is show in gallery
Change-Id: I6af45b597d9b8d9b277e1ae89f2afe019ee2eead
These APIs are used by older versions of the unity game engine, and many
of these games are not in a position where they are able to update
unity. To keep these games working now and in the future, leave these
APIs on the derestricted greylist.
Bug: 134049522
Test: m
Change-Id: I541ed6fbacfc1e405a319af5c2ff785625afb26a
USAGE_VOICE_COMMUNICATION_SIGNALLING shouldn't be considered
SUPPRESSIBLE_SYSTEM. It includes the ring tone sound when in a call.
Instead, it should not be suppressible like USAGE_VOICE_COMMUNICATION.
Test: manual
Fixes: 131756661
Change-Id: Ide8aafafe58c421f3b699e6de9358b4e73ad01c5
MediaHTTPConnection.seek() was creating new connections in a while
loop without checking whether another thread was busy concurrently
disconnecting.
When a new connection was created between the time the disconnect()ing
thread had disconnected the old one and acquired the synchronized
block, the new connection wouldn't be disconnected and therefore
seek() would not encounter an IOException; therefore, seek() would
not return quickly, leaving the disconnecting thread waiting to
acquire the synchronized block for a long time.
This CL fixes this by making seek() throw IOException quickly if
it discovers that another thread is trying to disconnect. This
is checked shortly before and after the new connection is created,
to avoid a race based on the order between the new connection
being created and the disconnecting thread reading the old
connection value. Note that this still doesn't stop a new
connection being created shortly after the previous one was torn
down - it only stops the disconnecting thread waiting for a long
time to acquire the synchronized lock.
Fixes: 131894499
Test: The following command hang 3/3 times before this CL, but
succeeded 3/3 times afterwards:
atest android.media.cts.NativeDecoderTest#testAMediaDataSourceClose
Change-Id: I3862a4367d0e46c64c0cbf7bcaa369aca5692871