Skip to content

Commit 97594d6

Browse files
jmtriviAndroid (Google) Code Review
authored andcommitted
Merge "Unhide KeyguardManager locked and secure state getters" into jb-dev
2 parents f738810 + 37fde0a commit 97594d6

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

api/16.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3595,6 +3595,8 @@ package android.app {
35953595
public class KeyguardManager {
35963596
method public deprecated void exitKeyguardSecurely(android.app.KeyguardManager.OnKeyguardExitResult);
35973597
method public boolean inKeyguardRestrictedInputMode();
3598+
method public boolean isKeyguardLocked();
3599+
method public boolean isKeyguardSecure();
35983600
method public deprecated android.app.KeyguardManager.KeyguardLock newKeyguardLock(java.lang.String);
35993601
}
36003602

api/current.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3595,6 +3595,8 @@ package android.app {
35953595
public class KeyguardManager {
35963596
method public deprecated void exitKeyguardSecurely(android.app.KeyguardManager.OnKeyguardExitResult);
35973597
method public boolean inKeyguardRestrictedInputMode();
3598+
method public boolean isKeyguardLocked();
3599+
method public boolean isKeyguardSecure();
35983600
method public deprecated android.app.KeyguardManager.KeyguardLock newKeyguardLock(java.lang.String);
35993601
}
36003602

core/java/android/app/KeyguardManager.java

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* Class that can be used to lock and unlock the keyboard. Get an instance of this
2929
* class by calling {@link android.content.Context#getSystemService(java.lang.String)}
3030
* with argument {@link android.content.Context#KEYGUARD_SERVICE}. The
31-
* Actual class to control the keyboard locking is
31+
* actual class to control the keyboard locking is
3232
* {@link android.app.KeyguardManager.KeyguardLock}.
3333
*/
3434
public class KeyguardManager {
@@ -73,7 +73,7 @@ public void disableKeyguard() {
7373

7474
/**
7575
* Reenable the keyguard. The keyguard will reappear if the previous
76-
* call to {@link #disableKeyguard()} caused it it to be hidden.
76+
* call to {@link #disableKeyguard()} caused it to be hidden.
7777
*
7878
* A good place to call this is from {@link android.app.Activity#onPause()}
7979
*
@@ -130,13 +130,9 @@ public KeyguardLock newKeyguardLock(String tag) {
130130
}
131131

132132
/**
133-
* isKeyguardLocked
134-
*
135133
* Return whether the keyguard is currently locked.
136134
*
137-
* @return true if in keyguard is locked.
138-
*
139-
* @hide
135+
* @return true if keyguard is locked.
140136
*/
141137
public boolean isKeyguardLocked() {
142138
try {
@@ -147,13 +143,9 @@ public boolean isKeyguardLocked() {
147143
}
148144

149145
/**
150-
* isKeyguardSecure
151-
*
152146
* Return whether the keyguard requires a password to unlock.
153147
*
154-
* @return true if in keyguard is secure.
155-
*
156-
* @hide
148+
* @return true if keyguard is secure.
157149
*/
158150
public boolean isKeyguardSecure() {
159151
try {

0 commit comments

Comments
 (0)