Searched refs:isHeld (Results 1 - 25 of 34) sorted by relevance

12

/packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/
H A DAnswerProximityWakeLock.java34 boolean isHeld(); method in interface:AnswerProximityWakeLock
H A DPseudoProximityWakeLock.java38 private boolean isHeld; field in class:PseudoProximityWakeLock
50 isHeld = true;
58 isHeld = false;
64 public boolean isHeld() { method in class:PseudoProximityWakeLock
65 return isHeld;
H A DSystemProximityWakeLock.java58 public boolean isHeld() { method in class:SystemProximityWakeLock
59 return wakeLock.isHeld();
H A DAnswerProximitySensor.java101 if (answerProximityWakeLock.isHeld()) {
/packages/services/Telecomm/src/com/android/server/telecom/
H A DTelecomWakeLock.java40 public boolean isHeld() { method in class:TelecomWakeLock.WakeLockAdapter
41 return mWakeLock.isHeld();
87 public boolean isHeld() { method in class:TelecomWakeLock
88 return mWakeLock != null && mWakeLock.isHeld();
97 if (!isHeld()) {
111 if (isHeld()) {
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastAlertWakeLock.java51 if (!sPartialWakeLock.isHeld()) {
58 if (sPartialWakeLock != null && sPartialWakeLock.isHeld()) {
78 if (!sScreenBrightWakeLock.isHeld()) {
85 if (sScreenBrightWakeLock != null && sScreenBrightWakeLock.isHeld()) {
/packages/apps/Messaging/src/com/android/messaging/util/
H A DWakeLockHelper.java72 public boolean isHeld(final Intent intent) { method in class:WakeLockHelper
74 return (respectWakeLock && mWakeLock.isHeld());
89 final boolean isHeld = (respectWakeLock && isHeld(intent));
90 if (!isHeld) {
92 + " opcode: " + opcode + " sWakeLock: " + mWakeLock + " isHeld: "
93 + ((mWakeLock == null) ? "(null)" : mWakeLock.isHeld()));
114 + " isHeld: " + ((mWakeLock == null) ? "(null)" : mWakeLock.isHeld()));
/packages/services/Car/service/src/com/android/car/
H A DSystemInterface.java122 if (!mPartialWakeLock.isHeld()) {
125 if (mFullWakeLock.isHeld()) {
132 if (!mFullWakeLock.isHeld()) {
135 if (mPartialWakeLock.isHeld()) {
142 if (mPartialWakeLock.isHeld()) {
145 if (mFullWakeLock.isHeld()) {
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DInCallWakeLockControllerTest.java61 when(mWakeLockAdapter.isHeld()).thenReturn(false);
71 when(mWakeLockAdapter.isHeld()).thenReturn(false);
81 when(mWakeLockAdapter.isHeld()).thenReturn(false);
91 when(mWakeLockAdapter.isHeld()).thenReturn(false);
101 when(mWakeLockAdapter.isHeld()).thenReturn(true);
111 when(mWakeLockAdapter.isHeld()).thenReturn(true);
H A DProximitySensorManagerTest.java64 when(mWakeLockAdapter.isHeld()).thenReturn(false);
74 when(mWakeLockAdapter.isHeld()).thenReturn(false);
84 when(mWakeLockAdapter.isHeld()).thenReturn(true);
96 when(mWakeLockAdapter.isHeld()).thenReturn(true);
106 when(mWakeLockAdapter.isHeld()).thenReturn(true);
/packages/services/BuiltInPrintService/src/com/android/bips/
H A DBuiltInPrintService.java146 if (!mWifiLock.isHeld()) {
153 if (mWifiLock.isHeld()) {
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/
H A DFullScreenActivity.java73 if (mWakeLock.isHeld()) {
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
H A DActionServiceTest.java109 assertTrue("Check wakelock held", ActionServiceImpl.sWakeLock.isHeld(intent));
129 if (ActionServiceImpl.sWakeLock.isHeld(intent)) {
136 assertFalse("Check wakelock released", ActionServiceImpl.sWakeLock.isHeld(intent));
/packages/apps/Dialer/java/com/android/incallui/
H A DProximitySensor.java169 if (!mProximityWakeLock.isHeld()) {
180 if (mProximityWakeLock.isHeld()) {
/packages/apps/Email/provider_src/com/android/email/
H A DEmailConnectivityManager.java211 if (mWakeLock.isHeld()) {
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
H A DFileOperationService.java305 if (!mWakeLock.isHeld()) {
337 return mWakeLock != null && mWakeLock.isHeld();
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
H A DPMCMainActivity.java337 if (mWakeLock != null && !mWakeLock.isHeld()) {
344 if (mWakeLock != null && mWakeLock.isHeld()) {
/packages/apps/Camera2/src/com/android/camera/processing/
H A DProcessingService.java127 if (mWakeLock.isHeld()) {
/packages/apps/Messaging/src/android/support/v7/mms/
H A DMmsService.java205 wakeLockHeld = sWakeLock != null && sWakeLock.isHeld();
/packages/services/Telephony/src/com/android/phone/
H A DCallerInfoCache.java127 if (mWakeLock != null && mWakeLock.isHeld()) {
H A DEmergencyCallHelper.java458 if (mPartialWakeLock.isHeld()) {
H A DPhoneGlobals.java522 if (mWakeLock.isHeld()) {
530 if (mPartialWakeLock.isHeld()) {
537 if (mWakeLock.isHeld()) {
540 if (mPartialWakeLock.isHeld()) {
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/
H A DWearPackageInstallerService.java160 if (!lock.isHeld()) {
471 if (lock != null && lock.isHeld()) {
/packages/apps/Settings/src/com/android/settings/wifi/
H A DWriteWifiConfigToNfcDialog.java220 if (mWakeLock.isHeld()) {
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
H A DVoicemailPlaybackPresenter.java757 if (!mProximityWakeLock.isHeld()) {
772 if (mProximityWakeLock.isHeld()) {

Completed in 642 milliseconds

12