Home
last modified time | relevance | path

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

123

/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.java95 assertTrue(wl.isHeld()); in doTestWakeLock()
97 assertFalse(wl.isHeld()); in doTestWakeLock()
102 assertTrue(wl.isHeld()); in doTestWakeLock()
104 assertTrue(wl.isHeld()); in doTestWakeLock()
106 assertTrue(wl.isHeld()); in doTestWakeLock()
108 assertFalse(wl.isHeld()); in doTestWakeLock()
113 assertTrue(wl.isHeld()); in doTestWakeLock()
115 assertTrue(wl.isHeld()); in doTestWakeLock()
117 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()
DDozeScreenStateTest.java166 assertThat(mWakeLock.isHeld(), is(true)); in test_holdsWakeLockWhenGoingToLowPowerDelayed()
169 assertThat(mWakeLock.isHeld(), is(false)); in test_holdsWakeLockWhenGoingToLowPowerDelayed()
183 assertThat(mWakeLock.isHeld(), is(true)); in test_releasesWakeLock_abortingLowPowerDelayed()
186 assertThat(mWakeLock.isHeld(), is(false)); in test_releasesWakeLock_abortingLowPowerDelayed()
/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.java849 if (mPartialWakeLock != null && mPartialWakeLock.isHeld()) { in finalize()
969 if (mPartialWakeLock.isHeld()) { in setPostDialState()
1002 if (mPartialWakeLock.isHeld()) { in releaseWakeLock()
1013 while (mPartialWakeLock.isHeld()) { in releaseAllWakeLocks()
DInboundSmsHandler.java280 while (mWakeLock.isHeld()) { in onQuitting()
393 if (mWakeLock.isHeld()) { in processMessage()
471 if (!mWakeLock.isHeld()) { in processMessage()
DNitzStateMachine.java552 if (!mWakeLock.isHeld()) { in setAndBroadcastNetworkSetTime()
/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/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/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/services/robotests/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java198 assertThat(mWakeLock.isHeld()).isFalse(); in testGetAvailableRestoreSets()
231 assertThat(mWakeLock.isHeld()).isFalse(); in testGetAvailableRestoreSets_forNullRestoreSets()
249 assertThat(mWakeLock.isHeld()).isFalse(); in testRestoreAll()
338 assertThat(mWakeLock.isHeld()).isFalse(); in testRestoreSome_for2Packages()
460 assertThat(mWakeLock.isHeld()).isFalse(); in testRestorePackage_whenCallerIsPackage()
/frameworks/base/core/java/android/os/
DUpdateLock.java93 public boolean isHeld() { in isHeld() method in UpdateLock
DPowerManager.java1573 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.java157 while (mCdmaInboundSmsHandler.getWakeLock().isHeld() && i < 100) { in tearDown()
161 assertFalse(mCdmaInboundSmsHandler.getWakeLock().isHeld()); in tearDown()
/frameworks/support/samples/Support4Demos/src/main/java/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/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/
DDelayMetCommandHandler.java207 if (mWakeLock != null && mWakeLock.isHeld()) { in cleanUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java704 assertEquals(true, mPhoneUT.getWakeLock().isHeld()); in testEmergencyCallbackMessages()
750 assertEquals(false, mPhoneUT.getWakeLock().isHeld()); in testEmergencyCallbackMessages()
792 assertEquals(true, mPhoneUT.getWakeLock().isHeld()); in testModemResetInEmergencyCallbackMessages()
838 assertEquals(false, mPhoneUT.getWakeLock().isHeld()); in testModemResetInEmergencyCallbackMessages()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneTest.java566 assertEquals(true, mImsPhoneUT.getWakeLock().isHeld()); in testEcbm()
601 assertEquals(false, mImsPhoneUT.getWakeLock().isHeld()); in testEcbm()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmInboundSmsHandlerTest.java184 while (mGsmInboundSmsHandler.getWakeLock().isHeld() && i < 100) { in tearDown()
188 assertFalse(mGsmInboundSmsHandler.getWakeLock().isHeld()); in tearDown()

123