Home
last modified time | relevance | path

Searched refs:isHeld (Results 1 – 8 of 8) sorted by relevance

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DPowerManagerTest.java43 assertFalse(lock.isHeld()); in shouldAcquireAndReleaseReferenceCountedLock()
45 assertTrue(lock.isHeld()); in shouldAcquireAndReleaseReferenceCountedLock()
48 assertTrue(lock.isHeld()); in shouldAcquireAndReleaseReferenceCountedLock()
51 assertTrue(lock.isHeld()); in shouldAcquireAndReleaseReferenceCountedLock()
53 assertFalse(lock.isHeld()); in shouldAcquireAndReleaseReferenceCountedLock()
61 assertFalse(lock.isHeld()); in shouldAcquireAndReleaseNonReferenceCountedLock()
63 assertTrue(lock.isHeld()); in shouldAcquireAndReleaseNonReferenceCountedLock()
65 assertTrue(lock.isHeld()); in shouldAcquireAndReleaseNonReferenceCountedLock()
69 assertFalse(lock.isHeld()); in shouldAcquireAndReleaseNonReferenceCountedLock()
DWifiManagerTest.java148 assertTrue(lock.isHeld()); in shouldAcquireAndReleaseWifilockRefCounted()
150 assertTrue(lock.isHeld()); in shouldAcquireAndReleaseWifilockRefCounted()
152 assertFalse(lock.isHeld()); in shouldAcquireAndReleaseWifilockRefCounted()
160 assertTrue(lock.isHeld()); in shouldAcquireAndReleaseWifilockNonRefCounted()
162 assertTrue(lock.isHeld()); in shouldAcquireAndReleaseWifilockNonRefCounted()
164 assertFalse(lock.isHeld()); in shouldAcquireAndReleaseWifilockNonRefCounted()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowPowerManager.java61 public synchronized boolean isHeld() { in isHeld() method in ShadowPowerManager.ShadowWakeLock
DShadowWifiManager.java172 public synchronized boolean isHeld() { in isHeld() method in ShadowWifiManager.ShadowWifiLock
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_deadlock_detector1.cc111 if (dd.isHeld(&lt->dd, m->id)) in MutexBeforeLock()
167 CHECK(!dd.isHeld(&lt->dd, m->id)); in MutexAfterLock()
Dsanitizer_deadlock_detector.h283 bool is_reachable = !isHeld(dtls, cur_node) && onLockBefore(dtls, cur_node);
348 bool isHeld(DeadlockDetectorTLS<BV> *dtls, uptr node) const { in isHeld() function
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_deadlock_detector_test.cc332 EXPECT_TRUE(d.isHeld(&dtls, l0)); in RunTryLockTest()
333 EXPECT_TRUE(d.isHeld(&dtls, l1)); in RunTryLockTest()
334 EXPECT_TRUE(d.isHeld(&dtls, l2)); in RunTryLockTest()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/
DConsoleActivity.java743 if (wakelock != null && wakelock.isHeld()) { in onPause()