Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 375f0073 authored by Abdelrahman Daim's avatar Abdelrahman Daim Committed by Mikhail Naganov
Browse files

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: default avatarAbdelrahman Daim <adaim@meta.com>
(cherry picked from https://android-review.googlesource.com/q/commit:55e5285031a7abac9470f95f1c7df9ff8437cb24)
Change-Id: Ie86ee97a0f0957755a44054e67503201113cc005
parent e5639386
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment