Home
last modified time | relevance | path

Searched refs:isHeld (Results 1 – 25 of 66) 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.java81 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/
DContextHubClientBrokerTest.java81 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/
DScreenUndimDetectorTest.java117 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/
DClientTrackingWakeLockTest.kt56 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/
DPowerManagerTest.java196 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/
DPowerManagerWrapper.java87 public boolean isHeld() { in isHeld() method in PowerManagerWrapper.DefaultWakeLockWrapper
88 return mWakeLock.isHeld(); in isHeld()
DWakeLockWrapper.java46 boolean isHeld(); in isHeld() method
DHdmiCecLocalDevicePlayback.java410 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/
DSipWakeLock.java57 if (!mWakeLock.isHeld()) mWakeLock.acquire(); in acquire()
64 && mWakeLock.isHeld()) { in release()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DWakeLockStateMachine.java92 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/
DBatteryWaster.java88 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/
DEnvironmentImpl.java61 if (mWakeLock.isHeld()) { in acquireWakeLock()
103 if (!mWakeLock.isHeld()) { in checkWakeLockHeld()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/homecontrols/
DHomeControlsDreamServiceTest.kt124 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/
DDozeScreenStateTest.java206 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()
DDozeMachineTest.java358 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/
DBroadcastSenderTest.kt136 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/
DWakeLockFake.java50 public boolean isHeld() {
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DFakePowerManagerWrapper.java99 public boolean isHeld() { in isHeld() method in FakePowerManagerWrapper.FakeWakeLockWrapper
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java211 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/
DMediaTttChipControllerReceiverTest.kt336 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/
DFrameworkPerfActivity.java246 if (mPartialWakeLock.isHeld()) { in onDestroy()
453 if (!mPartialWakeLock.isHeld()) { in updateWakeLock()
458 if (mPartialWakeLock.isHeld()) { in updateWakeLock()
/frameworks/base/core/java/android/os/
DUpdateLock.java98 public boolean isHeld() { in isHeld() method in UpdateLock
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandlerTest.java169 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/
DLockoutResetDispatcher.java80 if (mWakeLock.isHeld()) { in releaseWakelock()

123