/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/x86_64-linux-gnu/bits/ |
stdio-lock.h | 1 /* Thread package specific definitions of stream lock type. NPTL version. 23 #include <bits/libc-lock.h> 30 typedef struct { int lock; int cnt; void *owner; } _IO_lock_t; member in struct:__anon63187 45 lll_lock ((_name).lock, LLL_PRIVATE); \ 57 if (lll_trylock ((_name).lock) == 0) \ 75 lll_unlock ((_name).lock, LLL_PRIVATE); \ 111 #endif /* bits/stdio-lock.h */
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++abi/src/ |
cxa_guard.cpp | 123 uint8_t lock[2]; member in union:__cxxabiv1::__anon656::__anon657 125 return f.lock[1] != 0; 133 uint8_t lock[2]; member in union:__cxxabiv1::__anon656::__anon658 135 f.lock[1] = y; 146 uint8_t lock[2]; member in union:__cxxabiv1::__anon656::__anon659 148 return f.lock[1] != 0; 156 uint8_t lock[2]; member in union:__cxxabiv1::__anon656::__anon660 158 f.lock[1] = y; 193 lock_type lock = get_lock(*guard_object); local 194 if (lock) [all...] |
/system/libhidl/base/ |
SynchronizedQueue.h | 48 std::unique_lock<std::mutex> lock() { function in struct:android::hardware::details::SynchronizedQueue 73 std::unique_lock<std::mutex> lock(mMutex); 75 mCondition.wait(lock, [this]{ 89 std::unique_lock<std::mutex> lock(mMutex); 104 std::unique_lock<std::mutex> lock(mMutex);
|
/developers/build/prebuilts/gradle/MidiScope/Application/src/main/java/com/example/android/common/midi/ |
EventScheduler.java | 34 private final Object lock = new Object(); field in class:EventScheduler 155 synchronized (lock) { 165 lock.notify(); 173 // Caller must synchronize on lock before calling. 193 synchronized (lock) { 218 synchronized (lock) { 238 lock.wait((int) millisToWait);
|
/developers/build/prebuilts/gradle/MidiSynth/Application/src/main/java/com/example/android/common/midi/ |
EventScheduler.java | 34 private final Object lock = new Object(); field in class:EventScheduler 155 synchronized (lock) { 165 lock.notify(); 173 // Caller must synchronize on lock before calling. 193 synchronized (lock) { 218 synchronized (lock) { 238 lock.wait((int) millisToWait);
|
/developers/samples/android/common/src/java/com/example/android/common/midi/ |
EventScheduler.java | 34 private final Object lock = new Object(); field in class:EventScheduler 155 synchronized (lock) { 165 lock.notify(); 173 // Caller must synchronize on lock before calling. 193 synchronized (lock) { 218 synchronized (lock) { 238 lock.wait((int) millisToWait);
|
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/ |
EventScheduler.java | 34 private final Object lock = new Object(); field in class:EventScheduler 155 synchronized (lock) { 165 lock.notify(); 173 // Caller must synchronize on lock before calling. 193 synchronized (lock) { 218 synchronized (lock) { 238 lock.wait((int) millisToWait);
|
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/ |
EventScheduler.java | 34 private final Object lock = new Object(); field in class:EventScheduler 155 synchronized (lock) { 165 lock.notify(); 173 // Caller must synchronize on lock before calling. 193 synchronized (lock) { 218 synchronized (lock) { 238 lock.wait((int) millisToWait);
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowWifiManagerTest.java | 200 WifiManager.WifiLock lock = wifiManager.createWifiLock("TAG"); local 201 lock.acquire(); 202 lock.acquire(); 203 assertThat(lock.isHeld()).isTrue(); 204 lock.release(); 205 assertThat(lock.isHeld()).isTrue(); 206 lock.release(); 207 assertThat(lock.isHeld()).isFalse(); 212 WifiManager.WifiLock lock = wifiManager.createWifiLock("TAG"); local 213 lock.setReferenceCounted(false) 224 WifiManager.WifiLock lock = wifiManager.createWifiLock("TAG"); local 230 WifiManager.WifiLock lock = wifiManager.createWifiLock("TAG"); local [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiLockManager.java | 44 // some wifi lock statistics 60 * This method verifies that the caller has permission to make the call and that the lock mode 67 * @return true if the lock was successfully acquired, false if the lockMode was invalid. 84 * Method used by applications to release a WiFi Wake lock. This method checks permissions for 88 * @return true if the lock was released, false if the caller did not hold any locks 96 * Method used to get the strongest lock type currently held by the WifiLockManager. 100 * @return int representing the currently held (highest power consumption) lock. 123 for (WifiLock lock : mWifiLocks) { 124 mergedWS.add(lock.getWorkSource()); 140 // Now check if there is an active lock 221 WifiLock lock = findLockByBinder(binder); local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
FileLockTest.java | 105 FileLock lock = new MockFileLock(null, 0, 10, true); local 106 assertNull(lock.channel()); 141 FileLock lock = new MockFileLock(null, 0, 10, true); local 142 assertTrue(lock.isShared()); 163 FileLock fileLock = readWriteChannel.lock(); 177 FileLock fileLock = fileChannel.lock(); 189 fileLock = fileChannel.lock();
|
/libcore/ojluni/src/main/java/sun/misc/ |
VM.java | 152 private static final Object lock = new Object(); field in class:VM 160 synchronized (lock) { 162 lock.notifyAll(); 174 synchronized (lock) { 176 lock.wait(); 366 // The caller must hold lock to synchronize the update.
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
PriorityBlockingQueue.java | 115 * operations protected with a single lock. However, allocation 117 * holding main lock) in order to allow takes to operate 120 * build-up. The need to back away from lock during allocation 122 * java.util.PriorityQueue operations within a lock, as was done 164 * Lock used for all public operations. 166 private final ReentrantLock lock; field in class:PriorityBlockingQueue 223 this.lock = new ReentrantLock(); 224 this.notEmpty = lock.newCondition(); 246 this.lock = new ReentrantLock(); 247 this.notEmpty = lock.newCondition() 479 final ReentrantLock lock = this.lock; local 533 final ReentrantLock lock = this.lock; local 543 final ReentrantLock lock = this.lock; local 557 final ReentrantLock lock = this.lock; local 570 final ReentrantLock lock = this.lock; local 593 final ReentrantLock lock = this.lock; local 660 final ReentrantLock lock = this.lock; local 677 final ReentrantLock lock = this.lock; local 701 final ReentrantLock lock = this.lock; local 756 final ReentrantLock lock = this.lock; local 783 final ReentrantLock lock = this.lock; local 829 final ReentrantLock lock = this.lock; local [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
ReentrantReadWriteLockTest.java | 19 import java.util.concurrent.locks.Lock; 41 final ReentrantReadWriteLock lock; field in class:ReentrantReadWriteLockTest.InterruptibleLockRunnable 42 InterruptibleLockRunnable(ReentrantReadWriteLock l) { lock = l; } 44 lock.writeLock().lockInterruptibly(); 53 final ReentrantReadWriteLock lock; field in class:ReentrantReadWriteLockTest.InterruptedLockRunnable 54 InterruptedLockRunnable(ReentrantReadWriteLock l) { lock = l; } 56 lock.writeLock().lockInterruptibly(); 78 * Releases write lock, checking that it had a hold count of 1. 80 void releaseWriteLock(PublicReentrantReadWriteLock lock) { 81 ReentrantReadWriteLock.WriteLock writeLock = lock.writeLock() 193 PublicReentrantReadWriteLock lock; local 217 PublicReentrantReadWriteLock lock = local 239 ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 256 ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 273 ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 290 ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 303 ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 316 final PublicReentrantReadWriteLock lock = local 336 final PublicReentrantReadWriteLock lock = local 356 final PublicReentrantReadWriteLock lock = local 376 final PublicReentrantReadWriteLock lock = local 396 final PublicReentrantReadWriteLock lock = local 412 final PublicReentrantReadWriteLock lock = local 430 final PublicReentrantReadWriteLock lock = local 448 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 470 final PublicReentrantReadWriteLock lock = local 495 final PublicReentrantReadWriteLock lock = local 529 final PublicReentrantReadWriteLock lock = local 568 final PublicReentrantReadWriteLock lock = local 595 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 609 final PublicReentrantReadWriteLock lock = local 652 final PublicReentrantReadWriteLock lock = local 686 final PublicReentrantReadWriteLock lock = local 721 final PublicReentrantReadWriteLock lock = local 759 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 777 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 794 final PublicReentrantReadWriteLock lock = local 815 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 836 final PublicReentrantReadWriteLock lock = local 859 final PublicReentrantReadWriteLock lock = local 883 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 973 final ReentrantReadWriteLock lock = local 992 final PublicReentrantReadWriteLock lock = local 1020 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 1073 final PublicReentrantReadWriteLock lock = local 1112 final PublicReentrantReadWriteLock lock = local 1145 final PublicReentrantReadWriteLock lock = local 1193 final PublicReentrantReadWriteLock lock = local 1239 ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 1266 final PublicReentrantReadWriteLock lock = local 1293 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 1306 final PublicReentrantReadWriteLock lock = local 1337 final PublicReentrantReadWriteLock lock = local 1363 final PublicReentrantReadWriteLock lock = local 1395 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 1408 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 1421 final PublicReentrantReadWriteLock lock = new PublicReentrantReadWriteLock(fair); local 1434 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 1449 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 1463 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 1478 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 1492 final PublicReentrantReadWriteLock lock = local 1509 final PublicReentrantReadWriteLock lock = local 1524 final PublicReentrantReadWriteLock lock = local 1558 final PublicReentrantReadWriteLock lock = local 1588 final PublicReentrantReadWriteLock lock = local 1641 ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 1660 ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local 1673 ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); local [all...] |
/art/test/123-compiler-regressions-mt/src/ |
Main.java | 81 private Object lock = new Object(); field in class:B17689750TestMonitor 87 synchronized (lock) { 92 synchronized (lock) { 100 synchronized (lock) { 107 synchronized (lock) {
|
/art/test/1902-suspend/src/art/ |
Test1902.java | 20 public static final Object lock = new Object(); field in class:Test1902 38 lock.wait(millis); 59 synchronized (lock) {
|
/art/test/1903-suspend-self/src/art/ |
Test1903.java | 20 public static final Object lock = new Object(); field in class:Test1903 45 lock.wait(millis); 65 synchronized (lock) {
|
/art/test/1906-suspend-list-me-first/src/art/ |
Test1906.java | 20 public static final Object lock = new Object(); field in class:Test1906 27 lock.wait(millis); 41 synchronized (lock) {
|
/bionic/libc/kernel/uapi/drm/ |
drm_sarea.h | 47 struct drm_hw_lock lock; member in struct:drm_sarea
|
/cts/apps/CtsVerifier/assets/scripts/power_monitors/ |
monsoon.py | 62 def lock( device ): member in class:Power_Monitor 129 self._lockfile = Power_Monitor.lock( device ) 200 lockfile = Power_Monitor.lock( dev )
|
/cts/tests/app/app/src/android/app/stubs/ |
KeyboardShortcutsActivity.java | 26 import java.util.concurrent.locks.Lock; 34 private final Lock mLock = new ReentrantLock(); 47 mLock.lock(); 59 mLock.lock(); 72 mLock.lock(); 85 mLock.lock();
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/ |
rcslib.py | 84 # XXX could be a lock or symbolic name
98 def lock(self, name_rev):
member in class:RCS 99 """Set an rcs lock on NAME_REV."""
105 """Clear an rcs lock on NAME_REV."""
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
thread_atheos.h | 147 * Lock support.
156 fastmutex_t *lock;
local 166 lock = (fastmutex_t *) malloc(sizeof(fastmutex_t));
167 if (lock == NULL) {
173 PyOS_snprintf(name, sizeof(name), "python lock (%d)", this_lock);
176 if (fastmutex_create(name, lock) < 0) {
179 free(lock);
180 lock = NULL;
182 dprintf(("PyThread_allocate_lock()-> %p\n", lock));
183 return (PyThread_type_lock) lock;
[all...] |
thread_pth.h | 14 /* A pth mutex isn't sufficient to model the Python lock type
18 * The pth_lock struct implements a Python lock as a "locked?" bit
26 /* a <cond, mutex> pair to handle an acquire of a locked lock */
86 * Lock support.
90 pth_lock *lock;
local 97 lock = (pth_lock *) malloc(sizeof(pth_lock));
98 memset((void *)lock, '\0', sizeof(pth_lock));
99 if (lock) {
100 lock->locked = 0;
101 status = pth_mutex_init(&lock->mut); [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
KeyPairGeneratorSpi.java | 26 private static Object lock = new Object(); field in class:KeyPairGeneratorSpi 85 synchronized (lock)
|