/frameworks/rs/ |
D | rsSignal.cpp | 29 pthread_mutex_destroy(&mMutex); in ~Signal() 34 int status = pthread_mutex_init(&mMutex, nullptr); in init() 43 pthread_mutex_destroy(&mMutex); in init() 53 status = pthread_mutex_lock(&mMutex); in set() 66 status = pthread_mutex_unlock(&mMutex); in set() 76 status = pthread_mutex_lock(&mMutex); in wait() 84 status = pthread_cond_wait(&mCondition, &mMutex); in wait() 87 status = pthread_cond_timeout_np(&mCondition, &mMutex, timeout / 1000000); in wait() 90 status = pthread_cond_wait(&mCondition, &mMutex); in wait() 106 status = pthread_mutex_unlock(&mMutex); in wait()
|
D | rsMutex.cpp | 27 pthread_mutex_destroy(&mMutex); in ~Mutex() 31 int status = pthread_mutex_init(&mMutex, nullptr); in init() 41 status = pthread_mutex_lock(&mMutex); in lock() 51 status = pthread_mutex_unlock(&mMutex); in unlock()
|
/frameworks/av/media/libmedia/ |
D | JetPlayer.cpp | 103 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() 172 Mutex::Autolock l(mMutex); in render() 180 mMutex.lock(); // [[[[[[[[ LOCK --------------------------------------- in render() 183 mMutex.unlock(); in render() 197 mCondition.wait(mMutex); in render() 222 mMutex.unlock(); // UNLOCK ]]]]]]]] ----------------------------------- in render() 253 mMutex.lock(); in render() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | DisconnectWaiter.h | 40 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;
|
D | SurfaceTextureGLThreadToGL.h | 112 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
|
D | FrameWaiter.h | 31 Mutex::Autolock lock(mMutex); in waitForFrame() 33 mCondition.wait(mMutex); in waitForFrame() 39 Mutex::Autolock lock(mMutex); in onFrameAvailable() 46 Mutex mMutex; variable
|
/frameworks/av/media/libstagefright/ |
D | SurfaceMediaSource.cpp | 89 Mutex::Autolock lock(mMutex); in getTimestamp() 96 Mutex::Autolock lock(mMutex); in setFrameAvailableListener() 112 Mutex::Autolock lock(mMutex); in dump() 121 Mutex::Autolock lock(mMutex); in setFrameRate() 137 Mutex::Autolock lock(mMutex); in getFrameRate() 145 Mutex::Autolock lock(mMutex); in start() 187 Mutex::Autolock lock(mMutex); in setMaxAcquiredBufferCount() 197 Mutex::Autolock lock(mMutex); in setUseAbsoluteTimestamps() 206 Mutex::Autolock lock(mMutex); in stop() 225 mMediaBuffersAvailableCondition.wait(mMutex); in stop() [all …]
|
D | MediaSync.cpp | 50 mMutex(), in MediaSync() 87 Mutex::Autolock lock(mMutex); in setSurface() 149 Mutex::Autolock lock(mMutex); in setAudioTrack() 194 Mutex::Autolock lock(mMutex); in createInputSurface() 259 Mutex::Autolock lock(mMutex); in getPlayTimeForPendingAudioFrames() 300 Mutex::Autolock lock(mMutex); in updateQueuedAudioData() 339 Mutex::Autolock lock(mMutex); in setName() 344 Mutex::Autolock lock(mMutex); in flush() 361 Mutex::Autolock lock(mMutex); in setVideoFrameRateHint() 372 Mutex::Autolock lock(mMutex); in getVideoFrameRate() [all …]
|
/frameworks/native/libs/gui/ |
D | ConsumerBase.cpp | 81 Mutex::Autolock lock(mMutex); in ~ConsumerBase() 107 Mutex::Autolock lock(mMutex); in onFrameAvailable() 122 Mutex::Autolock lock(mMutex); in onFrameReplaced() 133 Mutex::Autolock lock(mMutex); in onBuffersReleased() 156 Mutex::Autolock lock(mMutex); in abandon() 179 Mutex::Autolock _l(mMutex); in isAbandoned() 186 Mutex::Autolock lock(mMutex); in setFrameAvailableListener() 192 Mutex::Autolock lock(mMutex); in detachBuffer() 211 Mutex::Autolock _l(mMutex); in setDefaultBufferSize() 220 Mutex::Autolock _l(mMutex); in setDefaultBufferFormat() [all …]
|
D | Surface.cpp | 241 Mutex::Autolock lock(mMutex); in dequeueBuffer() 272 Mutex::Autolock lock(mMutex); in dequeueBuffer() 321 Mutex::Autolock lock(mMutex); in cancelBuffer() 359 Mutex::Autolock lock(mMutex); in lockBuffer_DEPRECATED() 366 Mutex::Autolock lock(mMutex); in queueBuffer() 501 Mutex::Autolock lock(mMutex); in query() 748 Mutex::Autolock lock(mMutex); in connect() 780 Mutex::Autolock lock(mMutex); in disconnect() 811 Mutex::Autolock lock(mMutex); in detachNextBuffer() 843 Mutex::Autolock lock(mMutex); in attachBuffer() [all …]
|
D | BufferQueueConsumer.cpp | 55 Mutex::Autolock lock(mCore->mMutex); in acquireBuffer() 280 Mutex::Autolock lock(mCore->mMutex); in detachBuffer() 324 Mutex::Autolock lock(mCore->mMutex); in attachBuffer() 416 Mutex::Autolock lock(mCore->mMutex); in releaseBuffer() 479 Mutex::Autolock lock(mCore->mMutex); in connect() 497 Mutex::Autolock lock(mCore->mMutex); in disconnect() 521 Mutex::Autolock lock(mCore->mMutex); in getReleasedBuffers() 563 Mutex::Autolock lock(mCore->mMutex); in setDefaultBufferSize() 577 Mutex::Autolock lock(mCore->mMutex); in setMaxBufferCount() 617 Mutex::Autolock lock(mCore->mMutex); in setMaxAcquiredBufferCount() [all …]
|
D | BufferQueueProducer.cpp | 61 Mutex::Autolock lock(mCore->mMutex); in requestBuffer() 96 Mutex::Autolock lock(mCore->mMutex); in setMaxDequeuedBufferCount() 175 Mutex::Autolock lock(mCore->mMutex); in setAsyncMode() 330 mCore->mMutex, mDequeueTimeout); in waitForFreeSlotThenRelock() 335 mCore->mDequeueCondition.wait(mCore->mMutex); in waitForFreeSlotThenRelock() 348 Mutex::Autolock lock(mCore->mMutex); in dequeueBuffer() 376 Mutex::Autolock lock(mCore->mMutex); in dequeueBuffer() 501 Mutex::Autolock lock(mCore->mMutex); in dequeueBuffer() 559 Mutex::Autolock lock(mCore->mMutex); in detachBuffer() 618 Mutex::Autolock lock(mCore->mMutex); in detachNextBuffer() [all …]
|
D | StreamSplitter.cpp | 58 : mIsAbandoned(false), mMutex(), mReleaseCondition(), in StreamSplitter() 80 Mutex::Autolock lock(mMutex); in addOutput() 98 Mutex::Autolock lock(mMutex); in setName() 104 Mutex::Autolock lock(mMutex); in onFrameAvailable() 114 mReleaseCondition.wait(mMutex); in onFrameAvailable() 190 Mutex::Autolock lock(mMutex); in onBufferReleasedByOutput() 272 Mutex::Autolock lock(mSplitter->mMutex); in binderDied()
|
D | GLConsumer.cpp | 210 Mutex::Autolock lock(mMutex); in setDefaultBufferSize() 223 Mutex::Autolock lock(mMutex); in updateTexImage() 271 Mutex::Autolock lock(mMutex); in releaseTexImage() 594 Mutex::Autolock lock(mMutex); in detachFromContext() 639 Mutex::Autolock lock(mMutex); in attachToContext() 777 Mutex::Autolock lock(mMutex); in getTransformMatrix() 782 Mutex::Autolock lock(mMutex); in setFilteringEnabled() 909 Mutex::Autolock lock(mMutex); in getTimestamp() 915 Mutex::Autolock lock(mMutex); in getFrameNumber() 920 Mutex::Autolock lock(mMutex); in getCurrentBuffer() [all …]
|
/frameworks/wilhelm/src/ |
D | ThreadPool.c | 98 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 …]
|
D | locks.c | 47 ok = pthread_mutex_trylock(&thiz->mMutex); in object_lock_exclusive_() 59 ok = pthread_mutex_timedlock(&thiz->mMutex, &ts); in object_lock_exclusive_() 92 ok = pthread_mutex_lock(&thiz->mMutex); in object_lock_exclusive_() 126 ok = pthread_mutex_lock(&thiz->mMutex); in object_lock_exclusive() 144 ok = pthread_mutex_unlock(&thiz->mMutex); in object_unlock_exclusive_() 151 ok = pthread_mutex_unlock(&thiz->mMutex); in object_unlock_exclusive() 241 ok = pthread_mutex_unlock(&thiz->mMutex); in object_unlock_exclusive_attributes_() 299 ok = pthread_cond_wait(&thiz->mCond, &thiz->mMutex); in object_cond_wait_() 310 ok = pthread_cond_wait(&thiz->mCond, &thiz->mMutex); in object_cond_wait()
|
/frameworks/native/services/surfaceflinger/ |
D | FrameTracker.cpp | 42 Mutex::Autolock lock(mMutex); in setDesiredPresentTime() 47 Mutex::Autolock lock(mMutex); in setFrameReadyTime() 52 Mutex::Autolock lock(mMutex); in setFrameReadyFence() 58 Mutex::Autolock lock(mMutex); in setActualPresentTime() 63 Mutex::Autolock lock(mMutex); in setActualPresentFence() 69 Mutex::Autolock lock(mMutex); in setDisplayRefreshPeriod() 74 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 …]
|
D | DispSync.cpp | 80 Mutex::Autolock lock(mMutex); in updateModel() 92 Mutex::Autolock lock(mMutex); in stop() 107 Mutex::Autolock lock(mMutex); in threadLoop() 120 err = mCond.wait(mMutex); in threadLoop() 138 err = mCond.wait(mMutex); in threadLoop() 142 err = mCond.waitRelative(mMutex, targetTime - now); in threadLoop() 183 Mutex::Autolock lock(mMutex); in addEventListener() 210 Mutex::Autolock lock(mMutex); in removeEventListener() 226 Mutex::Autolock lock(mMutex); in hasAnyEventListeners() 360 Mutex mMutex; member in android::DispSyncThread [all …]
|
D | EventControlThread.cpp | 28 Mutex::Autolock lock(mMutex); in setVsyncEnabled() 34 Mutex::Autolock lock(mMutex); in threadLoop() 46 status_t err = mCond.wait(mMutex); in threadLoop()
|
D | SurfaceFlingerConsumer.cpp | 40 Mutex::Autolock lock(mMutex); in updateTexImage() 114 Mutex::Autolock lock(mMutex); in bindTextureImage() 215 Mutex::Autolock lock(mMutex); in releasePendingBuffer() 237 Mutex::Autolock lock(mMutex); in setContentsChangedListener() 244 Mutex::Autolock lock(mMutex); in onSidebandStreamChanged()
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | AutoConditionLock.cpp | 21 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/av/services/camera/libcameraservice/api1/client2/ |
D | StreamingProcessor.cpp | 68 Mutex::Autolock m(mMutex); in setPreviewWindow() 82 Mutex::Autolock m(mMutex); in setRecordingWindow() 90 Mutex::Autolock m(mMutex); in haveValidPreviewWindow() 95 Mutex::Autolock m(mMutex); in haveValidRecordingWindow() 108 Mutex::Autolock m(mMutex); in updatePreviewRequest() 158 Mutex::Autolock m(mMutex); in updatePreviewStream() 226 Mutex::Autolock m(mMutex); in deletePreviewStream() 256 Mutex::Autolock m(mMutex); in getPreviewStreamId() 263 Mutex::Autolock m(mMutex); in updateRecordingRequest() 346 Mutex::Autolock m(mMutex); in updateRecordingStream() [all …]
|
/frameworks/av/services/camera/libcameraservice/gui/ |
D | RingBufferConsumer.cpp | 57 Mutex::Autolock _l(mMutex); in setName() 73 Mutex::Autolock _l(mMutex); in pinSelectedBuffer() 123 Mutex::Autolock _l(mMutex); in clear() 157 Mutex::Autolock _l(mMutex); in getLatestTimestamp() 273 Mutex::Autolock _l(mMutex); in onFrameAvailable() 326 Mutex::Autolock _l(mMutex); in unpinBuffer() 362 Mutex::Autolock _l(mMutex); in setDefaultBufferSize() 367 Mutex::Autolock _l(mMutex); in setDefaultBufferFormat() 372 Mutex::Autolock _l(mMutex); in setConsumerUsage()
|
/frameworks/wilhelm/src/desktop/ |
D | SndFile.c | 37 pthread_mutex_lock(&thiz->mMutex); in SndFile_Callback() 39 pthread_mutex_unlock(&thiz->mMutex); in SndFile_Callback() 48 pthread_mutex_unlock(&thiz->mMutex); in SndFile_Callback() 217 pthread_mutex_lock(&audioPlayer->mSndFile.mMutex); in audioPlayerTransportUpdate() 223 pthread_mutex_unlock(&audioPlayer->mSndFile.mMutex); in audioPlayerTransportUpdate() 254 ok = pthread_mutex_init(&thiz->mSndFile.mMutex, (const pthread_mutexattr_t *) NULL); in SndFile_Realize() 283 ok = pthread_mutex_destroy(&thiz->mSndFile.mMutex); in SndFile_Destroy()
|
/frameworks/av/media/mtp/ |
D | MtpDevice.cpp | 315 Mutex::Autolock autoLock(mMutex); in openSession() 341 Mutex::Autolock autoLock(mMutex); in getDeviceInfo() 360 Mutex::Autolock autoLock(mMutex); in getStorageIDs() 375 Mutex::Autolock autoLock(mMutex); in getStorageInfo() 396 Mutex::Autolock autoLock(mMutex); in getObjectHandles() 414 Mutex::Autolock autoLock(mMutex); in getObjectInfo() 436 Mutex::Autolock autoLock(mMutex); in getThumbnail() 451 Mutex::Autolock autoLock(mMutex); in sendObjectInfo() 503 Mutex::Autolock autoLock(mMutex); in sendObject() 533 Mutex::Autolock autoLock(mMutex); in deleteObject() [all …]
|