/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | KeyguardIndicationControllerTest.java | 62 private WakeLockFake mWakeLock; field in class:KeyguardIndicationControllerTest 78 mWakeLock = new WakeLockFake(); 85 mController = new KeyguardIndicationController(mContext, mIndicationArea, null, mWakeLock); 161 assertTrue(mWakeLock.isHeld()); 172 assertFalse(mWakeLock.isHeld()); 188 held[0] = mWakeLock.isHeld();
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | NitzStateMachine.java | 150 private final PowerManager.WakeLock mWakeLock; field in class:NitzStateMachine 168 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_TAG); 268 mWakeLock.acquire(); 299 mWakeLock.release(); 469 mWakeLock.acquire(); 530 mWakeLock.release(); 552 if (!mWakeLock.isHeld()) { 574 mWakeLock.acquire(); 584 mWakeLock.release(); 621 pw.println(" mWakeLock [all...] |
H A D | ProxyController.java | 81 WakeLock mWakeLock; field in class:ProxyController 138 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); 139 mWakeLock.setReferenceCounted(false); 250 mWakeLock.acquire(); 594 if (mWakeLock.isHeld()) { 595 mWakeLock.release();
|
H A D | InboundSmsHandler.java | 180 private final PowerManager.WakeLock mWakeLock; field in class:InboundSmsHandler 244 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, name); 245 mWakeLock.acquire(); // wake lock released after we enter idle state 280 while (mWakeLock.isHeld()) { 281 mWakeLock.release(); 374 mWakeLock.acquire(); 391 mWakeLock.release(); 393 if (mWakeLock.isHeld()) { 395 log("mWakeLock is still held after release"); 397 log("mWakeLock release [all...] |
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/ |
H A D | DozeTestDream.java | 57 private PowerManager.WakeLock mWakeLock; field in class:DozeTestDream 76 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); 152 mWakeLock.acquire(UPDATE_TIME_TIMEOUT + 5000 /*for testing brightness*/);
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
H A D | DreamController.java | 291 public PowerManager.WakeLock mWakeLock; field in class:DreamController.DreamRecord 306 mWakeLock = wakeLock; 309 mWakeLock.acquire(); 359 if (mWakeLock != null) { 360 mWakeLock.release(); 361 mWakeLock = null;
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | AnyMotionDetector.java | 89 private PowerManager.WakeLock mWakeLock; field in class:AnyMotionDetector 124 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); 125 mWakeLock.setReferenceCounted(false); 158 mWakeLock.acquire(); 183 if (mWakeLock.isHeld()) { 186 mWakeLock.release(); 233 if (mWakeLock.isHeld()) { 236 mWakeLock.release();
|
H A D | DockObserver.java | 57 private final PowerManager.WakeLock mWakeLock; field in class:DockObserver 76 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); 148 mWakeLock.acquire(); 231 mWakeLock.release();
|
H A D | NetworkTimeUpdateService.java | 81 private final PowerManager.WakeLock mWakeLock; field in class:NetworkTimeUpdateService 119 mWakeLock = context.getSystemService(PowerManager.class).newWakeLock( 158 mWakeLock.acquire(); 162 mWakeLock.release();
|
H A D | WiredAccessoryManager.java | 77 private final WakeLock mWakeLock; // held while there is a pending route change field in class:WiredAccessoryManager 91 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "WiredAccessoryManager"); 92 mWakeLock.setReferenceCounted(false); 165 mWakeLock.acquire(); 217 mWakeLock.acquire(); 233 mWakeLock.release(); 237 mWakeLock.release();
|
H A D | NativeDaemonConnector.java | 68 private final PowerManager.WakeLock mWakeLock; field in class:NativeDaemonConnector 97 mWakeLock = wl; 98 if (mWakeLock != null) { 99 mWakeLock.setReferenceCounted(true); 166 if (mCallbacks.onCheckHoldWakeLock(msg.what) && mWakeLock != null) { 167 mWakeLock.release(); 241 && mWakeLock != null) { 242 mWakeLock.acquire(); 257 mWakeLock.release();
|
H A D | GestureLauncherService.java | 90 private WakeLock mWakeLock; field in class:GestureLauncherService 158 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, 415 mWakeLock.acquire(500L);
|
H A D | VibratorService.java | 119 private final PowerManager.WakeLock mWakeLock; field in class:VibratorService 306 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "*vibrator*"); 307 mWakeLock.setReferenceCounted(true); 1068 mWakeLock.setWorkSource(mTmpWorkSource); 1097 mWakeLock.acquire(); 1104 mWakeLock.release();
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
H A D | ScrimControllerTest.java | 75 private WakeLock mWakeLock; field in class:ScrimControllerTest 84 mWakeLock = mock(WakeLock.class); 418 verify(mWakeLock).acquire(); 419 verify(mWakeLock, never()).release(); 421 verify(mWakeLock).release(); 428 verifyZeroInteractions(mWakeLock); 445 reset(mWakeLock); 448 verify(mWakeLock).acquire(); 449 verify(mWakeLock, never()).release(); 451 verify(mWakeLock) [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
H A D | DozeUiTest.java | 71 private WakeLockFake mWakeLock; field in class:DozeUiTest 82 mWakeLock = new WakeLockFake(); 85 mDozeUi = new DozeUi(mContext, mAlarmManager, mMachine, mWakeLock, mHost, mHandler, 140 mDozeUi = new DozeUi(mContext, mAlarmManager, mMachine, mWakeLock, mHost, mHandler,
|
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | GeofenceManager.java | 78 private final PowerManager.WakeLock mWakeLock; field in class:GeofenceManager 125 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); 402 mWakeLock.acquire(); 409 mWakeLock.release(); 411 // ...otherwise, mWakeLock.release() gets called by onSendFinished() 445 mWakeLock.release();
|
/frameworks/base/services/core/java/com/android/server/job/ |
H A D | JobServiceContext.java | 106 private PowerManager.WakeLock mWakeLock; field in class:JobServiceContext 422 // such that if we simply assign mWakeLock to be the new instance, we orphan 425 if (mWakeLock != null) { 426 Slog.w(TAG, "Bound new job " + runningJob + " but live wakelock " + mWakeLock 427 + " tag=" + mWakeLock.getTag()); 428 mWakeLock.release(); 430 mWakeLock = wl; 780 if (mWakeLock != null) { 781 mWakeLock.release(); 784 mWakeLock [all...] |
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
H A D | LoadtestActivity.java | 182 private WakeLock mWakeLock; field in class:LoadtestActivity 441 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "StatsdLoadTest"); 442 mWakeLock.acquire(); 446 mWakeLock.release(); 447 mWakeLock = null; 512 if (mWakeLock != null) { 513 mWakeLock.release(); 514 mWakeLock = null;
|
/frameworks/support/wear/src/androidTest/java/androidx/wear/ambient/ |
H A D | AmbientModeSupportTest.java | 38 public final WakeLockRule mWakeLock = new WakeLockRule(); field in class:AmbientModeSupportTest
|
H A D | AmbientModeTest.java | 38 public final WakeLockRule mWakeLock = new WakeLockRule(); field in class:AmbientModeTest
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
H A D | DozeTriggers.java | 64 private final WakeLock mWakeLock; field in class:DozeTriggers 84 mWakeLock = wakeLock; 300 mWakeLock.acquire(); 335 mWakeLock.release();
|
H A D | DozeSensors.java | 64 private final WakeLock mWakeLock; field in class:DozeSensors 81 mWakeLock = wakeLock; 365 mHandler.post(mWakeLock.wrap(() -> {
|
/frameworks/base/services/robotests/src/com/android/server/backup/restore/ |
H A D | ActiveRestoreSessionTest.java | 98 private PowerManager.WakeLock mWakeLock; field in class:ActiveRestoreSessionTest 131 mWakeLock = createBackupWakeLock(application); 139 mWakeLock, 198 assertThat(mWakeLock.isHeld()).isFalse(); 231 assertThat(mWakeLock.isHeld()).isFalse(); 249 assertThat(mWakeLock.isHeld()).isFalse(); 338 assertThat(mWakeLock.isHeld()).isFalse(); 460 assertThat(mWakeLock.isHeld()).isFalse();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | KeyguardIndicationController.java | 81 private final SettableWakeLock mWakeLock; field in class:KeyguardIndicationController 130 mWakeLock = new SettableWakeLock(wakeLock); 270 mWakeLock.setAcquired(true); 290 mWakeLock.setAcquired(false);
|
/frameworks/base/core/java/android/hardware/location/ |
H A D | GeofenceHardwareImpl.java | 48 private PowerManager.WakeLock mWakeLock; field in class:GeofenceHardwareImpl 117 if (mWakeLock == null) { 120 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); 122 mWakeLock.acquire(); 126 if (mWakeLock.isHeld()) mWakeLock.release();
|