Loading libs/binder/IServiceManager.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -85,8 +85,8 @@ private: sp<AidlServiceManager> mTheRealServiceManager; }; static std::once_flag gSmOnce; static sp<IServiceManager> gDefaultServiceManager; [[clang::no_destroy]] static std::once_flag gSmOnce; [[clang::no_destroy]] static sp<IServiceManager> gDefaultServiceManager; sp<IServiceManager> defaultServiceManager() { Loading libs/binder/include/binder/IInterface.h +7 −1 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ #include <binder/Binder.h> #include <assert.h> namespace android { // ---------------------------------------------------------------------- Loading Loading @@ -155,7 +157,11 @@ public: \ std::unique_ptr<I##INTERFACE> I##INTERFACE::default_impl; \ bool I##INTERFACE::setDefaultImpl(std::unique_ptr<I##INTERFACE> impl)\ { \ if (!I##INTERFACE::default_impl && impl) { \ /* Only one user of this interface can use this function */ \ /* at a time. This is a heuristic to detect if two different */ \ /* users in the same process use this function. */ \ assert(!I##INTERFACE::default_impl); \ if (impl) { \ I##INTERFACE::default_impl = std::move(impl); \ return true; \ } \ Loading libs/gralloc/types/Android.bp +5 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,11 @@ cc_library { enabled: true, support_system_process: true, }, apex_available: [ "//apex_available:platform", "com.android.media.swcodec", ], min_sdk_version: "29", srcs: [ "Gralloc4.cpp" Loading libs/gui/Android.bp +5 −0 Original line number Diff line number Diff line Loading @@ -130,6 +130,11 @@ cc_library_shared { cc_library_static { name: "libgui_bufferqueue_static", vendor_available: true, apex_available: [ "//apex_available:platform", "com.android.media.swcodec", ], min_sdk_version: "29", cflags: [ "-DNO_BUFFERHUB", Loading libs/math/Android.bp +8 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,14 @@ cc_library_static { name: "libmath", host_supported: true, vendor_available: true, apex_available: [ "//apex_available:platform", "com.android.media", "com.android.media.swcodec", "com.android.neuralnetworks", ], min_sdk_version: "29", export_include_dirs: ["include"], } Loading Loading
libs/binder/IServiceManager.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -85,8 +85,8 @@ private: sp<AidlServiceManager> mTheRealServiceManager; }; static std::once_flag gSmOnce; static sp<IServiceManager> gDefaultServiceManager; [[clang::no_destroy]] static std::once_flag gSmOnce; [[clang::no_destroy]] static sp<IServiceManager> gDefaultServiceManager; sp<IServiceManager> defaultServiceManager() { Loading
libs/binder/include/binder/IInterface.h +7 −1 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ #include <binder/Binder.h> #include <assert.h> namespace android { // ---------------------------------------------------------------------- Loading Loading @@ -155,7 +157,11 @@ public: \ std::unique_ptr<I##INTERFACE> I##INTERFACE::default_impl; \ bool I##INTERFACE::setDefaultImpl(std::unique_ptr<I##INTERFACE> impl)\ { \ if (!I##INTERFACE::default_impl && impl) { \ /* Only one user of this interface can use this function */ \ /* at a time. This is a heuristic to detect if two different */ \ /* users in the same process use this function. */ \ assert(!I##INTERFACE::default_impl); \ if (impl) { \ I##INTERFACE::default_impl = std::move(impl); \ return true; \ } \ Loading
libs/gralloc/types/Android.bp +5 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,11 @@ cc_library { enabled: true, support_system_process: true, }, apex_available: [ "//apex_available:platform", "com.android.media.swcodec", ], min_sdk_version: "29", srcs: [ "Gralloc4.cpp" Loading
libs/gui/Android.bp +5 −0 Original line number Diff line number Diff line Loading @@ -130,6 +130,11 @@ cc_library_shared { cc_library_static { name: "libgui_bufferqueue_static", vendor_available: true, apex_available: [ "//apex_available:platform", "com.android.media.swcodec", ], min_sdk_version: "29", cflags: [ "-DNO_BUFFERHUB", Loading
libs/math/Android.bp +8 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,14 @@ cc_library_static { name: "libmath", host_supported: true, vendor_available: true, apex_available: [ "//apex_available:platform", "com.android.media", "com.android.media.swcodec", "com.android.neuralnetworks", ], min_sdk_version: "29", export_include_dirs: ["include"], } Loading