* Since commit eb57617 [1], the legacy callback interfaces in the Android
AudioTrack system have been deprecated and replaced by a newer callback
interface. Consequently, the user parameter, which was previously part
of the constructor, has been incorporated into this new interface.
* To address the resulting build issues, update the function signatures
to match the new methods. Although AOSP provides a wrapper [2] for this
purpose, it's declared within an anonymous namespace, effectively making
it private to its own translation unit. To work around this limitation,
provide a local copy of the wrapper instead.
* Also format the shim with `clang-format`.
- [1]: eb57617e55
- [2]: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/av/media/libaudioclient/AudioTrack.cpp;l=289;bpv=1
Change-Id: Ieae7df3f5f003538a0319cc77051322a989b93a8
* ui::Size was changed going from VNDK32 to VNDK33 [1] and
ui::Size::INVALID constant was removed. However, all we need
to do is set INVALID to a Size with a width/height of -1.
[1]: 6d043c5c5c
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I4a224c6c3f622152a8bdc9f70bca18263af068cd
* As per b/182392769, AttributionSourceState's need their own
unique token for their source.
* Also set the tag to a null optional value while we're on it.
Change-Id: Ie2588423fd5f8dbac3c71275a697f4cdef7799ff
* Also compile shim only for 32bit since the constructors symbol changes
between 32bit and 64bit and our IMS stack is 32bit only anyway.
Signed-off-by: bengris32 <bengris32@protonmail.ch>
added opPackageName as a parameter to the constructor
of AudioTrack which breaks our libsink which was compiled
for an older libaudioclient.
* fixes the following error:
CANNOT LINK EXECUTABLE "/system/bin/vtservice": cannot locate symbol "_ZN7android10AudioTrackC1E19audio_stream_type_tj14audio_format_tjj20audio_output_flags_tPFviPvS4_ES4_i15audio_session_tNS0_13transfer_typeEPK20audio_offload_info_tjiPK18audio_attributes_tbfi" referenced by "/system/lib/libsink.so"
https: //github.com/LineageOS/android_frameworks_av/commit/fd90fdfe2a611ae824a32e236da288b1fdfd445d
Change-Id: I290e1beca02d46c4393d17356fa22741d771f847
* E vndksupport: Could not load /vendor/lib/hw/audio.primary.mt6785.so from default namespace: dlopen failed: cannot locate symbol "_ZN7android13TypeConverterINS_13DefaultTraitsI14audio_format_tEEE6mTableE" referenced by "/vendor/lib/hw/audio.primary.mt6785.so"....
* The required conversion mTable [1] was removed in VNDK31, add it back.
[1] dc6be0d575
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I9b90be74c40ec52624f84be24917b3392081a3bb