Home
last modified time | relevance | path

Searched refs:mMutex (Results 1 – 25 of 222) sorted by relevance

123456789

/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncReactor.h67 void setIgnorePresentFencesInternal(bool ignoration) REQUIRES(mMutex);
68 void updateIgnorePresentFencesInternal() REQUIRES(mMutex);
69 void startPeriodTransition(nsecs_t newPeriod) REQUIRES(mMutex);
70 void endPeriodTransition() REQUIRES(mMutex);
72 REQUIRES(mMutex);
79 mutable std::mutex mMutex; variable
80 bool mInternalIgnoreFences GUARDED_BY(mMutex) = false;
81 bool mExternalIgnoreFences GUARDED_BY(mMutex) = false;
82 std::vector<std::shared_ptr<FenceTime>> mUnfiredFences GUARDED_BY(mMutex);
84 bool mMoreSamplesNeeded GUARDED_BY(mMutex) = false;
[all …]
DVSyncPredictor.h68 void clearTimestamps() REQUIRES(mMutex);
77 std::mutex mutable mMutex; variable
78 size_t next(int i) const REQUIRES(mMutex);
79 bool validate(nsecs_t timestamp) const REQUIRES(mMutex);
81 REQUIRES(mMutex);
83 nsecs_t mIdealPeriod GUARDED_BY(mMutex);
84 std::optional<nsecs_t> mKnownTimestamp GUARDED_BY(mMutex);
86 std::unordered_map<nsecs_t, std::tuple<nsecs_t, nsecs_t>> mutable mRateMap GUARDED_BY(mMutex);
88 int mLastTimestampIndex GUARDED_BY(mMutex) = 0;
89 std::vector<nsecs_t> mTimestamps GUARDED_BY(mMutex);
DVSyncReactor.cpp90 std::lock_guard<std::mutex> lk(mMutex); in ~CallbackRepeater()
95 std::lock_guard<std::mutex> lk(mMutex); in start()
105 std::lock_guard<std::mutex> lk(mMutex); in setPeriod()
113 std::lock_guard<std::mutex> lk(mMutex); in stop()
120 std::lock_guard<std::mutex> lk(mMutex); in dump()
129 std::lock_guard<std::mutex> lk(mMutex); in callback()
136 std::lock_guard<std::mutex> lk(mMutex); in callback()
149 nsecs_t calculateWorkload() REQUIRES(mMutex) { return mPeriod - mOffset; } in calculateWorkload()
154 std::mutex mutable mMutex; member in android::scheduler::CallbackRepeater
155 VSyncCallbackRegistration mRegistration GUARDED_BY(mMutex);
[all …]
DVSyncDispatchTimerQueue.h140 void setTimer(nsecs_t, nsecs_t) REQUIRES(mMutex);
141 void rearmTimer(nsecs_t now) REQUIRES(mMutex);
143 REQUIRES(mMutex);
144 void cancelTimer() REQUIRES(mMutex);
152 std::mutex mutable mMutex; variable
153 size_t mCallbackToken GUARDED_BY(mMutex) = 0;
155 CallbackMap mCallbacks GUARDED_BY(mMutex);
156 nsecs_t mIntendedWakeupTime GUARDED_BY(mMutex) = kInvalidTime;
167 } mTraceBuffer GUARDED_BY(mMutex);
170 nsecs_t mLastTimerCallback GUARDED_BY(mMutex) = kInvalidTime;
[all …]
DVSyncModulator.h71 void setPhaseOffsets(const OffsetsConfig&) EXCLUDES(mMutex);
94 Offsets getOffsets() const EXCLUDES(mMutex);
99 const Offsets& getNextOffsets() const REQUIRES(mMutex);
101 void updateOffsets() EXCLUDES(mMutex);
102 void updateOffsetsLocked() REQUIRES(mMutex);
108 mutable std::mutex mMutex; variable
109 OffsetsConfig mOffsetsConfig GUARDED_BY(mMutex);
111 Offsets mOffsets GUARDED_BY(mMutex){mOffsetsConfig.late}; in GUARDED_BY() argument
DEventThread.h180 void threadMain(std::unique_lock<std::mutex>& lock) REQUIRES(mMutex);
183 const sp<EventThreadConnection>& connection) const REQUIRES(mMutex);
185 const DisplayEventConsumers& consumers) REQUIRES(mMutex);
188 REQUIRES(mMutex);
193 const std::unique_ptr<VSyncSource> mVSyncSource GUARDED_BY(mMutex);
199 mutable std::mutex mMutex; variable
202 std::vector<wp<EventThreadConnection>> mDisplayEventConnections GUARDED_BY(mMutex);
203 std::deque<DisplayEventReceiver::Event> mPendingEvents GUARDED_BY(mMutex);
204 DisplayEventReceiver::Event mLastConfigChangeEvent GUARDED_BY(mMutex);
221 std::optional<VSyncState> mVSyncState GUARDED_BY(mMutex);
[all …]
DOneShotTimer.cpp36 std::lock_guard<std::mutex> lock(mMutex); in start()
44 std::lock_guard<std::mutex> lock(mMutex); in stop()
58 std::lock_guard<std::mutex> lock(mMutex); in loop()
64 mCondition.wait(mMutex); in loop()
77 std::lock_guard<std::mutex> lock(mMutex); in loop()
87 if (waitTime > zero) mCondition.wait_for(mMutex, waitTime); in loop()
106 std::lock_guard<std::mutex> lock(mMutex); in reset()
/frameworks/rs/
DrsSignal.cpp28 pthread_mutex_destroy(&mMutex); in ~Signal()
33 int status = pthread_mutex_init(&mMutex, nullptr); in init()
42 pthread_mutex_destroy(&mMutex); in init()
50 int status = pthread_mutex_lock(&mMutex); in set()
63 status = pthread_mutex_unlock(&mMutex); in set()
70 int status = pthread_mutex_lock(&mMutex); in wait()
77 status = pthread_cond_wait(&mCondition, &mMutex); in wait()
86 status = pthread_mutex_unlock(&mMutex); in wait()
DrsMutex.cpp26 pthread_mutex_destroy(&mMutex); in ~Mutex()
30 int status = pthread_mutex_init(&mMutex, nullptr); in init()
40 status = pthread_mutex_lock(&mMutex); in lock()
50 status = pthread_mutex_unlock(&mMutex); in unlock()
/frameworks/base/media/jni/
DJetPlayer.cpp103 Mutex::Autolock l(mMutex); in init()
107 mCondition.wait(mMutex); in init()
124 Mutex::Autolock l(mMutex); in setEventCallback()
132 Mutex::Autolock lock(mMutex); in release()
173 Mutex::Autolock l(mMutex); in render()
181 mMutex.lock(); // [[[[[[[[ LOCK --------------------------------------- in render()
184 mMutex.unlock(); in render()
198 mCondition.wait(mMutex); in render()
223 mMutex.unlock(); // UNLOCK ]]]]]]]] ----------------------------------- in render()
254 mMutex.lock(); in render()
[all …]
/frameworks/native/libs/gui/tests/
DDisconnectWaiter.h40 Mutex::Autolock lock(mMutex); in waitForFrame()
42 mFrameCondition.wait(mMutex); in waitForFrame()
48 Mutex::Autolock lock(mMutex); in onFrameAvailable()
54 Mutex::Autolock lock(mMutex); in onBuffersReleased()
56 mDisconnectCondition.wait(mMutex); in onBuffersReleased()
63 Mutex::Autolock lock(mMutex); in finishDisconnect()
69 Mutex mMutex;
DFrameWaiter.h31 Mutex::Autolock lock(mMutex); in waitForFrame()
33 mCondition.wait(mMutex); in waitForFrame()
39 Mutex::Autolock lock(mMutex); in onFrameAvailable()
46 Mutex mMutex; variable
/frameworks/native/services/surfaceflinger/
DTransactionCompletedThread.h90 const std::vector<CallbackId>& callbackIds) REQUIRES(mMutex);
94 TransactionStats** outTransactionStats) REQUIRES(mMutex);
96 status_t addCallbackHandle(const sp<CallbackHandle>& handle) REQUIRES(mMutex);
114 std::mutex mMutex; variable
118 GUARDED_BY(mMutex);
124 mPendingTransactions GUARDED_BY(mMutex);
127 mCompletedTransactions GUARDED_BY(mMutex);
129 bool mRunning GUARDED_BY(mMutex) = false;
130 bool mKeepRunning GUARDED_BY(mMutex) = true;
132 sp<Fence> mPresentFence GUARDED_BY(mMutex);
DBufferLayerConsumer.cpp89 Mutex::Autolock lock(mMutex); in setDefaultBufferSize()
101 Mutex::Autolock lock(mMutex); in setContentsChangedListener()
110 Mutex::Autolock lock(mMutex); in updateTexImage()
171 Mutex::Autolock lock(mMutex); in bindTextureImage()
199 Mutex::Autolock lock(mMutex); in releasePendingBuffer()
210 Mutex::Autolock lock(mMutex); in getPrevFinalReleaseFence()
307 Mutex::Autolock lock(mMutex); in getTransformMatrix()
312 Mutex::Autolock lock(mMutex); in setFilteringEnabled()
345 Mutex::Autolock lock(mMutex); in getTimestamp()
351 Mutex::Autolock lock(mMutex); in getCurrentDataSpace()
[all …]
DTransactionCompletedThread.cpp52 std::lock_guard lock(mMutex); in ~TransactionCompletedThread()
62 std::lock_guard lock(mMutex); in ~TransactionCompletedThread()
70 std::lock_guard lock(mMutex); in run()
84 std::lock_guard lock(mMutex); in startRegistration()
109 std::lock_guard lock(mMutex); in endRegistration()
136 std::lock_guard lock(mMutex); in registerPendingCallbackHandle()
160 std::lock_guard lock(mMutex); in finalizePendingCallbackHandles()
201 std::lock_guard lock(mMutex); in registerUnpresentedCallbackHandle()
255 std::lock_guard<std::mutex> lock(mMutex); in addPresentFence()
260 std::lock_guard lock(mMutex); in sendCallbacks()
[all …]
DFrameTracker.cpp44 Mutex::Autolock lock(mMutex); in setDesiredPresentTime()
49 Mutex::Autolock lock(mMutex); in setFrameReadyTime()
55 Mutex::Autolock lock(mMutex); in setFrameReadyFence()
61 Mutex::Autolock lock(mMutex); in setActualPresentTime()
67 Mutex::Autolock lock(mMutex); in setActualPresentFence()
73 Mutex::Autolock lock(mMutex); in setDisplayRefreshPeriod()
78 Mutex::Autolock lock(mMutex); in advanceFrame()
105 Mutex::Autolock lock(mMutex); in clearStats()
120 Mutex::Autolock lock(mMutex); in getStats()
146 Mutex::Autolock lock(mMutex); in logAndResetStats()
[all …]
/frameworks/native/libs/gui/include/gui/
DBLASTBufferQueue.h95 void processNextBufferLocked(bool useNextTransaction) REQUIRES(mMutex);
100 std::mutex mMutex; variable
107 int32_t mNumFrameAvailable GUARDED_BY(mMutex);
108 int32_t mNumAcquired GUARDED_BY(mMutex);
115 std::queue<const BufferItem> mSubmitted GUARDED_BY(mMutex);
116 PendingReleaseItem mPendingReleaseItem GUARDED_BY(mMutex);
118 int mWidth GUARDED_BY(mMutex);
119 int mHeight GUARDED_BY(mMutex);
121 uint32_t mTransformHint GUARDED_BY(mMutex);
127 SurfaceComposerClient::Transaction* mNextTransaction GUARDED_BY(mMutex);
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchRealtimeTest.cpp67 std::lock_guard<decltype(mMutex)> lk(mMutex); in nextAnticipatedVSyncTimeFrom()
77 std::lock_guard<decltype(mMutex)> lk(mMutex); in set_interval()
83 std::lock_guard<decltype(mMutex)> lk(mMutex); in currentPeriod()
92 std::mutex mutable mMutex; member in android::scheduler::VRRStubTracker
115 std::unique_lock<decltype(mMutex)> lk(mMutex); in repeatedly_schedule()
127 std::unique_lock<decltype(mMutex)> lk(mMutex); in repeatedly_schedule()
137 std::lock_guard<decltype(mMutex)> lk(mMutex); in callback_called()
147 std::mutex mMutex; member in android::scheduler::RepeatingCallbackReceiver
/frameworks/base/cmds/statsd/src/metrics/
DMetricProducer.h151 std::lock_guard<std::mutex> lock(mMutex); in notifyAppUpgrade()
164 std::lock_guard<std::mutex> lock(mMutex); in onStatsdInitCompleted()
169 std::lock_guard<std::mutex> lock(mMutex); in onMatchedLogEvent()
174 std::lock_guard<std::mutex> lock(mMutex); in onConditionChanged()
179 std::lock_guard<std::mutex> lock(mMutex); in onSlicedConditionMayChange()
184 std::lock_guard<std::mutex> lock(mMutex); in isConditionSliced()
200 std::lock_guard<std::mutex> lock(mMutex); in onDumpReport()
206 std::lock_guard<std::mutex> lock(mMutex); in clearPastBuckets()
211 std::lock_guard<std::mutex> lock(mMutex); in prepareFirstBucket()
218 std::lock_guard<std::mutex> lock(mMutex); in byteSize()
[all …]
/frameworks/av/camera/ndk/ndk_vendor/tests/
DACameraManagerTest.cpp42 std::lock_guard<std::mutex> lock(thiz->mMutex); in onAvailable()
54 std::lock_guard<std::mutex> lock(thiz->mMutex); in onUnavailable()
71 std::lock_guard<std::mutex> lock(thiz->mMutex); in onPhysicalCameraAvailable()
83 std::lock_guard<std::mutex> lock(thiz->mMutex); in onPhysicalCameraUnavailable()
89 std::lock_guard<std::mutex> lock(mMutex); in resetCount()
98 std::lock_guard<std::mutex> lock(mMutex); in getAvailableCount()
103 std::lock_guard<std::mutex> lock(mMutex); in getUnavailableCount()
108 std::lock_guard<std::mutex> lock(mMutex); in getPhysicalCameraAvailableCount()
113 std::lock_guard<std::mutex> lock(mMutex); in getUnavailablePhysicalCameras()
118 std::lock_guard<std::mutex> lock(mMutex); in isAvailable()
[all …]
/frameworks/base/tests/JankBench/app/src/main/jni/
DWorkerPool.cpp35 pthread_mutex_destroy(&mMutex); in ~Signal()
40 int status = pthread_mutex_init(&mMutex, NULL); in init()
49 pthread_mutex_destroy(&mMutex); in init()
59 status = pthread_mutex_lock(&mMutex); in set()
72 status = pthread_mutex_unlock(&mMutex); in set()
82 status = pthread_mutex_lock(&mMutex); in wait()
90 status = pthread_cond_wait(&mCondition, &mMutex); in wait()
93 status = pthread_cond_timeout_np(&mCondition, &mMutex, timeout / 1000000); in wait()
96 status = pthread_cond_wait(&mCondition, &mMutex); in wait()
112 status = pthread_mutex_unlock(&mMutex); in wait()
/frameworks/native/libs/nativedisplay/surfacetexture/
DSurfaceTexture.cpp87 Mutex::Autolock lock(mMutex); in setDefaultBufferSize()
100 Mutex::Autolock lock(mMutex); in updateTexImage()
114 Mutex::Autolock lock(mMutex); in releaseTexImage()
161 Mutex::Autolock lock(mMutex); in detachFromContext()
184 Mutex::Autolock lock(mMutex); in attachToContext()
202 Mutex::Autolock _l(mMutex); in takeConsumerOwnership()
222 Mutex::Autolock _l(mMutex); in releaseConsumerOwnership()
241 Mutex::Autolock lock(mMutex); in getTransformMatrix()
246 Mutex::Autolock lock(mMutex); in setFilteringEnabled()
391 Mutex::Autolock lock(mMutex); in getTimestamp()
[all …]
/frameworks/av/services/camera/libcameraservice/utils/
DAutoConditionLock.cpp21 WaitableMutexWrapper::WaitableMutexWrapper(Mutex* mutex) : mMutex{mutex}, mState{false} {} in WaitableMutexWrapper()
27 mManager{manager}, mAutoLock{manager->mMutex}, mAcquired(false) {} in AutoConditionLock()
41 if (manager == nullptr || manager->mMutex == nullptr) { in waitAndAcquire()
54 status_t ret = manager->mCondition.waitRelative(*(manager->mMutex), waitTime); in waitAndAcquire()
71 if (manager == nullptr || manager->mMutex == nullptr) { in waitAndAcquire()
81 status_t ret = manager->mCondition.wait(*(manager->mMutex)); in waitAndAcquire()
/frameworks/wilhelm/src/
DThreadPool.cpp98 err = pthread_mutex_init(&tp->mMutex, (const pthread_mutexattr_t *) NULL); in ThreadPool_init()
175 ok = pthread_mutex_lock(&tp->mMutex); in ThreadPool_deinit_internal()
182 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_deinit_internal()
191 ok = pthread_mutex_lock(&tp->mMutex); in ThreadPool_deinit_internal()
202 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_deinit_internal()
205 ok = pthread_mutex_lock(&tp->mMutex); in ThreadPool_deinit_internal()
208 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_deinit_internal()
223 ok = pthread_mutex_destroy(&tp->mMutex); in ThreadPool_deinit_internal()
280 ok = pthread_mutex_lock(&tp->mMutex); in ThreadPool_add()
284 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_add()
[all …]
/frameworks/native/libs/gui/
DConsumerBase.cpp83 Mutex::Autolock lock(mMutex); in ~ConsumerBase()
177 Mutex::Autolock lock(mMutex); in onBuffersReleased()
200 Mutex::Autolock lock(mMutex); in abandon()
223 Mutex::Autolock _l(mMutex); in isAbandoned()
228 Mutex::Autolock _l(mMutex); in setName()
246 Mutex::Autolock lock(mMutex); in detachBuffer()
265 Mutex::Autolock _l(mMutex); in setDefaultBufferSize()
274 Mutex::Autolock _l(mMutex); in setDefaultBufferFormat()
284 Mutex::Autolock _l(mMutex); in setDefaultBufferDataSpace()
293 Mutex::Autolock lock(mMutex); in setConsumerUsageBits()
[all …]

123456789