Best code examples for Android KeyguardManager class (android.app.KeyguardManager)

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

Android KeyguardManager examples from Open Source projects
This code example shows how to use the following methods: newKeyguardLock
15:	KeyguardLock lock = 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: newKeyguardLock
85:	mKeyguardLock = keyguardManager.newKeyguardLock(KEYGUARD_TAG); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: newKeyguardLock
74:	keyguardManager.newKeyguardLock("imftest").disableKeyguard(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode
161:	if (km.inKeyguardRestrictedInputMode()) { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: isKeyguardLocked
121:	mKeyguardManager != null && mKeyguardManager.isKeyguardLocked(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode, isKeyguardSecure, newKeyguardLock
39:	if (mKeyguardManager.isKeyguardSecure()) { 
-
43:	if (mKeyguardManager.inKeyguardRestrictedInputMode()) { 
44:	mKeyguardLock = mKeyguardManager.newKeyguardLock(LOGTAG); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode, newKeyguardLock
27:	KeyguardManager.KeyguardLock lock = keyguardManager.newKeyguardLock(getClass().getName()); 
28:	if (keyguardManager.inKeyguardRestrictedInputMode()) { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: isKeyguardLocked, isKeyguardSecure
138:	Log.v(TAG, "kgm.isKeyguardLocked()="+kgm.isKeyguardLocked() 
139:	+ ". kgm.isKeyguardSecure()="+kgm.isKeyguardSecure()); 
-
143:	return (kgm != null) && kgm.isKeyguardLocked() && kgm.isKeyguardSecure(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: newKeyguardLock
69:	mLock = keyguardManager.newKeyguardLock("PowerWidget"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: newKeyguardLock
20:	KeyguardLock kgl = km.newKeyguardLock("ninja"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: newKeyguardLock
30:	lock = keyguardManager.newKeyguardLock(Context.KEYGUARD_SERVICE); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: newKeyguardLock
33:	k1= km.newKeyguardLock("IN"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode
129:	ignore |= mKeyguardManager.inKeyguardRestrictedInputMode(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: newKeyguardLock
69:	mLock = keyguardManager.newKeyguardLock("PowerWidget"); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: newKeyguardLock
This code example shows how to use the following methods: inKeyguardRestrictedInputMode, newKeyguardLock
24:	if (km.inKeyguardRestrictedInputMode()) { 
-
30:	m_klock = km.newKeyguardLock(TAG); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode, newKeyguardLock
64:	keyguardLock = manager.newKeyguardLock(context.getPackageName()); 
-
66:	if (manager.inKeyguardRestrictedInputMode()){ 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: newKeyguardLock
41:	KeyguardLock klock = km.newKeyguardLock(tag); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: newKeyguardLock
115:	KeyguardManager.KeyguardLock acquiredLock 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode, newKeyguardLock
24:	if (km.inKeyguardRestrictedInputMode()) { 
-
30:	m_klock = km.newKeyguardLock(TAG); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: newKeyguardLock
51:	mKeyguardLock = km.newKeyguardLock(TAG); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode
45:	boolean locked = km.inKeyguardRestrictedInputMode(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode, newKeyguardLock
40:	toggle.setChecked(kgm.inKeyguardRestrictedInputMode()); 
-
42:	keyguardLock = kgm.newKeyguardLock("dontsleep.MainActivity"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: newKeyguardLock
15:	KeyguardLock lock = 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode
24:	boolean bloccoSchermoAttivo = keyguardManager.inKeyguardRestrictedInputMode(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: newKeyguardLock
43:	KeyguardLock lock = keyguardManager 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode, newKeyguardLock
39:	if (mKeyguardManager.inKeyguardRestrictedInputMode()) { 
40:	mKeyguardLock = mKeyguardManager.newKeyguardLock(LOGTAG); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode
24:	boolean bloccoSchermoAttivo = keyguardManager.inKeyguardRestrictedInputMode(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: newKeyguardLock
70:	final KeyguardManager.KeyguardLock kl = km.newKeyguardLock(act); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: isKeyguardLocked, isKeyguardSecure
140:	GLogger.v(TAG, "kgm.isKeyguardLocked()="+kgm.isKeyguardLocked() 
141:	+ ". kgm.isKeyguardSecure()="+kgm.isKeyguardSecure()); 
-
145:	return (kgm != null) && kgm.isKeyguardLocked() && kgm.isKeyguardSecure(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: newKeyguardLock
115:	KeyguardManager.KeyguardLock acquiredLock 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: newKeyguardLock
30:	lock = keyguardManager.newKeyguardLock(Context.KEYGUARD_SERVICE); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode
24:	boolean bloccoSchermoAttivo = keyguardManager.inKeyguardRestrictedInputMode(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: newKeyguardLock
39:	keyguardLock = keyguardManager.newKeyguardLock(Context.KEYGUARD_SERVICE); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: isKeyguardLocked, isKeyguardSecure
140:	Log.v(TAG, "kgm.isKeyguardLocked()="+kgm.isKeyguardLocked() 
141:	+ ". kgm.isKeyguardSecure()="+kgm.isKeyguardSecure()); 
-
145:	return (kgm != null) && kgm.isKeyguardLocked() && kgm.isKeyguardSecure(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode
42:	return mKeyguardManager.inKeyguardRestrictedInputMode(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: newKeyguardLock
89:	KeyguardManager.KeyguardLock lock = keyguardManager 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode, sleep
17:	Thread.sleep(5000); 
-
29:	if (mKeyguardManager.inKeyguardRestrictedInputMode()) { 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: isKeyguardLocked, isKeyguardSecure
93:	return (kgm!=null&&kgm.isKeyguardLocked()&&kgm.isKeyguardSecure()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode
24:	boolean showing = kgMgr.inKeyguardRestrictedInputMode(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode, newKeyguardLock
100:	mKeyguardLock = km.newKeyguardLock("dm_KL"); 
101:	if (km.inKeyguardRestrictedInputMode()) { 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: newKeyguardLock
29:	keyguardLock = keyguardManager.newKeyguardLock("TAG"); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: newKeyguardLock
27:	keyguardLock = keyguardManager.newKeyguardLock("TAG"); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: inKeyguardRestrictedInputMode
20:	if( myKM.inKeyguardRestrictedInputMode()) { 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: newKeyguardLock
38:	myLock = myKeyGuard.newKeyguardLock(""); 
Full Snippet Info
4
CodeRank
Related Android KeyguardManager Questions & Answers:
See Code Examples for Android KeyguardManager Methods: