Home
last modified time | relevance | path

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

12345678910>>...24

/frameworks/av/media/libmediaplayerservice/
DMediaRecorderClient.cpp61 Mutex::Autolock lock(mLock); in setInputSurface() local
72 Mutex::Autolock lock(mLock); in querySurfaceMediaSource() local
86 Mutex::Autolock lock(mLock); in setCamera() local
97 Mutex::Autolock lock(mLock); in setPreviewSurface() local
112 Mutex::Autolock lock(mLock); in setVideoSource() local
140 Mutex::Autolock lock(mLock); in setAudioSource() local
151 Mutex::Autolock lock(mLock); in setPrivacySensitive() local
161 Mutex::Autolock lock(mLock); in isPrivacySensitive() local
174 Mutex::Autolock lock(mLock); in setOutputFormat() local
185 Mutex::Autolock lock(mLock); in setVideoEncoder() local
[all …]
/frameworks/native/services/surfaceflinger/Display/
DDisplayModeController.cpp49 std::lock_guard lock(mDisplayLock); in registerDisplay() local
59 std::lock_guard lock(mDisplayLock); in registerDisplay() local
66 std::lock_guard lock(mDisplayLock); in unregisterDisplay() local
73 std::lock_guard lock(mDisplayLock); in selectorPtrFor() local
81 std::lock_guard lock(mDisplayLock); in setDesiredMode() local
89 std::scoped_lock lock(displayPtr->desiredModeLock); in setDesiredMode() local
131 std::lock_guard lock(mDisplayLock); in getDesiredMode() local
136 std::scoped_lock lock(displayPtr->desiredModeLock); in getDesiredMode() local
143 std::lock_guard lock(mDisplayLock); in getPendingMode() local
148 std::scoped_lock lock(displayPtr->desiredModeLock); in getPendingMode() local
[all …]
/frameworks/base/libs/input/
DMouseCursorController.cpp39 std::scoped_lock lock(mLock); in MouseCursorController() local
59 std::scoped_lock lock(mLock); in ~MouseCursorController() local
65 std::scoped_lock lock(mLock); in getBounds() local
91 std::scoped_lock lock(mLock); in move() local
100 std::scoped_lock lock(mLock); in setPosition() local
115 std::scoped_lock lock(mLock); in getPosition() local
121 std::scoped_lock lock(mLock); in getDisplayId() local
126 std::scoped_lock lock(mLock); in fade() local
143 std::scoped_lock lock(mLock); in unfade() local
160 std::scoped_lock lock(mLock); in setStylusHoverMode() local
[all …]
DPointerController.cpp49 std::scoped_lock lock(mLock); in onWindowInfosChanged() local
58 std::scoped_lock lock(mLock); in onPointerControllerDestroyed() local
125 std::scoped_lock lock(getLock()); in PointerController() local
148 std::scoped_lock lock(getLock()); in move() local
159 std::scoped_lock lock(getLock()); in setPosition() local
170 std::scoped_lock lock(getLock()); in getPosition() local
181 std::scoped_lock lock(getLock()); in fade() local
186 std::scoped_lock lock(getLock()); in unfade() local
191 std::scoped_lock lock(getLock()); in setPresentation() local
206 std::scoped_lock lock(getLock()); in setSpots() local
[all …]
/frameworks/native/services/inputflinger/tests/
DFakeInputDispatcherPolicy.cpp53 std::scoped_lock lock(mLock); in assertFilterInputEventWasNotCalled() local
58 std::scoped_lock lock(mLock); in assertNotifyConfigurationChangedWasCalled() local
65 std::scoped_lock lock(mLock); in assertNotifySwitchWasCalled() local
76 std::scoped_lock lock(mLock); in assertOnPointerDownEquals() local
82 std::scoped_lock lock(mLock); in assertOnPointerDownWasNotCalled() local
90 std::unique_lock lock(mLock); in assertNotifyNoFocusedWindowAnrWasCalled() local
108 std::unique_lock lock(mLock); in assertNotifyWindowUnresponsiveWasCalled() local
118 std::unique_lock lock(mLock); in getUnresponsiveWindowToken() local
127 std::unique_lock lock(mLock); in assertNotifyWindowResponsiveWasCalled() local
136 std::unique_lock lock(mLock); in getResponsiveWindowToken() 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.cpp33 std::lock_guard<std::mutex> lock(mInflightLock); in takeInflightBufferMap() local
43 std::lock_guard<std::mutex> lock(mRequestedBuffersLock); in takeRequestedBufferMap() local
53 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in takeBufferCaches() local
65 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in getBufferId() local
80 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in tryCreateBufferCache() local
87 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in removeInactiveBufferCaches() local
100 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in removeOneBufferCache() local
125 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in clearBufferCaches() local
142 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in isStreamCached() local
148 std::lock_guard<std::mutex> lock(mBufferIdMapLock); in verifyBufferIds() local
[all …]
/frameworks/base/media/jni/soundpool/
DStream.cpp36 std::lock_guard lock(mLock); in autoPause() local
49 std::lock_guard lock(mLock); in autoResume() local
64 std::lock_guard lock(mLock); in mute() local
77 std::lock_guard lock(mLock); in pause() local
91 std::lock_guard lock(mLock); in resume() local
106 std::lock_guard lock(mLock); in setRate() local
127 std::lock_guard lock(mLock); in setVolume() local
135 std::lock_guard lock(mLock); in setPriority() local
143 std::lock_guard lock(mLock); in setLoop() local
159 std::lock_guard lock(mLock); in setPlay() local
[all …]
/frameworks/native/libs/gui/
DBufferQueueConsumer.cpp85 std::unique_lock<std::mutex> lock(mCore->mMutex); in acquireBuffer() local
322 std::lock_guard<std::mutex> lock(mCore->mMutex); in detachBuffer() local
373 std::lock_guard<std::mutex> lock(mCore->mMutex); in attachBuffer() local
465 std::lock_guard<std::mutex> lock(mCore->mMutex); in releaseBuffer() local
530 std::lock_guard<std::mutex> lock(mCore->mMutex); in connect() local
548 std::lock_guard<std::mutex> lock(mCore->mMutex); in disconnect() local
572 std::lock_guard<std::mutex> lock(mCore->mMutex); in getReleasedBuffers() local
614 std::lock_guard<std::mutex> lock(mCore->mMutex); in setDefaultBufferSize() local
628 std::lock_guard<std::mutex> lock(mCore->mMutex); in setMaxBufferCount() local
668 std::unique_lock<std::mutex> lock(mCore->mMutex); in setMaxAcquiredBufferCount() local
[all …]
DBufferQueueProducer.cpp96 std::lock_guard<std::mutex> lock(mCore->mMutex); in requestBuffer() local
137 std::unique_lock<std::mutex> lock(mCore->mMutex); in setMaxDequeuedBufferCount() local
219 std::unique_lock<std::mutex> lock(mCore->mMutex); in setAsyncMode() local
286 std::unique_lock<std::mutex>& lock, int* found) const { in waitForFreeSlotThenRelock()
397 std::lock_guard<std::mutex> lock(mCore->mMutex); in dequeueBuffer() local
432 std::unique_lock<std::mutex> lock(mCore->mMutex); in dequeueBuffer() local
618 std::lock_guard<std::mutex> lock(mCore->mMutex); in dequeueBuffer() local
697 std::lock_guard<std::mutex> lock(mCore->mMutex); in detachBuffer() local
770 std::unique_lock<std::mutex> lock(mCore->mMutex); in detachNextBuffer() local
826 std::unique_lock<std::mutex> lock(mCore->mMutex); in attachBuffer() local
[all …]
/frameworks/base/libs/hwui/hwui/
DAnimatedImageDrawable.cpp78 std::unique_lock lock{mSwapLock}; in isDirty() local
110 std::unique_lock lock{mImageLock}; in decodeNextFrame() local
122 std::unique_lock lock{mImageLock}; in reset() local
178 std::unique_lock lock{mImageLock}; in onDraw() local
192 std::unique_lock lock{mSwapLock}; in onDraw() local
261 std::unique_lock lock{mImageLock}; in drawStaging() local
270 std::unique_lock lock{mImageLock}; in drawStaging() local
275 std::unique_lock lock{mSwapLock}; in drawStaging() local
285 std::unique_lock lock{mSwapLock}; in drawStaging() local
302 std::unique_lock lock{mImageLock}; in drawStaging() local
[all …]
/frameworks/av/services/oboeservice/
DAAudioClientTracker.cpp76 const std::lock_guard<std::mutex> lock(mLock); in registerClient() local
93 const std::lock_guard<std::mutex> lock(mLock); in unregisterClient() local
98 const std::lock_guard<std::mutex> lock(mLock); in getStreamCount() local
111 const std::lock_guard<std::mutex> lock(mLock); in registerClientStream() local
120 const std::lock_guard<std::mutex> lock(mLock); in unregisterClientStream() local
133 const std::lock_guard<std::mutex> lock(mLock); in setExclusiveEnabled() local
138 const std::lock_guard<std::mutex> lock(mLock); in isExclusiveEnabled() local
163 const std::lock_guard<std::mutex> lock(mLock); in getStreamCount() local
169 const std::lock_guard<std::mutex> lock(mLock); in registerClientStream() local
176 const std::lock_guard<std::mutex> lock(mLock); in unregisterClientStream() local
[all …]
/frameworks/av/services/camera/virtualcamera/
DVirtualCameraSessionContext.cc37 std::lock_guard<std::mutex> lock(mLock); in initializeStream() local
48 std::lock_guard<std::mutex> lock(mLock); in closeAllStreams() local
55 std::lock_guard<std::mutex> lock(mLock); in importBuffersFromCaptureRequest() local
82 std::lock_guard<std::mutex> lock(mLock); in removeBufferCaches() local
108 std::lock_guard<std::mutex> lock(mLock); in removeStreamsNotInStreamConfiguration() local
125 std::lock_guard<std::mutex> lock(mLock); in getStreamConfig() local
138 std::lock_guard<std::mutex> lock(mLock); in fetchHardwareBuffer() local
152 std::lock_guard<std::mutex> lock(mLock); in fetchOrCreateEglFramebuffer() local
165 std::lock_guard<std::mutex> lock(mLock); in getStreamIds() local
/frameworks/native/services/surfaceflinger/tests/unittests/
DWindowInfosListenerInvokerTest.cpp51 std::scoped_lock lock{mutex}; in TEST_F() local
64 std::unique_lock<std::mutex> lock{mutex}; in TEST_F() local
83 std::scoped_lock lock{mutex}; in TEST_F() local
100 std::unique_lock<std::mutex> lock{mutex}; in TEST_F() local
116 std::scoped_lock lock{mutex}; in TEST_F() local
130 std::unique_lock lock{mutex}; in TEST_F() local
139 std::unique_lock lock{mutex}; in TEST_F() local
157 std::scoped_lock lock{mutex}; in TEST_F() local
172 std::unique_lock lock{mutex}; in TEST_F() local
189 std::scoped_lock lock{mutex}; in TEST_F() local
[all …]
/frameworks/native/services/surfaceflinger/
DFrameTracker.cpp41 Mutex::Autolock lock(mMutex); in setDesiredPresentTime() local
46 Mutex::Autolock lock(mMutex); in setFrameReadyTime() local
52 Mutex::Autolock lock(mMutex); in setFrameReadyFence() local
58 Mutex::Autolock lock(mMutex); in setActualPresentTime() local
63 Mutex::Autolock lock(mMutex); in setActualPresentFence() local
69 Mutex::Autolock lock(mMutex); in setDisplayRefreshPeriod() local
74 Mutex::Autolock lock(mMutex); in advanceFrame() local
101 Mutex::Autolock lock(mMutex); in clearStats() local
116 Mutex::Autolock lock(mMutex); in getStats() local
142 Mutex::Autolock lock(mMutex); in logAndResetStats() 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/native/libs/renderengine/threaded/
DRenderEngineThreaded.cpp94 std::scoped_lock lock(mInitializedMutex); in threadMain() local
101 std::scoped_lock lock(mThreadMutex); in threadMain() local
116 std::unique_lock<std::mutex> lock(mThreadMutex); in threadMain() local
128 std::unique_lock<std::mutex> lock(mInitializedMutex); in waitUntilInitialized() local
140 std::lock_guard lock(mThreadMutex); in primeCache() local
164 std::lock_guard lock(mThreadMutex); in dump() local
183 std::lock_guard lock(mThreadMutex); in mapExternalTextureBuffer() local
197 std::lock_guard lock(mThreadMutex); in unmapExternalTextureBuffer() local
230 std::lock_guard lock(mThreadMutex); in cleanupPostRender() local
260 std::lock_guard lock(mThreadMutex); in drawLayers() local
[all …]
/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/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/services/camera/libcameraservice/device3/hidl/
DHidlCamera3OfflineSession.cpp56 std::lock_guard<std::mutex> lock(mLock); in initialize() local
89 std::lock_guard<std::mutex> lock(mLock); in processCaptureResult_3_4() local
115 std::lock_guard<std::mutex> lock(mProcessCaptureResultLock); in processCaptureResult_3_4() local
129 std::lock_guard<std::mutex> lock(mLock); in processCaptureResult() local
157 std::lock_guard<std::mutex> lock(mProcessCaptureResultLock); in processCaptureResult() local
168 std::lock_guard<std::mutex> lock(mLock); in notify() local
203 std::lock_guard<std::mutex> lock(mLock); in requestStreamBuffers() local
221 std::lock_guard<std::mutex> lock(mLock); in returnStreamBuffers() local
/frameworks/av/services/audiopolicy/service/
DSpatializerPoseController.cpp134 std::unique_lock lock(mMutex); in __anon27ca8c2d0302() local
157 std::lock_guard lock(mMutex); in __anon27ca8c2d0302() local
176 std::unique_lock lock(mMutex); in ~SpatializerPoseController() local
184 std::lock_guard lock(mMutex); in setHeadSensor() local
223 std::lock_guard lock(mMutex); in setScreenSensor() local
260 std::lock_guard lock(mMutex); in setDesiredMode() local
265 std::lock_guard lock(mMutex); in setScreenToStagePose() local
270 std::lock_guard lock(mMutex); in setDisplayOrientation() local
275 std::lock_guard lock(mMutex); in calculateAsync() local
281 std::unique_lock lock(mMutex); in waitUntilCalculated() local
[all …]
DSpatializer.cpp233 audio_utils::lock_guard lock(mMutex); in loadOrderedLowLatencyModes() local
473 audio_utils::lock_guard lock(mMutex); in getAudioInConfig() local
482 audio_utils::lock_guard lock(mMutex); in registerCallback() local
510 audio_utils::lock_guard lock(mMutex); in binderDied() local
539 audio_utils::lock_guard lock(mMutex); in setLevel() local
563 audio_utils::lock_guard lock(mMutex); in getLevel() local
574 audio_utils::lock_guard lock(mMutex); in isHeadTrackingSupported() local
581 audio_utils::lock_guard lock(mMutex); in getSupportedHeadTrackingModes() local
597 audio_utils::lock_guard lock(mMutex); in setDesiredHeadTrackingMode() local
622 audio_utils::lock_guard lock(mMutex); in getActualHeadTrackingMode() local
[all …]
/frameworks/av/media/module/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/av/media/libstagefright/
DMediaSync.cpp90 Mutex::Autolock lock(mMutex); in setSurface() local
152 Mutex::Autolock lock(mMutex); in setAudioTrack() local
197 Mutex::Autolock lock(mMutex); in createInputSurface() local
262 Mutex::Autolock lock(mMutex); in getPlayTimeForPendingAudioFrames() local
303 Mutex::Autolock lock(mMutex); in updateQueuedAudioData() local
342 Mutex::Autolock lock(mMutex); in setName() local
347 Mutex::Autolock lock(mMutex); in flush() local
364 Mutex::Autolock lock(mMutex); in setVideoFrameRateHint() local
375 Mutex::Autolock lock(mMutex); in getVideoFrameRate() local
396 Mutex::Autolock lock(mMutex); in setSyncSettings() local
[all …]
/frameworks/av/services/camera/libcameraservice/utils/
DVirtualDeviceCameraIdMapper.cpp44 std::scoped_lock lock(mLock); in addCamera() local
57 std::scoped_lock lock(mLock); in removeCamera() local
76 std::scoped_lock lock(mLock); in getActualCameraId() local
94 std::scoped_lock lock(mLock); in getDeviceIdAndMappedCameraIdPair() local
110 std::scoped_lock lock(mLock); in getNumberOfCameras() local
128 std::scoped_lock lock(mLock); in getActualCameraId() local

12345678910>>...24