Switch the framework AIDL to use AudioChannelLayout
'AudioChannelLayout' is a new type that will be used both by HAL and framework interfaces. This CL changes the framework interfaces to use it instead of 'AudioChannelMask' type which was used to pass legacy 'audio_channel_mask_t' transparently via the AIDL layer. Remove the implementation of 'Parcelable' from AudioProfile and AudioPortConfig in libaudiofoundation because the implementation not used after converting audio fwk interfaces to AIDL, and Parcelable's interface methods do not allow passing in any context. In our case the context is the direction of the I/O ('isInput' flag) which is usually available externally, but absent from the encapsulated data of these classes. Update the audiofoundation_parcelable_test, switch to use of static libs for the framework code so they can run on a device with default system libraries. Bug: 188932434 Test: check audio on device Test: atest audiofoundation_parcelable_test Change-Id: Ie59cdd64f001330ad4b5094264957198809a10a1
Loading
Please register or sign in to comment