Revert "Revert "Switch the framework AIDL to use AudioChannelLayout""
This reverts commit b75b624f. '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 Test: app-compat/G3Compat/main Change-Id: I95c56040855187464bfbe7fcc7daf27f69fea55b
Loading
Please register or sign in to comment