/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
AuthenticatorTest.java | 135 final Object lock = new Object(); local 141 synchronized (lock) { 143 lock.notifyAll(); 159 synchronized (lock) { 162 lock.wait(); 169 synchronized (lock) { 177 synchronized (lock) { 188 synchronized (lock) {
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowSQLiteDatabase.java | 51 public void lock() { method in class:ShadowSQLiteDatabase 53 mLock.lock(); 347 lock(); 364 lock(); 373 lock();
|
/frameworks/base/media/java/android/media/ |
MiniThumbFile.java | 156 FileLock lock = null; local 161 lock = mChannel.lock(pos, 1 + 8, true); 178 if (lock != null) lock.release(); 194 FileLock lock = null; local 208 lock = mChannel.lock(pos, BYTES_PER_MINTHUMB, false); 221 if (lock != null) lock.release() 241 FileLock lock = null; local [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
RenderAction.java | 96 // acquire the lock. if the result is null, lock was just acquired, otherwise, return 160 // acquire the lock. if the result is null, lock was just acquired, otherwise, return 173 * Acquire the lock so that the scene can be acted upon. 175 * This returns null if the lock was just acquired, otherwise it returns 176 * {@link Result#SUCCESS} if the lock already belonged to that thread, or another 180 * @return null if the lock was just acquire or another result depending on the state. 186 ReentrantLock lock = Bridge.getLock(); local 187 if (lock.isHeldByCurrentThread() == false) 214 ReentrantLock lock = Bridge.getLock(); local 310 ReentrantLock lock = Bridge.getLock(); local [all...] |
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
ReentrantLock.java | 12 * A reentrant mutual exclusion {@link Lock} with the same basic 13 * behavior and semantics as the implicit monitor lock accessed using 19 * {@code lock} will return, successfully acquiring the lock, when 20 * the lock is not owned by another thread. The method will return 21 * immediately if the current thread already owns the lock. This can 28 * thread. Otherwise this lock does not guarantee any particular 35 * fair lock may obtain it multiple times in succession while other 37 * lock. 39 * honor the fairness setting. It will succeed if the lock 94 abstract void lock(); method in class:ReentrantLock.Sync 176 final void lock() { method in class:ReentrantLock.NonfairSync 194 final void lock() { method in class:ReentrantLock.FairSync 255 public void lock() { method in class:ReentrantLock [all...] |
/libcore/luni/src/main/java/java/util/logging/ |
FileHandler.java | 132 // output file lock 133 FileLock lock = null; field in class:FileHandler 174 * if current process has held lock for this fileName continue 193 * if lock is unsupported and IOException thrown, just let the 197 lock = channel.tryLock(); 198 if (lock == null) { 202 allLocks.put(fileName, lock); 494 FileChannel channel = lock.channel(); 495 lock.release();
|
/packages/apps/Camera2/src/com/android/camera/ |
SurfaceTextureRenderer.java | 170 final Object lock = new Object(); local 171 synchronized (lock) { 175 synchronized (lock) { 176 lock.notifyAll(); 181 lock.wait();
|
/libcore/luni/src/main/java/java/util/concurrent/ |
ArrayBlockingQueue.java | 79 /** Main lock guarding all access */ 80 final ReentrantLock lock; field in class:ArrayBlockingQueue 131 * Call only when holding lock. 134 // assert lock.getHoldCount() == 1; 144 * Call only when holding lock. 147 // assert lock.getHoldCount() == 1; 164 * Call only when holding lock. 167 // assert lock.getHoldCount() == 1; 226 lock = new ReentrantLock(fair); 227 notEmpty = lock.newCondition() 251 final ReentrantLock lock = this.lock; local 296 final ReentrantLock lock = this.lock; local 319 final ReentrantLock lock = this.lock; local 343 final ReentrantLock lock = this.lock; local 359 final ReentrantLock lock = this.lock; local 369 final ReentrantLock lock = this.lock; local 382 final ReentrantLock lock = this.lock; local 397 final ReentrantLock lock = this.lock; local 414 final ReentrantLock lock = this.lock; local 437 final ReentrantLock lock = this.lock; local 466 final ReentrantLock lock = this.lock; local 496 final ReentrantLock lock = this.lock; local 528 final ReentrantLock lock = this.lock; local 584 final ReentrantLock lock = this.lock; local 608 final ReentrantLock lock = this.lock; local 635 final ReentrantLock lock = this.lock; local 680 final ReentrantLock lock = this.lock; local 1025 final ReentrantLock lock = ArrayBlockingQueue.this.lock; local 1158 final ReentrantLock lock = ArrayBlockingQueue.this.lock; local 1184 final ReentrantLock lock = ArrayBlockingQueue.this.lock; local 1209 final ReentrantLock lock = ArrayBlockingQueue.this.lock; local [all...] |
ScheduledThreadPoolExecutor.java | 807 private final ReentrantLock lock = new ReentrantLock(); field in class:ScheduledThreadPoolExecutor.DelayedWorkQueue 914 final ReentrantLock lock = this.lock; local 924 final ReentrantLock lock = this.lock; local 947 final ReentrantLock lock = this.lock; local 965 final ReentrantLock lock = this.lock; local 978 final ReentrantLock lock = this.lock; local 1030 final ReentrantLock lock = this.lock; local 1044 final ReentrantLock lock = this.lock; local 1080 final ReentrantLock lock = this.lock; local 1120 final ReentrantLock lock = this.lock; local 1152 final ReentrantLock lock = this.lock; local 1192 final ReentrantLock lock = this.lock; local 1203 final ReentrantLock lock = this.lock; local [all...] |
/art/runtime/native/ |
java_lang_Thread.cc | 122 // thread list lock to avoid this, as setting the thread name causes mutator to lock/unlock 154 mirror::Object* lock = soa.Decode<mirror::Object*>(java_lock); local 155 Monitor::Wait(Thread::Current(), lock, ms, ns, true, kSleeping); local
|
/bionic/libc/kernel/common/linux/lockd/ |
xdr.h | 52 struct nlm_lock lock; member in struct:nlm_args 67 struct nlm_lock lock; member in struct:nlm_res
|
/dalvik/vm/ |
Debugger.h | 103 pthread_mutex_t lock; member in struct:DebugInvokeReq
|
Hash.h | 79 pthread_mutex_t lock; member in struct:HashTable 115 dvmLockMutex(&pHashTable->lock); 118 dvmUnlockMutex(&pHashTable->lock); 143 * forget to lock the table before calling this. 215 * The caller should lock the table beforehand.
|
/development/ndk/platforms/android-3/include/linux/lockd/ |
xdr.h | 45 struct nlm_lock lock; member in struct:nlm_args 59 struct nlm_lock lock; member in struct:nlm_res
|
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/test/ |
mm_jpeg_test.c | 70 pthread_mutex_t lock; member in struct:__anon1822 179 pthread_mutex_init(&p_obj->lock, NULL); 294 pthread_mutex_lock(&jpeg_obj.lock); 295 pthread_cond_wait(&jpeg_obj.cond, &jpeg_obj.lock); 296 pthread_mutex_unlock(&jpeg_obj.lock);
|
/device/samsung/manta/power/ |
power_manta.c | 36 pthread_mutex_t lock; member in struct:manta_power_module 148 pthread_mutex_lock(&manta->lock); 162 pthread_mutex_unlock(&manta->lock); 215 lock: PTHREAD_MUTEX_INITIALIZER,
|
/external/apache-http/src/org/apache/http/client/methods/ |
HttpRequestBase.java | 36 import java.util.concurrent.locks.Lock; 62 private Lock abortLock; 105 this.abortLock.lock(); 120 this.abortLock.lock(); 137 this.abortLock.lock(); 150 // Trigger the callbacks outside of the lock, to prevent
|
/external/apache-http/src/org/apache/http/impl/conn/tsccm/ |
ConnPoolByRoute.java | 184 poolLock.lock(); 205 poolLock.lock(); 226 poolLock.lock(); 275 poolLock.lock(); 378 poolLock.lock(); 422 poolLock.lock(); 491 poolLock.lock(); 527 poolLock.lock(); 554 poolLock.lock(); 576 poolLock.lock(); [all...] |
/external/chromium/base/ |
path_service.cc | 18 #include "base/synchronization/lock.h" 95 base::Lock lock; member in struct:__anon1431::PathData 133 base::AutoLock scoped_lock(path_data->lock); 147 base::AutoLock scoped_lock(path_data->lock); 161 base::AutoLock scoped_lock(path_data->lock); 189 // NOTE: it should be safe to iterate here without the lock 228 base::AutoLock scoped_lock(path_data->lock); 246 base::AutoLock scoped_lock(path_data->lock);
|
/external/chromium/base/synchronization/ |
waitable_event_posix.cc | 8 #include "base/synchronization/lock.h" 17 // The WaitableEvent maintains a list of waiters, protected by a lock. Each 22 // Waiting involves grabbing the lock and adding oneself to the wait list. Async 23 // waits can be canceled, which means grabbing the lock and removing oneself 122 // Called with lock held. 131 // unlocking it and removing it from the wait-list. Called with lock held. 137 base::Lock* lock() { function in class:base::SyncWaiter 148 base::Lock lock_; 173 sw.lock()->Acquire() [all...] |
/external/chromium/base/threading/ |
worker_pool_posix_unittest.cc | 10 #include "base/synchronization/lock.h" 24 Lock* lock() { return &pool_->lock_; } function in class:base::PosixDynamicThreadPool::PosixDynamicThreadPoolPeer 53 IncrementingTask(Lock* counter_lock, 55 Lock* unique_threads_lock, 74 Lock* counter_lock_; 75 Lock* unique_threads_lock_; 86 BlockingIncrementingTask(Lock* counter_lock, 88 Lock* unique_threads_lock, 90 Lock* num_waiting_to_start_lock [all...] |
/external/chromium/net/base/ |
cert_database_nss.cc | 81 crypto::AutoNSSWriteLock lock; local
|
/external/chromium_org/ash/wm/ |
toplevel_window_event_handler_unittest.cc | 463 // Tests that a gesture cannot minimize a window in login/lock screen. 472 aura::Window* lock = internal::RootWindowController::ForWindow(target.get())-> local 474 lock->AddChild(target.get());
|
/external/chromium_org/base/ |
path_service.cc | 18 #include "base/synchronization/lock.h" 114 base::Lock lock; member in struct:__anon3578::PathData 194 base::AutoLock scoped_lock(path_data->lock); 207 // Iterating does not need the lock because only the list head might be 227 base::AutoLock scoped_lock(path_data->lock); 266 base::AutoLock scoped_lock(path_data->lock); 282 base::AutoLock scoped_lock(path_data->lock); 313 base::AutoLock scoped_lock(path_data->lock); 333 base::AutoLock scoped_lock(path_data->lock); [all...] |
platform_file_posix.cc | 79 struct flock lock; local 80 lock.l_type = F_WRLCK; 81 lock.l_whence = SEEK_SET; 82 lock.l_start = 0; 83 lock.l_len = 0; // Lock entire file. 84 if (HANDLE_EINTR(fcntl(file, do_lock ? F_SETLK : F_UNLCK, &lock)) == -1)
|