/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() 80 assertTrue(mInner.isHeld()); in wakeLock_wrap() 86 assertFalse(mInner.isHeld()); in wakeLock_wrap()
|
D | WakeLockFake.java | 48 public boolean isHeld() {
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | PowerManagerTest.java | 147 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/ |
D | DozeMachineTest.java | 155 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()
|
D | DozeScreenStateTest.java | 163 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/ |
D | WakeLockStateMachine.java | 96 while (mWakeLock.isHeld()) { in onQuitting() 160 if (mWakeLock.isHeld()) { in processMessage() 195 if (!mWakeLock.isHeld()) { in processMessage()
|
D | GsmCdmaConnection.java | 890 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()
|
D | OldNitzStateMachine.java | 411 if (!mWakeLock.isHeld()) { in setAndBroadcastNetworkSetTime()
|
D | InboundSmsHandler.java | 311 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/ |
D | SipWakeLock.java | 57 if (!mWakeLock.isHeld()) mWakeLock.acquire(); in acquire() 64 && mWakeLock.isHeld()) { in release()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiCecLocalDevicePlayback.java | 212 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/ |
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 | TimeDetectorStrategyCallbackImpl.java | 85 if (mWakeLock.isHeld()) { in acquireWakeLock() 121 if (!mWakeLock.isHeld()) { in checkWakeLockHeld()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationControllerTest.java | 202 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/ |
D | UpdateLock.java | 98 public boolean isHeld() { in isHeld() method in UpdateLock
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/ |
D | ActiveRestoreSessionTest.java | 203 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/ |
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 | 166 while (mCdmaInboundSmsHandler.getWakeLock().isHeld() && i < 100) { in tearDown() 170 assertFalse(mCdmaInboundSmsHandler.getWakeLock().isHeld()); in tearDown()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AnyMotionDetector.java | 188 if (mWakeLock.isHeld()) { in stop() 238 if (mWakeLock.isHeld()) { in stopOrientationMeasurementLocked()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmCdmaPhoneTest.java | 701 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()
|
D | RILTest.java | 1080 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/ |
D | WearPackageInstallerService.java | 161 if (!lock.isHeld()) { in onStartCommand() 480 if (lock != null && lock.isHeld()) { in finishService()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityStackSupervisor.java | 1307 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/ |
D | GsmInboundSmsHandlerTest.java | 214 while (mGsmInboundSmsHandler.getWakeLock().isHeld() && i < 100) { in tearDown() 218 assertFalse(mGsmInboundSmsHandler.getWakeLock().isHeld()); in tearDown()
|