Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 323) sorted by relevance

12345678910>>...13

/frameworks/base/core/java/android/hardware/camera2/legacy/
DCaptureCollector.java322 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/services/core/java/com/android/server/
DLockGuard.java70 private static LockInfo findOrCreateLockInfo(Object lock) { in findOrCreateLockInfo() argument
71 LockInfo info = sKnown.get(lock); in findOrCreateLockInfo()
74 info.label = "0x" + Integer.toHexString(System.identityHashCode(lock)) + " [" in findOrCreateLockInfo()
76 sKnown.put(lock, info); in findOrCreateLockInfo()
86 public static Object guard(Object lock) { in guard() argument
88 if (lock == null || Thread.holdsLock(lock)) return lock; in guard()
92 final LockInfo info = findOrCreateLockInfo(lock); in guard()
100 + lockToString(lock), new Throwable()); in guard()
110 if (test == null || test == lock) continue; in guard()
113 sKnown.valueAt(i).children.add(lock); in guard()
[all …]
/frameworks/av/media/libmediaplayerservice/
DMediaRecorderClient.cpp58 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/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLockManager.java123 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/base/media/java/android/media/
DMiniThumbFile.java155 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/av/drm/libdrmframework/plugins/common/util/include/
DSessionMap.h37 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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DBackingStore.java85 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/
DMediaPlayerStateUnitTestTemplate.java52 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/
DBarrier.h36 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
DFrameTracker.cpp42 Mutex::Autolock lock(mMutex); in setDesiredPresentTime() local
47 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
105 Mutex::Autolock lock(mMutex); in clearStats() local
120 Mutex::Autolock lock(mMutex); in getStats() local
146 Mutex::Autolock lock(mMutex); in logAndResetStats() local
[all …]
/frameworks/base/media/jni/soundpool/
DSoundPool.cpp88 Mutex::Autolock lock(&mLock); in ~SoundPool() local
103 Mutex::Autolock lock(&mRestartLock); in addToRestartList() local
112 Mutex::Autolock lock(&mRestartLock); in addToStopList() local
127 mRestartLock.lock(); in run()
141 Mutex::Autolock lock(&mLock); in run() local
144 mRestartLock.lock(); in run()
156 Mutex::Autolock lock(&mLock); in run() local
159 mRestartLock.lock(); in run()
174 mRestartLock.lock(); in quit()
192 Mutex::Autolock lock(&mLock); in findSample() local
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothA2dp.java131 mServiceLock.writeLock().lock();
141 mServiceLock.readLock().lock();
199 mServiceLock.writeLock().lock(); in close()
240 mServiceLock.readLock().lock(); in connect()
284 mServiceLock.readLock().lock(); in disconnect()
305 mServiceLock.readLock().lock(); in getConnectedDevices()
325 mServiceLock.readLock().lock(); in getDevicesMatchingConnectionStates()
345 mServiceLock.readLock().lock(); in getConnectionState()
378 mServiceLock.readLock().lock(); in setPriority()
414 mServiceLock.readLock().lock(); in getPriority()
[all …]
/frameworks/av/media/libmedia/
DJetPlayer.cpp132 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/av/media/libstagefright/
DSurfaceMediaSource.cpp89 Mutex::Autolock lock(mMutex); in getTimestamp() local
96 Mutex::Autolock lock(mMutex); in setFrameAvailableListener() local
112 Mutex::Autolock lock(mMutex); in dump() local
121 Mutex::Autolock lock(mMutex); in setFrameRate() local
137 Mutex::Autolock lock(mMutex); in getFrameRate() local
145 Mutex::Autolock lock(mMutex); in start() local
187 Mutex::Autolock lock(mMutex); in setMaxAcquiredBufferCount() local
197 Mutex::Autolock lock(mMutex); in setUseAbsoluteTimestamps() local
206 Mutex::Autolock lock(mMutex); in stop() local
237 Mutex::Autolock lock(mMutex); in getFormat() local
[all …]
DMediaSync.cpp87 Mutex::Autolock lock(mMutex); in setSurface() local
149 Mutex::Autolock lock(mMutex); in setAudioTrack() local
194 Mutex::Autolock lock(mMutex); in createInputSurface() local
259 Mutex::Autolock lock(mMutex); in getPlayTimeForPendingAudioFrames() local
300 Mutex::Autolock lock(mMutex); in updateQueuedAudioData() local
339 Mutex::Autolock lock(mMutex); in setName() local
344 Mutex::Autolock lock(mMutex); in flush() local
361 Mutex::Autolock lock(mMutex); in setVideoFrameRateHint() local
372 Mutex::Autolock lock(mMutex); in getVideoFrameRate() local
393 Mutex::Autolock lock(mMutex); in setSyncSettings() local
[all …]
/frameworks/base/core/java/android/os/
DIPowerManager.aidl31 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws, in acquireWakeLock() argument
33 void acquireWakeLockWithUid(IBinder lock, int flags, String tag, String packageName, in acquireWakeLockWithUid() argument
35 void releaseWakeLock(IBinder lock, int flags); in releaseWakeLock() argument
36 void updateWakeLockUids(IBinder lock, in int[] uids); in updateWakeLockUids() argument
39 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag); in updateWakeLockWorkSource() argument
/frameworks/base/libs/common_time/
Dcommon_clock_service.cpp37 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
Dcommon_clock.cpp44 Mutex::Autolock lock(&lock_); in init() local
69 Mutex::Autolock lock(&lock_); in localToCommon() local
81 Mutex::Autolock lock(&lock_); in commonToLocal() local
99 Mutex::Autolock lock(&lock_); in setBasis() local
107 Mutex::Autolock lock(&lock_); in resetBasis() local
115 Mutex::Autolock lock(&lock_); in setSlew() local
/frameworks/native/services/powermanager/
DIPowerManager.cpp38 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/base/core/java/com/android/internal/util/
DFastPrintWriter.java251 synchronized (lock) { in checkError()
261 synchronized (lock) { in clearError()
270 synchronized (lock) { in setError()
392 synchronized (lock) {
411 synchronized (lock) {
435 synchronized (lock) {
454 synchronized (lock) {
479 synchronized (lock) {
512 synchronized (lock) {
580 synchronized (lock) {
[all …]
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsStateTest.java127 final Object lock = new Object(); in testReadWrite() local
129 final SettingsState ssWriter = new SettingsState(lock, file, 1, in testReadWrite()
137 synchronized (lock) { in testReadWrite()
141 final SettingsState ssReader = new SettingsState(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(lock, file, 1, in testUpgrade()
170 synchronized (lock) { in testUpgrade()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaVisualizerTest.java59 private final Object lock = new Object(); field in MediaVisualizerTest
336 synchronized(lock) { in test2_1ListenerCapture()
338 lock.wait(1000); in test2_1ListenerCapture()
348 synchronized(lock) { in test2_1ListenerCapture()
351 lock.wait(1000); in test2_1ListenerCapture()
362 synchronized(lock) { in test2_1ListenerCapture()
365 lock.wait(1000); in test2_1ListenerCapture()
381 synchronized(lock) { in test2_1ListenerCapture()
384 lock.wait(1000); in test2_1ListenerCapture()
395 synchronized(lock) { in test2_1ListenerCapture()
[all …]
/frameworks/native/libs/gui/tests/
DDisconnectWaiter.h40 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/native/libs/gui/
DBufferQueueConsumer.cpp55 Mutex::Autolock lock(mCore->mMutex); in acquireBuffer() local
281 Mutex::Autolock lock(mCore->mMutex); in detachBuffer() local
325 Mutex::Autolock lock(mCore->mMutex); in attachBuffer() local
417 Mutex::Autolock lock(mCore->mMutex); in releaseBuffer() local
480 Mutex::Autolock lock(mCore->mMutex); in connect() local
498 Mutex::Autolock lock(mCore->mMutex); in disconnect() local
522 Mutex::Autolock lock(mCore->mMutex); in getReleasedBuffers() local
564 Mutex::Autolock lock(mCore->mMutex); in setDefaultBufferSize() local
578 Mutex::Autolock lock(mCore->mMutex); in setMaxBufferCount() local
618 Mutex::Autolock lock(mCore->mMutex); in setMaxAcquiredBufferCount() local
[all …]
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp86 Mutex::Autolock lock(mLock); in openSession() local
99 Mutex::Autolock lock(mLock); in closeSession() local
118 Mutex::Autolock lock(mLock); in getKeyRequest() local
188 Mutex::Autolock lock(mLock); in provideKeyResponse() local
217 Mutex::Autolock lock(mLock); in removeKeys() local
234 Mutex::Autolock lock(mLock); in restoreKeys() local
275 Mutex::Autolock lock(mLock); in getProvisionRequest() local
304 Mutex::Autolock lock(mLock); in provideProvisionResponse() local
318 Mutex::Autolock lock(mLock); in getSecureStop() local
336 Mutex::Autolock lock(mLock); in getSecureStops() local
[all …]

12345678910>>...13