Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/
DSettableWakeLockTest.java49 assertTrue(mFake.isHeld()); in setAcquire_true_acquires()
50 assertEquals(mFake.isHeld(), mSettable.isAcquired()); in setAcquire_true_acquires()
57 assertFalse(mFake.isHeld()); in setAcquire_false_releases()
58 assertEquals(mFake.isHeld(), mSettable.isAcquired()); in setAcquire_false_releases()
67 assertFalse(mFake.isHeld()); in setAcquire_true_multipleTimes_isIdempotent()
68 assertEquals(mFake.isHeld(), mSettable.isAcquired()); in setAcquire_true_multipleTimes_isIdempotent()
76 assertFalse(mFake.isHeld()); in setAcquire_false_multipleTimes_idempotent()
77 assertEquals(mFake.isHeld(), mSettable.isAcquired()); in setAcquire_false_multipleTimes_idempotent()
86 assertTrue(mFake.isHeld()); in setAcquire_false_multipleTimes_idempotent_again()
87 assertEquals(mFake.isHeld(), mSettable.isAcquired()); in setAcquire_false_multipleTimes_idempotent_again()
DWakeLockTest.java56 assertFalse(mInner.isHeld()); in createPartialInner_notHeldYet()
62 assertTrue(mInner.isHeld()); in wakeLock_acquire()
69 assertFalse(mInner.isHeld()); in wakeLock_release()
77 assertTrue(mInner.isHeld()); in wakeLock_refCounted()
88 assertTrue(mInner.isHeld()); in wakeLock_wrap()
94 assertFalse(mInner.isHeld()); in wakeLock_wrap()
DWakeLockFake.java48 public boolean isHeld() {
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java98 assertTrue(wl.isHeld()); in doTestWakeLock()
100 assertFalse(wl.isHeld()); in doTestWakeLock()
105 assertTrue(wl.isHeld()); in doTestWakeLock()
107 assertTrue(wl.isHeld()); in doTestWakeLock()
109 assertTrue(wl.isHeld()); in doTestWakeLock()
111 assertFalse(wl.isHeld()); in doTestWakeLock()
116 assertTrue(wl.isHeld()); in doTestWakeLock()
118 assertTrue(wl.isHeld()); in doTestWakeLock()
120 assertFalse(wl.isHeld()); in doTestWakeLock()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeMachineTest.java156 assertTrue(mWakeLockFake.isHeld()); in testWakeLock_heldInTransition()
168 assertTrue(mWakeLockFake.isHeld()); in testWakeLock_heldInPulseStates()
171 assertTrue(mWakeLockFake.isHeld()); in testWakeLock_heldInPulseStates()
179 assertFalse(mWakeLockFake.isHeld()); in testWakeLock_notHeldInDozeStates()
182 assertFalse(mWakeLockFake.isHeld()); in testWakeLock_notHeldInDozeStates()
194 assertFalse(mWakeLockFake.isHeld()); in testWakeLock_releasedAfterPulse()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DWakeLockStateMachine.java94 while (mWakeLock.isHeld()) { in onQuitting()
163 if (mWakeLock.isHeld()) { in processMessage()
198 if (!mWakeLock.isHeld()) { in processMessage()
DGsmCdmaConnection.java814 if (mPartialWakeLock != null && mPartialWakeLock.isHeld()) { in finalize()
924 if (mPartialWakeLock.isHeld()) { in setPostDialState()
957 if (mPartialWakeLock.isHeld()) { in releaseWakeLock()
968 while (mPartialWakeLock.isHeld()) { in releaseAllWakeLocks()
DInboundSmsHandler.java278 while (mWakeLock.isHeld()) { in onQuitting()
383 if (mWakeLock.isHeld()) { in processMessage()
461 if (!mWakeLock.isHeld()) { in processMessage()
DProxyController.java589 if (mWakeLock.isHeld()) { in clearTransaction()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipWakeLock.java57 if (!mWakeLock.isHeld()) mWakeLock.acquire(); in acquire()
64 && mWakeLock.isHeld()) { in release()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDevicePlayback.java217 public boolean isHeld() { return false; } in getWakeLock()
227 return !getWakeLock().isHeld(); in canGoToStandby()
397 boolean isHeld(); in isHeld() method
420 public boolean isHeld() { in isHeld() method in HdmiCecLocalDevicePlayback.SystemWakeLock
421 return mWakeLock.isHeld(); in isHeld()
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
DBatteryWaster.java88 if (mPartialWakeLock.isHeld()) { in onDestroy()
150 if (!mPartialWakeLock.isHeld()) { in updateWakeLock()
154 if (mPartialWakeLock.isHeld()) { in updateWakeLock()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java161 assertTrue(mWakeLock.isHeld()); in transientIndication_holdsWakeLock_whenDozing()
172 assertFalse(mWakeLock.isHeld()); in transientIndication_releasesWakeLock_afterHiding()
188 held[0] = mWakeLock.isHeld(); in transientIndication_releasesWakeLock_afterHidingDelayed()
/frameworks/base/core/java/android/os/
DUpdateLock.java93 public boolean isHeld() { in isHeld() method in UpdateLock
DPowerManager.java1400 public boolean isHeld() { in isHeld() method in PowerManager.WakeLock
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DFrameworkPerfActivity.java246 if (mPartialWakeLock.isHeld()) { in onDestroy()
453 if (!mPartialWakeLock.isHeld()) { in updateWakeLock()
458 if (mPartialWakeLock.isHeld()) { in updateWakeLock()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandlerTest.java155 while (mCdmaInboundSmsHandler.getWakeLock().isHeld() && i < 100) { in tearDown()
159 assertFalse(mCdmaInboundSmsHandler.getWakeLock().isHeld()); in tearDown()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DPlayback.java120 if (mWifiLock.isHeld()) { in stop()
452 if (mWifiLock.isHeld()) { in relaxResources()
/frameworks/base/services/core/java/com/android/server/
DAnyMotionDetector.java183 if (mWakeLock.isHeld()) { in stop()
233 if (mWakeLock.isHeld()) { in stopOrientationMeasurementLocked()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneTest.java541 assertEquals(true, mImsPhoneUT.getWakeLock().isHeld()); in testEcbm()
576 assertEquals(false, mImsPhoneUT.getWakeLock().isHeld()); in testEcbm()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java606 assertEquals(true, mPhoneUT.getWakeLock().isHeld()); in testEmergencyCallbackMessages()
651 assertEquals(false, mPhoneUT.getWakeLock().isHeld()); in testEmergencyCallbackMessages()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmInboundSmsHandlerTest.java183 while (mGsmInboundSmsHandler.getWakeLock().isHeld() && i < 100) { in tearDown()
187 assertFalse(mGsmInboundSmsHandler.getWakeLock().isHeld()); in tearDown()
/frameworks/base/wifi/java/android/net/wifi/
DWifiManager.java3048 public boolean isHeld() {
3301 public boolean isHeld() {
/frameworks/base/services/core/java/com/android/server/pm/
DPackageDexOptimizer.java280 if (mDexoptWakeLock.isHeld()) { in releaseWakeLockLI()
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareImpl.java126 if (mWakeLock.isHeld()) mWakeLock.release(); in releaseWakeLock()

12