Home
last modified time | relevance | path

Searched defs:lock (Results 1 – 25 of 461) sorted by relevance

12345678910>>...19

/frameworks/av/media/libmediaplayerservice/
DMediaRecorderClient.cpp60 Mutex::Autolock lock(mLock); in setInputSurface() local
71 Mutex::Autolock lock(mLock); in querySurfaceMediaSource() local
85 Mutex::Autolock lock(mLock); in setCamera() local
96 Mutex::Autolock lock(mLock); in setPreviewSurface() local
111 Mutex::Autolock lock(mLock); in setVideoSource() local
134 Mutex::Autolock lock(mLock); in setAudioSource() local
145 Mutex::Autolock lock(mLock); in setPrivacySensitive() local
155 Mutex::Autolock lock(mLock); in isPrivacySensitive() local
168 Mutex::Autolock lock(mLock); in setOutputFormat() local
179 Mutex::Autolock lock(mLock); in setVideoEncoder() local
[all …]
/frameworks/native/services/surfaceflinger/
DBufferLayerConsumer.cpp88 Mutex::Autolock lock(mMutex); in setDefaultBufferSize() local
100 Mutex::Autolock lock(mMutex); in setContentsChangedListener() local
109 Mutex::Autolock lock(mMutex); in updateTexImage() local
182 Mutex::Autolock lock(mMutex); in releasePendingBuffer() local
193 Mutex::Autolock lock(mMutex); in getPrevFinalReleaseFence() local
207 std::lock_guard<std::mutex> lock(mImagesMutex); in acquireBufferLocked() local
237 std::lock_guard<std::mutex> lock(mImagesMutex); in updateAndReleaseLocked() local
281 Mutex::Autolock lock(mMutex); in getTransformMatrix() local
286 Mutex::Autolock lock(mMutex); in setFilteringEnabled() local
319 Mutex::Autolock lock(mMutex); in getTimestamp() local
[all …]
DBufferQueueLayer.cpp88 Mutex::Autolock lock(mFrameEventHistoryMutex); in releasePendingBuffer() local
104 Mutex::Autolock lock(mQueueItemLock); in isBufferDue() local
128 Mutex::Autolock lock(mQueueItemLock); in fenceHasSignaled() local
160 Mutex::Autolock lock(mQueueItemLock); in framePresentTimeIsCurrent() local
165 Mutex::Autolock lock(mQueueItemLock); in getFrameNumber() local
245 Mutex::Autolock lock(mQueueItemLock); in updateTexImage() local
271 Mutex::Autolock lock(mQueueItemLock); in updateTexImage() local
287 Mutex::Autolock lock(mQueueItemLock); in updateTexImage() local
312 Mutex::Autolock lock(mQueueItemLock); in updateTexImage() local
366 Mutex::Autolock lock(mFrameEventHistoryMutex); in updateFrameNumber() local
[all …]
DFrameTracker.cpp44 Mutex::Autolock lock(mMutex); in setDesiredPresentTime() local
49 Mutex::Autolock lock(mMutex); in setFrameReadyTime() local
55 Mutex::Autolock lock(mMutex); in setFrameReadyFence() local
61 Mutex::Autolock lock(mMutex); in setActualPresentTime() local
66 Mutex::Autolock lock(mMutex); in setActualPresentFence() local
72 Mutex::Autolock lock(mMutex); in setDisplayRefreshPeriod() local
77 Mutex::Autolock lock(mMutex); in advanceFrame() local
104 Mutex::Autolock lock(mMutex); in clearStats() local
119 Mutex::Autolock lock(mMutex); in getStats() local
145 Mutex::Autolock lock(mMutex); in logAndResetStats() local
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3OutputStreamInterface.cpp35 std::lock_guard<std::mutex> lock(mLock); in add() local
40 std::lock_guard<std::mutex> lock(mLock); in remove() local
45 std::lock_guard<std::mutex> lock(mLock); in get() local
54 std::lock_guard<std::mutex> lock(mLock); in operator []() local
59 std::lock_guard<std::mutex> lock(mLock); in size() local
64 std::lock_guard<std::mutex> lock(mLock); in clear() local
69 std::lock_guard<std::mutex> lock(mLock); in getStreamIds() local
78 std::lock_guard<std::mutex> lock(other.mLock); in StreamSet() local
DBufferUtils.cpp43 std::lock_guard<std::mutex> lock(mInflightLock); in takeInflightBufferMap() local
53 std::lock_guard<std::mutex> lock(mRequestedBuffersLock); in takeRequestedBufferMap() local
63 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in takeBufferCaches() local
75 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in getBufferId() local
90 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in tryCreateBufferCache() local
97 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in removeInactiveBufferCaches() local
110 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in removeOneBufferCache() local
135 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in clearBufferCaches() local
152 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in isStreamCached() local
158 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in verifyBufferIds() local
[all …]
/frameworks/base/libs/input/
DMouseCursorController.cpp44 std::scoped_lock lock(mLock); in MouseCursorController() local
63 std::scoped_lock lock(mLock); in ~MouseCursorController() local
70 std::scoped_lock lock(mLock); in getBounds() local
96 std::scoped_lock lock(mLock); in move() local
105 std::scoped_lock lock(mLock); in setButtonState() local
113 std::scoped_lock lock(mLock); in getButtonState() local
121 std::scoped_lock lock(mLock); in setPosition() local
147 std::scoped_lock lock(mLock); in getPosition() local
154 std::scoped_lock lock(mLock); in getDisplayId() local
159 std::scoped_lock lock(mLock); in fade() local
[all …]
DPointerController.cpp67 std::scoped_lock lock(mLock); in PointerController() local
89 std::scoped_lock lock(mLock); in setPosition() local
102 std::scoped_lock lock(mLock); in fade() local
107 std::scoped_lock lock(mLock); in unfade() local
112 std::scoped_lock lock(mLock); in setPresentation() local
132 std::scoped_lock lock(mLock); in setSpots() local
141 std::scoped_lock lock(mLock); in clearSpots() local
156 std::scoped_lock lock(mLock); in reloadPointerResources() local
172 std::scoped_lock lock(mLock); in setDisplayViewport() local
182 std::scoped_lock lock(mLock); in updatePointerIcon() local
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DDispSyncSource.cpp49 std::lock_guard lock(mMutex); in ~CallbackRepeater() local
54 std::lock_guard lock(mMutex); in start() local
67 std::lock_guard lock(mMutex); in stop() local
74 std::lock_guard lock(mMutex); in dump() local
87 std::lock_guard lock(mMutex); in callback() local
94 std::lock_guard lock(mMutex); in callback() local
140 std::lock_guard lock(mVsyncMutex); in setVSyncEnabled() local
152 std::lock_guard lock(mCallbackMutex); in setCallback() local
158 std::lock_guard lock(mVsyncMutex); in setDuration() local
174 std::lock_guard lock(mCallbackMutex); in onVsyncCallback() local
[all …]
/frameworks/native/libs/gui/
DBufferQueueConsumer.cpp85 std::unique_lock<std::mutex> lock(mCore->mMutex); in acquireBuffer() local
321 std::lock_guard<std::mutex> lock(mCore->mMutex); in detachBuffer() local
365 std::lock_guard<std::mutex> lock(mCore->mMutex); in attachBuffer() local
457 std::lock_guard<std::mutex> lock(mCore->mMutex); in releaseBuffer() local
522 std::lock_guard<std::mutex> lock(mCore->mMutex); in connect() local
540 std::lock_guard<std::mutex> lock(mCore->mMutex); in disconnect() local
564 std::lock_guard<std::mutex> lock(mCore->mMutex); in getReleasedBuffers() local
606 std::lock_guard<std::mutex> lock(mCore->mMutex); in setDefaultBufferSize() local
620 std::lock_guard<std::mutex> lock(mCore->mMutex); in setMaxBufferCount() local
660 std::unique_lock<std::mutex> lock(mCore->mMutex); in setMaxAcquiredBufferCount() local
[all …]
DBufferQueueProducer.cpp93 std::lock_guard<std::mutex> lock(mCore->mMutex); in requestBuffer() local
128 std::unique_lock<std::mutex> lock(mCore->mMutex); in setMaxDequeuedBufferCount() local
207 std::unique_lock<std::mutex> lock(mCore->mMutex); in setAsyncMode() local
274 std::unique_lock<std::mutex>& lock, int* found) const { in waitForFreeSlotThenRelock()
385 std::lock_guard<std::mutex> lock(mCore->mMutex); in dequeueBuffer() local
412 std::unique_lock<std::mutex> lock(mCore->mMutex); in dequeueBuffer() local
555 std::lock_guard<std::mutex> lock(mCore->mMutex); in dequeueBuffer() local
626 std::lock_guard<std::mutex> lock(mCore->mMutex); in detachBuffer() local
691 std::unique_lock<std::mutex> lock(mCore->mMutex); in detachNextBuffer() local
747 std::unique_lock<std::mutex> lock(mCore->mMutex); in attachBuffer() local
[all …]
/frameworks/base/libs/hwui/hwui/
DAnimatedImageDrawable.cpp79 std::unique_lock lock{mSwapLock}; in isDirty() local
111 std::unique_lock lock{mImageLock}; in decodeNextFrame() local
123 std::unique_lock lock{mImageLock}; in reset() local
180 std::unique_lock lock{mImageLock}; in onDraw() local
196 std::unique_lock lock{mSwapLock}; in onDraw() local
267 std::unique_lock lock{mImageLock}; in drawStaging() local
276 std::unique_lock lock{mImageLock}; in drawStaging() local
281 std::unique_lock lock{mSwapLock}; in drawStaging() local
291 std::unique_lock lock{mSwapLock}; in drawStaging() local
308 std::unique_lock lock{mImageLock}; in drawStaging() local
[all …]
/frameworks/av/services/oboeservice/
DAAudioClientTracker.cpp76 std::lock_guard<std::mutex> lock(mLock); in registerClient() local
93 std::lock_guard<std::mutex> lock(mLock); in unregisterClient() local
98 std::lock_guard<std::mutex> lock(mLock); in getStreamCount() local
110 std::lock_guard<std::mutex> lock(mLock); in registerClientStream() local
119 std::lock_guard<std::mutex> lock(mLock); in unregisterClientStream() local
132 std::lock_guard<std::mutex> lock(mLock); in setExclusiveEnabled() local
137 std::lock_guard<std::mutex> lock(mLock); in isExclusiveEnabled() local
165 std::lock_guard<std::mutex> lock(mLock); in getStreamCount() local
171 std::lock_guard<std::mutex> lock(mLock); in registerClientStream() local
178 std::lock_guard<std::mutex> lock(mLock); in unregisterClientStream() local
[all …]
DAAudioServiceStreamBase.cpp139 std::lock_guard<std::mutex> lock(mUpMessageQueueLock); in open() local
175 std::lock_guard<std::mutex> lock(mLock); in close() local
225 std::lock_guard<std::mutex> lock(mLock); in start() local
280 std::lock_guard<std::mutex> lock(mLock); in pause() local
323 std::lock_guard<std::mutex> lock(mLock); in stop() local
384 std::lock_guard<std::mutex> lock(mLock); in flush() local
445 std::lock_guard<std::mutex> lock(mLock); in disconnect() local
464 std::lock_guard<std::mutex> lock(mLock); in registerAudioThread() local
484 std::lock_guard<std::mutex> lock(mLock); in unregisterAudioThread() local
523 std::lock_guard<std::mutex> lock(mUpMessageQueueLock); in isUpMessageQueueBusy() local
[all …]
/frameworks/base/media/jni/soundpool/
DStream.cpp35 std::lock_guard lock(mLock); in autoPause() local
48 std::lock_guard lock(mLock); in autoResume() local
63 std::lock_guard lock(mLock); in mute() local
76 std::lock_guard lock(mLock); in pause() local
90 std::lock_guard lock(mLock); in resume() local
105 std::lock_guard lock(mLock); in setRate() local
126 std::lock_guard lock(mLock); in setVolume() local
134 std::lock_guard lock(mLock); in setPriority() local
142 std::lock_guard lock(mLock); in setLoop() local
158 std::lock_guard lock(mLock); in setPlay() local
[all …]
/frameworks/native/libs/renderengine/threaded/
DRenderEngineThreaded.cpp98 std::scoped_lock lock(mInitializedMutex); in threadMain() local
105 std::scoped_lock lock(mThreadMutex); in threadMain() local
120 std::unique_lock<std::mutex> lock(mThreadMutex); in threadMain() local
131 std::unique_lock<std::mutex> lock(mInitializedMutex); in waitUntilInitialized() local
142 std::lock_guard lock(mThreadMutex); in primeCache() local
166 std::lock_guard lock(mThreadMutex); in dump() local
184 std::lock_guard lock(mThreadMutex); in genTextures() local
200 std::lock_guard lock(mThreadMutex); in deleteTextures() local
217 std::lock_guard lock(mThreadMutex); in mapExternalTextureBuffer() local
231 std::lock_guard lock(mThreadMutex); in unmapExternalTextureBuffer() local
[all …]
/frameworks/base/services/core/java/com/android/server/
DLockGuard.java94 private static LockInfo findOrCreateLockInfo(Object lock) { in findOrCreateLockInfo()
110 public static Object guard(Object lock) { in guard()
151 final Object lock = sKnownFixed[i]; in guard() local
164 private static void doLog(@Nullable Object lock, String message) { in doLog()
180 public static Object installLock(Object lock, String label) { in installLock()
189 public static Object installLock(Object lock, int index) { in installLock()
196 public static Object installLock(Object lock, int index, boolean doWtf) { in installLock()
209 final Object lock = new Object(); in installNewLock() local
214 private static String lockToString(Object lock) { in lockToString()
240 final Object lock = sKnown.keyAt(i); in dump() local
/frameworks/av/media/libmediatranscoding/
DTranscodingThermalPolicy.cpp49 std::scoped_lock lock{mRegisteredLock}; in registerSelf() local
79 std::scoped_lock lock{mRegisteredLock}; in unregisterSelf() local
103 std::scoped_lock lock{mCallbackLock}; in setCallback() local
108 std::scoped_lock lock{mRegisteredLock}; in getThrottlingStatus() local
116 std::scoped_lock lock{mRegisteredLock}; in onStatusChange() local
124 std::scoped_lock lock{mCallbackLock}; in onStatusChange() local
/frameworks/base/media/jni/
DJetPlayer.cpp132 Mutex::Autolock lock(mMutex); in release() local
331 Mutex::Autolock lock(mMutex); in loadFromFile() local
350 Mutex::Autolock lock(mMutex); in loadFromFD() local
367 Mutex::Autolock lock(mMutex); in closeFile() local
376 Mutex::Autolock lock(mMutex); in play() local
398 Mutex::Autolock lock(mMutex); in pause() local
419 Mutex::Autolock lock(mMutex); in queueSegment() local
427 Mutex::Autolock lock(mMutex); in setMuteFlags() local
434 Mutex::Autolock lock(mMutex); in setMuteFlag() local
442 Mutex::Autolock lock(mMutex); in triggerClip() local
[all …]
/frameworks/av/media/libmediatranscoding/transcoder/
DMediaSampleQueue.cpp26 std::scoped_lock<std::mutex> lock(mMutex); in enqueue() local
36 std::unique_lock<std::mutex> lock(mMutex); in dequeue() local
51 std::scoped_lock<std::mutex> lock(mMutex); in isEmpty() local
56 std::scoped_lock<std::mutex> lock(mMutex); in abort() local
/frameworks/av/media/libstagefright/renderfright/threaded/
DRenderEngineThreaded.cpp49 std::lock_guard lock(mThreadMutex); in ~RenderEngineThreaded() local
71 std::unique_lock<std::mutex> lock(mThreadMutex); in threadMain() local
90 std::lock_guard lock(mThreadMutex); in primeCache() local
105 std::lock_guard lock(mThreadMutex); in dump() local
122 std::lock_guard lock(mThreadMutex); in useNativeFenceSync() local
137 std::lock_guard lock(mThreadMutex); in useWaitSync() local
152 std::lock_guard lock(mThreadMutex); in genTextures() local
167 std::lock_guard lock(mThreadMutex); in deleteTextures() local
182 std::lock_guard lock(mThreadMutex); in bindExternalTextureImage() local
200 std::lock_guard lock(mThreadMutex); in bindExternalTextureBuffer() local
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DMemoryFileSystem.cpp27 std::lock_guard<std::mutex> lock(mMemoryFileSystemLock); in FileExists() local
33 std::lock_guard<std::mutex> lock(mMemoryFileSystemLock); in GetFileSize() local
45 std::lock_guard<std::mutex> lock(mMemoryFileSystemLock); in ListFiles() local
54 std::lock_guard<std::mutex> lock(mMemoryFileSystemLock); in Read() local
68 std::lock_guard<std::mutex> lock(mMemoryFileSystemLock); in Write() local
78 std::lock_guard<std::mutex> lock(mMemoryFileSystemLock); in RemoveFile() local
90 std::lock_guard<std::mutex> lock(mMemoryFileSystemLock); in RemoveAllFiles() local
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.cpp92 std::lock_guard<std::mutex> lock(mMutex); in populateGlobalAtom() local
143 std::lock_guard<std::mutex> lock(mMutex); in populateLayerAtom() local
298 std::lock_guard<std::mutex> lock(mMutex); in miniDump() local
311 std::lock_guard<std::mutex> lock(mMutex); in incrementTotalFrames() local
320 std::lock_guard<std::mutex> lock(mMutex); in incrementMissedFrames() local
329 std::lock_guard<std::mutex> lock(mMutex); in incrementClientCompositionFrames() local
338 std::lock_guard<std::mutex> lock(mMutex); in incrementClientCompositionReusedFrames() local
347 std::lock_guard<std::mutex> lock(mMutex); in incrementRefreshRateSwitches() local
356 std::lock_guard<std::mutex> lock(mMutex); in incrementCompositionStrategyChanges() local
365 std::lock_guard<std::mutex> lock(mMutex); in recordDisplayEventConnectionCount() local
[all …]
/frameworks/av/camera/ndk/ndk_vendor/tests/
DACameraManagerTest.cpp42 std::lock_guard<std::mutex> lock(thiz->mMutex); in onAvailable() local
54 std::lock_guard<std::mutex> lock(thiz->mMutex); in onUnavailable() local
71 std::lock_guard<std::mutex> lock(thiz->mMutex); in onPhysicalCameraAvailable() local
83 std::lock_guard<std::mutex> lock(thiz->mMutex); in onPhysicalCameraUnavailable() local
89 std::lock_guard<std::mutex> lock(mMutex); in resetCount() local
98 std::lock_guard<std::mutex> lock(mMutex); in getAvailableCount() local
103 std::lock_guard<std::mutex> lock(mMutex); in getUnavailableCount() local
108 std::lock_guard<std::mutex> lock(mMutex); in getPhysicalCameraAvailableCount() local
113 std::lock_guard<std::mutex> lock(mMutex); in getUnavailablePhysicalCameras() local
118 std::lock_guard<std::mutex> lock(mMutex); in isAvailable() local
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp621 AutoMutex lock(mLock); in set() local
707 AutoMutex lock(mLock); in start() local
849 AutoMutex lock(mLock); in stop() local
905 AutoMutex lock(mLock); in stopped() local
912 AutoMutex lock(mLock); in flush() local
953 AutoMutex lock(mLock); in pause() local
1008 AutoMutex lock(mLock); in setVolume() local
1032 AutoMutex lock(mLock); in setAuxEffectSendLevel() local
1048 AutoMutex lock(mLock); in setSampleRate() local
1082 AutoMutex lock(mLock); in getSampleRate() local
[all …]

12345678910>>...19