Home
last modified time | relevance | path

Searched refs:isHeld (Results 1 – 25 of 50) 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()
80 assertTrue(mInner.isHeld()); in wakeLock_wrap()
86 assertFalse(mInner.isHeld()); in wakeLock_wrap()
DWakeLockFake.java48 public boolean isHeld() {
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java147 assertTrue(wl.isHeld()); in doTestWakeLock()
149 assertFalse(wl.isHeld()); in doTestWakeLock()
154 assertTrue(wl.isHeld()); in doTestWakeLock()
156 assertTrue(wl.isHeld()); in doTestWakeLock()
158 assertTrue(wl.isHeld()); in doTestWakeLock()
160 assertFalse(wl.isHeld()); in doTestWakeLock()
165 assertTrue(wl.isHeld()); in doTestWakeLock()
167 assertTrue(wl.isHeld()); in doTestWakeLock()
169 assertFalse(wl.isHeld()); in doTestWakeLock()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeMachineTest.java155 assertTrue(mWakeLockFake.isHeld()); in testWakeLock_heldInTransition()
167 assertTrue(mWakeLockFake.isHeld()); in testWakeLock_heldInPulseStates()
170 assertTrue(mWakeLockFake.isHeld()); in testWakeLock_heldInPulseStates()
178 assertFalse(mWakeLockFake.isHeld()); in testWakeLock_notHeldInDozeStates()
181 assertFalse(mWakeLockFake.isHeld()); in testWakeLock_notHeldInDozeStates()
193 assertFalse(mWakeLockFake.isHeld()); in testWakeLock_releasedAfterPulse()
DDozeScreenStateTest.java163 assertThat(mWakeLock.isHeld(), is(true)); in test_holdsWakeLockWhenGoingToLowPowerDelayed()
166 assertThat(mWakeLock.isHeld(), is(false)); in test_holdsWakeLockWhenGoingToLowPowerDelayed()
180 assertThat(mWakeLock.isHeld(), is(true)); in test_releasesWakeLock_abortingLowPowerDelayed()
183 assertThat(mWakeLock.isHeld(), is(false)); in test_releasesWakeLock_abortingLowPowerDelayed()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DWakeLockStateMachine.java96 while (mWakeLock.isHeld()) { in onQuitting()
160 if (mWakeLock.isHeld()) { in processMessage()
195 if (!mWakeLock.isHeld()) { in processMessage()
DGsmCdmaConnection.java890 if (mPartialWakeLock != null && mPartialWakeLock.isHeld()) { in finalize()
1010 if (mPartialWakeLock.isHeld()) { in setPostDialState()
1045 if (mPartialWakeLock.isHeld()) { in releaseWakeLock()
1056 while (mPartialWakeLock.isHeld()) { in releaseAllWakeLocks()
DOldNitzStateMachine.java411 if (!mWakeLock.isHeld()) { in setAndBroadcastNetworkSetTime()
DInboundSmsHandler.java311 while (mWakeLock.isHeld()) { in onQuitting()
421 if (mWakeLock.isHeld()) { in processMessage()
500 if (!mWakeLock.isHeld()) { in processMessage()
/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.java212 public boolean isHeld() { return false; } in getWakeLock()
222 return !getWakeLock().isHeld(); in canGoToStandby()
374 boolean isHeld(); in isHeld() method
397 public boolean isHeld() { in isHeld() method in HdmiCecLocalDevicePlayback.SystemWakeLock
398 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/services/core/java/com/android/server/timedetector/
DTimeDetectorStrategyCallbackImpl.java85 if (mWakeLock.isHeld()) { in acquireWakeLock()
121 if (!mWakeLock.isHeld()) { in checkWakeLockHeld()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java202 assertTrue(mWakeLock.isHeld()); in transientIndication_holdsWakeLock_whenDozing()
213 assertFalse(mWakeLock.isHeld()); in transientIndication_releasesWakeLock_afterHiding()
229 held[0] = mWakeLock.isHeld(); in transientIndication_releasesWakeLock_afterHidingDelayed()
/frameworks/base/core/java/android/os/
DUpdateLock.java98 public boolean isHeld() { in isHeld() method in UpdateLock
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java203 assertThat(mWakeLock.isHeld()).isFalse(); in testGetAvailableRestoreSets()
236 assertThat(mWakeLock.isHeld()).isFalse(); in testGetAvailableRestoreSets_forNullRestoreSets()
254 assertThat(mWakeLock.isHeld()).isFalse(); in testRestoreAll()
342 assertThat(mWakeLock.isHeld()).isFalse(); in testRestorePackages_for2Packages()
464 assertThat(mWakeLock.isHeld()).isFalse(); in testRestorePackage_whenCallerIsPackage()
/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.java166 while (mCdmaInboundSmsHandler.getWakeLock().isHeld() && i < 100) { in tearDown()
170 assertFalse(mCdmaInboundSmsHandler.getWakeLock().isHeld()); in tearDown()
/frameworks/base/services/core/java/com/android/server/
DAnyMotionDetector.java188 if (mWakeLock.isHeld()) { in stop()
238 if (mWakeLock.isHeld()) { in stopOrientationMeasurementLocked()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java701 assertEquals(true, mPhoneUT.getWakeLock().isHeld()); in testEmergencyCallbackMessages()
747 assertEquals(false, mPhoneUT.getWakeLock().isHeld()); in testEmergencyCallbackMessages()
789 assertEquals(true, mPhoneUT.getWakeLock().isHeld()); in testModemResetInEmergencyCallbackMessages()
835 assertEquals(false, mPhoneUT.getWakeLock().isHeld()); in testModemResetInEmergencyCallbackMessages()
DRILTest.java1080 assertTrue(mRILInstance.getWakeLock(RIL.FOR_WAKELOCK).isHeld()); in testWakeLockTimeout()
1085 assertFalse(mRILInstance.getWakeLock(RIL.FOR_WAKELOCK).isHeld()); in testWakeLockTimeout()
1117 assertTrue(ril.getWakeLock(RIL.FOR_WAKELOCK).isHeld()); in verifyRILResponse()
1121 assertFalse(ril.getWakeLock(RIL.FOR_WAKELOCK).isHeld()); in verifyRILResponse()
1133 assertTrue(ril.getWakeLock(RIL.FOR_WAKELOCK).isHeld()); in verifyRILErrorResponse()
1137 assertFalse(ril.getWakeLock(RIL.FOR_WAKELOCK).isHeld()); in verifyRILErrorResponse()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java161 if (!lock.isHeld()) { in onStartCommand()
480 if (lock != null && lock.isHeld()) { in finishService()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStackSupervisor.java1307 if (mLaunchingActivityWakeLock.isHeld()) { in activityIdleInternalLocked()
1977 if (!mGoingToSleepWakeLock.isHeld()) { in goingToSleepLocked()
1979 if (mLaunchingActivityWakeLock.isHeld()) { in goingToSleepLocked()
2025 if (mGoingToSleepWakeLock.isHeld()) { in comeOutOfSleepIfNeededLocked()
2056 if (mGoingToSleepWakeLock.isHeld()) { in checkReadyForSleepLocked()
2640 if (mLaunchingActivityWakeLock.isHeld()) { in handleMessage()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmInboundSmsHandlerTest.java214 while (mGsmInboundSmsHandler.getWakeLock().isHeld() && i < 100) { in tearDown()
218 assertFalse(mGsmInboundSmsHandler.getWakeLock().isHeld()); in tearDown()

12