Home
last modified time | relevance | path

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

12345678

/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/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/native/services/surfaceflinger/Scheduler/
DVSyncModulator.h69 nsecs_t thresholdForNextVsync) EXCLUDES(mMutex);
101 Offsets getOffsets() EXCLUDES(mMutex);
105 Offsets getNextOffsets() REQUIRES(mMutex);
109 void updateOffsets() EXCLUDES(mMutex);
110 void updateOffsetsLocked() REQUIRES(mMutex);
112 void flushOffsets() REQUIRES(mMutex);
114 mutable std::mutex mMutex; variable
115 std::unordered_map<OffsetType, Offsets> mOffsetMap GUARDED_BY(mMutex);
122 Offsets mOffsets GUARDED_BY(mMutex) = {Scheduler::RefreshRateType::DEFAULT, 0, 0};
DEventThread.h164 void threadMain(std::unique_lock<std::mutex>& lock) REQUIRES(mMutex);
167 const sp<EventThreadConnection>& connection) const REQUIRES(mMutex);
169 const DisplayEventConsumers& consumers) REQUIRES(mMutex);
172 REQUIRES(mMutex);
178 VSyncSource* mVSyncSource GUARDED_BY(mMutex) = nullptr;
179 std::unique_ptr<VSyncSource> mVSyncSourceUnique GUARDED_BY(mMutex) = nullptr;
185 mutable std::mutex mMutex; variable
188 std::vector<wp<EventThreadConnection>> mDisplayEventConnections GUARDED_BY(mMutex);
189 std::deque<DisplayEventReceiver::Event> mPendingEvents GUARDED_BY(mMutex);
206 std::optional<VSyncState> mVSyncState GUARDED_BY(mMutex);
[all …]
DIdleTimer.cpp35 std::lock_guard<std::mutex> lock(mMutex); in start()
43 std::lock_guard<std::mutex> lock(mMutex); in stop()
57 std::lock_guard<std::mutex> lock(mMutex); in loop()
63 mCondition.wait(mMutex); in loop()
76 std::lock_guard<std::mutex> lock(mMutex); in loop()
86 if (waitTime > zero) mCondition.wait_for(mMutex, waitTime); in loop()
105 std::lock_guard<std::mutex> lock(mMutex); in reset()
DDispSync.cpp79 Mutex::Autolock lock(mMutex); in updateModel()
116 Mutex::Autolock lock(mMutex); in stop()
122 Mutex::Autolock lock(mMutex); in lockModel()
128 Mutex::Autolock lock(mMutex); in unlockModel()
143 Mutex::Autolock lock(mMutex); in threadLoop()
156 err = mCond.wait(mMutex); in threadLoop()
173 err = mCond.wait(mMutex); in threadLoop()
176 err = mCond.waitRelative(mMutex, targetTime - now); in threadLoop()
215 Mutex::Autolock lock(mMutex); in addEventListener()
267 Mutex::Autolock lock(mMutex); in removeEventListener()
[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;
DSurfaceTextureGLThreadToGL.h112 Mutex::Autolock lock(mMutex); in waitForFrame()
115 mFrameAvailableCondition.wait(mMutex); in waitForFrame()
125 Mutex::Autolock lock(mMutex); in finishFrame()
134 Mutex::Autolock lock(mMutex); in onFrameAvailable()
139 mFrameFinishCondition.wait(mMutex); in onFrameAvailable()
149 Mutex mMutex; variable
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/base/cmds/statsd/src/metrics/
DMetricProducer.h108 std::lock_guard<std::mutex> lock(mMutex); in notifyAppUpgrade()
127 std::lock_guard<std::mutex> lock(mMutex); in onMatchedLogEvent()
132 std::lock_guard<std::mutex> lock(mMutex); in onConditionChanged()
137 std::lock_guard<std::mutex> lock(mMutex); in onSlicedConditionMayChange()
142 std::lock_guard<std::mutex> lock(mMutex); in isConditionSliced()
154 std::lock_guard<std::mutex> lock(mMutex); in onDumpReport()
160 std::lock_guard<std::mutex> lock(mMutex); in clearPastBuckets()
165 std::lock_guard<std::mutex> lock(mMutex); in dumpStates()
172 std::lock_guard<std::mutex> lock(mMutex); in byteSize()
179 std::lock_guard<std::mutex> lock(mMutex); in addAnomalyTracker()
[all …]
/frameworks/native/services/surfaceflinger/
DTransactionCompletedThread.cpp49 std::lock_guard lock(mMutex); in ~TransactionCompletedThread()
59 std::lock_guard lock(mMutex); in ~TransactionCompletedThread()
67 std::lock_guard lock(mMutex); in run()
80 std::lock_guard lock(mMutex); in addCallback()
101 std::lock_guard lock(mMutex); in registerPendingCallbackHandle()
122 std::lock_guard lock(mMutex); in addPresentedCallbackHandles()
163 std::lock_guard lock(mMutex); in addUnpresentedCallbackHandle()
212 std::lock_guard<std::mutex> lock(mMutex); in addPresentFence()
217 std::lock_guard lock(mMutex); in sendCallbacks()
224 std::lock_guard lock(mMutex); in threadMain()
[all …]
DTransactionCompletedThread.h94 TransactionStats** outTransactionStats) REQUIRES(mMutex);
96 status_t addCallbackHandle(const sp<CallbackHandle>& handle) REQUIRES(mMutex);
121 std::mutex mMutex; variable
128 mPendingTransactions GUARDED_BY(mMutex);
131 mCompletedTransactions GUARDED_BY(mMutex);
133 bool mRunning GUARDED_BY(mMutex) = false;
134 bool mKeepRunning GUARDED_BY(mMutex) = true;
136 sp<Fence> mPresentFence GUARDED_BY(mMutex);
DBufferLayerConsumer.cpp85 Mutex::Autolock lock(mMutex); in setDefaultBufferSize()
97 Mutex::Autolock lock(mMutex); in setContentsChangedListener()
106 Mutex::Autolock lock(mMutex); in updateTexImage()
167 Mutex::Autolock lock(mMutex); in bindTextureImage()
195 Mutex::Autolock lock(mMutex); in releasePendingBuffer()
206 Mutex::Autolock lock(mMutex); in getPrevFinalReleaseFence()
303 Mutex::Autolock lock(mMutex); in getTransformMatrix()
308 Mutex::Autolock lock(mMutex); in setFilteringEnabled()
341 Mutex::Autolock lock(mMutex); in getTimestamp()
347 Mutex::Autolock lock(mMutex); in getCurrentDataSpace()
[all …]
DBarrier.h33 std::lock_guard<std::mutex> lock(mMutex); in open()
40 std::lock_guard<std::mutex> lock(mMutex); in close()
48 std::unique_lock<std::mutex> lock(mMutex); in wait()
52 mutable std::mutex mMutex;
54 int mIsOpen GUARDED_BY(mMutex){false}; in GUARDED_BY() argument
DFrameTracker.cpp41 Mutex::Autolock lock(mMutex); in setDesiredPresentTime()
46 Mutex::Autolock lock(mMutex); in setFrameReadyTime()
52 Mutex::Autolock lock(mMutex); in setFrameReadyFence()
58 Mutex::Autolock lock(mMutex); in setActualPresentTime()
64 Mutex::Autolock lock(mMutex); in setActualPresentFence()
70 Mutex::Autolock lock(mMutex); in setDisplayRefreshPeriod()
75 Mutex::Autolock lock(mMutex); in advanceFrame()
102 Mutex::Autolock lock(mMutex); in clearStats()
117 Mutex::Autolock lock(mMutex); in getStats()
143 Mutex::Autolock lock(mMutex); in logAndResetStats()
[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/gui/
DConsumerBase.cpp83 Mutex::Autolock lock(mMutex); in ~ConsumerBase()
135 Mutex::Autolock lock(mMutex); in onBuffersReleased()
158 Mutex::Autolock lock(mMutex); in abandon()
181 Mutex::Autolock _l(mMutex); in isAbandoned()
186 Mutex::Autolock _l(mMutex); in setName()
204 Mutex::Autolock lock(mMutex); in detachBuffer()
223 Mutex::Autolock _l(mMutex); in setDefaultBufferSize()
232 Mutex::Autolock _l(mMutex); in setDefaultBufferFormat()
242 Mutex::Autolock _l(mMutex); in setDefaultBufferDataSpace()
251 Mutex::Autolock lock(mMutex); in setConsumerUsageBits()
[all …]
/frameworks/base/libs/hwui/surfacetexture/
DSurfaceTexture.cpp89 Mutex::Autolock lock(mMutex); in setDefaultBufferSize()
102 Mutex::Autolock lock(mMutex); in updateTexImage()
116 Mutex::Autolock lock(mMutex); in releaseTexImage()
163 Mutex::Autolock lock(mMutex); in detachFromContext()
186 Mutex::Autolock lock(mMutex); in attachToContext()
210 Mutex::Autolock _l(mMutex); in attachToView()
230 Mutex::Autolock _l(mMutex); in detachFromView()
253 Mutex::Autolock lock(mMutex); in getTransformMatrix()
258 Mutex::Autolock lock(mMutex); in setFilteringEnabled()
403 Mutex::Autolock lock(mMutex); in getTimestamp()
[all …]
/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/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/base/packages/SystemUI/src/com/android/systemui/
DForegroundServiceController.java35 private final Object mMutex = new Object(); field in ForegroundServiceController
46 synchronized (mMutex) { in isDisclosureNeededForUser()
58 synchronized (mMutex) { in isSystemAlertWarningNeeded()
71 synchronized (mMutex) { in getStandardLayoutKey()
83 synchronized (mMutex) { in getAppOps()
98 synchronized (mMutex) { in onAppOpChanged()
123 synchronized (mMutex) { in updateUserState()
/frameworks/base/cmds/statsd/src/config/
DConfigManager.cpp64 lock_guard<mutex> lock(mMutex); in AddListener()
71 lock_guard <mutex> lock(mMutex); in UpdateConfig()
118 lock_guard<mutex> lock(mMutex); in SetConfigReceiver()
123 lock_guard<mutex> lock(mMutex); in RemoveConfigReceiver()
129 lock_guard<mutex> lock(mMutex); in SetActiveConfigsChangedReceiver()
134 lock_guard<mutex> lock(mMutex); in RemoveActiveConfigsChangedReceiver()
141 lock_guard <mutex> lock(mMutex); in RemoveConfig()
187 lock_guard <mutex> lock(mMutex); in RemoveConfigs()
226 lock_guard <mutex> lock(mMutex); in RemoveAllConfigs()
254 lock_guard<mutex> lock(mMutex); in GetAllConfigKeys()
[all …]
/frameworks/native/libs/renderengine/gl/
DImageManager.h47 EXCLUDES(mMutex);
49 void releaseAsync(uint64_t bufferId, const std::shared_ptr<Barrier>& barrier) EXCLUDES(mMutex);
66 std::mutex mMutex; variable
67 std::queue<QueueEntry> mQueue GUARDED_BY(mMutex);
69 bool mRunning GUARDED_BY(mMutex) = true;
/frameworks/av/media/libstagefright/
DMediaSync.cpp52 mMutex(), in MediaSync()
90 Mutex::Autolock lock(mMutex); in setSurface()
152 Mutex::Autolock lock(mMutex); in setAudioTrack()
197 Mutex::Autolock lock(mMutex); in createInputSurface()
262 Mutex::Autolock lock(mMutex); in getPlayTimeForPendingAudioFrames()
303 Mutex::Autolock lock(mMutex); in updateQueuedAudioData()
342 Mutex::Autolock lock(mMutex); in setName()
347 Mutex::Autolock lock(mMutex); in flush()
364 Mutex::Autolock lock(mMutex); in setVideoFrameRateHint()
375 Mutex::Autolock lock(mMutex); in getVideoFrameRate()
[all …]

12345678