/frameworks/base/services/core/java/com/android/server/ |
D | LockGuard.java | 95 private static LockInfo findOrCreateLockInfo(Object lock) { in findOrCreateLockInfo() argument 96 LockInfo info = sKnown.get(lock); in findOrCreateLockInfo() 99 info.label = "0x" + Integer.toHexString(System.identityHashCode(lock)) + " [" in findOrCreateLockInfo() 101 sKnown.put(lock, info); in findOrCreateLockInfo() 111 public static Object guard(Object lock) { in guard() argument 113 if (lock == null || Thread.holdsLock(lock)) return lock; in guard() 117 final LockInfo info = findOrCreateLockInfo(lock); in guard() 123 doLog(lock, "Calling thread " + Thread.currentThread().getName() in guard() 125 + lockToString(lock)); in guard() 135 if (test == null || test == lock) continue; in guard() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | CaptureCollector.java | 322 final ReentrantLock lock = this.mLock; in queueRequest() local 323 lock.lock(); in queueRequest() 361 lock.unlock(); in queueRequest() 375 final ReentrantLock lock = this.mLock; in waitForEmpty() local 376 lock.lock(); in waitForEmpty() 386 lock.unlock(); in waitForEmpty() 400 final ReentrantLock lock = this.mLock; in waitForPreviewsEmpty() local 401 lock.lock(); in waitForPreviewsEmpty() 411 lock.unlock(); in waitForPreviewsEmpty() 434 final ReentrantLock lock = this.mLock; in waitForRequestCompleted() local [all …]
|
/frameworks/base/libs/hwui/thread/ |
D | CommonPool.cpp | 62 std::unique_lock lock(mLock); in enqueue() local 64 lock.unlock(); in enqueue() 66 lock.lock(); in enqueue() 75 std::unique_lock lock(mLock); in workerLoop() local 79 mCondition.wait(lock); in workerLoop() 86 lock.unlock(); in workerLoop() 88 lock.lock(); in workerLoop() 98 std::unique_lock lock(mLock); in doWaitForIdle() local 100 lock.unlock(); in doWaitForIdle() 102 lock.lock(); in doWaitForIdle()
|
/frameworks/av/media/libmediaplayerservice/ |
D | MediaRecorderClient.cpp | 59 Mutex::Autolock lock(mLock); in setInputSurface() local 70 Mutex::Autolock lock(mLock); in querySurfaceMediaSource() local 84 Mutex::Autolock lock(mLock); in setCamera() local 95 Mutex::Autolock lock(mLock); in setPreviewSurface() local 110 Mutex::Autolock lock(mLock); in setVideoSource() local 124 Mutex::Autolock lock(mLock); in setAudioSource() local 135 Mutex::Autolock lock(mLock); in setOutputFormat() local 146 Mutex::Autolock lock(mLock); in setVideoEncoder() local 157 Mutex::Autolock lock(mLock); in setAudioEncoder() local 168 Mutex::Autolock lock(mLock); in setOutputFile() local [all …]
|
/frameworks/av/media/libmediaplayer2/ |
D | MediaPlayer2AudioOutput.cpp | 114 Mutex::Autolock lock(mLock); in bufferSize() local 122 Mutex::Autolock lock(mLock); in frameCount() local 130 Mutex::Autolock lock(mLock); in channelCount() local 138 Mutex::Autolock lock(mLock); in frameSize() local 146 Mutex::Autolock lock(mLock); in latency() local 154 Mutex::Autolock lock(mLock); in msecsPerFrame() local 159 Mutex::Autolock lock(mLock); in getPosition() local 167 Mutex::Autolock lock(mLock); in getTimestamp() local 183 Mutex::Autolock lock(mLock); in getPlayedOutDurationUs() local 228 Mutex::Autolock lock(mLock); in getFramesWritten() local [all …]
|
/frameworks/opt/gamesdk/src/swappy/ |
D | ChoreographerFilter.cpp | 111 std::lock_guard<std::mutex> lock(mThreadPoolMutex); in ChoreographerFilter() local 117 std::lock_guard<std::mutex> lock(mThreadPoolMutex); in ~ChoreographerFilter() local 122 std::unique_lock<std::mutex> lock(mMutex); in onChoreographer() local 130 std::lock_guard<std::mutex> lock(mMutex); in launchThreadsLocked() local 142 std::lock_guard<std::mutex> lock(mMutex); in terminateThreadsLocked() local 155 std::lock_guard<std::mutex> lock(mThreadPoolMutex); in onSettingsChanged() local 179 std::unique_lock<std::mutex> lock(mMutex); in threadMain() local 183 lock.unlock(); in threadMain() 190 lock.lock(); in threadMain() 191 mCondition.wait(lock, [=]() { return mLastTimestamp != timestamp; }); in threadMain() [all …]
|
D | Settings.cpp | 33 std::lock_guard<std::mutex> lock(mMutex); in addListener() local 39 std::lock_guard<std::mutex> lock(mMutex); in setRefreshPeriod() local 47 std::lock_guard<std::mutex> lock(mMutex); in setSwapIntervalNS() local 56 std::lock_guard<std::mutex> lock(mMutex); in setUseAffinity() local 65 std::lock_guard<std::mutex> lock(mMutex); in getRefreshPeriod() local 70 std::lock_guard<std::mutex> lock(mMutex); in getSwapIntervalNS() local 75 std::lock_guard<std::mutex> lock(mMutex); in getUseAffinity() local 83 std::lock_guard<std::mutex> lock(mMutex); in notifyListeners() local
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | BufferQueueScheduler.cpp | 31 std::unique_lock<std::mutex> lock(mMutex); in startScheduling() local 33 mCondition.wait(lock, [&] { return (mSurfaceControl != nullptr); }); in startScheduling() 43 lock.unlock(); in startScheduling() 48 lock.lock(); in startScheduling() 51 mCondition.wait(lock); in startScheduling() 56 std::lock_guard<std::mutex> lock(mMutex); in addEvent() local 62 std::lock_guard<std::mutex> lock(mMutex); in stopScheduling() local 69 std::lock_guard<std::mutex> lock(mMutex); in setSurfaceControl() local 84 status_t status = s->lock(&outBuffer, nullptr); in fillSurface()
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceTracing.cpp | 46 std::scoped_lock lock(mSfLock); in addFirstEntry() local 53 std::unique_lock<std::mutex> lock(mSfLock); in traceWhenNotified() local 54 mCanStartTrace.wait(lock); in traceWhenNotified() 57 lock.unlock(); in traceWhenNotified() 62 std::scoped_lock lock(mTraceLock); in addTraceToBuffer() local 72 std::scoped_lock lock(mSfLock); in notify() local 78 std::scoped_lock lock(mTraceLock); in writeToFileAsync() local 115 std::scoped_lock lock(mTraceLock); in enable() local 131 std::scoped_lock lock(mTraceLock); in disable() local 144 std::scoped_lock lock(mTraceLock); in isEnabled() local [all …]
|
D | BufferLayerConsumer.cpp | 85 Mutex::Autolock lock(mMutex); in setDefaultBufferSize() local 97 Mutex::Autolock lock(mMutex); in setContentsChangedListener() local 106 Mutex::Autolock lock(mMutex); in updateTexImage() local 167 Mutex::Autolock lock(mMutex); in bindTextureImage() local 195 Mutex::Autolock lock(mMutex); in releasePendingBuffer() local 206 Mutex::Autolock lock(mMutex); in getPrevFinalReleaseFence() local 220 std::lock_guard<std::mutex> lock(mImagesMutex); in acquireBufferLocked() local 248 std::lock_guard<std::mutex> lock(mImagesMutex); in updateAndReleaseLocked() local 303 Mutex::Autolock lock(mMutex); in getTransformMatrix() local 308 Mutex::Autolock lock(mMutex); in setFilteringEnabled() local [all …]
|
D | TransactionCompletedThread.cpp | 49 std::lock_guard lock(mMutex); in ~TransactionCompletedThread() local 59 std::lock_guard lock(mMutex); in ~TransactionCompletedThread() local 67 std::lock_guard lock(mMutex); in run() local 80 std::lock_guard lock(mMutex); in addCallback() local 101 std::lock_guard lock(mMutex); in registerPendingCallbackHandle() local 122 std::lock_guard lock(mMutex); in addPresentedCallbackHandles() local 163 std::lock_guard lock(mMutex); in addUnpresentedCallbackHandle() local 212 std::lock_guard<std::mutex> lock(mMutex); in addPresentFence() local 217 std::lock_guard lock(mMutex); in sendCallbacks() local 224 std::lock_guard lock(mMutex); in threadMain() local [all …]
|
/frameworks/av/drm/libdrmframework/plugins/common/util/include/ |
D | SessionMap.h | 37 Mutex::Autolock lock(mLock); in ~SessionMap() 51 Mutex::Autolock lock(mLock); in addValue() 67 Mutex::Autolock lock(mLock); in getValue() 77 Mutex::Autolock lock(mLock); in getSize() 90 Mutex::Autolock lock(mLock); in getValueAt() 105 Mutex::Autolock lock(mLock); in removeValue() 118 Mutex::Autolock lock(mLock); in isCreated() 123 Mutex::Autolock lock(mLock);
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | MetricProducer.h | 110 std::lock_guard<std::mutex> lock(mMutex); in notifyAppUpgrade() 134 std::lock_guard<std::mutex> lock(mMutex); in onMatchedLogEvent() 139 std::lock_guard<std::mutex> lock(mMutex); in onConditionChanged() 144 std::lock_guard<std::mutex> lock(mMutex); in onSlicedConditionMayChange() 149 std::lock_guard<std::mutex> lock(mMutex); in isConditionSliced() 161 std::lock_guard<std::mutex> lock(mMutex); in onDumpReport() 167 std::lock_guard<std::mutex> lock(mMutex); in clearPastBuckets() 172 std::lock_guard<std::mutex> lock(mMutex); in dumpStates() 179 std::lock_guard<std::mutex> lock(mMutex); in byteSize() 186 std::lock_guard<std::mutex> lock(mMutex); in addAnomalyTracker() [all …]
|
/frameworks/native/libs/vr/libpdx/ |
D | service.cpp | 27 auto svc = service_.lock(); 52 auto svc = service_.lock(); in Destroy() 79 if (auto svc = service_.lock()) { in ReadVector() 89 if (auto svc = service_.lock()) { in ReadVectorAll() 107 if (auto svc = service_.lock()) { in Read() 118 if (auto svc = service_.lock()) { in WriteVector() 128 if (auto svc = service_.lock()) { in WriteVectorAll() 146 if (auto svc = service_.lock()) { in Write() 156 if (auto svc = service_.lock()) { in PushFileHandle() 165 if (auto svc = service_.lock()) { in PushFileHandle() [all …]
|
/frameworks/base/cmds/statsd/src/guardrail/ |
D | StatsdStats.cpp | 144 lock_guard<std::mutex> lock(mLock); in noteConfigReceived() local 182 lock_guard<std::mutex> lock(mLock); in noteConfigRemoved() local 194 lock_guard<std::mutex> lock(mLock); in noteConfigReset() local 200 lock_guard<std::mutex> lock(mLock); in noteLogLost() local 212 lock_guard<std::mutex> lock(mLock); in noteBroadcastSent() local 229 lock_guard<std::mutex> lock(mLock); in noteActiveStatusChanged() local 248 lock_guard<std::mutex> lock(mLock); in noteActivationBroadcastGuardrailHit() local 261 lock_guard<std::mutex> lock(mLock); in noteEventQueueOverflow() local 277 lock_guard<std::mutex> lock(mLock); in noteDataDropped() local 297 lock_guard<std::mutex> lock(mLock); in noteMetricsReportSent() local [all …]
|
/frameworks/base/core/java/android/net/ |
D | DnsResolver.java | 192 final Object lock = new Object(); in rawQuery() local 202 synchronized (lock) { in rawQuery() 203 registerFDListener(executor, queryfd, callback, cancellationSignal, lock); in rawQuery() 205 addCancellationSignal(cancellationSignal, queryfd, lock); in rawQuery() 233 final Object lock = new Object(); in rawQuery() local 242 synchronized (lock) { in rawQuery() 243 registerFDListener(executor, queryfd, callback, cancellationSignal, lock); in rawQuery() 245 addCancellationSignal(cancellationSignal, queryfd, lock); in rawQuery() 334 final Object lock = new Object(); in query() local 391 synchronized (lock) { in query() [all …]
|
/frameworks/base/libs/hwui/hwui/ |
D | AnimatedImageDrawable.cpp | 75 std::unique_lock lock{mSwapLock}; in isDirty() local 89 lock.unlock(); in isDirty() 107 std::unique_lock lock{mImageLock}; in decodeNextFrame() local 119 std::unique_lock lock{mImageLock}; in reset() local 155 std::unique_lock lock{mImageLock}; in onDraw() local 169 std::unique_lock lock{mSwapLock}; in onDraw() local 224 std::unique_lock lock{mImageLock}; in drawStaging() local 233 std::unique_lock lock{mImageLock}; in drawStaging() local 238 std::unique_lock lock{mSwapLock}; in drawStaging() local 248 std::unique_lock lock{mSwapLock}; in drawStaging() local [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | BackingStore.java | 85 return lockBacking(mode, accessFormat).lock(accessFormat); in lockData() 93 lock(backing, mode); in lockBacking() 296 private void lock(Backing backingToLock, int mode) { in lock() method in BackingStore 347 public abstract Object lock(int accessType); in lock() method in BackingStore.Backing 437 mObject = backing.lock(ACCESS_OBJECT); in syncTo() 441 mObject = backing.lock(ACCESS_BITMAP); in syncTo() 451 public Object lock(int accessType) { in lock() method in BackingStore.ObjectBacking 510 mBitmap = (Bitmap) backing.lock(ACCESS_BITMAP); in syncTo() 513 ByteBuffer buffer = (ByteBuffer) backing.lock(ACCESS_BYTES); in syncTo() 518 RenderTarget renderTarget = (RenderTarget) backing.lock(ACCESS_RENDERTARGET); in syncTo() [all …]
|
/frameworks/av/media/bufferpool/2.0/ |
D | Observer.cpp | 34 std::unique_lock<std::mutex> lock(mLock); in onMessage() local 37 const std::shared_ptr<BufferPoolClient> client = it->second.lock(); in onMessage() 41 lock.unlock(); in onMessage() 50 std::lock_guard<std::mutex> lock(mLock); in addClient() local 52 if (!it->second.lock() || it->first == connectionId) { in addClient() 63 std::lock_guard<std::mutex> lock(mLock); in delClient() local
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | MediaPlayerStateUnitTestTemplate.java | 52 private final Object lock = new Object(); field in MediaPlayerStateUnitTestTemplate 83 synchronized(lock) { in runTestOnMethod() 85 lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE); in runTestOnMethod() 118 synchronized(lock) { in initializeMessageLooper() 124 lock.notify(); in initializeMessageLooper() 132 synchronized(lock) { in initializeMessageLooper() 136 lock.notify(); in initializeMessageLooper() 140 synchronized(lock) { in initializeMessageLooper() 142 lock.notify(); in initializeMessageLooper() 159 synchronized(lock) { in callMediaPlayerMethodUnderTestInState() [all …]
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | LayerInfo.h | 119 std::lock_guard lock(mLock); in setHDRContent() 124 std::lock_guard lock(mLock); in setVisibility() 130 std::lock_guard lock(mLock); in isRecentlyActive() 136 std::lock_guard lock(mLock); in getDesiredRefreshRate() 141 std::lock_guard lock(mLock); in getHDRContent() 146 std::lock_guard lock(mLock); in isVisible() 153 std::lock_guard lock(mLock); in getLastUpdatedTime() 160 std::lock_guard lock(mLock); in clearHistory()
|
/frameworks/base/media/jni/soundpool/ |
D | SoundPool.cpp | 86 Mutex::Autolock lock(&mLock); in ~SoundPool() local 101 Mutex::Autolock lock(&mRestartLock); in addToRestartList() local 110 Mutex::Autolock lock(&mRestartLock); in addToStopList() local 125 mRestartLock.lock(); in run() 139 Mutex::Autolock lock(&mLock); in run() local 142 mRestartLock.lock(); in run() 154 Mutex::Autolock lock(&mLock); in run() local 157 mRestartLock.lock(); in run() 172 mRestartLock.lock(); in quit() 190 Mutex::Autolock lock(&mLock); in findSample() local [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiLockManager.java | 247 for (WifiLock lock : mWifiLocks) { in createMergedWorkSource() 248 mergedWS.add(lock.getWorkSource()); in createMergedWorkSource() 380 for (WifiLock lock : mWifiLocks) { in setBlameHiPerfLocks() 381 if (lock.mMode == WifiManager.WIFI_MODE_FULL_HIGH_PERF) { in setBlameHiPerfLocks() 382 setBlameHiPerfWs(lock.getWorkSource(), shouldBlame); in setBlameHiPerfLocks() 476 private synchronized boolean addLock(WifiLock lock) { in addLock() argument 478 Slog.d(TAG, "addLock: " + lock); in addLock() 481 if (findLockByBinder(lock.getBinder()) != null) { in addLock() 488 mWifiLocks.add(lock); in addLock() 490 switch(lock.mMode) { in addLock() [all …]
|
/frameworks/av/media/utils/ |
D | SchedulingPolicyService.cpp | 36 sMutex.lock(); in requestPriority() 46 sMutex.lock(); in requestPriority() 55 sMutex.lock(); in requestPriority() 65 sMutex.lock(); in requestCpusetBoost() 74 sMutex.lock(); in requestCpusetBoost() 83 sMutex.lock(); in requestCpusetBoost()
|
/frameworks/native/services/inputflinger/ |
D | BlockingQueue.h | 46 std::unique_lock lock(mLock); in pop() 48 mHasElements.wait(lock, [this]{ in pop() 65 std::scoped_lock lock(mLock); in push() 76 std::scoped_lock lock(mLock); in erase() 86 std::scoped_lock lock(mLock); in clear() 96 std::scoped_lock lock(mLock); in size()
|