Home
last modified time | relevance | path

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

12345678910>>...18

/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/av/services/camera/libcameraservice/device3/
DCamera3OutputStreamInterface.cpp35 std::lock_guard<std::mutex> lock(mLock); in add()
40 std::lock_guard<std::mutex> lock(mLock); in remove()
45 std::lock_guard<std::mutex> lock(mLock); in get()
54 std::lock_guard<std::mutex> lock(mLock); in operator []()
59 std::lock_guard<std::mutex> lock(mLock); in size()
64 std::lock_guard<std::mutex> lock(mLock); in clear()
69 std::lock_guard<std::mutex> lock(mLock); in getStreamIds()
78 std::lock_guard<std::mutex> lock(other.mLock); in StreamSet()
DBufferUtils.cpp42 std::lock_guard<std::mutex> oLock(other.mInflightLock); in takeInflightBufferMap()
43 std::lock_guard<std::mutex> lock(mInflightLock); in takeInflightBufferMap()
52 std::lock_guard<std::mutex> oLock(other.mRequestedBuffersLock); in takeRequestedBufferMap()
53 std::lock_guard<std::mutex> lock(mRequestedBuffersLock); in takeRequestedBufferMap()
62 std::lock_guard<std::mutex> oLock(other.mBufferIdMapLock); in takeBufferCaches()
63 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in takeBufferCaches()
75 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in getBufferId()
90 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in tryCreateBufferCache()
97 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in removeInactiveBufferCaches()
110 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in removeOneBufferCache()
[all …]
DCamera3OfflineSession.cpp102 std::lock_guard<std::mutex> lock(mLock); in initialize()
132 std::lock_guard<std::mutex> il(mInterfaceLock); in dump()
143 std::lock_guard<std::mutex> il(mInterfaceLock); in disconnectImpl()
147 std::lock_guard<std::mutex> lock(mLock); in disconnectImpl()
160 std::lock_guard<std::mutex> lock(mRequestBufferInterfaceLock); in disconnectImpl()
184 std::lock_guard<std::mutex> lock(mLock); in disconnectImpl()
205 std::unique_lock<std::mutex> lk(mOutputLock); in waitForNextFrame()
218 std::lock_guard<std::mutex> l(mOutputLock); in getNextResult()
243 std::lock_guard<std::mutex> lock(mLock); in processCaptureResult_3_4()
266 std::lock_guard<std::mutex> lock(mProcessCaptureResultLock); in processCaptureResult_3_4()
[all …]
/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/media/jni/soundpool/
DSoundPool.cpp104 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in load()
111 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in unload()
129 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in play()
145 auto apiLock = std::make_unique<std::lock_guard<std::mutex>>(mApiLock); in autoPause()
152 auto apiLock = std::make_unique<std::lock_guard<std::mutex>>(mApiLock); in autoResume()
159 auto apiLock = std::make_unique<std::lock_guard<std::mutex>>(mApiLock); in mute()
166 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in pause()
175 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in resume()
184 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in stop()
195 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in setVolume()
[all …]
/frameworks/base/cmds/statsd/tests/utils/
DMultiConditionTrigger_test.cpp39 mutex lock; in TEST()
65 unique_lock<mutex> unique_lk(lock); in TEST()
80 mutex lock; in TEST()
92 unique_lock<mutex> unique_lk(lock); in TEST()
102 mutex lock; in TEST()
124 unique_lock<mutex> unique_lk(lock); in TEST()
133 mutex lock; in TEST()
151 unique_lock<mutex> unique_lk(lock); in TEST()
162 unique_lock<mutex> unique_lk(lock); in TEST()
/frameworks/base/cmds/statsd/src/guardrail/
DStatsdStats.cpp145 lock_guard<std::mutex> lock(mLock); in noteConfigReceived()
183 lock_guard<std::mutex> lock(mLock); in noteConfigRemoved()
195 lock_guard<std::mutex> lock(mLock); in noteConfigReset()
201 lock_guard<std::mutex> lock(mLock); in noteLogLost()
213 lock_guard<std::mutex> lock(mLock); in noteBroadcastSent()
230 lock_guard<std::mutex> lock(mLock); in noteActiveStatusChanged()
249 lock_guard<std::mutex> lock(mLock); in noteActivationBroadcastGuardrailHit()
262 lock_guard<std::mutex> lock(mLock); in noteEventQueueOverflow()
278 lock_guard<std::mutex> lock(mLock); in noteDataDropped()
298 lock_guard<std::mutex> lock(mLock); in noteMetricsReportSent()
[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()
110 std::lock_guard<std::mutex> lock(mLock); in registerClientStream()
119 std::lock_guard<std::mutex> lock(mLock); in unregisterClientStream()
132 std::lock_guard<std::mutex> lock(mLock); in setExclusiveEnabled()
137 std::lock_guard<std::mutex> lock(mLock); in isExclusiveEnabled()
165 std::lock_guard<std::mutex> lock(mLock); in getStreamCount()
171 std::lock_guard<std::mutex> lock(mLock); in registerClientStream()
178 std::lock_guard<std::mutex> lock(mLock); in unregisterClientStream()
[all …]
/frameworks/av/media/codec2/vndk/
DC2Store.cpp93 std::mutex _mComponentStoreSetLock; // protects the entire updating _mComponentStore and its
95 std::mutex _mComponentStoreReadLock; // must protect only read/write of _mComponentStore
144 std::mutex gIonAllocatorMutex;
205 std::lock_guard<std::mutex> lock(_mComponentStoreSetLock); in setComponentStore()
207 std::lock_guard<std::mutex> lock(_mComponentStoreReadLock); in setComponentStore()
212 std::lock_guard<std::mutex> lock(gIonAllocatorMutex); in setComponentStore()
221 std::lock_guard<std::mutex> lock(gIonAllocatorMutex); in fetchIonAllocator()
226 std::lock_guard<std::mutex> lock(_mComponentStoreReadLock); in fetchIonAllocator()
237 static std::mutex mutex; in fetchBlobAllocator() local
239 std::lock_guard<std::mutex> lock(mutex); in fetchBlobAllocator()
[all …]
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_hwc.cpp260 std::unique_lock<std::mutex> lock(mutex_); in registerEventCallback()
279 std::lock_guard<std::mutex> guard(mutex_); in unregisterEventCallback()
287 std::lock_guard<std::mutex> guard(mutex_); in destroyVirtualDisplay()
299 std::lock_guard<std::mutex> guard(mutex_); in createLayer()
310 std::lock_guard<std::mutex> guard(mutex_); in destroyLayer()
320 std::lock_guard<std::mutex> guard(mutex_); in getActiveConfig()
330 std::lock_guard<std::mutex> guard(mutex_); in getDisplayAttribute()
380 std::lock_guard<std::mutex> guard(mutex_); in getDisplayConfigs()
395 std::lock_guard<std::mutex> guard(mutex_); in getDisplayType()
412 std::lock_guard<std::mutex> guard(mutex_); in getDozeSupport()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
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()
154 std::mutex mutable mMutex;
172 std::lock_guard<std::mutex> lk(mMutex); in addPresentFence()
210 std::lock_guard<std::mutex> lk(mMutex); in setIgnorePresentFences()
[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()
77 std::lock_guard<std::mutex> lock(mMutex); in loop()
106 std::lock_guard<std::mutex> lock(mMutex); in reset()
/frameworks/base/cmds/statsd/src/config/
DConfigManager.cpp68 lock_guard<mutex> lock(thiz->mMutex); in configReceiverDied()
102 lock_guard<mutex> lock(thiz->mMutex); in activeConfigChangedReceiverDied()
135 lock_guard<mutex> lock(mMutex); in AddListener()
142 lock_guard <mutex> lock(mMutex); in UpdateConfig()
190 lock_guard<mutex> lock(mMutex); in SetConfigReceiver()
197 lock_guard<mutex> lock(mMutex); in RemoveConfigReceiver()
204 lock_guard<mutex> lock(mMutex); in SetActiveConfigsChangedReceiver()
212 lock_guard<mutex> lock(mMutex); in RemoveActiveConfigsChangedReceiver()
219 lock_guard <mutex> lock(mMutex); in RemoveConfig()
251 lock_guard <mutex> lock(mMutex); in RemoveConfigs()
[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()
/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/TimeStats/
DTimeStats.cpp94 std::lock_guard<std::mutex> lock(mMutex); in populateGlobalAtom()
125 std::lock_guard<std::mutex> lock(mMutex); in populateLayerAtom()
190 std::lock_guard<std::mutex> lock(mMutex); in ~TimeStats()
196 std::lock_guard<std::mutex> lock(mMutex); in onBootFinished()
240 std::lock_guard<std::mutex> lock(mMutex); in miniDump()
253 std::lock_guard<std::mutex> lock(mMutex); in incrementTotalFrames()
262 std::lock_guard<std::mutex> lock(mMutex); in incrementMissedFrames()
271 std::lock_guard<std::mutex> lock(mMutex); in incrementClientCompositionFrames()
280 std::lock_guard<std::mutex> lock(mMutex); in incrementClientCompositionReusedFrames()
289 std::lock_guard<std::mutex> lock(mMutex); in incrementRefreshRateSwitches()
[all …]
/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/libs/gui/
DBufferQueueConsumer.cpp85 std::unique_lock<std::mutex> lock(mCore->mMutex); in acquireBuffer()
315 std::lock_guard<std::mutex> lock(mCore->mMutex); in detachBuffer()
359 std::lock_guard<std::mutex> lock(mCore->mMutex); in attachBuffer()
451 std::lock_guard<std::mutex> lock(mCore->mMutex); in releaseBuffer()
516 std::lock_guard<std::mutex> lock(mCore->mMutex); in connect()
534 std::lock_guard<std::mutex> lock(mCore->mMutex); in disconnect()
558 std::lock_guard<std::mutex> lock(mCore->mMutex); in getReleasedBuffers()
600 std::lock_guard<std::mutex> lock(mCore->mMutex); in setDefaultBufferSize()
614 std::lock_guard<std::mutex> lock(mCore->mMutex); in setMaxBufferCount()
654 std::unique_lock<std::mutex> lock(mCore->mMutex); in setMaxAcquiredBufferCount()
[all …]
/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()
/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()

12345678910>>...18