/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/base/tools/lock_agent/java/com/android/lock_checker/ |
D | OnThreadLockChecker.java | 131 public void pre(Object lock) { in pre() argument 132 handlePre(Thread.currentThread(), lock); in pre() local 136 public void post(Object lock) { in post() argument 137 handlePost(Thread.currentThread(), lock); in post() local 140 private void handlePre(Thread self, Object lock) { in handlePre() argument 145 heldLocks.add(lock); in handlePre() 155 LockPair tmp = new LockPair(lock, lock); in handlePre() 160 if (SKIP_RECURSIVE && lock == alreadyHeld) { in handlePre() 165 tmp.set(alreadyHeld, lock); in handlePre() 175 tmp.set(lock, alreadyHeld); in handlePre() [all …]
|
/frameworks/libs/net/common/hostdevice/com/android/net/module/util/ |
D | TrackRecord.kt | 55 private val lock = ReentrantLock() constant in com.android.net.module.util.ArrayTrackRecord 56 private val condition = lock.newCondition() 78 override val size get() = lock.withLock { elements.size } in hasNext() 79 override fun contains(element: E) = lock.withLock { elements.contains(element) } in <lambda>() 80 override fun containsAll(elements: Collection<E>) = lock.withLock { in <lambda>() 83 override operator fun get(index: Int) = lock.withLock { elements[index] } in <lambda>() 84 override fun indexOf(element: E): Int = lock.withLock { elements.indexOf(element) } in <lambda>() 85 override fun lastIndexOf(element: E): Int = lock.withLock { elements.lastIndexOf(element) } in <lambda>() 86 override fun isEmpty() = lock.withLock { elements.isEmpty() } in <lambda>() 90 override fun subList(fromIndex: Int, toIndex: Int): List<E> = lock.withLock { in listIterator() [all …]
|
/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 | 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 | 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 79 std::scoped_lock lock(mTraceLock); in writeToFileAsync() local 116 std::scoped_lock lock(mTraceLock); in enable() local 132 std::scoped_lock lock(mTraceLock); in disable() local 145 std::scoped_lock lock(mTraceLock); in isEnabled() 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 …]
|
D | FrameTracker.cpp | 41 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 64 Mutex::Autolock lock(mMutex); in setActualPresentFence() local 70 Mutex::Autolock lock(mMutex); in setDisplayRefreshPeriod() local 75 Mutex::Autolock lock(mMutex); in advanceFrame() local 102 Mutex::Autolock lock(mMutex); in clearStats() local 117 Mutex::Autolock lock(mMutex); in getStats() local 143 Mutex::Autolock lock(mMutex); in logAndResetStats() 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 | 108 std::lock_guard<std::mutex> lock(mMutex); in notifyAppUpgrade() 127 std::lock_guard<std::mutex> lock(mMutex); in onMatchedLogEvent() 132 std::lock_guard<std::mutex> lock(mMutex); in onConditionChanged() 137 std::lock_guard<std::mutex> lock(mMutex); in onSlicedConditionMayChange() 142 std::lock_guard<std::mutex> lock(mMutex); in isConditionSliced() 154 std::lock_guard<std::mutex> lock(mMutex); in onDumpReport() 160 std::lock_guard<std::mutex> lock(mMutex); in clearPastBuckets() 165 std::lock_guard<std::mutex> lock(mMutex); in dumpStates() 172 std::lock_guard<std::mutex> lock(mMutex); in byteSize() 179 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 | 143 lock_guard<std::mutex> lock(mLock); in noteConfigReceived() local 181 lock_guard<std::mutex> lock(mLock); in noteConfigRemoved() local 193 lock_guard<std::mutex> lock(mLock); in noteConfigReset() local 199 lock_guard<std::mutex> lock(mLock); in noteLogLost() local 211 lock_guard<std::mutex> lock(mLock); in noteBroadcastSent() local 228 lock_guard<std::mutex> lock(mLock); in noteActiveStatusChanged() local 247 lock_guard<std::mutex> lock(mLock); in noteActivationBroadcastGuardrailHit() local 260 lock_guard<std::mutex> lock(mLock); in noteEventQueueOverflow() local 276 lock_guard<std::mutex> lock(mLock); in noteDataDropped() local 296 lock_guard<std::mutex> lock(mLock); in noteMetricsReportSent() local [all …]
|
/frameworks/base/core/java/android/net/ |
D | DnsResolver.java | 194 final Object lock = new Object(); in rawQuery() local 204 synchronized (lock) { in rawQuery() 205 registerFDListener(executor, queryfd, callback, cancellationSignal, lock); in rawQuery() 207 addCancellationSignal(cancellationSignal, queryfd, lock); in rawQuery() 235 final Object lock = new Object(); in rawQuery() local 244 synchronized (lock) { in rawQuery() 245 registerFDListener(executor, queryfd, callback, cancellationSignal, lock); in rawQuery() 247 addCancellationSignal(cancellationSignal, queryfd, lock); in rawQuery() 343 final Object lock = new Object(); in query() local 400 synchronized (lock) { in query() [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/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/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/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/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/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiLockManager.java | 243 for (WifiLock lock : mWifiLocks) { in createMergedWorkSource() 244 mergedWS.add(lock.getWorkSource()); in createMergedWorkSource() 376 for (WifiLock lock : mWifiLocks) { in setBlameHiPerfLocks() 377 if (lock.mMode == WifiManager.WIFI_MODE_FULL_HIGH_PERF) { in setBlameHiPerfLocks() 378 setBlameHiPerfWs(lock.getWorkSource(), shouldBlame); in setBlameHiPerfLocks() 478 private synchronized boolean addLock(WifiLock lock) { in addLock() argument 480 Slog.d(TAG, "addLock: " + lock); in addLock() 483 if (findLockByBinder(lock.getBinder()) != null) { in addLock() 490 mWifiLocks.add(lock); in addLock() 492 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()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | LayerInfo.h | 150 std::lock_guard lock(mLock); in setHDRContent() 155 std::lock_guard lock(mLock); in setVisibility() 161 std::lock_guard lock(mLock); in isRecentlyActive() 167 std::lock_guard lock(mLock); in getDesiredRefreshRate() 176 std::lock_guard lock(mLock); in getHDRContent() 181 std::lock_guard lock(mLock); in isVisible() 188 std::lock_guard lock(mLock); in getLastUpdatedTime() 195 std::lock_guard lock(mLock); in clearHistory()
|