Loading libs/binder/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -170,6 +170,7 @@ filegroup { aidl_interface { name: "libbinder_aidl_test_stub", unstable: true, local_include_dir: "aidl", srcs: [":libbinder_aidl"], vendor_available: true, Loading libs/binder/ndk/test/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,7 @@ cc_test { aidl_interface { name: "IBinderVendorDoubleLoadTest", unstable: true, vendor: true, srcs: [ "IBinderVendorDoubleLoadTest.aidl", Loading @@ -100,6 +101,7 @@ aidl_interface { aidl_interface { name: "IBinderNdkUnitTest", unstable: true, srcs: [ "IBinderNdkUnitTest.aidl", "IEmpty.aidl", Loading libs/binder/tests/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -137,6 +137,7 @@ cc_test { aidl_interface { name: "binderStabilityTestIface", unstable: true, srcs: [ "IBinderStabilityTest.aidl", ], Loading libs/binderthreadstate/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ hidl_package_root { aidl_interface { name: "binderthreadstateutilstest.aidl", unstable: true, srcs: ["IAidlStuff.aidl"], } Loading libs/gui/BLASTBufferQueue.cpp +4 −6 Original line number Diff line number Diff line Loading @@ -189,13 +189,13 @@ void BLASTBufferQueue::transactionCallback(nsecs_t /*latchTime*/, const sp<Fence mPendingReleaseItem.item = std::move(mSubmitted.front()); mSubmitted.pop(); processNextBufferLocked(); processNextBufferLocked(false); mCallbackCV.notify_all(); decStrong((void*)transactionCallbackThunk); } void BLASTBufferQueue::processNextBufferLocked() { void BLASTBufferQueue::processNextBufferLocked(bool useNextTransaction) { ATRACE_CALL(); if (mNumFrameAvailable == 0 || mNumAcquired == MAX_ACQUIRED_BUFFERS + 1) { return; Loading @@ -209,7 +209,7 @@ void BLASTBufferQueue::processNextBufferLocked() { SurfaceComposerClient::Transaction localTransaction; bool applyTransaction = true; SurfaceComposerClient::Transaction* t = &localTransaction; if (mNextTransaction != nullptr && mUseNextTransaction) { if (mNextTransaction != nullptr && useNextTransaction) { t = mNextTransaction; mNextTransaction = nullptr; applyTransaction = false; Loading Loading @@ -274,16 +274,14 @@ void BLASTBufferQueue::onFrameAvailable(const BufferItem& /*item*/) { while (mNumFrameAvailable > 0 || mNumAcquired == MAX_ACQUIRED_BUFFERS + 1) { mCallbackCV.wait(_lock); } mUseNextTransaction = true; } // add to shadow queue mNumFrameAvailable++; processNextBufferLocked(); processNextBufferLocked(true); } void BLASTBufferQueue::setNextTransaction(SurfaceComposerClient::Transaction* t) { std::lock_guard _lock{mMutex}; mUseNextTransaction = false; mNextTransaction = t; } Loading Loading
libs/binder/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -170,6 +170,7 @@ filegroup { aidl_interface { name: "libbinder_aidl_test_stub", unstable: true, local_include_dir: "aidl", srcs: [":libbinder_aidl"], vendor_available: true, Loading
libs/binder/ndk/test/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,7 @@ cc_test { aidl_interface { name: "IBinderVendorDoubleLoadTest", unstable: true, vendor: true, srcs: [ "IBinderVendorDoubleLoadTest.aidl", Loading @@ -100,6 +101,7 @@ aidl_interface { aidl_interface { name: "IBinderNdkUnitTest", unstable: true, srcs: [ "IBinderNdkUnitTest.aidl", "IEmpty.aidl", Loading
libs/binder/tests/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -137,6 +137,7 @@ cc_test { aidl_interface { name: "binderStabilityTestIface", unstable: true, srcs: [ "IBinderStabilityTest.aidl", ], Loading
libs/binderthreadstate/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ hidl_package_root { aidl_interface { name: "binderthreadstateutilstest.aidl", unstable: true, srcs: ["IAidlStuff.aidl"], } Loading
libs/gui/BLASTBufferQueue.cpp +4 −6 Original line number Diff line number Diff line Loading @@ -189,13 +189,13 @@ void BLASTBufferQueue::transactionCallback(nsecs_t /*latchTime*/, const sp<Fence mPendingReleaseItem.item = std::move(mSubmitted.front()); mSubmitted.pop(); processNextBufferLocked(); processNextBufferLocked(false); mCallbackCV.notify_all(); decStrong((void*)transactionCallbackThunk); } void BLASTBufferQueue::processNextBufferLocked() { void BLASTBufferQueue::processNextBufferLocked(bool useNextTransaction) { ATRACE_CALL(); if (mNumFrameAvailable == 0 || mNumAcquired == MAX_ACQUIRED_BUFFERS + 1) { return; Loading @@ -209,7 +209,7 @@ void BLASTBufferQueue::processNextBufferLocked() { SurfaceComposerClient::Transaction localTransaction; bool applyTransaction = true; SurfaceComposerClient::Transaction* t = &localTransaction; if (mNextTransaction != nullptr && mUseNextTransaction) { if (mNextTransaction != nullptr && useNextTransaction) { t = mNextTransaction; mNextTransaction = nullptr; applyTransaction = false; Loading Loading @@ -274,16 +274,14 @@ void BLASTBufferQueue::onFrameAvailable(const BufferItem& /*item*/) { while (mNumFrameAvailable > 0 || mNumAcquired == MAX_ACQUIRED_BUFFERS + 1) { mCallbackCV.wait(_lock); } mUseNextTransaction = true; } // add to shadow queue mNumFrameAvailable++; processNextBufferLocked(); processNextBufferLocked(true); } void BLASTBufferQueue::setNextTransaction(SurfaceComposerClient::Transaction* t) { std::lock_guard _lock{mMutex}; mUseNextTransaction = false; mNextTransaction = t; } Loading