Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/base/core/java/android/hardware/camera2/legacy/
DCaptureCollector.java316 final ReentrantLock lock = this.mLock; in queueRequest() local
317 lock.lock(); in queueRequest()
355 lock.unlock(); in queueRequest()
369 final ReentrantLock lock = this.mLock; in waitForEmpty() local
370 lock.lock(); in waitForEmpty()
380 lock.unlock(); in waitForEmpty()
394 final ReentrantLock lock = this.mLock; in waitForPreviewsEmpty() local
395 lock.lock(); in waitForPreviewsEmpty()
405 lock.unlock(); in waitForPreviewsEmpty()
428 final ReentrantLock lock = this.mLock; in waitForRequestCompleted() local
[all …]
/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
126 Mutex::Autolock lock(mLock); in setAudioSource() local
137 Mutex::Autolock lock(mLock); in setOutputFormat() local
148 Mutex::Autolock lock(mLock); in setVideoEncoder() local
159 Mutex::Autolock lock(mLock); in setAudioEncoder() local
170 Mutex::Autolock lock(mLock); in setOutputFile() local
[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/native/services/powermanager/
DIPowerManager.cpp47 virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag, in acquireWakeLock() argument
53 data.writeStrongBinder(lock); in acquireWakeLock()
63 virtual status_t acquireWakeLockWithUid(int flags, const sp<IBinder>& lock, const String16& tag, in acquireWakeLockWithUid() argument
69 data.writeStrongBinder(lock); in acquireWakeLockWithUid()
78 virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags, bool isOneWay) in releaseWakeLock() argument
82 data.writeStrongBinder(lock); in releaseWakeLock()
88 virtual status_t updateWakeLockUids(const sp<IBinder>& lock, int len, const int *uids, in updateWakeLockUids() argument
92 data.writeStrongBinder(lock); in updateWakeLockUids()
/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/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 …]
DDispSync.cpp65 Mutex::Autolock lock(mMutex); in updateModel() local
72 Mutex::Autolock lock(mMutex); in stop() local
88 Mutex::Autolock lock(mMutex); in threadLoop() local
148 Mutex::Autolock lock(mMutex); in addEventListener() local
175 Mutex::Autolock lock(mMutex); in removeEventListener() local
190 Mutex::Autolock lock(mMutex); in hasAnyEventListeners() local
314 Mutex::Autolock lock(mMutex); in reset() local
323 Mutex::Autolock lock(mMutex); in addPresentFence() local
347 Mutex::Autolock lock(mMutex); in beginResync() local
353 Mutex::Autolock lock(mMutex); in addResyncSample() local
[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/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()
214 Mutex::Autolock lock(&mLock); in load() local
[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/base/core/java/android/os/
DIPowerManager.aidl28 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws, in acquireWakeLock() argument
30 void acquireWakeLockWithUid(IBinder lock, int flags, String tag, String packageName, in acquireWakeLockWithUid() argument
32 void releaseWakeLock(IBinder lock, int flags); in releaseWakeLock() argument
33 void updateWakeLockUids(IBinder lock, in int[] uids); in updateWakeLockUids() argument
36 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag); in updateWakeLockWorkSource() argument
/frameworks/av/media/libstagefright/
DSurfaceMediaSource.cpp88 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 …]
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/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/base/core/java/com/android/internal/util/
DFastPrintWriter.java250 synchronized (lock) { in checkError()
260 synchronized (lock) { in clearError()
269 synchronized (lock) { in setError()
385 synchronized (lock) {
401 synchronized (lock) {
424 synchronized (lock) {
441 synchronized (lock) {
464 synchronized (lock) {
496 synchronized (lock) {
563 synchronized (lock) {
[all …]
/frameworks/native/libs/gui/
DBufferQueueConsumer.cpp45 Mutex::Autolock lock(mCore->mMutex); in acquireBuffer() local
211 Mutex::Autolock lock(mCore->mMutex); in detachBuffer() local
247 Mutex::Autolock lock(mCore->mMutex); in attachBuffer() local
334 Mutex::Autolock lock(mCore->mMutex); in releaseBuffer() local
396 Mutex::Autolock lock(mCore->mMutex); in connect() local
414 Mutex::Autolock lock(mCore->mMutex); in disconnect() local
437 Mutex::Autolock lock(mCore->mMutex); in getReleasedBuffers() local
479 Mutex::Autolock lock(mCore->mMutex); in setDefaultBufferSize() local
487 Mutex::Autolock lock(mCore->mMutex); in setDefaultMaxBufferCount() local
494 Mutex::Autolock lock(mCore->mMutex); in disableAsyncBuffer() local
[all …]
/frameworks/native/include/powermanager/
DIPowerManager.h35 virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag,
37 virtual status_t acquireWakeLockWithUid(int flags, const sp<IBinder>& lock, const String16& tag,
39 virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags, bool isOneWay = false) = 0;
40 virtual status_t updateWakeLockUids(const sp<IBinder>& lock, int len, const int *uids,
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsStateTest.java126 final Object lock = new Object(); in testReadWrite() local
128 final SettingsState ssWriter = new SettingsState(lock, file, 1, in testReadWrite()
136 synchronized (lock) { in testReadWrite()
140 final SettingsState ssReader = new SettingsState(lock, file, 1, in testReadWrite()
142 synchronized (lock) { in testReadWrite()
156 final Object lock = new Object(); in testUpgrade() local
167 final SettingsState ss = new SettingsState(lock, file, 1, in testUpgrade()
169 synchronized (lock) { in testUpgrade()
/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/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/av/drm/mediadrm/plugins/clearkey/
DSessionLibrary.cpp36 Mutex::Autolock lock(sSingletonLock); in get() local
47 Mutex::Autolock lock(mSessionsLock); in createSession() local
62 Mutex::Autolock lock(mSessionsLock); in findSession() local
67 Mutex::Autolock lock(mSessionsLock);\ in destroySession() local
/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
324 Mutex::Autolock lock(mLock); in getSecureStop() local
342 Mutex::Autolock lock(mLock); in getSecureStops() local
[all …]

12345678910>>...12