/frameworks/base/services/core/java/com/android/server/ |
D | LockGuard.java | 89 private static LockInfo findOrCreateLockInfo(Object lock) { in findOrCreateLockInfo() argument 90 LockInfo info = sKnown.get(lock); in findOrCreateLockInfo() 93 info.label = "0x" + Integer.toHexString(System.identityHashCode(lock)) + " [" in findOrCreateLockInfo() 95 sKnown.put(lock, info); in findOrCreateLockInfo() 105 public static Object guard(Object lock) { in guard() argument 107 if (lock == null || Thread.holdsLock(lock)) return lock; in guard() 111 final LockInfo info = findOrCreateLockInfo(lock); in guard() 119 + lockToString(lock), new Throwable()); in guard() 129 if (test == null || test == lock) continue; in guard() 132 sKnown.valueAt(i).children.add(lock); 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/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiLockManager.java | 123 for (WifiLock lock : mWifiLocks) { in createMergedWorkSource() 124 mergedWS.add(lock.getWorkSource()); in createMergedWorkSource() 174 private synchronized boolean addLock(WifiLock lock) { in addLock() argument 176 Slog.d(TAG, "addLock: " + lock); in addLock() 179 if (findLockByBinder(lock.getBinder()) != null) { in addLock() 186 mWifiLocks.add(lock); in addLock() 191 mBatteryStats.noteFullWifiLockAcquiredFromSource(lock.mWorkSource); in addLock() 192 switch(lock.mMode) { in addLock() 212 WifiLock lock = findLockByBinder(binder); in removeLock() local 213 if (lock != null) { in removeLock() [all …]
|
/frameworks/av/media/libmediaplayerservice/ |
D | MediaRecorderClient.cpp | 58 Mutex::Autolock lock(mLock); in setInputSurface() local 69 Mutex::Autolock lock(mLock); in querySurfaceMediaSource() local 83 Mutex::Autolock lock(mLock); in setCamera() local 94 Mutex::Autolock lock(mLock); in setPreviewSurface() local 109 Mutex::Autolock lock(mLock); in setVideoSource() local 123 Mutex::Autolock lock(mLock); in setAudioSource() local 134 Mutex::Autolock lock(mLock); in setOutputFormat() local 145 Mutex::Autolock lock(mLock); in setVideoEncoder() local 156 Mutex::Autolock lock(mLock); in setAudioEncoder() local 167 Mutex::Autolock lock(mLock); in setOutputFile() local [all …]
|
/frameworks/base/media/java/android/media/ |
D | MiniThumbFile.java | 155 FileLock lock = null; in getMagic() local 160 lock = mChannel.lock(pos, 1 + 8, true); in getMagic() 177 if (lock != null) lock.release(); in getMagic() 193 FileLock lock = null; in saveMiniThumbToFile() local 207 lock = mChannel.lock(pos, BYTES_PER_MINTHUMB, false); in saveMiniThumbToFile() 220 if (lock != null) lock.release(); in saveMiniThumbToFile() 240 FileLock lock = null; in getMiniThumbFromFile() local 243 lock = mChannel.lock(pos, BYTES_PER_MINTHUMB, true); in getMiniThumbFromFile() 265 if (lock != null) lock.release(); in getMiniThumbFromFile()
|
/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/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/native/libs/vr/libpdx/ |
D | service.cpp | 30 auto svc = service_.lock(); 55 auto svc = service_.lock(); in Destroy() 82 if (auto svc = service_.lock()) { in ReadVector() 92 if (auto svc = service_.lock()) { in ReadVectorAll() 110 if (auto svc = service_.lock()) { in Read() 121 if (auto svc = service_.lock()) { in WriteVector() 131 if (auto svc = service_.lock()) { in WriteVectorAll() 149 if (auto svc = service_.lock()) { in Write() 159 if (auto svc = service_.lock()) { in PushFileHandle() 168 if (auto svc = service_.lock()) { in PushFileHandle() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | Barrier.h | 36 Mutex::Autolock _l(lock); in open() 43 Mutex::Autolock _l(lock); in close() 51 Mutex::Autolock _l(lock); in wait() 53 cv.wait(lock); in wait() 58 mutable Mutex lock; variable
|
D | FrameTracker.cpp | 40 Mutex::Autolock lock(mMutex); in setDesiredPresentTime() local 45 Mutex::Autolock lock(mMutex); in setFrameReadyTime() local 51 Mutex::Autolock lock(mMutex); in setFrameReadyFence() local 57 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 …]
|
D | SurfaceFlingerConsumer.cpp | 42 Mutex::Autolock lock(mMutex); in updateTexImage() local 116 Mutex::Autolock lock(mMutex); in bindTextureImage() local 133 Mutex::Autolock lock(mMutex); in getTransformToDisplayInverse() local 196 Mutex::Autolock lock(mMutex); in getPrevFinalReleaseFence() local 224 Mutex::Autolock lock(mMutex); in releasePendingBuffer() local 238 Mutex::Autolock lock(mMutex); in setContentsChangedListener() local 245 Mutex::Autolock lock(mFrameAvailableMutex); in onSidebandStreamChanged() local 250 Mutex::Autolock lock(mMutex); in onSidebandStreamChanged() local
|
/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/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 | 89 Mutex::Autolock lock(&mLock); in ~SoundPool() local 104 Mutex::Autolock lock(&mRestartLock); in addToRestartList() local 113 Mutex::Autolock lock(&mRestartLock); in addToStopList() local 128 mRestartLock.lock(); in run() 142 Mutex::Autolock lock(&mLock); in run() local 145 mRestartLock.lock(); in run() 157 Mutex::Autolock lock(&mLock); in run() local 160 mRestartLock.lock(); in run() 175 mRestartLock.lock(); in quit() 193 Mutex::Autolock lock(&mLock); in findSample() local [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothA2dp.java | 184 mServiceLock.writeLock().lock(); 194 mServiceLock.readLock().lock(); 252 mServiceLock.writeLock().lock(); in close() 293 mServiceLock.readLock().lock(); in connect() 337 mServiceLock.readLock().lock(); in disconnect() 358 mServiceLock.readLock().lock(); in getConnectedDevices() 378 mServiceLock.readLock().lock(); in getDevicesMatchingConnectionStates() 398 mServiceLock.readLock().lock(); in getConnectionState() 431 mServiceLock.readLock().lock(); in setPriority() 465 mServiceLock.readLock().lock(); in getPriority() [all …]
|
/frameworks/av/media/libmedia/ |
D | JetPlayer.cpp | 132 Mutex::Autolock lock(mMutex); in release() local 180 mMutex.lock(); // [[[[[[[[ LOCK --------------------------------------- in render() 253 mMutex.lock(); in render() 330 Mutex::Autolock lock(mMutex); in loadFromFile() local 348 Mutex::Autolock lock(mMutex); in loadFromFD() local 364 Mutex::Autolock lock(mMutex); in closeFile() local 373 Mutex::Autolock lock(mMutex); in play() local 395 Mutex::Autolock lock(mMutex); in pause() local 416 Mutex::Autolock lock(mMutex); in queueSegment() local 424 Mutex::Autolock lock(mMutex); in setMuteFlags() local [all …]
|
/frameworks/support/compat/java/android/support/v4/provider/ |
D | SelfDestructiveThread.java | 165 final ReentrantLock lock = new ReentrantLock(); in postAndWait() local 166 final Condition cond = lock.newCondition(); in postAndWait() 178 lock.lock(); in postAndWait() 183 lock.unlock(); in postAndWait() 188 lock.lock(); in postAndWait() 208 lock.unlock(); in postAndWait()
|
/frameworks/av/media/libstagefright/ |
D | SurfaceMediaSource.cpp | 88 Mutex::Autolock lock(mMutex); in getTimestamp() local 95 Mutex::Autolock lock(mMutex); in setFrameAvailableListener() local 111 Mutex::Autolock lock(mMutex); in dump() local 120 Mutex::Autolock lock(mMutex); in setFrameRate() local 136 Mutex::Autolock lock(mMutex); in getFrameRate() local 144 Mutex::Autolock lock(mMutex); in start() local 186 Mutex::Autolock lock(mMutex); in setMaxAcquiredBufferCount() local 196 Mutex::Autolock lock(mMutex); in setUseAbsoluteTimestamps() local 205 Mutex::Autolock lock(mMutex); in stop() local 236 Mutex::Autolock lock(mMutex); in getFormat() local [all …]
|
/frameworks/base/core/java/android/os/ |
D | IPowerManager.aidl | 32 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws, in acquireWakeLock() argument 34 void acquireWakeLockWithUid(IBinder lock, int flags, String tag, String packageName, in acquireWakeLockWithUid() argument 36 void releaseWakeLock(IBinder lock, int flags); in releaseWakeLock() argument 37 void updateWakeLockUids(IBinder lock, in int[] uids); in updateWakeLockUids() argument 40 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag); in updateWakeLockWorkSource() argument
|
/frameworks/base/libs/common_time/ |
D | common_clock_service.cpp | 37 Mutex::Autolock lock(mRegistrationLock); in dump() local 96 Mutex::Autolock lock(mRegistrationLock); in registerListener() local 99 Mutex::Autolock lock(mCallbackLock); in registerListener() local 114 Mutex::Autolock lock(mRegistrationLock); in unregisterListener() local 118 Mutex::Autolock lock(mCallbackLock); in unregisterListener() local 134 Mutex::Autolock lock(mRegistrationLock); in binderDied() local 137 Mutex::Autolock lock(mCallbackLock); in binderDied() local 150 Mutex::Autolock lock(mCallbackLock); in notifyOnTimelineChanged() local
|
/frameworks/native/services/powermanager/ |
D | IPowerManager.cpp | 38 virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag, in acquireWakeLock() argument 44 data.writeStrongBinder(lock); in acquireWakeLock() 54 virtual status_t acquireWakeLockWithUid(int flags, const sp<IBinder>& lock, const String16& tag, in acquireWakeLockWithUid() argument 60 data.writeStrongBinder(lock); in acquireWakeLockWithUid() 69 virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags, bool isOneWay) in releaseWakeLock() argument 73 data.writeStrongBinder(lock); in releaseWakeLock() 79 virtual status_t updateWakeLockUids(const sp<IBinder>& lock, int len, const int *uids, in updateWakeLockUids() argument 83 data.writeStrongBinder(lock); in updateWakeLockUids()
|
/frameworks/native/libs/ui/ |
D | FenceTime.cpp | 100 std::lock_guard<std::mutex> lock(mMutex); in applyTrustedSnapshot() local 127 std::lock_guard<std::mutex> lock(mMutex); in getSignalTime() local 150 std::lock_guard<std::mutex> lock(mMutex); in getSignalTime() local 172 std::lock_guard<std::mutex> lock(mMutex); in getSnapshot() local 194 std::lock_guard<std::mutex> lock(mMutex); in signalForTest() local 275 std::lock_guard<std::mutex> lock(mMutex); in push() local 282 std::shared_ptr<FenceTime> front = mQueue.front().lock(); in push() 295 std::lock_guard<std::mutex> lock(mMutex); in updateSignalTimes() local 296 std::shared_ptr<FenceTime> fence = mQueue.front().lock(); in updateSignalTimes() 319 std::lock_guard<std::mutex> lock(mMutex); in createFenceTimeForTest() local [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | FastPrintWriter.java | 267 synchronized (lock) { in checkError() 277 synchronized (lock) { in clearError() 286 synchronized (lock) { in setError() 408 synchronized (lock) { 427 synchronized (lock) { 451 synchronized (lock) { 470 synchronized (lock) { 495 synchronized (lock) { 528 synchronized (lock) { 596 synchronized (lock) { [all …]
|
/frameworks/native/libs/gui/tests/ |
D | DisconnectWaiter.h | 40 Mutex::Autolock lock(mMutex); in waitForFrame() 48 Mutex::Autolock lock(mMutex); in onFrameAvailable() 54 Mutex::Autolock lock(mMutex); in onBuffersReleased() 63 Mutex::Autolock lock(mMutex); in finishDisconnect()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsStateTest.java | 127 final Object lock = new Object(); in testReadWrite() local 129 final SettingsState ssWriter = new SettingsState(getContext(), lock, file, 1, in testReadWrite() 137 synchronized (lock) { in testReadWrite() 141 final SettingsState ssReader = new SettingsState(getContext(), lock, file, 1, in testReadWrite() 143 synchronized (lock) { in testReadWrite() 157 final Object lock = new Object(); in testUpgrade() local 168 final SettingsState ss = new SettingsState(getContext(), lock, file, 1, in testUpgrade() 170 synchronized (lock) { in testUpgrade()
|