Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 25 of 363) sorted by relevance

12345678910>>...15

/frameworks/native/libs/renderengine/gl/
DImageManager.cpp48 std::lock_guard<std::mutex> lock(mMutex); in ~ImageManager()
61 std::lock_guard<std::mutex> lock(barrier->mutex); in cacheAsync()
77 std::lock_guard<std::mutex> lock(barrier->mutex); in cache()
78 barrier->condition.wait(barrier->mutex, in cache()
79 [&]() REQUIRES(barrier->mutex) { return barrier->isOpen; }); in cache()
91 std::lock_guard<std::mutex> lock(mMutex); in queueOperation()
102 std::lock_guard<std::mutex> lock(mMutex); in threadMain()
108 std::lock_guard<std::mutex> lock(mMutex); in threadMain()
135 std::lock_guard<std::mutex> entryLock(entry.barrier->mutex); in threadMain()
DImageManager.h35 std::mutex mutex; member
37 bool isOpen GUARDED_BY(mutex) = false;
38 status_t result GUARDED_BY(mutex) = NO_ERROR;
66 std::mutex mMutex;
/frameworks/base/libs/usb/tests/accessorytest/
Daudio.c47 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
58 pthread_mutex_lock(&mutex); in get_empty()
61 pthread_cond_wait(&empty_cond, &mutex); in get_empty()
71 pthread_mutex_unlock(&mutex); in get_empty()
77 pthread_mutex_lock(&mutex); in put_empty()
85 pthread_mutex_unlock(&mutex); in put_empty()
92 pthread_mutex_lock(&mutex); in get_full()
95 pthread_cond_wait(&full_cond, &mutex); in get_full()
105 pthread_mutex_unlock(&mutex); in get_full()
111 pthread_mutex_lock(&mutex); in put_full()
[all …]
/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/base/cmds/statsd/src/guardrail/
DStatsdStats.cpp143 lock_guard<std::mutex> lock(mLock); in noteConfigReceived()
181 lock_guard<std::mutex> lock(mLock); in noteConfigRemoved()
193 lock_guard<std::mutex> lock(mLock); in noteConfigReset()
199 lock_guard<std::mutex> lock(mLock); in noteLogLost()
211 lock_guard<std::mutex> lock(mLock); in noteBroadcastSent()
228 lock_guard<std::mutex> lock(mLock); in noteActiveStatusChanged()
247 lock_guard<std::mutex> lock(mLock); in noteActivationBroadcastGuardrailHit()
260 lock_guard<std::mutex> lock(mLock); in noteEventQueueOverflow()
276 lock_guard<std::mutex> lock(mLock); in noteDataDropped()
296 lock_guard<std::mutex> lock(mLock); in noteMetricsReportSent()
[all …]
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_hwc.cpp260 std::unique_lock<std::mutex> lock(mutex_); in registerEventCallback()
278 std::lock_guard<std::mutex> guard(mutex_); in unregisterEventCallback()
295 std::lock_guard<std::mutex> guard(mutex_); in destroyVirtualDisplay()
307 std::lock_guard<std::mutex> guard(mutex_); in createLayer()
318 std::lock_guard<std::mutex> guard(mutex_); in destroyLayer()
328 std::lock_guard<std::mutex> guard(mutex_); in getActiveConfig()
339 std::lock_guard<std::mutex> guard(mutex_); in getClientTargetSupport()
356 std::lock_guard<std::mutex> guard(mutex_); in getDisplayAttribute()
406 std::lock_guard<std::mutex> guard(mutex_); in getDisplayConfigs()
421 std::lock_guard<std::mutex> guard(mutex_); in getDisplayType()
[all …]
/frameworks/av/media/codec2/vndk/
DC2Store.cpp88 std::mutex _mComponentStoreSetLock; // protects the entire updating _mComponentStore and its
90 std::mutex _mComponentStoreReadLock; // must protect only read/write of _mComponentStore
133 std::mutex gIonAllocatorMutex;
194 std::lock_guard<std::mutex> lock(_mComponentStoreSetLock); in setComponentStore()
196 std::lock_guard<std::mutex> lock(_mComponentStoreReadLock); in setComponentStore()
201 std::lock_guard<std::mutex> lock(gIonAllocatorMutex); in setComponentStore()
210 std::lock_guard<std::mutex> lock(gIonAllocatorMutex); in fetchIonAllocator()
215 std::lock_guard<std::mutex> lock(_mComponentStoreReadLock); in fetchIonAllocator()
226 static std::mutex mutex; in fetchGrallocAllocator() local
228 std::lock_guard<std::mutex> lock(mutex); in fetchGrallocAllocator()
[all …]
/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/av/media/mtp/
DPosixAsyncIO.cpp32 std::mutex gLock;
40 std::unique_lock<std::mutex> lk(gLock); in work_func()
57 std::unique_lock<std::mutex> lk(aiocbp->lock); in work_func()
72 std::unique_lock<std::mutex> lk(gLock); in aio_add()
85 std::unique_lock<std::mutex> lk(gLock); in aiocb()
99 std::unique_lock<std::mutex> lk(gLock); in ~aiocb()
135 std::unique_lock<std::mutex> lk(aiocbp[i]->lock); in aio_suspend()
DMtpDevice.cpp330 std::lock_guard<std::mutex> lg(mMutex); in openSession()
356 std::lock_guard<std::mutex> lg(mMutex); in getDeviceInfo()
375 std::lock_guard<std::mutex> lg(mMutex); in getStorageIDs()
390 std::lock_guard<std::mutex> lg(mMutex); in getStorageInfo()
411 std::lock_guard<std::mutex> lg(mMutex); in getObjectHandles()
429 std::lock_guard<std::mutex> lg(mMutex); in getObjectInfo()
451 std::lock_guard<std::mutex> lg(mMutex); in getThumbnail()
466 std::lock_guard<std::mutex> lg(mMutex); in sendObjectInfo()
520 std::lock_guard<std::mutex> lg(mMutex); in sendObject()
540 std::lock_guard<std::mutex> lg(mMutex); in deleteObject()
[all …]
/frameworks/av/services/oboeservice/
DAAudioClientTracker.cpp76 std::lock_guard<std::mutex> lock(mLock); in registerClient()
93 std::lock_guard<std::mutex> lock(mLock); in unregisterClient()
98 std::lock_guard<std::mutex> lock(mLock); in getStreamCount()
111 std::lock_guard<std::mutex> lock(mLock); in registerClientStream()
128 std::lock_guard<std::mutex> lock(mLock); in unregisterClientStream()
147 std::lock_guard<std::mutex> lock(mLock); in getStreamCount()
153 std::lock_guard<std::mutex> lock(mLock); in registerClientStream()
160 std::lock_guard<std::mutex> lock(mLock); in unregisterClientStream()
174 std::lock_guard<std::mutex> lock(mLock); in binderDied()
/frameworks/av/media/bufferpool/1.0/
DClientManager.cpp63 std::mutex mLock;
72 std::lock_guard<std::mutex> lock(mLock); in getCookie()
137 std::mutex mMutex;
151 std::mutex mMutex;
166 std::unique_lock<std::mutex> lock(mCache.mMutex); in registerSender()
172 std::lock_guard<std::mutex> lock(mActive.mMutex); in registerSender()
201 std::lock_guard<std::mutex> lock(mActive.mMutex); in registerSender()
226 std::lock_guard<std::mutex> lock(mActive.mMutex); in registerSender()
279 std::lock_guard<std::mutex> lock(mCache.mMutex); in create()
284 std::lock_guard<std::mutex> lock(mActive.mMutex); in create()
[all …]
/frameworks/native/services/surfaceflinger/
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;
/frameworks/native/libs/gui/tests/
DRegionSampling_test.cpp67 std::mutex mutable mutex_;
140 std::unique_lock<decltype(mutex)> lk(mutex); in onSampleCollected()
146 std::unique_lock<decltype(mutex)> lk(mutex); in wait_event()
151 std::unique_lock<decltype(mutex)> lk(mutex); in luma()
156 std::unique_lock<decltype(mutex)> lk(mutex); in reset()
162 std::mutex mutex; member
/frameworks/av/media/bufferpool/2.0/
DClientManager.cpp65 std::mutex mLock;
74 std::lock_guard<std::mutex> lock(mLock); in getCookie()
141 std::mutex mMutex;
155 std::mutex mMutex;
173 std::unique_lock<std::mutex> lock(mCache.mMutex); in registerSender()
179 std::lock_guard<std::mutex> lock(mActive.mMutex); in registerSender()
209 std::lock_guard<std::mutex> lock(mActive.mMutex); in registerSender()
234 std::lock_guard<std::mutex> lock(mActive.mMutex); in registerSender()
288 std::lock_guard<std::mutex> lock(mCache.mMutex); in create()
294 std::lock_guard<std::mutex> lock(mActive.mMutex); in create()
[all …]
/frameworks/av/services/audioflinger/
DNBAIO_Tee.h219 std::lock_guard<std::mutex> _l(mLock); in set()
231 std::lock_guard<std::mutex> _l(mLock); in setId()
240 std::lock_guard<std::mutex> _l(mLock); in dump()
271 mutable std::mutex mLock;
284 std::lock_guard<std::mutex> _l(mLock); in add()
290 std::lock_guard<std::mutex> _l(mLock); in remove()
298 std::lock_guard<std::mutex> _l(mLock); in dump()
307 std::mutex mLock;
/frameworks/native/services/surfaceflinger/Scheduler/
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()
76 std::lock_guard<std::mutex> lock(mMutex); in loop()
105 std::lock_guard<std::mutex> lock(mMutex); in reset()
DEventThread.cpp177 std::unique_lock<std::mutex> lock(mMutex); in EventThread()
200 std::lock_guard<std::mutex> lock(mMutex); in ~EventThread()
208 std::lock_guard<std::mutex> lock(mMutex); in setPhaseOffset()
219 std::lock_guard<std::mutex> lock(mMutex); in registerDisplayEventConnection()
248 std::lock_guard<std::mutex> lock(mMutex); in setVsyncRate()
262 std::lock_guard<std::mutex> lock(mMutex); in requestNextVsync()
271 std::lock_guard<std::mutex> lock(mMutex); in onScreenReleased()
281 std::lock_guard<std::mutex> lock(mMutex); in onScreenAcquired()
291 std::lock_guard<std::mutex> lock(mMutex); in onVSyncEvent()
299 std::lock_guard<std::mutex> lock(mMutex); in onHotplugReceived()
[all …]
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.cpp74 std::lock_guard<std::mutex> lock(mMutex); in miniDump()
85 std::lock_guard<std::mutex> lock(mMutex); in incrementTotalFrames()
94 std::lock_guard<std::mutex> lock(mMutex); in incrementMissedFrames()
103 std::lock_guard<std::mutex> lock(mMutex); in incrementClientCompositionFrames()
264 std::lock_guard<std::mutex> lock(mMutex); in setPostTime()
302 std::lock_guard<std::mutex> lock(mMutex); in setLatchTime()
320 std::lock_guard<std::mutex> lock(mMutex); in setDesiredTime()
338 std::lock_guard<std::mutex> lock(mMutex); in setAcquireTime()
358 std::lock_guard<std::mutex> lock(mMutex); in setAcquireFence()
376 std::lock_guard<std::mutex> lock(mMutex); in setPresentTime()
[all …]
/frameworks/native/libs/gui/
DBufferQueueConsumer.cpp61 std::unique_lock<std::mutex> lock(mCore->mMutex); in acquireBuffer()
290 std::lock_guard<std::mutex> lock(mCore->mMutex); in detachBuffer()
334 std::lock_guard<std::mutex> lock(mCore->mMutex); in attachBuffer()
426 std::lock_guard<std::mutex> lock(mCore->mMutex); in releaseBuffer()
491 std::lock_guard<std::mutex> lock(mCore->mMutex); in connect()
509 std::lock_guard<std::mutex> lock(mCore->mMutex); in disconnect()
533 std::lock_guard<std::mutex> lock(mCore->mMutex); in getReleasedBuffers()
575 std::lock_guard<std::mutex> lock(mCore->mMutex); in setDefaultBufferSize()
589 std::lock_guard<std::mutex> lock(mCore->mMutex); in setMaxBufferCount()
629 std::unique_lock<std::mutex> lock(mCore->mMutex); in setMaxAcquiredBufferCount()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DCommonPoolTests.cpp58 std::mutex mutex; in TEST() local
65 std::unique_lock lock{mutex}; in TEST()
76 std::unique_lock lock{mutex}; in TEST()
87 std::unique_lock lock{mutex}; in TEST()
101 std::mutex lock; in TEST()
/frameworks/native/opengl/libs/EGL/
Degl_cache.cpp80 std::lock_guard<std::mutex> lock(mMutex); in initialize()
118 std::lock_guard<std::mutex> lock(mMutex); in terminate()
127 std::lock_guard<std::mutex> lock(mMutex); in setBlob()
142 std::lock_guard<std::mutex> lock(mMutex); in setBlob()
155 std::lock_guard<std::mutex> lock(mMutex); in getBlob()
170 std::lock_guard<std::mutex> lock(mMutex); in setCacheFilename()
Degl_display.cpp108 std::lock_guard<std::mutex> _l(lock); in addObject()
113 std::lock_guard<std::mutex> _l(lock); in removeObject()
118 std::lock_guard<std::mutex> _l(lock); in getObject()
216 std::lock_guard<std::mutex> _l(lock); in getPlatformDisplay()
264 std::unique_lock<std::mutex> _l(refLock); in initialize()
289 std::lock_guard<std::mutex> _l(lock); in initialize()
433 std::unique_lock<std::mutex> _l(refLock); in initialize()
444 std::unique_lock<std::mutex> _rl(refLock); in terminate()
465 std::lock_guard<std::mutex> _l(lock); in terminate()
500 std::unique_lock<std::mutex> _rl(refLock); in terminate()
[all …]
/frameworks/base/services/core/jni/BroadcastRadio/
DNativeCallbackThread.cpp27 using std::mutex;
54 unique_lock<mutex> lk(mQueueMutex); in threadLoop()
85 lock_guard<mutex> lk(mQueueMutex); in enqueue()
101 lock_guard<mutex> lk(mQueueMutex); in stop()
/frameworks/native/libs/ui/
DFenceTime.cpp88 std::lock_guard<std::mutex> lock(mMutex); in applyTrustedSnapshot()
115 std::lock_guard<std::mutex> lock(mMutex); in getSignalTime()
138 std::lock_guard<std::mutex> lock(mMutex); in getSignalTime()
160 std::lock_guard<std::mutex> lock(mMutex); in getSnapshot()
182 std::lock_guard<std::mutex> lock(mMutex); in signalForTest()
263 std::lock_guard<std::mutex> lock(mMutex); in push()
282 std::lock_guard<std::mutex> lock(mMutex); in updateSignalTimes()
307 std::lock_guard<std::mutex> lock(mMutex); in createFenceTimeForTest()
319 std::lock_guard<std::mutex> lock(mMutex); in signalAllForTest()

12345678910>>...15