Home
last modified time | relevance | path

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

12345678910

/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.cpp62 Mutex::Autolock lock(mLock); in querySurfaceMediaSource() local
76 Mutex::Autolock lock(mLock); in setCamera() local
87 Mutex::Autolock lock(mLock); in setPreviewSurface() local
102 Mutex::Autolock lock(mLock); in setVideoSource() local
116 Mutex::Autolock lock(mLock); in setAudioSource() local
127 Mutex::Autolock lock(mLock); in setOutputFormat() local
138 Mutex::Autolock lock(mLock); in setVideoEncoder() local
149 Mutex::Autolock lock(mLock); in setAudioEncoder() local
160 Mutex::Autolock lock(mLock); in setOutputFile() local
171 Mutex::Autolock lock(mLock); in setOutputFile() local
[all …]
DMidiFile.cpp121 Mutex::Autolock lock(mMutex); in setDataSource() local
152 Mutex::Autolock lock(mMutex); in setDataSource() local
180 Mutex::Autolock lock(mMutex); in prepare() local
210 Mutex::Autolock lock(mMutex); in start() local
238 Mutex::Autolock lock(mMutex); in stop() local
259 Mutex::Autolock lock(mMutex); in seekTo() local
279 Mutex::Autolock lock(mMutex); in pause() local
319 Mutex::Autolock lock(mMutex); in getDuration() local
384 Mutex::Autolock lock(mMutex); in reset() local
420 Mutex::Autolock lock(mMutex); in setLooping() local
[all …]
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
DVariableSpeed.java53 private final Object lock = new Object(); field in VariableSpeed
89 synchronized (lock) { in setOnCompletionListener()
97 synchronized (lock) { in setOnErrorListener()
105 synchronized (lock) { in release()
113 synchronized (lock) { in release()
119 synchronized (lock) { in release()
139 synchronized (lock) { in stopCurrentPlayback()
182 synchronized (lock) { in innerSetDataSource()
192 synchronized (lock) { in reset()
198 synchronized (lock) { in reset()
[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/av/media/libmedia/
DSoundPool.cpp84 Mutex::Autolock lock(&mLock); in ~SoundPool() local
99 Mutex::Autolock lock(&mRestartLock); in addToRestartList() local
108 Mutex::Autolock lock(&mRestartLock); in addToStopList() local
123 mRestartLock.lock(); in run()
137 Mutex::Autolock lock(&mLock); in run() local
140 mRestartLock.lock(); in run()
152 Mutex::Autolock lock(&mLock); in run() local
155 mRestartLock.lock(); in run()
170 mRestartLock.lock(); in quit()
209 Mutex::Autolock lock(&mLock); in load() local
[all …]
DJetPlayer.cpp127 Mutex::Autolock lock(mMutex); in release() local
178 mMutex.lock(); // [[[[[[[[ LOCK --------------------------------------- in render()
251 mMutex.lock(); in render()
328 Mutex::Autolock lock(mMutex); in loadFromFile() local
353 Mutex::Autolock lock(mMutex); in loadFromFD() local
373 Mutex::Autolock lock(mMutex); in closeFile() local
382 Mutex::Autolock lock(mMutex); in play() local
404 Mutex::Autolock lock(mMutex); in pause() local
425 Mutex::Autolock lock(mMutex); in queueSegment() local
432 Mutex::Autolock lock(mMutex); in setMuteFlags() local
[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/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/av/services/camera/libcameraservice/api1/
DCameraClient.cpp103 Mutex* lock = mCameraService->getClientLockById(mCameraId); in ~CameraClient() local
104 lock->lock(); in ~CameraClient()
107 lock->unlock(); in ~CameraClient()
159 status_t CameraClient::lock() { in lock() function in android::CameraClient
162 Mutex::Autolock lock(mLock); in lock() local
177 Mutex::Autolock lock(mLock); in unlock() local
199 Mutex::Autolock lock(mLock); in connect() local
235 Mutex::Autolock lock(mLock); in disconnect() local
279 Mutex::Autolock lock(mLock); in setPreviewWindow() local
344 Mutex::Autolock lock(mLock); in setPreviewCallbackFlag() local
[all …]
/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/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/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.cpp43 Mutex::Autolock lock(&lock_); in init() local
68 Mutex::Autolock lock(&lock_); in localToCommon() local
80 Mutex::Autolock lock(&lock_); in commonToLocal() local
98 Mutex::Autolock lock(&lock_); in setBasis() local
106 Mutex::Autolock lock(&lock_); in resetBasis() local
114 Mutex::Autolock lock(&lock_); in setSlew() local
/frameworks/av/media/libstagefright/
DSurfaceMediaSource.cpp87 Mutex::Autolock lock(mMutex); in getTimestamp() local
94 Mutex::Autolock lock(mMutex); in setFrameAvailableListener() local
110 Mutex::Autolock lock(mMutex); in dump() local
119 Mutex::Autolock lock(mMutex); in setFrameRate() local
135 Mutex::Autolock lock(mMutex); in getFrameRate() local
143 Mutex::Autolock lock(mMutex); in start() local
185 Mutex::Autolock lock(mMutex); in setMaxAcquiredBufferCount() local
195 Mutex::Autolock lock(mMutex); in setUseAbsoluteTimestamps() local
204 Mutex::Autolock lock(mMutex); in stop() local
235 Mutex::Autolock lock(mMutex); in getFormat() 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/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/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.cpp41 Mutex::Autolock lock(mCore->mMutex); in acquireBuffer() local
183 Mutex::Autolock lock(mCore->mMutex); in detachBuffer() local
218 Mutex::Autolock lock(mCore->mMutex); in attachBuffer() local
290 Mutex::Autolock lock(mCore->mMutex); in releaseBuffer() local
350 Mutex::Autolock lock(mCore->mMutex); in connect() local
368 Mutex::Autolock lock(mCore->mMutex); in disconnect() local
391 Mutex::Autolock lock(mCore->mMutex); in getReleasedBuffers() local
433 Mutex::Autolock lock(mCore->mMutex); in setDefaultBufferSize() local
441 Mutex::Autolock lock(mCore->mMutex); in setDefaultMaxBufferCount() local
448 Mutex::Autolock lock(mCore->mMutex); in disableAsyncBuffer() local
[all …]
DSurface.cpp203 Mutex::Autolock lock(mMutex); in dequeueBuffer() local
225 Mutex::Autolock lock(mMutex); in dequeueBuffer() local
265 Mutex::Autolock lock(mMutex); in cancelBuffer() local
290 Mutex::Autolock lock(mMutex); in lockBuffer_DEPRECATED() local
297 Mutex::Autolock lock(mMutex); in queueBuffer() local
346 Mutex::Autolock lock(mMutex); in query() local
534 return lock(outBuffer, inOutDirtyBounds); in dispatchLock()
552 Mutex::Autolock lock(mMutex); in connect() local
578 Mutex::Autolock lock(mMutex); in disconnect() local
601 Mutex::Autolock lock(mMutex); in setUsage() local
[all …]
/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 …]

12345678910