HomeSort by relevance Sort by last modified time
    Searched refs:acquire (Results 1 - 25 of 372) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/guava/guava-tests/test/com/google/common/util/concurrent/
RateLimiterTest.java 55 limiter.acquire(); // R0.00, since it's the first request
56 limiter.acquire(); // R0.20
57 limiter.acquire(); // R0.20
63 assertTrue("Unable to acquire initial permit", r.tryAcquire());
86 limiter.acquire(0);
91 limiter.acquire(-1);
119 limiter.acquire(); // R0.00
121 limiter.acquire(); // R0.00, ...which is granted immediately
122 limiter.acquire(); // R0.20
128 assertEquals(0.0, limiter.acquire(), EPSILON); // R0.0
    [all...]
  /cts/tests/tests/os/src/android/os/cts/
PowerManager_WakeLockTest.java 39 wl.acquire();
44 // Try ref-counted acquire/release
46 wl.acquire();
48 wl.acquire();
57 wl.acquire();
59 wl.acquire();
64 // test acquire(long)
65 wl.acquire(PowerManagerTest.TIME);
75 lock.acquire(2000);
  /external/swiftshader/third_party/LLVM/include/llvm/Support/
Mutex.h 31 /// Initializes the lock but doesn't acquire it. if \p recursive is set
33 /// also more likely to deadlock (same thread can't acquire more than
47 /// Attempts to unconditionally acquire the lock. If the lock is held by
48 /// another thread, this method will wait until it can acquire the lock.
50 /// @brief Unconditionally acquire the lock.
51 bool acquire();
54 /// thread, the lock is released allowing other threads to acquire the
60 /// Attempts to acquire the lock without blocking. If the lock is not
65 /// @brief Try to acquire the lock.
95 bool acquire() { function in class:llvm::sys::SmartMutex
    [all...]
MutexGuard.h 1 //===-- Support/MutexGuard.h - Acquire/Release Mutex In Scope ---*- C++ -*-===//
21 /// Instances of this class acquire a given Mutex Lock when constructed and
32 MutexGuard(sys::Mutex &m) : M(m) { M.acquire(); }
  /cts/tests/tests/net/src/android/net/wifi/cts/
MulticastLockTest.java 31 * Verify acquire and release of Multicast locks
43 mcl.acquire();
47 mcl.acquire();
48 mcl.acquire();
58 +" a greater number of times than acquire");
66 mcl.acquire();
70 mcl.acquire();
71 mcl.acquire();
WifiLockTest.java 31 * Verify acquire and release of High Performance wifi locks
38 * Verify acquire and release of Low latency wifi locks
54 wl.acquire();
58 wl.acquire();
59 wl.acquire();
69 +" a greater number of times than acquire");
77 wl.acquire();
81 wl.acquire();
82 wl.acquire();
  /external/catch2/projects/SelfTest/IntrospectiveTests/
PartTracker.tests.cpp 43 ITracker& testCase = SectionTracker::acquire( ctx, makeNAL( "Testcase" ) );
46 ITracker& s1 = SectionTracker::acquire( ctx, makeNAL( "S1" ) );
71 ITracker& testCase2 = SectionTracker::acquire( ctx, makeNAL( "Testcase" ) );
74 ITracker& s1b = SectionTracker::acquire( ctx, makeNAL( "S1" ) );
84 ITracker& testCase2 = SectionTracker::acquire( ctx, makeNAL( "Testcase" ) );
87 ITracker& s1b = SectionTracker::acquire( ctx, makeNAL( "S1" ) );
90 ITracker& s2 = SectionTracker::acquire( ctx, makeNAL( "S2" ) );
105 ITracker& s2 = SectionTracker::acquire( ctx, makeNAL( "S2" ) );
113 ITracker& testCase2 = SectionTracker::acquire( ctx, makeNAL( "Testcase" ) );
116 ITracker& s1b = SectionTracker::acquire( ctx, makeNAL( "S1" ) )
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
lock_tests.py 77 lock.acquire()
82 lock.acquire()
88 self.assertTrue(lock.acquire(False))
93 lock.acquire()
96 result.append(lock.acquire(False))
103 lock.acquire()
106 lock.acquire()
120 lock.acquire()
138 lock.acquire()
157 lock.acquire()
    [all...]
  /external/python/cpython2/Lib/test/
lock_tests.py 81 lock.acquire()
86 lock.acquire()
92 self.assertTrue(lock.acquire(False))
97 lock.acquire()
100 result.append(lock.acquire(False))
107 lock.acquire()
110 lock.acquire()
124 lock.acquire()
142 lock.acquire()
161 lock.acquire()
    [all...]
test_dummy_thread.py 32 self.lock.acquire()
43 self.assertTrue(self.lock.acquire(0),
48 self.lock.acquire(0)
49 self.assertFalse(self.lock.acquire(0),
55 self.lock.acquire()
61 self.assertIs(self.lock.acquire(1), True,
63 self.assertIs(self.lock.acquire(), True)
72 self.lock.acquire()
79 self.lock.acquire()
  /external/llvm/test/MC/ARM/
load-store-acquire-release-v8-thumb.s 12 @ CHECK-V7: error: instruction requires: acquire/release
13 @ CHECK-V7: error: instruction requires: acquire/release
14 @ CHECK-V7: error: instruction requires: acquire/release
15 @ CHECK-V7: error: instruction requires: acquire/release
25 @ CHECK-V7: error: instruction requires: acquire/release
26 @ CHECK-V7: error: instruction requires: acquire/release
27 @ CHECK-V7: error: instruction requires: acquire/release
28 @ CHECK-V7: error: instruction requires: acquire/release
36 @ CHECK-V7: error: instruction requires: acquire/release
37 @ CHECK-V7: error: instruction requires: acquire/releas
    [all...]
load-store-acquire-release-v8.s 12 @ CHECK-V7: instruction requires: acquire/release
13 @ CHECK-V7: instruction requires: acquire/release
14 @ CHECK-V7: instruction requires: acquire/release
15 @ CHECK-V7: instruction requires: acquire/release
25 @ CHECK-V7: instruction requires: acquire/release
26 @ CHECK-V7: instruction requires: acquire/release
27 @ CHECK-V7: instruction requires: acquire/release
28 @ CHECK-V7: instruction requires: acquire/release
36 @ CHECK-V7: instruction requires: acquire/release
37 @ CHECK-V7: instruction requires: acquire/releas
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/test/MC/ARM/
load-store-acquire-release-v8-thumb.s 12 @ CHECK-V7: error: instruction requires: acquire/release
13 @ CHECK-V7: error: instruction requires: acquire/release
14 @ CHECK-V7: error: instruction requires: acquire/release
15 @ CHECK-V7: error: instruction requires: acquire/release
25 @ CHECK-V7: error: instruction requires: acquire/release
26 @ CHECK-V7: error: instruction requires: acquire/release
27 @ CHECK-V7: error: instruction requires: acquire/release
28 @ CHECK-V7: error: instruction requires: acquire/release
36 @ CHECK-V7: error: instruction requires: acquire/release
37 @ CHECK-V7: error: instruction requires: acquire/releas
    [all...]
load-store-acquire-release-v8.s 12 @ CHECK-V7: instruction requires: acquire/release
13 @ CHECK-V7: instruction requires: acquire/release
14 @ CHECK-V7: instruction requires: acquire/release
15 @ CHECK-V7: instruction requires: acquire/release
25 @ CHECK-V7: instruction requires: acquire/release
26 @ CHECK-V7: instruction requires: acquire/release
27 @ CHECK-V7: instruction requires: acquire/release
28 @ CHECK-V7: instruction requires: acquire/release
36 @ CHECK-V7: instruction requires: acquire/release
37 @ CHECK-V7: instruction requires: acquire/releas
    [all...]
  /external/python/cpython2/Lib/multiprocessing/
synchronize.py 85 self.acquire = self._semlock.acquire
221 self.acquire = self._lock.acquire
234 'must acquire() condition before using wait()'
246 self._wait_semaphore.acquire(True, timeout)
253 self._lock.acquire()
257 assert not self._wait_semaphore.acquire(False)
261 while self._woken_count.acquire(False):
262 res = self._sleeping_count.acquire(False
    [all...]
  /external/python/cpython3/Lib/test/
lock_tests.py 101 lock.acquire()
107 lock.acquire()
112 lock.acquire()
118 self.assertTrue(lock.acquire(False))
123 lock.acquire()
126 result.append(lock.acquire(False))
133 lock.acquire()
136 lock.acquire()
150 lock.acquire()
168 lock.acquire()
    [all...]
  /external/webrtc/webrtc/base/
linked_ptr.h 48 {acquire(r);}
53 acquire(r);
61 {acquire(r);}
66 acquire(r);
82 void acquire(const linked_ptr& r) throw() function in class:rtc::linked_ptr
96 template <class Y> void acquire(const linked_ptr<Y>& r) throw() function in class:rtc::linked_ptr
  /external/python/cpython2/Demo/threads/
sync.py 23 # .acquire()
24 # acquire the lock associated with the condition
58 # condition object can (must) be .acquire'ed and .release'ed directly.
87 # condition.acquire()
92 # # did a .wait, *and* acquire the lock again before .wait
109 # condition.acquire()
133 # B_done.acquire() B_done.acquire(); B_done.release()
138 # Because B_done was in the acquire'd state at the time B was spawned,
139 # B's attempt to acquire B_done can't succeed until A has done it
298 def acquire(self): member in class:condition
    [all...]
  /developers/build/prebuilts/gradle/BasicMultitouch/Application/src/main/java/com/example/android/basicmultitouch/
Pools.java 28 * MyPooledClass instance = sPool.acquire();
55 public T acquire(); method in interface:Pools.Pool
98 public T acquire() { method in class:Pools.SimplePool
152 public T acquire() { method in class:Pools.SynchronizedPool
154 return super.acquire();
  /developers/samples/android/common/src/java/com/example/android/common/util/
Pools.java 34 * <li><b>{@link Pool#acquire()}:</b> Returns an used object if one is
37 * ready to be reallocated in acquire().</li>
53 * MyPooledClass instance = sPool.acquire();
81 public T acquire(); method in interface:Pools.Pool
85 * and makes it available through a call to {@link #acquire()}. An
132 public T acquire() { method in class:Pools.SimplePool
211 public T acquire() { method in class:Pools.SynchronizedPool
213 return super.acquire();
  /developers/samples/android/input/multitouch/BasicMultitouch/Application/src/main/java/com/example/android/basicmultitouch/
Pools.java 28 * MyPooledClass instance = sPool.acquire();
55 public T acquire(); method in interface:Pools.Pool
98 public T acquire() { method in class:Pools.SimplePool
152 public T acquire() { method in class:Pools.SynchronizedPool
154 return super.acquire();
  /development/samples/browseable/BasicMultitouch/src/com.example.android.basicmultitouch/
Pools.java 28 * MyPooledClass instance = sPool.acquire();
55 public T acquire(); method in interface:Pools.Pool
98 public T acquire() { method in class:Pools.SimplePool
152 public T acquire() { method in class:Pools.SynchronizedPool
154 return super.acquire();
  /external/golang-protobuf/conformance/
Makefile 35 @echo To run the tests in this directory, acquire the main protobuf
  /external/skia/include/private/
SkSpinlock.h 18 void acquire() { function in class:SkSpinlock
19 // To act as a mutex, we need an acquire barrier when we acquire the lock.
26 // Acquire the lock or fail (quickly). Lets the caller decide to do something other than wait.
28 // To act as a mutex, we need an acquire barrier when we acquire the lock.
  /external/skqp/include/private/
SkSpinlock.h 18 void acquire() { function in class:SkSpinlock
19 // To act as a mutex, we need an acquire barrier when we acquire the lock.
26 // Acquire the lock or fail (quickly). Lets the caller decide to do something other than wait.
28 // To act as a mutex, we need an acquire barrier when we acquire the lock.

Completed in 1207 milliseconds

1 2 3 4 5 6 7 8 91011>>