HomeSort by relevance Sort by last modified time
    Searched defs:lock (Results 76 - 100 of 1778) sorted by null

1 2 34 5 6 7 8 91011>>

  /packages/apps/TV/jni/
mutex.h 29 int lock() { function in class:Mutex
43 Autolock(Mutex &mutex) : lock(&mutex) {
44 lock->lock();
47 lock->unlock();
50 Mutex *lock; member in class:Mutex::Autolock
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/src/
shared_mutex.cpp 27 __shared_mutex_base::lock() function in class:__shared_mutex_base
108 void shared_timed_mutex::lock() { return __base.lock(); } function in class:shared_timed_mutex
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/thread/thread.mutex/thread.lock/thread.lock.scoped/
adopt_lock.pass.cpp 27 void lock() { assert(!locked); locked = true; } function in struct:TestMutex
44 m1.lock();
54 m1.lock(); m2.lock();
64 m1.lock(); m2.lock(); m3.lock();
  /prebuilts/ndk/r16/sources/third_party/shaderc/libshaderc_util/include/libshaderc_util/
mutex.h 52 // It is not valid to lock a mutex that has already been locked.
53 void lock() { WaitForSingleObject(mutex_, INFINITE); } function in class:shaderc_util::windows_mutex
89 // It is not valid to lock a mutex that has already been locked.
90 void lock() { pthread_mutex_lock(&mutex_); }
  /system/chre/platform/linux/include/chre/target_platform/
mutex_base_impl.h 28 inline void Mutex::lock() { function in class:chre::Mutex
29 mMutex.lock();
  /system/chre/platform/slpi/include/chre/target_platform/
mutex_base_impl.h 32 inline void Mutex::lock() { function in class:chre::Mutex
  /system/libhidl/base/
TaskRunner.cpp 47 std::unique_lock<std::mutex> lock = mQueue->lock(); local
  /cts/tests/tests/os/src/android/os/cts/
PowerManager_WakeLockTest.java 30 * 1 Makes sure the device is on at the level you asked when you created the wake lock
74 final WakeLock lock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); local
75 lock.acquire(2000);
78 lock.release();
  /frameworks/opt/net/ims/tests/src/com/android/ims/
ImsTestBase.java 53 final CountDownLatch lock = new CountDownLatch(1); local
54 h.postDelayed(lock::countDown, delayMs);
55 while (lock.getCount() > 0) {
57 lock.await(timeoutMillis, TimeUnit.MILLISECONDS);
  /packages/services/Telephony/tests/src/com/android/
TelephonyTestBase.java 58 final CountDownLatch lock = new CountDownLatch(1); local
59 h.post(lock::countDown);
60 while (lock.getCount() > 0) {
62 lock.await(timeoutMillis, TimeUnit.MILLISECONDS);
70 final CountDownLatch lock = new CountDownLatch(1); local
71 h.postDelayed(lock::countDown, delayMs);
72 while (lock.getCount() > 0) {
74 lock.await(timeoutMillis, TimeUnit.MILLISECONDS);
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/
TestUtil.java 138 static class Lock {
167 Lock lock; field in class:TestUtil.TestThread
170 TestThread(Lock lock, Runnable target) {
171 this.lock = lock;
174 lock.inc();
180 synchronized (lock) {
181 lock.wait()
199 Lock lock = new Lock(); local
    [all...]
  /external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
TestUtil.java 135 static class Lock {
164 Lock lock; field in class:TestUtil.TestThread
167 TestThread(Lock lock, Runnable target) {
168 this.lock = lock;
171 lock.inc();
177 synchronized (lock) {
178 lock.wait()
196 Lock lock = new Lock(); local
    [all...]
  /libcore/ojluni/src/main/java/java/util/concurrent/
DelayQueue.java 79 private final transient ReentrantLock lock = new ReentrantLock(); field in class:DelayQueue
105 private final Condition available = lock.newCondition();
143 final ReentrantLock lock = this.lock; local
144 lock.lock();
153 lock.unlock();
190 final ReentrantLock lock = this.lock; local
191 lock.lock()
210 final ReentrantLock lock = this.lock; local
255 final ReentrantLock lock = this.lock; local
305 final ReentrantLock lock = this.lock; local
315 final ReentrantLock lock = this.lock; local
346 final ReentrantLock lock = this.lock; local
396 final ReentrantLock lock = this.lock; local
429 final ReentrantLock lock = this.lock; local
474 final ReentrantLock lock = this.lock; local
488 final ReentrantLock lock = this.lock; local
501 final ReentrantLock lock = this.lock; local
    [all...]
  /external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/
MockServerSocket.java 29 private final Object lock = new Object(); field in class:MockServerSocket
50 synchronized (lock) {
53 lock.notifyAll();
55 lock.wait();
65 synchronized (lock) {
67 lock.wait();
75 synchronized (lock) {
77 lock.notifyAll();
88 synchronized (lock) {
90 lock.notifyAll()
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowPowerManagerTest.java 32 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); local
33 assertThat(lock.isHeld()).isFalse();
34 lock.acquire();
35 assertThat(lock.isHeld()).isTrue();
36 lock.acquire();
38 assertThat(lock.isHeld()).isTrue();
39 lock.release();
41 assertThat(lock.isHeld()).isTrue();
42 lock.release();
43 assertThat(lock.isHeld()).isFalse()
65 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); local
89 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); local
105 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); local
118 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); local
152 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); local
    [all...]
  /external/sl4a/Common/src/com/googlecode/android_scripting/event/
EventServer.java 59 listener.lock.countDown();
74 l.lock.await();
104 listener.lock.countDown();
112 private CountDownLatch lock = new CountDownLatch(1); field in class:EventServer.Listener
  /libcore/ojluni/src/main/java/java/lang/ref/
ReferenceQueue.java 49 private final Object lock = new Object(); field in class:ReferenceQueue
58 * The caller is responsible for ensuring the lock is held on this queue,
62 * @GuardedBy("lock")
98 synchronized (lock) {
111 synchronized (lock) {
113 lock.notifyAll();
120 // @GuardedBy("lock")
149 synchronized (lock) {
183 synchronized (lock) {
188 lock.wait(timeout)
    [all...]
  /external/ims/rcs/presencepolling/tests/src/com/android/service/ims/presence/
PresencePollingTestBase.java 62 final CountDownLatch lock = new CountDownLatch(1); local
63 h.postDelayed(lock::countDown, delayMs);
64 while (lock.getCount() > 0) {
66 lock.await(timeoutMillis, TimeUnit.MILLISECONDS);
  /frameworks/base/tests/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
AlarmImpl.java 43 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(); local
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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
ImsTestBase.java 53 final CountDownLatch lock = new CountDownLatch(1); local
54 h.postDelayed(lock::countDown, delayMs);
55 while (lock.getCount() > 0) {
57 lock.await(timeoutMillis, TimeUnit.MILLISECONDS);
  /libcore/luni/src/test/java/libcore/java/lang/
OldAndroidMonitorTest.java 111 private final Object lock; field in class:OldAndroidMonitorTest.Waiter
115 public Waiter(Object lock, CountDownLatch cdl) {
116 this.lock = lock;
123 synchronized (lock) {
127 lock.wait();
136 synchronized (lock) {
143 final Object lock = new Object(); local
145 final Waiter waiter = new Waiter(lock, cdl);
149 // Wait for the "waiter" to start and acquire |lock| for the first time
    [all...]
  /packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
TelecomTestCase.java 52 final CountDownLatch lock = new CountDownLatch(1); local
53 h.post(lock::countDown);
54 while (lock.getCount() > 0) {
56 lock.await(timeoutMillis, TimeUnit.MILLISECONDS);
64 final CountDownLatch lock = new CountDownLatch(1); local
65 h.postDelayed(lock::countDown, delayMs);
66 while (lock.getCount() > 0) {
68 lock.await(timeoutMillis, TimeUnit.MILLISECONDS);
  /tools/tradefederation/core/util-apps/DeviceSetupUtil/src/com/android/tradefed/utils/
DeviceSetupService.java 45 KeyguardLock lock = keyguardManager.newKeyguardLock(KEYGUARD_SERVICE); local
46 lock.disableKeyguard();
56 Log.v(DeviceSetupIntentReceiver.TAG, "Acquiring wake lock.");
  /art/test/1907-suspend-list-self-twice/src/art/
Test1907.java 22 public static final Object lock = new Object(); field in class:Test1907
26 lock.wait(millis);
40 synchronized (lock) {
  /device/generic/car/emulator/audio/driver/
ext_pcm.h 35 pthread_mutex_t lock; member in struct:ext_pcm

Completed in 499 milliseconds

1 2 34 5 6 7 8 91011>>