The JetPlayer implementation in libmedia was only used by the
JetPlayer JNI code in libandroid_runtime. This change moves
both implementation and JNI to libmedia_jni. This reduces
libandroid_runtime's dependency on libmedia, and results in
a net size reduction of the libraries involved.
Test: atest JetPlayerTest
Change-Id: I028c774fdea167924b064855267254c15f22fddb
Merged-In: I028c774fdea167924b064855267254c15f22fddb
The JetPlayer implementation in libmedia was only used by the
JetPlayer JNI code in libandroid_runtime. This change moves
both implementation and JNI to libmedia_jni. This reduces
libandroid_runtime's dependency on libmedia, and results in
a net size reduction of the libraries involved.
Test: atest JetPlayerTest
Change-Id: I028c774fdea167924b064855267254c15f22fddb
We switched completely over to using ModernMediaScanner in Android Q,
and this legacy code is no longer being used. Clean it up, but leave
enough remnants behind to begrudgingly keep reflecting apps working.
Bug: 128243527
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ib2bc341fafcd4c2e049c864a35fbe651d013f6fd
Since these were combined into libhidlbase.
Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I136e4d4459bb8c3c5abf3c0758dd5ae14d0ad2a2
Test: manual, connect with MTP and PTP
Change-Id: I33128db25b8aae60df7854c61fc2a3873a1bced9
(cherry picked from commit f7ec16802c0ff22feeaed9d4011c4a18c9d0dd96)
(cherry picked from commit efb865ace2885723d37e0ef9e6bae695d6dcabb0)
(cherry picked from commit 5954d210d324bd97fc585b6a238a15d1d52e64a1)
This reverts commit 16c0c46f208c2a6b4d321352fbc5fc6acff6261e.
Reason for revert: causes b/135763139 (volume adjustment for music does not work)
There is no clear explanation how this change breaks volume adjustment, but by bisection and by reverting the change locally it does somehow.
Bug: 133186424
Bug: 135763139
Change-Id: If6eed10f23c6b6006a6468c2a793230cd98c0501
libmedia_jni now pulls in libsfplugin_ccodec instead of deferring it
until an actual reference. This eliminates some codec startup latency
later. this is only "load it", there is no actual use of
libsfplugin_ccodec by libmedia_jni.
Bug: 133186424
Test: boot, logcat, forrest startup timing measurements
Change-Id: Iacf8783cb45d33f5cec67863d4bf89da6dff9c2d
libmedia_jni_utils only has dependencies on libgui,
not entire libmedia_omx, it's linking to libmedia_omx
to get to libgui/bufferqueue headers.
bug: 129272021
test: builds
Change-Id: I48453cb53d36e6ecb2a6f6dd2b09f9a99e8479f0
(cherry picked from commit a527e6d94b77b74545e09bd617b0060e2075eee2)
libcgrouprc is an LLNDK library used by libprocessgroup.
libprocessgroup is linked statically, so the dependency needs
to be explicitly stated in libmedia2_jni.
Test: boots (sanity)
Bug: 123664216
Change-Id: Ieebba36417d1f83a5946f927043f15dc8abc188a
This is a part of job to cut dependency from libmediandk
to libandroid_runtime. As a LL-NDK, libmediandk desn't have
to depend on libandroid_runtime.
dependency: libmediandk -> libmedia_jni -> libandroid_runtime
Libmediandk calls three utility functions defined in
android_media_Utils.cpp. But these functions are independent
from libandroid_runtime.
By extracting those utility functions into its own shared library
(libmedia_jni_utils), the dependency from libmediandk to
libmedia_jni is cut down.
However, some classes and other functions in android_media_Utils.cpp
are moved into new file, android_media_Streams.cpp since they
depend on libandroid_runtime.
Bug: 124268753
Test: m -j
Change-Id: I1e1ea4bc1ff7022d8d9c42785c8c00e3ca153a50
Bug: http://b/119560349
Currently, any binary links in a PGO-enabled static library also needs
to opt into PGO. With b/119560349, this should be done automatically by
the build system. Until then, use the non-PGO version of libhwbinder in
libmedia2_jni.
Test: m ANDROID_PGO_INSTRUMENT=all
Change-Id: I0bdd1b56c9e9417ea62d9db8986a10b93b2260b9
cut mediaplayer2 over to use the new mediametrics C apis to support
updateable components.
Bug: 112555455
Test: boot
Change-Id: I35150dc5445b6597fce739395d0132bcd29366b4
This reverts commit 6ac67f7293648405c623889b62ad3d2e384f5110.
Reason for revert: This change is no longer needed thanks to upcoming
native_loader change for applying linker namespace.
Bug: 112766913
Test: build and boot
Change-Id: Idb29b6cd6a4baaf791b67e6e7fc3a97f98292be4
Mpeg2ts static lib now uses the hidl allocator
to get the hidl memory.
bug: 112766913
bug: 111407253
Change-Id: I588e9a603a0dd34dd90a69a32a9b355222507ff2