diff options
| author | 2022-09-13 23:01:49 +0000 | |
|---|---|---|
| committer | 2022-09-13 23:06:08 +0000 | |
| commit | 116c1b5d491089240b5806c0d15b7d3eb8204c10 (patch) | |
| tree | 474a3e3553496ca0636dd6ac9cf625272ad00bcd /libs/androidfw/ResourceTimer.cpp | |
| parent | db3fb60b2b7a3456323d2cd627d091a293e70afd (diff) | |
Avoid creating sp<> from a pointer
The recommended practice is to use sp<>::make,
sp<>::fromExisting, or making copies from other sp<>.
This is to avoid various edge cases with RefBase.
Set ANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION for
libaudioeffect_jni to catch non-recommended usages
as compile time.
Bug: 243364224
Test: m
Change-Id: I697b33bd701b324da44ae4694ca7a1ec0e9afe77
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions