/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 | 81 assertFalse(mInner.isHeld()); in createPartialInner_notHeldYet() 87 assertTrue(mInner.isHeld()); in wakeLock_acquire() 94 assertFalse(mInner.isHeld()); in wakeLock_release() 105 assertTrue(mInner.isHeld()); in wakeLock_wrap() 111 assertFalse(mInner.isHeld()); in wakeLock_wrap()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/location/contexthub/ |
D | ContextHubClientBrokerTest.java | 81 assertThat(broker.getWakeLock().isHeld()).isFalse(); in createFromCallback() 99 assertThat(broker.getWakeLock().isHeld()).isFalse(); in createFromPendingIntent() 110 assertThat(broker.getWakeLock().isHeld()).isTrue(); in testWakeLock_callback_onNanoAppLoaded() 114 assertThat(broker.getWakeLock().isHeld()).isFalse(); in testWakeLock_callback_onNanoAppLoaded() 127 assertThat(broker.getWakeLock().isHeld()).isTrue(); in testWakeLock_callback_multiple() 131 assertThat(broker.getWakeLock().isHeld()).isTrue(); in testWakeLock_callback_multiple() 135 assertThat(broker.getWakeLock().isHeld()).isFalse(); in testWakeLock_callback_multiple() 145 assertThat(broker.getWakeLock().isHeld()).isFalse(); in testWakeLock_callback_binderDied() 161 assertThat(broker.getWakeLock().isHeld()).isTrue(); in testWakeLock_pendingIntent() 175 assertThat(broker.getWakeLock().isHeld()).isFalse(); in testWakeLock_pendingIntent() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/ |
D | ScreenUndimDetectorTest.java | 117 assertThat(mScreenUndimDetector.mWakeLock.isHeld()).isFalse(); in recordScreenPolicy_disabledByFlag_noop() 127 assertThat(mScreenUndimDetector.mWakeLock.isHeld()).isFalse(); in recordScreenPolicy_samePolicy_noop() 136 assertThat(mScreenUndimDetector.mWakeLock.isHeld()).isTrue(); in recordScreenPolicy_dimToBright_extends() 144 assertThat(mScreenUndimDetector.mWakeLock.isHeld()).isFalse(); in recordScreenPolicy_dimToBright_ignoresOtherDisplayGroup() 147 assertThat(mScreenUndimDetector.mWakeLock.isHeld()).isTrue(); in recordScreenPolicy_dimToBright_ignoresOtherDisplayGroup() 161 assertThat(mScreenUndimDetector.mWakeLock.isHeld()).isFalse(); in recordScreenPolicy_otherTransitions_doesNotExtend() 177 assertThat(mScreenUndimDetector.mWakeLock.isHeld()).isFalse(); in recordScreenPolicy_dimToBright_twoUndimsNeeded_extends() 182 assertThat(mScreenUndimDetector.mWakeLock.isHeld()).isTrue(); in recordScreenPolicy_dimToBright_twoUndimsNeeded_extends() 195 assertThat(mScreenUndimDetector.mWakeLock.isHeld()).isFalse(); in recordScreenPolicy_dimToBright_twoUndimsNeeded_otherDisplayDoesNotExtend() 200 assertThat(mScreenUndimDetector.mWakeLock.isHeld()).isFalse(); in recordScreenPolicy_dimToBright_twoUndimsNeeded_otherDisplayDoesNotExtend() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/util/wakelock/ |
D | ClientTrackingWakeLockTest.kt | 56 Assert.assertFalse(mInner.isHeld) in createPartialInner_notHeldYet() 62 Assert.assertTrue(mInner.isHeld) in wakeLock_acquire() 69 Assert.assertFalse(mInner.isHeld) in wakeLock_release() 78 Assert.assertTrue(mInner.isHeld) in wakeLock_acquiredReleasedMultipleSources_stillHeld() 80 Assert.assertFalse(mInner.isHeld) in wakeLock_acquiredReleasedMultipleSources_stillHeld() 91 Assert.assertFalse(mInner.isHeld) in wakeLock_releasedTooManyTimes_stillReleased_noThrow() 98 Assert.assertTrue(mInner.isHeld) in wakeLock_wrap() 102 Assert.assertFalse(mInner.isHeld) in wakeLock_wrap()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | PowerManagerTest.java | 196 assertTrue(wl.isHeld()); in doTestWakeLock() 198 assertFalse(wl.isHeld()); in doTestWakeLock() 203 assertTrue(wl.isHeld()); in doTestWakeLock() 205 assertTrue(wl.isHeld()); in doTestWakeLock() 207 assertTrue(wl.isHeld()); in doTestWakeLock() 209 assertFalse(wl.isHeld()); in doTestWakeLock() 214 assertTrue(wl.isHeld()); in doTestWakeLock() 216 assertTrue(wl.isHeld()); in doTestWakeLock() 218 assertFalse(wl.isHeld()); in doTestWakeLock()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | PowerManagerWrapper.java | 87 public boolean isHeld() { in isHeld() method in PowerManagerWrapper.DefaultWakeLockWrapper 88 return mWakeLock.isHeld(); in isHeld()
|
D | WakeLockWrapper.java | 46 boolean isHeld(); in isHeld() method
|
D | HdmiCecLocalDevicePlayback.java | 410 public boolean isHeld() { return false; } in getWakeLock() 420 return !getWakeLock().isHeld(); in canGoToStandby() 704 boolean isHeld(); in isHeld() method 727 public boolean isHeld() { in isHeld() method in HdmiCecLocalDevicePlayback.SystemWakeLock 728 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/opt/telephony/src/java/com/android/internal/telephony/ |
D | WakeLockStateMachine.java | 92 if (mWakeLock.isHeld()) { in releaseWakeLock() 96 if (mWakeLock.isHeld()) { in releaseWakeLock() 111 while (mWakeLock.isHeld()) { in onQuitting()
|
/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/services/core/java/com/android/server/timedetector/ |
D | EnvironmentImpl.java | 61 if (mWakeLock.isHeld()) { in acquireWakeLock() 103 if (!mWakeLock.isHeld()) { in checkWakeLockHeld()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/homecontrols/ |
D | HomeControlsDreamServiceTest.kt | 124 assertThat(fakeWakeLock.isHeld).isTrue() in testAttachWindow_wakeLockAcquired() 131 assertThat(fakeWakeLock.isHeld).isTrue() in testDetachWindow_wakeLockCanBeReleased() 134 assertThat(fakeWakeLock.isHeld).isFalse() in testDetachWindow_wakeLockCanBeReleased()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeScreenStateTest.java | 206 assertThat(mWakeLock.isHeld(), is(true)); in test_holdsWakeLockWhenGoingToLowPowerDelayed() 209 assertThat(mWakeLock.isHeld(), is(false)); in test_holdsWakeLockWhenGoingToLowPowerDelayed() 223 assertThat(mWakeLock.isHeld(), is(true)); in test_releasesWakeLock_abortingLowPowerDelayed() 226 assertThat(mWakeLock.isHeld(), is(false)); in test_releasesWakeLock_abortingLowPowerDelayed()
|
D | DozeMachineTest.java | 358 assertTrue(mWakeLockFake.isHeld()); in testWakeLock_heldInTransition() 370 assertTrue(mWakeLockFake.isHeld()); in testWakeLock_heldInPulseStates() 373 assertTrue(mWakeLockFake.isHeld()); in testWakeLock_heldInPulseStates() 381 assertFalse(mWakeLockFake.isHeld()); in testWakeLock_notHeldInDozeStates() 384 assertFalse(mWakeLockFake.isHeld()); in testWakeLock_notHeldInDozeStates() 396 assertFalse(mWakeLockFake.isHeld()); in testWakeLock_releasedAfterPulse()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/ |
D | BroadcastSenderTest.kt | 136 assertThat(wakeLock.isHeld).isTrue() in runExecutorAssertingWakelock() 139 assertThat(wakeLock.isHeld).isFalse() in runExecutorAssertingWakelock()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/wakelock/ |
D | WakeLockFake.java | 50 public boolean isHeld() {
|
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | FakePowerManagerWrapper.java | 99 public boolean isHeld() { in isHeld() method in FakePowerManagerWrapper.FakeWakeLockWrapper
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/ |
D | ActiveRestoreSessionTest.java | 211 assertThat(mWakeLock.isHeld()).isFalse(); in testGetAvailableRestoreSets() 245 assertThat(mWakeLock.isHeld()).isFalse(); in testGetAvailableRestoreSets_forNullRestoreSets() 263 assertThat(mWakeLock.isHeld()).isFalse(); in testRestoreAll() 351 assertThat(mWakeLock.isHeld()).isFalse(); in testRestorePackages_for2Packages() 473 assertThat(mWakeLock.isHeld()).isFalse(); in testRestorePackage_whenCallerIsPackage()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/receiver/ |
D | MediaTttChipControllerReceiverTest.kt | 336 assertThat(fakeWakeLock.isHeld).isTrue() in commandQueueCallback_closeThenFar_wakeLockAcquiredThenReleased() 345 assertThat(fakeWakeLock.isHeld).isFalse() in commandQueueCallback_closeThenFar_wakeLockAcquiredThenReleased() 357 assertThat(fakeWakeLock.isHeld).isFalse() in commandQueueCallback_closeThenFar_wakeLockNeverAcquired()
|
/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/base/core/java/android/os/ |
D | UpdateLock.java | 98 public boolean isHeld() { in isHeld() method in UpdateLock
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/ |
D | CdmaInboundSmsHandlerTest.java | 169 while (mCdmaInboundSmsHandler.getWakeLock().isHeld() && i < 100) { in tearDown() 174 assertFalse(mCdmaInboundSmsHandler.getWakeLock().isHeld()); in tearDown()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | LockoutResetDispatcher.java | 80 if (mWakeLock.isHeld()) { in releaseWakelock()
|