Best code examples for Android PowerManager.WakeLock class (android.os.PowerManager.WakeLock)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android PowerManager.WakeLock class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android PowerManager.WakeLock examples from Open Source projects
This code example shows how to use the following methods: isHeld, release
95:	if (this.wakeLock.isHeld()) 
96:	this.wakeLock.release(); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: acquire, isHeld, release, setReferenceCounted
91:	cpuWakeLock.setReferenceCounted(true); 
-
96:	cpuWakeLock.acquire(); 
-
98:	} else if (cpuWakeLock.isHeld()) { 
99:	cpuWakeLock.release(); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: isHeld, release
47:	if ((m_saveWakelock != null) && (m_saveWakelock.isHeld())) 
-
49:	m_saveWakelock.release(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: release
176:	wakeLock.release(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: acquire
222:	wakeLock.acquire(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: isHeld, release
115:	if (mWakeLock.isHeld()) 
116:	mWakeLock.release(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: release
46:	mWakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: acquire, isHeld, release, setReferenceCounted
96:	cpuWakeLock.setReferenceCounted(true); 
-
102:	cpuWakeLock.acquire(); 
-
104:	} else if (cpuWakeLock.isHeld()) { 
105:	cpuWakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isHeld, release
30:	if(mWakeLock != null && mWakeLock.isHeld()) { 
31:	mWakeLock.release(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: acquire, release
102:	mWakeLock.acquire(); 
-
127:	mWakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isHeld, release
93:	if( wakeLock.isHeld() ) { 
94:	wakeLock.release(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: release
109:	mWakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: release
27:	wakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isHeld, release
120:	if (sWakeLock != null && sWakeLock.isHeld()) { 
-
122:	sWakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: release
42:	wakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: acquire
113:	mWakeLock.acquire(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isHeld, release
78:	if ((screen_on_wakelock != null) && (screen_on_wakelock.isHeld())) 
-
80:	screen_on_wakelock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: release
180:	this.wakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isHeld, release
33:	return (sWakeLock != null) && (sWakeLock.isHeld()); 
-
48:	sWakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isHeld, release
120:	if (sWakeLock != null && sWakeLock.isHeld()) { 
-
122:	sWakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isHeld, release
80:	if(my_wake_lock.isHeld()) { 
81:	my_wake_lock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isHeld, release
82:	if(my_wake_lock.isHeld()) { 
83:	my_wake_lock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isHeld, release
120:	if(my_wake_lock.isHeld()) { 
121:	my_wake_lock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: acquire
182:	wakeLock.acquire(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isHeld, release
110:	if (wl != null && wl.isHeld()) wl.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: acquire
239:	mWakeLock.acquire(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isHeld, release
84:	if ((mWakeLock!=null)&&(mWakeLock.isHeld())) 
85:	mWakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: acquire
108:	wakelock.acquire(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: isHeld, release
155:	if (mWakeLock.isHeld()) { 
156:	mWakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: acquire
210:	wakeLock.acquire(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: isHeld, release
184:	if (null != wakeLock && wakeLock.isHeld()) { 
185:	wakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: acquire
90:	mWakeLock.acquire(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: isHeld, release
201:	if (null != wakeLock && wakeLock.isHeld()) { 
202:	wakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: acquire
137:	mWakeLock.acquire(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: isHeld, release
104:	if(screenLock.isHeld()) 
105:	screenLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: acquire
70:	this.wakeLock.acquire(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: acquire
71:	this.wakeLock.acquire(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: isHeld, release
36:	if((mWakeLock != null) && (mWakeLock.isHeld())) mWakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isHeld, release
35:	if (lock.isHeld()) { 
36:	lock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isHeld, release
143:	if (wakeLock.isHeld()) { 
144:	wakeLock.release(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isHeld, release
122:	if (myWakeLock != null && myWakeLock.isHeld()) { 
123:	myWakeLock.release(); 
Full Snippet Info
6
CodeRank
Related Android PowerManager.WakeLock Questions & Answers:
Other Android PowerManager.WakeLock Examples
4:	
5:	public abstract class WakeLocker {
6:	    private static PowerManager.WakeLock wakeLock;
7:	
8:	    public static void acquire(Context context) {

Read More

See Code Examples for Android PowerManager.WakeLock Methods: