Home
last modified time | relevance | path

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

12345678910

/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncPredictor.h42 bool addVsyncTimestamp(nsecs_t timestamp) final EXCLUDES(mMutex);
43 nsecs_t nextAnticipatedVSyncTimeFrom(nsecs_t timePoint) const final EXCLUDES(mMutex);
44 nsecs_t currentPeriod() const final EXCLUDES(mMutex);
45 void resetModel() final EXCLUDES(mMutex);
54 void setPeriod(nsecs_t period) final EXCLUDES(mMutex);
59 bool needsMoreSamples() const final EXCLUDES(mMutex);
66 VSyncPredictor::Model getVSyncPredictionModel() const EXCLUDES(mMutex);
68 bool isVSyncInPhase(nsecs_t timePoint, Fps frameRate) const final EXCLUDES(mMutex);
70 void dump(std::string& result) const final EXCLUDES(mMutex);
75 void clearTimestamps() REQUIRES(mMutex);
[all …]
DVSyncReactor.h57 void setIgnorePresentFencesInternal(bool ignore) REQUIRES(mMutex);
58 void updateIgnorePresentFencesInternal() REQUIRES(mMutex);
59 void startPeriodTransitionInternal(nsecs_t newPeriod) REQUIRES(mMutex);
60 void endPeriodTransition() REQUIRES(mMutex);
62 REQUIRES(mMutex);
68 mutable std::mutex mMutex; variable
69 bool mInternalIgnoreFences GUARDED_BY(mMutex) = false;
70 bool mExternalIgnoreFences GUARDED_BY(mMutex) = false;
71 std::vector<std::shared_ptr<android::FenceTime>> mUnfiredFences GUARDED_BY(mMutex);
73 bool mMoreSamplesNeeded GUARDED_BY(mMutex) = false;
[all …]
DVsyncModulator.h93 VsyncConfig getVsyncConfig() const EXCLUDES(mMutex);
95 [[nodiscard]] VsyncConfig setVsyncConfigSet(const VsyncConfigSet&) EXCLUDES(mMutex);
99 const sp<IBinder>& = {}) EXCLUDES(mMutex);
116 void binderDied(const wp<IBinder>&) override EXCLUDES(mMutex);
121 VsyncConfigType getNextVsyncConfigType() const REQUIRES(mMutex);
122 const VsyncConfig& getNextVsyncConfig() const REQUIRES(mMutex);
123 [[nodiscard]] VsyncConfig updateVsyncConfig() EXCLUDES(mMutex);
124 [[nodiscard]] VsyncConfig updateVsyncConfigLocked() REQUIRES(mMutex);
126 mutable std::mutex mMutex; variable
127 VsyncConfigSet mVsyncConfigSet GUARDED_BY(mMutex);
[all …]
DVSyncDispatchTimerQueue.h139 void setTimer(nsecs_t, nsecs_t) REQUIRES(mMutex);
140 void rearmTimer(nsecs_t now) REQUIRES(mMutex);
142 REQUIRES(mMutex);
143 void cancelTimer() REQUIRES(mMutex);
151 std::mutex mutable mMutex; variable
152 size_t mCallbackToken GUARDED_BY(mMutex) = 0;
154 CallbackMap mCallbacks GUARDED_BY(mMutex);
155 nsecs_t mIntendedWakeupTime GUARDED_BY(mMutex) = kInvalidTime;
158 nsecs_t mLastTimerCallback GUARDED_BY(mMutex) = kInvalidTime;
159 nsecs_t mLastTimerSchedule GUARDED_BY(mMutex) = kInvalidTime;
DDispSyncSource.cpp50 std::lock_guard lock(mMutex); in ~CallbackRepeater()
55 std::lock_guard lock(mMutex); in start()
68 std::lock_guard lock(mMutex); in stop()
75 std::lock_guard lock(mMutex); in dump()
88 std::lock_guard lock(mMutex); in callback()
95 std::lock_guard lock(mMutex); in callback()
110 mutable std::mutex mMutex; member in android::scheduler::CallbackRepeater
111 VSyncCallbackRegistration mRegistration GUARDED_BY(mMutex);
112 bool mStarted GUARDED_BY(mMutex) = false;
113 std::chrono::nanoseconds mWorkDuration GUARDED_BY(mMutex) = 0ns;
[all …]
/frameworks/native/libs/gui/include/gui/
DBLASTBufferQueue.h49 FrameEventHistoryDelta* outDelta) override REQUIRES(mMutex);
54 nsecs_t dequeueReadyTime) REQUIRES(mMutex);
58 void onSidebandStreamChanged() override REQUIRES(mMutex);
65 Mutex mMutex; variable
66 ConsumerFrameEventHistory mFrameEventHistory GUARDED_BY(mMutex);
67 std::queue<uint64_t> mDisconnectEvents GUARDED_BY(mMutex);
68 bool mCurrentlyConnected GUARDED_BY(mMutex);
69 bool mPreviouslyConnected GUARDED_BY(mMutex);
140 const std::optional<SurfaceComposerClient::Transaction*> transaction) REQUIRES(mMutex);
141 Rect computeCrop(const BufferItem& item) REQUIRES(mMutex);
[all …]
/frameworks/native/services/gpuservice/gpuwork/include/gpuwork/
DGpuWork.h70 void clearMapIfNeeded() REQUIRES(mMutex);
73 void clearMap() REQUIRES(mMutex);
88 std::mutex mMutex; variable
91 bpf::BpfMap<GpuIdUid, UidTrackingInfo> mGpuWorkMap GUARDED_BY(mMutex);
94 bpf::BpfMap<uint32_t, GlobalData> mGpuWorkGlobalDataMap GUARDED_BY(mMutex);
97 bool mIsTerminating GUARDED_BY(mMutex);
100 std::condition_variable mIsTerminatingConditionVariable GUARDED_BY(mMutex);
110 bool mStatsdRegistered GUARDED_BY(mMutex) = false;
127 std::chrono::steady_clock::time_point mPreviousMapClearTimePoint GUARDED_BY(mMutex);
/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/av/media/libmediatranscoding/transcoder/tests/
DTranscoderTestUtils.h88 std::unique_lock<std::mutex> lock(mMutex); in onTrackFormatAvailable()
94 std::unique_lock<std::mutex> lock(mMutex); in onTrackFinished()
100 std::unique_lock<std::mutex> lock(mMutex); in onTrackStopped()
107 std::unique_lock<std::mutex> lock(mMutex); in onTrackError()
115 std::unique_lock<std::mutex> lock(mMutex); in waitUntilFinished()
123 std::unique_lock<std::mutex> lock(mMutex); in waitUntilTrackFormatAvailable()
136 std::mutex mMutex; variable
147 std::unique_lock<std::mutex> lock(mMutex); in onFinished()
155 std::unique_lock<std::mutex> lock(mMutex); in onError()
165 std::unique_lock<std::mutex> lock(mMutex); in onProgressUpdate()
[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/
DHdrLayerInfoReporter.h51 void dispatchHdrLayerInfo(const HdrLayerInfo& info) EXCLUDES(mMutex);
54 void binderDied(const wp<IBinder>&) override EXCLUDES(mMutex);
57 void addListener(const sp<gui::IHdrLayerInfoListener>& listener) EXCLUDES(mMutex);
59 void removeListener(const sp<gui::IHdrLayerInfoListener>& listener) EXCLUDES(mMutex);
61 bool hasListeners() const EXCLUDES(mMutex) { in hasListeners()
62 std::scoped_lock lock(mMutex); in hasListeners()
67 mutable std::mutex mMutex;
74 std::unordered_map<wp<IBinder>, TrackedListener, WpHash> mListeners 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()
183 Mutex::Autolock lock(mMutex); in releasePendingBuffer()
194 Mutex::Autolock lock(mMutex); in getPrevFinalReleaseFence()
283 Mutex::Autolock lock(mMutex); in getTransformMatrix()
288 Mutex::Autolock lock(mMutex); in setFilteringEnabled()
321 Mutex::Autolock lock(mMutex); in getTimestamp()
327 Mutex::Autolock lock(mMutex); in getCurrentDataSpace()
333 Mutex::Autolock lock(mMutex); in getCurrentHdrMetadata()
[all …]
/frameworks/minikin/include/minikin/
DSystemFonts.h70 std::lock_guard<std::mutex> lock(mMutex); in registerFallbackInternal()
75 std::lock_guard<std::mutex> lock(mMutex); in registerDefaultInternal()
80 std::lock_guard<std::mutex> lock(mMutex); in addFontMapInternal()
86 std::lock_guard<std::mutex> lock(mMutex); in getFontMapInternal()
91 std::lock_guard<std::mutex> lock(mMutex); in getFontSetInternal()
101 void buildFontSetLocked() EXCLUSIVE_LOCKS_REQUIRED(mMutex);
103 std::map<std::string, std::shared_ptr<FontCollection>> mSystemFallbacks GUARDED_BY(mMutex);
104 std::shared_ptr<FontCollection> mDefaultFallback GUARDED_BY(mMutex);
105 std::vector<std::shared_ptr<FontCollection>> mCollections GUARDED_BY(mMutex);
106 std::optional<std::vector<std::shared_ptr<Font>>> mFonts GUARDED_BY(mMutex);
[all …]
/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/services/surfaceflinger/Scheduler/include/scheduler/
DTimer.h60 void reset() EXCLUDES(mMutex);
61 void cleanup() REQUIRES(mMutex);
62 void setDebugState(DebugState) EXCLUDES(mMutex);
73 mutable std::mutex mMutex; variable
74 std::function<void()> mCallback GUARDED_BY(mMutex);
75 bool mExpectingCallback GUARDED_BY(mMutex) = false;
76 DebugState mDebugState GUARDED_BY(mMutex);
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DHwcAsyncWorker.h46 std::mutex mMutex;
47 std::condition_variable mCv GUARDED_BY(mMutex);
48 bool mDone GUARDED_BY(mMutex) = false;
49 bool mTaskRequested GUARDED_BY(mMutex) = false;
50 std::packaged_task<bool()> mTask GUARDED_BY(mMutex);
/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/services/surfaceflinger/FrameTimeline/
DFrameTimeline.h232 nsecs_t& deadlineDelta) REQUIRES(mMutex);
241 PresentState mPresentState GUARDED_BY(mMutex);
244 TimelineItem mActuals GUARDED_BY(mMutex);
247 nsecs_t mActualQueueTime GUARDED_BY(mMutex) = 0;
248 nsecs_t mDropTime GUARDED_BY(mMutex) = 0;
249 mutable std::mutex mMutex; variable
251 int32_t mJankType GUARDED_BY(mMutex) = JankType::None;
253 bool mGpuComposition GUARDED_BY(mMutex) = false;
255 std::optional<Fps> mRenderRate GUARDED_BY(mMutex);
257 FramePresentMetadata mFramePresentMetadata GUARDED_BY(mMutex) =
[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/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/native/services/surfaceflinger/CompositionEngine/src/
DHwcAsyncWorker.cpp37 std::scoped_lock lock(mMutex); in ~HwcAsyncWorker()
46 std::unique_lock<std::mutex> lock(mMutex); in send()
47 android::base::ScopedLockAssertion assumeLock(mMutex); in send()
60 std::unique_lock<std::mutex> lock(mMutex); in run()
61 android::base::ScopedLockAssertion assumeLock(mMutex); in run()
/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 …]

12345678910