/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
VirtualDisplayTest.java | 43 import java.util.concurrent.locks.Lock; 71 private final Lock mImageReaderLock = new ReentrantLock(true /*fair*/); 84 mImageReaderLock.lock(); 98 mImageReaderLock.lock(); 405 mImageReaderLock.lock();
|
/frameworks/base/keystore/tests/src/android/security/ |
KeyStoreTest.java | 321 assertFalse(mKeyStore.lock()); 326 assertTrue(mKeyStore.lock()); 333 mKeyStore.lock(); 357 mKeyStore.lock();
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/ |
MediaRecorderTest.java | 265 mCamera.lock();
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
CameraStreamer.java | 69 * The global camera lock, that is closed when the camera is acquired by any CameraStreamer, 830 // external camera lock used to provide the capability of external camera access. 838 * The thread will wait until the lock state is idle. Any thread can wake up 840 * are called using the same context when lock was called. Using context prevents 851 public boolean lock(Object context) { method in class:CameraStreamer.CameraRunnable.ExternalCameraLock 855 mLock.lock(); [all...] |
/frameworks/native/libs/gui/ |
Surface.cpp | 181 Mutex::Autolock lock(mMutex); 231 Mutex::Autolock lock(mMutex); 256 Mutex::Autolock lock(mMutex); 263 Mutex::Autolock lock(mMutex); 304 { // scope for the lock 305 Mutex::Autolock lock(mMutex); 482 return lock(outBuffer, inOutDirtyBounds); 494 Mutex::Autolock lock(mMutex); 513 Mutex::Autolock lock(mMutex); 534 Mutex::Autolock lock(mMutex) 720 status_t Surface::lock( function in class:android::Surface [all...] |
/hardware/libhardware/modules/audio_remote_submix/ |
audio_hw.cpp | 78 // device lock, also used to protect access to the audio pipe 79 pthread_mutex_t lock; member in struct:android::submix_audio_device 163 pthread_mutex_lock(&out->dev->lock); 167 pthread_mutex_unlock(&out->dev->lock); 187 pthread_mutex_lock(&out->dev->lock); 192 pthread_mutex_unlock(&out->dev->lock); 200 pthread_mutex_unlock(&out->dev->lock); 237 pthread_mutex_lock(&out->dev->lock); 245 pthread_mutex_unlock(&out->dev->lock); 252 pthread_mutex_unlock(&out->dev->lock); [all...] |
/hardware/qcom/audio/hal/ |
audio_hw.h | 98 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:stream_out 136 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:stream_in 173 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:audio_device
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
ReentrantReadWriteLock.java | 20 * ordering for lock access. However, it does support an optional 26 * to the read and write lock is unspecified, subject to reentrancy 27 * constraints. A nonfair lock that is continuously contended may 29 * will normally have higher throughput than a fair lock. 34 * approximately arrival-order policy. When the currently held lock 36 * be assigned the write lock, or if there is a group of reader threads 38 * assigned the read lock. 40 * <p>A thread that tries to acquire a fair read lock (non-reentrantly) 41 * will block if either the write lock is held, or there is a waiting 42 * writer thread. The thread will not acquire the read lock unti 698 public void lock() { method in class:ReentrantReadWriteLock.ReadLock 914 public void lock() { method in class:ReentrantReadWriteLock.WriteLock [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
OldThreadTest.java | 91 assertTrue("Thread should hold lock for object", b); 96 assertFalse("Thread should not hold lock for object", b); 312 final Object lock = new Object(); local 330 synchronized (lock) { 331 lock.equals(new Object()); 333 synchronized (lock) { 338 lock.wait(Long.MAX_VALUE); 356 synchronized (lock) { 365 synchronized (lock) {
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/ |
shared_ptr.h | 1066 lock() const \/\/ never throws function in class:__weak_ptr 1444 lock() const \/\/ never throws function in class:weak_ptr [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/bits/ |
libc-lock.h | 47 typedef struct { int lock; int cnt; void *owner; } __libc_lock_recursive_t; member in struct:__anon37278 64 /* Define a lock variable NAME with storage class CLASS. The lock must be 67 declare a lock defined in another module. In public structure 68 definitions you must use a pointer to the lock structure (i.e., NAME 80 /* Define an initialized lock variable NAME with storage class CLASS. 110 /* Define an initialized recursive lock variable NAME with storage 167 /* Initialize the named lock variable, leaving it in a consistent, unlocked 215 /* Finalize the named lock variable, which must be locked. It cannot be 217 called on a lock variable before the containing storage is reused. * [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/i686-linux/include/c++/4.6.x-google/bits/ |
shared_ptr_base.h | 237 // Perform lock-free add-if-not-zero operation. 1206 lock() const \/\/ never throws function in class:__weak_ptr [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/i686-linux/include/c++/4.6.x-google/tr1/ |
shared_ptr.h | 238 // Perform lock-free add-if-not-zero operation. 837 _M_ptr = __r.lock().get(); 849 _M_ptr = __r.lock().get(); 864 lock() const // never throws function in class:tr1::__weak_ptr 1112 lock() const // never throws function in class:tr1::weak_ptr
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/bits/ |
libc-lock.h | 47 typedef struct { int lock; int cnt; void *owner; } __libc_lock_recursive_t; member in struct:__anon38868 64 /* Define a lock variable NAME with storage class CLASS. The lock must be 67 declare a lock defined in another module. In public structure 68 definitions you must use a pointer to the lock structure (i.e., NAME 80 /* Define an initialized lock variable NAME with storage class CLASS. 110 /* Define an initialized recursive lock variable NAME with storage 167 /* Initialize the named lock variable, leaving it in a consistent, unlocked 215 /* Finalize the named lock variable, which must be locked. It cannot be 217 called on a lock variable before the containing storage is reused. * [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/bits/ |
libc-lock.h | 47 typedef struct { int lock; int cnt; void *owner; } __libc_lock_recursive_t; member in struct:__anon40383 64 /* Define a lock variable NAME with storage class CLASS. The lock must be 67 declare a lock defined in another module. In public structure 68 definitions you must use a pointer to the lock structure (i.e., NAME 80 /* Define an initialized lock variable NAME with storage class CLASS. 110 /* Define an initialized recursive lock variable NAME with storage 167 /* Initialize the named lock variable, leaving it in a consistent, unlocked 215 /* Finalize the named lock variable, which must be locked. It cannot be 217 called on a lock variable before the containing storage is reused. * [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/x86_64-linux/include/c++/4.6.x-google/bits/ |
shared_ptr_base.h | 237 // Perform lock-free add-if-not-zero operation. 1206 lock() const \/\/ never throws function in class:__weak_ptr [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/x86_64-linux/include/c++/4.6.x-google/tr1/ |
shared_ptr.h | 238 // Perform lock-free add-if-not-zero operation. 837 _M_ptr = __r.lock().get(); 849 _M_ptr = __r.lock().get(); 864 lock() const // never throws function in class:tr1::__weak_ptr 1112 lock() const // never throws function in class:tr1::weak_ptr
|
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/linux/mtd/ |
mtd.h | 123 int (*lock) (struct mtd_info *mtd, loff_t ofs, size_t len); member in struct:mtd_info
|
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/linux/ |
skbuff.h | 51 spinlock_t lock; member in struct:sk_buff_head
|
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/linux/sunrpc/ |
sched.h | 144 spinlock_t lock; member in struct:rpc_wait_queue 160 #define RPC_WAITQ_INIT(var,qname) { .lock = SPIN_LOCK_UNLOCKED, .tasks = { [0] = LIST_HEAD_INIT(var.tasks[0]), [1] = LIST_HEAD_INIT(var.tasks[1]), [2] = LIST_HEAD_INIT(var.tasks[2]), }, } 162 #define RPC_WAITQ_INIT(var,qname) { .lock = SPIN_LOCK_UNLOCKED, .tasks = { [0] = LIST_HEAD_INIT(var.tasks[0]), [1] = LIST_HEAD_INIT(var.tasks[1]), [2] = LIST_HEAD_INIT(var.tasks[2]), }, .name = qname, }
|
/prebuilts/ndk/4/platforms/android-4/arch-arm/usr/include/linux/mtd/ |
mtd.h | 123 int (*lock) (struct mtd_info *mtd, loff_t ofs, size_t len); member in struct:mtd_info
|
/prebuilts/ndk/4/platforms/android-4/arch-arm/usr/include/linux/ |
skbuff.h | 51 spinlock_t lock; member in struct:sk_buff_head
|
/prebuilts/ndk/4/platforms/android-4/arch-arm/usr/include/linux/sunrpc/ |
sched.h | 144 spinlock_t lock; member in struct:rpc_wait_queue 160 #define RPC_WAITQ_INIT(var,qname) { .lock = SPIN_LOCK_UNLOCKED, .tasks = { [0] = LIST_HEAD_INIT(var.tasks[0]), [1] = LIST_HEAD_INIT(var.tasks[1]), [2] = LIST_HEAD_INIT(var.tasks[2]), }, } 162 #define RPC_WAITQ_INIT(var,qname) { .lock = SPIN_LOCK_UNLOCKED, .tasks = { [0] = LIST_HEAD_INIT(var.tasks[0]), [1] = LIST_HEAD_INIT(var.tasks[1]), [2] = LIST_HEAD_INIT(var.tasks[2]), }, .name = qname, }
|
/prebuilts/ndk/4/platforms/android-5/arch-arm/usr/include/linux/mtd/ |
mtd.h | 123 int (*lock) (struct mtd_info *mtd, loff_t ofs, size_t len); member in struct:mtd_info
|
/prebuilts/ndk/4/platforms/android-5/arch-arm/usr/include/linux/ |
skbuff.h | 51 spinlock_t lock; member in struct:sk_buff_head
|