Explicit android::sp<> usage
Summary: This patch removes implicit usage of android::sp<> in the libhzos.meta native library to make the usage explicit. Changes include: Replacing raw pointer new allocations with sp<>::make for VolumeShaper::State and VolumeShaper::Operation instances. Updating AudioTrack's DeathNotifier to use wp<> and sp<> smart pointers explicitly. Ensuring consistent explicit smart pointer usage throughout the affected files. This improves code clarity and safety by avoiding implicit smart pointer conversions. Flag: EXEMPT bugfix Bug: 298529417 Test: m Test: atest CtsMediaAudioTestCases Test: atest audiotrack_tests Signed-off-by:Abdelrahman Daim <adaim@meta.com> (cherry picked from https://android-review.googlesource.com/q/commit:55e5285031a7abac9470f95f1c7df9ff8437cb24) Change-Id: Ie86ee97a0f0957755a44054e67503201113cc005
Loading
Please register or sign in to comment