Searched refs:lock (Results 1 - 25 of 190) sorted by relevance

12345678

/frameworks/native/services/surfaceflinger/
H A DBarrier.h32 Mutex::Autolock _l(lock);
37 Mutex::Autolock _l(lock);
41 Mutex::Autolock _l(lock);
43 cv.wait(lock);
48 mutable Mutex lock; member in class:android::Barrier
H A DEventControlThread.cpp28 Mutex::Autolock lock(mMutex);
34 Mutex::Autolock lock(mMutex);
/frameworks/testing/uiautomator/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
H A DWakeUpCall.java35 Object lock = WakeUpController.getController().getWakeSync();
36 synchronized (lock) {
37 // poke the lock so the service side can be woken from waiting on the lock
38 lock.notifyAll();
H A DAlarmImpl.java43 Log.d(LOG_TAG, "AlarmService prepared, wake lock acquired");
56 Log.d(LOG_TAG, String.format("Alarm set: %d, giving up wake lock", atTime));
57 Object lock = WakeUpController.getController().getWakeSync();
58 // release wakelock and wait for the lock to be poked from the broadcast receiver
60 // does not really matter if device enters suspend before we start waiting on lock
61 synchronized (lock) {
63 lock.wait();
/frameworks/native/include/powermanager/
H A DIPowerManager.h33 virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag,
35 virtual status_t acquireWakeLockWithUid(int flags, const sp<IBinder>& lock, const String16& tag,
37 virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags) = 0;
38 virtual status_t updateWakeLockUids(const sp<IBinder>& lock, int len, const int *uids) = 0;
/frameworks/av/include/private/media/
H A DAudioEffectShared.h37 Mutex lock; member in struct:android::effect_param_cblk_t
43 : lock(Mutex::SHARED), clientIndex(0), serverIndex(0) {}
/frameworks/base/core/java/android/os/
H A DIPowerManager.aidl28 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws);
29 void acquireWakeLockWithUid(IBinder lock, int flags, String tag, String packageName, int uidtoblame);
30 void releaseWakeLock(IBinder lock, int flags);
31 void updateWakeLockUids(IBinder lock, in int[] uids);
33 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws);
/frameworks/rs/
H A DrsMutex.h32 bool lock();
H A DrsMutex.cpp39 bool Mutex::lock() { function in class:Mutex
/frameworks/av/drm/libdrmframework/plugins/common/util/include/
H A DSessionMap.h37 Mutex::Autolock lock(mLock);
51 Mutex::Autolock lock(mLock);
67 Mutex::Autolock lock(mLock);
77 Mutex::Autolock lock(mLock);
90 Mutex::Autolock lock(mLock);
105 Mutex::Autolock lock(mLock);
118 Mutex::Autolock lock(mLock);
123 Mutex::Autolock lock(mLock);
/frameworks/compile/libbcc/include/bcc/Support/
H A DFileMutex.h30 : FileBase(pFileToLock + ".lock", O_RDONLY | O_CREAT, kDeleteOnClose) { }
32 // Provide a lock() interface filled with default configuration.
33 inline bool lock(bool pNonblocking = true, function in class:bcc::FileMutex
37 return FileBase::lock(LockMode, pNonblocking, pMaxRetry, pRetryInterval);
/frameworks/native/services/powermanager/
H A DIPowerManager.cpp46 virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag, argument
52 data.writeStrongBinder(lock);
60 virtual status_t acquireWakeLockWithUid(int flags, const sp<IBinder>& lock, const String16& tag, argument
66 data.writeStrongBinder(lock);
74 virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags) argument
78 data.writeStrongBinder(lock);
83 virtual status_t updateWakeLockUids(const sp<IBinder>& lock, int len, const int *uids) { argument
86 data.writeStrongBinder(lock);
/frameworks/av/media/libmediaplayerservice/
H A DMediaRecorderClient.cpp62 Mutex::Autolock lock(mLock);
76 Mutex::Autolock lock(mLock);
87 Mutex::Autolock lock(mLock);
101 Mutex::Autolock lock(mLock);
115 Mutex::Autolock lock(mLock);
126 Mutex::Autolock lock(mLock);
137 Mutex::Autolock lock(mLock);
148 Mutex::Autolock lock(mLock);
159 Mutex::Autolock lock(mLock);
170 Mutex::Autolock lock(mLoc
[all...]
H A DMidiMetadataRetriever.cpp42 Mutex::Autolock lock(mLock);
53 Mutex::Autolock lock(mLock);
64 Mutex::Autolock lock(mLock);
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
H A DVariableSpeed.java53 private final Object lock = new Object(); field in class:VariableSpeed
54 @GuardedBy("lock") private MediaPlayerDataSource mDataSource;
55 @GuardedBy("lock") private boolean mIsPrepared;
56 @GuardedBy("lock") private boolean mHasDuration;
57 @GuardedBy("lock") private boolean mHasStartedPlayback;
58 @GuardedBy("lock") private CountDownLatch mEngineInitializedLatch;
59 @GuardedBy("lock") private CountDownLatch mPlaybackFinishedLatch;
60 @GuardedBy("lock") private boolean mHasBeenReleased = true;
61 @GuardedBy("lock") private boolean mIsReadyToReUse = true;
62 @GuardedBy("lock") privat
[all...]
/frameworks/av/services/audioflinger/
H A DSchedulingPolicyService.cpp36 sMutex.lock();
46 sMutex.lock();
55 sMutex.lock();
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
H A DAndroid.mk24 frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common \
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
H A DAndroid.mk24 frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common \
/frameworks/base/media/java/android/media/
H A DMiniThumbFile.java156 FileLock lock = null;
161 lock = mChannel.lock(pos, 1 + 8, true);
178 if (lock != null) lock.release();
194 FileLock lock = null;
208 lock = mChannel.lock(pos, BYTES_PER_MINTHUMB, false);
221 if (lock != null) lock
[all...]
/frameworks/base/services/common_time/
H A Dcommon_clock.cpp43 Mutex::Autolock lock(&lock_);
68 Mutex::Autolock lock(&lock_);
80 Mutex::Autolock lock(&lock_);
98 Mutex::Autolock lock(&lock_);
106 Mutex::Autolock lock(&lock_);
114 Mutex::Autolock lock(&lock_);
H A Dcommon_clock_service.cpp37 Mutex::Autolock lock(mRegistrationLock);
96 Mutex::Autolock lock(mRegistrationLock);
99 Mutex::Autolock lock(mCallbackLock);
114 Mutex::Autolock lock(mRegistrationLock);
118 Mutex::Autolock lock(mCallbackLock);
134 Mutex::Autolock lock(mRegistrationLock);
137 Mutex::Autolock lock(mCallbackLock);
150 Mutex::Autolock lock(mCallbackLock);
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/
H A DAndroid.mk58 $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/common \
59 $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/converter \
60 $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/decoder \
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DMediaPlayerStateUnitTestTemplate.java52 private final Object lock = new Object(); field in class:MediaPlayerStateUnitTestTemplate
83 synchronized(lock) {
85 lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE);
118 synchronized(lock) {
119 Log.v(TAG, "notify lock.");
124 lock.notify();
132 synchronized(lock) {
136 lock.notify();
140 synchronized(lock) {
142 lock
[all...]
/frameworks/av/media/libstagefright/
H A DSurfaceMediaSource.cpp85 Mutex::Autolock lock(mMutex);
92 Mutex::Autolock lock(mMutex);
105 Mutex::Autolock lock(mMutex);
114 Mutex::Autolock lock(mMutex);
130 Mutex::Autolock lock(mMutex);
138 Mutex::Autolock lock(mMutex);
180 Mutex::Autolock lock(mMutex);
190 Mutex::Autolock lock(mMutex);
199 Mutex::Autolock lock(mMutex);
229 Mutex::Autolock lock(mMute
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DBackingStore.java85 return lockBacking(mode, accessFormat).lock(accessFormat);
93 lock(backing, mode);
296 private void lock(Backing backingToLock, int mode) { method in class:BackingStore
301 "Attempting to write-lock the read-locked frame " + this + "!");
304 "Attempting to write-lock the write-locked frame " + this + "!");
318 throw new RuntimeException("Attempting to read-lock locked frame " + this + "!");
347 public abstract Object lock(int accessType); method in class:BackingStore.Backing
437 mObject = backing.lock(ACCESS_OBJECT);
441 mObject = backing.lock(ACCESS_BITMAP);
451 public Object lock(in method in class:BackingStore.ObjectBacking
538 public Object lock(int accessType) { method in class:BackingStore.BitmapBacking
633 public Object lock(int accessType) { method in class:BackingStore.TextureBacking
764 public Object lock(int accessType) { method in class:BackingStore.ByteBufferBacking
875 public Object lock(int accessType) { method in class:BackingStore.AllocationBacking
[all...]

Completed in 2486 milliseconds

12345678