/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
SipWakeLock.java | 28 private PowerManager.WakeLock mWakeLock; 53 if (mWakeLock == null) { 54 mWakeLock = mPowerManager.newWakeLock( 57 if (!mWakeLock.isHeld()) mWakeLock.acquire(); 63 if ((mWakeLock != null) && mHolders.isEmpty() 64 && mWakeLock.isHeld()) { 65 mWakeLock.release();
|
/frameworks/testing/uiautomator/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/ |
WakeUpController.java | 32 private WakeLock mWakeLock = null; 47 if (mWakeLock == null) { 50 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "testing-alarmservice"); 51 Log.i(LOG_TAG, "Create wakelock: 0x" + Integer.toHexString(mWakeLock.hashCode())); 53 return mWakeLock;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
WakeLockHoldingProgressListener.java | 28 private PowerManager.WakeLock mWakeLock; 38 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, label); 43 mWakeLock.release(); 48 mWakeLock.acquire();
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
CalendarReceiver.java | 41 private PowerManager.WakeLock mWakeLock; 45 if (mWakeLock == null) { 47 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "CalendarReceiver_Provider"); 48 mWakeLock.setReferenceCounted(true); 50 mWakeLock.acquire(); 65 mWakeLock.release();
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoWakeLockPermissionTest.java | 34 private PowerManager.WakeLock mWakeLock; 40 mWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, "tag"); 88 mWakeLock.acquire(); 104 mWakeLock.acquire(1);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
WakeLockStateMachine.java | 40 private final PowerManager.WakeLock mWakeLock; 71 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, debugTag); 72 mWakeLock.acquire(); // wake lock released after we enter idle state 94 while (mWakeLock.isHeld()) { 95 mWakeLock.release(); 146 mWakeLock.acquire(); 161 mWakeLock.release(); 163 if (mWakeLock.isHeld()) { 165 log("mWakeLock is still held after release"); 167 log("mWakeLock released") [all...] |
SmsStorageMonitor.java | 53 private PowerManager.WakeLock mWakeLock; 130 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "SmsStorageMonitor"); 131 mWakeLock.setReferenceCounted(true); 141 mWakeLock.acquire(WAKE_LOCK_TIMEOUT);
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
MediaFrameworkTest.java | 38 private PowerManager.WakeLock mWakeLock = null; 54 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "MediaFrameworkTest"); 55 mWakeLock.setReferenceCounted(false); 62 mWakeLock.acquire(); 68 mWakeLock.release();
|
/frameworks/base/media/java/android/media/ |
AsyncPlayer.java | 133 private PowerManager.WakeLock mWakeLock; 220 if (mWakeLock != null || mThread != null) { 223 throw new RuntimeException("assertion failed mWakeLock=" + mWakeLock 227 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag); 231 if (mWakeLock != null) { 232 mWakeLock.acquire(); 237 if (mWakeLock != null) { 238 mWakeLock.release();
|
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/ |
IntegrationTestUtils.java | 51 @GuardedBy("mLock") private PowerManager.WakeLock mWakeLock; 112 Preconditions.checkState(mWakeLock == null, "mWakeLock was already held"); 113 mWakeLock = ((PowerManager) context.getSystemService(Context.POWER_SERVICE)) 116 mWakeLock.acquire(); 130 if (mWakeLock != null) { 131 mWakeLock.release(); 132 mWakeLock = null;
|
/packages/apps/Email/src/com/android/email/ |
EmailConnectivityManager.java | 61 private final WakeLock mWakeLock; 77 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, name); 177 mWakeLock.acquire(); 199 mWakeLock.release(); 206 mWakeLock.acquire(); 212 if (mWakeLock.isHeld()) { 213 mWakeLock.release();
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ |
ImportTask.java | 46 private PowerManager.WakeLock mWakeLock; 54 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, WAKELOCK_LABEL); 63 mWakeLock.acquire(); 92 mWakeLock.release();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
NotificationPlayer.java | 250 private PowerManager.WakeLock mWakeLock; 339 if (mWakeLock != null || mThread != null) { 342 throw new RuntimeException("assertion failed mWakeLock=" + mWakeLock 346 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag); 350 if (mWakeLock != null) { 351 mWakeLock.acquire(); 356 if (mWakeLock != null) { 357 mWakeLock.release();
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
NotificationPlayer.java | 237 private PowerManager.WakeLock mWakeLock; 329 if (mWakeLock != null || mThread != null) { 332 throw new RuntimeException("assertion failed mWakeLock=" + mWakeLock 336 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag); 340 if (mWakeLock != null) { 341 mWakeLock.acquire(); 346 if (mWakeLock != null) { 347 mWakeLock.release();
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapService.java | 116 private PowerManager.WakeLock mWakeLock = null; 261 if (mWakeLock != null) { 262 mWakeLock.release(); 263 mWakeLock = null; 290 if (mWakeLock == null) { 292 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, 294 mWakeLock.setReferenceCounted(false); 295 mWakeLock.acquire(); 329 if (mWakeLock != null) { 330 mWakeLock.release() [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
BluetoothPbapService.java | 148 private PowerManager.WakeLock mWakeLock = null; 429 if (mWakeLock != null) { 430 mWakeLock.release(); 431 mWakeLock = null; 453 if (mWakeLock == null) { 455 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, 457 mWakeLock.setReferenceCounted(false); 458 mWakeLock.acquire(); 494 if (mWakeLock != null) { 495 mWakeLock.release() [all...] |
/frameworks/base/services/java/com/android/server/ |
ConsumerIrService.java | 57 private final PowerManager.WakeLock mWakeLock; 65 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); 66 mWakeLock.setReferenceCounted(true);
|
DockObserver.java | 59 private final PowerManager.WakeLock mWakeLock; 65 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); 127 mWakeLock.acquire(); 192 mWakeLock.release();
|
IdleMaintenanceService.java | 97 private final WakeLock mWakeLock; 114 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); 216 mWakeLock.acquire(); 226 mWakeLock.acquire(); 324 mWakeLock.release();
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
MediaFrameworkTest.java | 69 private PowerManager.WakeLock mWakeLock = null; 97 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "MediaFrameworkTest"); 98 mWakeLock.acquire(); 104 mWakeLock.release();
|
/packages/services/Telephony/src/com/android/phone/ |
CallerInfoCache.java | 96 private PowerManager.WakeLock mWakeLock; 106 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); 107 mWakeLock.acquire(); 133 if (mWakeLock != null && mWakeLock.isHeld()) { 134 mWakeLock.release();
|
/packages/apps/Dialer/src/com/android/dialer/voicemail/ |
VoicemailPlaybackPresenter.java | 170 private PowerManager.WakeLock mWakeLock; 183 mWakeLock = wakeLock; 378 if (mWakeLock.isHeld()) { 379 mWakeLock.release(); 475 if (!mWakeLock.isHeld()) { 476 mWakeLock.acquire(); 515 if (mWakeLock.isHeld()) { 516 mWakeLock.release(); 650 if (mWakeLock.isHeld()) { 651 mWakeLock.release() [all...] |
/packages/apps/Settings/src/com/android/settings/ |
CryptKeeper.java | 114 PowerManager.WakeLock mWakeLock; 325 mWakeLock = retained.wakelock; 377 * mWakeLock so the subsequent call to onDestroy does not release it. 381 NonConfigurationInstanceState state = new NonConfigurationInstanceState(mWakeLock); 383 mWakeLock = null; 391 if (mWakeLock != null) { 393 mWakeLock.release(); 394 mWakeLock = null; 406 if (mWakeLock == null) { 409 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, TAG) [all...] |
/frameworks/base/core/java/com/android/internal/os/storage/ |
ExternalStorageFormatter.java | 47 private PowerManager.WakeLock mWakeLock; 73 mWakeLock = ((PowerManager)getSystemService(Context.POWER_SERVICE)) 75 mWakeLock.acquire(); 112 mWakeLock.release();
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaScannerService.java | 55 private PowerManager.WakeLock mWakeLock; 90 mWakeLock.acquire(); 114 mWakeLock.release(); 122 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
|