Code examples for PowerManager

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
25:	mFullLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK 
-
28:	mPartialLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); 
-
32:	Method method = mPowerManager.getClass().getDeclaredMethod("getSupportedWakeLockFlags"); 
-
37:	mProximityLock = mPowerManager.newWakeLock(proximityScreenOffWakeLock, LOG_TAG); 
Full Snippet Info
7
CodeRank
54:	PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); 
-
57:	wl = mPm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "SCREEN_BRIGHT_WAKE_LOCK"); 
-
60:	wl = mPm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "SCREEN_DIM_WAKE_LOCK"); 
-
63:	wl = mPm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "PARTIAL_WAKE_LOCK"); 
-
135:	mPm.setBacklightBrightness(0); 
Full Snippet Info
7
CodeRank
40:	lockStatic=mgr.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, 
Full Snippet Info
7
CodeRank
134:	mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, 
Full Snippet Info
7
CodeRank
45:	this.wakeLock                     = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MMS Connection"); 
Full Snippet Info
6
CodeRank
109:	mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); 
Full Snippet Info
6
CodeRank
111:	Method method = mPowerManager.getClass().getDeclaredMethod( "isWakeLockLevelSupported", int.class ); 
-
116:	Method method = mPowerManager.getClass().getDeclaredMethod( "getSupportedWakeLockFlags" ); 
-
128:	mProximityWakeLock = mPowerManager.newWakeLock( proximityScreenOffWakeLock, TAG ); 
Full Snippet Info
6
CodeRank
35:	assertNotNull(powerManager.newWakeLock(0, "TAG")); 
Full Snippet Info
6
CodeRank
134:	mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, 
Full Snippet Info
6
CodeRank
88:	return pm.isScreenOn(); 
Full Snippet Info
6
CodeRank
44:	mTimerWakeLock = mPowerManager.newWakeLock( 
Full Snippet Info
6
CodeRank
49:	mStartingService = mgr.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, CLASS_TAG); 
Full Snippet Info
6
CodeRank
267:	boolean isScreenOn = pm.isScreenOn(); 
-
271:	PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK |PowerManager.ACQUIRE_CAUSES_WAKEUP |PowerManager.ON_AFTER_RELEASE,"malcom_library_wakeup"); 
-
274:	PowerManager.WakeLock wl_cpu = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,"malcom_library_cpuwakeup"); 
Full Snippet Info
6
CodeRank
38:	lockStatic=mgr.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, NAME); 
Full Snippet Info
6
CodeRank
167:	wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKE_LOCK_TAG); 
Full Snippet Info
6
CodeRank
326:	mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag); 
Full Snippet Info
6
CodeRank
47:	sWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOGTAG); 
Full Snippet Info
6
CodeRank