HomeSort by relevance Sort by last modified time
    Searched refs:mWakeLock (Results 51 - 75 of 126) sorted by null

1 23 4 5 6

  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
SensorCtsTestActivity.java 57 private PowerManager.WakeLock mWakeLock;
71 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "SensorCtsTests");
82 mWakeLock.acquire();
96 if (mWakeLock.isHeld()) {
97 mWakeLock.release();
  /packages/apps/Camera2/src/com/android/camera/processing/
ProcessingService.java 90 private WakeLock mWakeLock;
109 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG.toString());
110 mWakeLock.acquire();
127 if (mWakeLock.isHeld()) {
128 mWakeLock.release();
  /frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/
DozeTestDream.java 57 private PowerManager.WakeLock mWakeLock;
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/
DreamController.java 291 public PowerManager.WakeLock mWakeLock;
306 mWakeLock = wakeLock;
309 mWakeLock.acquire();
359 if (mWakeLock != null) {
360 mWakeLock.release();
361 mWakeLock = null;
  /packages/apps/Settings/src/com/android/settings/wifi/
WriteWifiConfigToNfcDialog.java 60 private final PowerManager.WakeLock mWakeLock;
78 mWakeLock = ((PowerManager) context.getSystemService(Context.POWER_SERVICE))
88 mWakeLock = ((PowerManager) context.getSystemService(Context.POWER_SERVICE))
126 mWakeLock.acquire();
216 if (mWakeLock.isHeld()) {
217 mWakeLock.release();
  /frameworks/base/services/core/java/com/android/server/
AnyMotionDetector.java 89 private PowerManager.WakeLock mWakeLock;
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();
DockObserver.java 57 private final PowerManager.WakeLock mWakeLock;
76 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
148 mWakeLock.acquire();
231 mWakeLock.release();
NetworkTimeUpdateService.java 81 private final PowerManager.WakeLock mWakeLock;
119 mWakeLock = context.getSystemService(PowerManager.class).newWakeLock(
158 mWakeLock.acquire();
162 mWakeLock.release();
WiredAccessoryManager.java 77 private final WakeLock mWakeLock; // held while there is a pending route change
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();
NativeDaemonConnector.java 68 private final PowerManager.WakeLock mWakeLock;
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();
  /packages/apps/Bluetooth/src/com/android/bluetooth/sap/
SapService.java 78 private PowerManager.WakeLock mWakeLock = null;
247 if (mWakeLock != null) {
250 mWakeLock.release();
251 mWakeLock = null;
267 if (mWakeLock == null) {
269 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "StartingSapTransaction");
270 mWakeLock.setReferenceCounted(false);
271 mWakeLock.acquire();
306 if (mWakeLock != null) {
307 mWakeLock.release()
    [all...]
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
ScrimControllerTest.java 75 private WakeLock mWakeLock;
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).release()
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/map/
BluetoothMapService.java 103 private PowerManager.WakeLock mWakeLock = null;
173 if (mWakeLock != null) {
174 mWakeLock.release();
178 mWakeLock = null;
230 if (mWakeLock == null) {
232 mWakeLock =
234 mWakeLock.setReferenceCounted(false);
235 mWakeLock.acquire();
325 if (mWakeLock != null && lastMasInst) {
328 mWakeLock.release()
    [all...]
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DozeUiTest.java 71 private WakeLockFake mWakeLock;
82 mWakeLock = new WakeLockFake();
85 mDozeUi = new DozeUi(mContext, mAlarmManager, mMachine, mWakeLock, mHost, mHandler,
140 mDozeUi = new DozeUi(mContext, mAlarmManager, mMachine, mWakeLock, mHost, mHandler,
  /packages/providers/MediaProvider/src/com/android/providers/media/
MediaScannerService.java 52 private PowerManager.WakeLock mWakeLock;
68 mWakeLock.acquire();
93 mWakeLock.release();
100 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
  /frameworks/base/services/core/java/com/android/server/location/
GeofenceManager.java 78 private final PowerManager.WakeLock mWakeLock;
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();
  /packages/apps/Settings/src/com/android/settings/
CryptKeeper.java 124 PowerManager.WakeLock mWakeLock;
381 if (mWakeLock.isHeld()) {
385 mWakeLock.release();
439 mWakeLock = retained.wakelock;
552 * mWakeLock so the subsequent call to onDestroy does not release it.
556 NonConfigurationInstanceState state = new NonConfigurationInstanceState(mWakeLock);
558 mWakeLock = null;
566 if (mWakeLock != null) {
568 mWakeLock.release();
569 mWakeLock = null
    [all...]
  /frameworks/base/services/core/java/com/android/server/job/
JobServiceContext.java 106 private PowerManager.WakeLock mWakeLock;
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 = null
    [all...]
  /frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
LoadtestActivity.java 182 private WakeLock mWakeLock;
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;
  /developers/samples/android/sensors/AccelerometerPlay/app/src/main/java/com/example/android/accelerometerplay/
AccelerometerPlayActivity.java 61 private WakeLock mWakeLock;
79 mWakeLock = mPowerManager.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, getClass()
96 mWakeLock.acquire();
114 mWakeLock.release();
  /development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
AccelerometerPlayActivity.java 57 private WakeLock mWakeLock;
75 mWakeLock = mPowerManager.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, getClass()
91 mWakeLock.acquire();
109 mWakeLock.release();
  /frameworks/support/wear/src/androidTest/java/androidx/wear/ambient/
AmbientModeSupportTest.java 38 public final WakeLockRule mWakeLock = new WakeLockRule();
AmbientModeTest.java 38 public final WakeLockRule mWakeLock = new WakeLockRule();
  /cts/tests/tests/display/src/android/display/cts/
BrightnessTest.java 62 private PowerManager.WakeLock mWakeLock;
71 mWakeLock = pm.newWakeLock(
74 mWakeLock.acquire();
79 if (mWakeLock != null) {
80 mWakeLock.release();
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/
WearPackageInstallerService.java 499 private PowerManager.WakeLock mWakeLock;
505 mWakeLock = wakeLock;
526 finishService(mWakeLock, mStartId);
534 finishService(mWakeLock, mStartId);
539 private PowerManager.WakeLock mWakeLock;
543 mWakeLock = wakeLock;
556 finishService(mWakeLock, mStartId);

Completed in 496 milliseconds

1 23 4 5 6