/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/ |
D | SettableWakeLockTest.java | 49 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()
|
D | WakeLockTest.java | 56 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()
|
D | WakeLockFake.java | 48 public boolean isHeld() {
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | PowerManagerTest.java | 95 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/ |
D | DozeMachineTest.java | 156 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()
|
D | DozeScreenStateTest.java | 166 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/ |
D | WakeLockStateMachine.java | 94 while (mWakeLock.isHeld()) { in onQuitting() 163 if (mWakeLock.isHeld()) { in processMessage() 198 if (!mWakeLock.isHeld()) { in processMessage()
|
D | GsmCdmaConnection.java | 849 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()
|
D | InboundSmsHandler.java | 280 while (mWakeLock.isHeld()) { in onQuitting() 393 if (mWakeLock.isHeld()) { in processMessage() 471 if (!mWakeLock.isHeld()) { in processMessage()
|
D | NitzStateMachine.java | 552 if (!mWakeLock.isHeld()) { in setAndBroadcastNetworkSetTime()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiCecLocalDevicePlayback.java | 217 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/ |
D | SipWakeLock.java | 57 if (!mWakeLock.isHeld()) mWakeLock.acquire(); in acquire() 64 && mWakeLock.isHeld()) { in release()
|
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/ |
D | BatteryWaster.java | 88 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/ |
D | KeyguardIndicationControllerTest.java | 161 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/ |
D | ActiveRestoreSessionTest.java | 198 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/ |
D | UpdateLock.java | 93 public boolean isHeld() { in isHeld() method in UpdateLock
|
D | PowerManager.java | 1573 public boolean isHeld() { in isHeld() method in PowerManager.WakeLock
|
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
D | FrameworkPerfActivity.java | 246 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/ |
D | CdmaInboundSmsHandlerTest.java | 157 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/ |
D | Playback.java | 120 if (mWifiLock.isHeld()) { in stop() 452 if (mWifiLock.isHeld()) { in relaxResources()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AnyMotionDetector.java | 183 if (mWakeLock.isHeld()) { in stop() 233 if (mWakeLock.isHeld()) { in stopOrientationMeasurementLocked()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/ |
D | DelayMetCommandHandler.java | 207 if (mWakeLock != null && mWakeLock.isHeld()) { in cleanUp()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmCdmaPhoneTest.java | 704 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/ |
D | ImsPhoneTest.java | 566 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/ |
D | GsmInboundSmsHandlerTest.java | 184 while (mGsmInboundSmsHandler.getWakeLock().isHeld() && i < 100) { in tearDown() 188 assertFalse(mGsmInboundSmsHandler.getWakeLock().isHeld()); in tearDown()
|