History log of /frameworks/base/core/java/android/app/KeyguardManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d86b8fea43ebb6e5c31691b44d8ceb0d8d3c9072 03-Jun-2017 Jeff Sharkey <jsharkey@android.com> Annotate @SystemApi with required permissions.

Most @SystemApi methods should be protected with system (or higher)
permissions, so annotate common methods with @RequiresPermission to
make automatic verification easier.

Verification is really only relevant when calling into system
services (where permissions checking can happen on the other side of
a Binder call), so annotate managers with the new @SystemService
annotation, which is now automatically documented.

This is purely a docs change; no logic changes are being made.

Test: make -j32 update-api && make -j32 offline-sdk-docs
Bug: 62263906
Change-Id: I2554227202d84465676aa4ab0dd336b5c45fc651
/frameworks/base/core/java/android/app/KeyguardManager.java
000ce805050f0bdbf485464b84eb2c08bca5ad72 29-Apr-2017 Jeff Sharkey <jsharkey@android.com> Updates based on API council guidance.

Test: builds, boots
Change-Id: I223faf55c1e1b4d81d11b4c8b2d93ccd131c969b
Fixes: 37775662
Fixes: 37748635
Fixes: 37673408
Fixes: 37672564
Fixes: 37672218
Fixes: 37638323
Fixes: 37637423
/frameworks/base/core/java/android/app/KeyguardManager.java
f41e7664a2102e706014df2f519d66e8bebc5373 27-Apr-2017 Jorim Jaggi <jjaggi@google.com> Implement API council feedback for dismissKeyguard

Test: KeyguardLockedTests CTS
Change-Id: Ibc6923ebe8363644e9b52b2b53b45d918124f52d
Fixes: 37673408
/frameworks/base/core/java/android/app/KeyguardManager.java
910e081216ac530432ac9d0aab10d5e5e4c73ab8 22-Apr-2017 Jeff Sharkey <jsharkey@android.com> More auto-doc work.

Add support for AnyThread, CallSuper, and UiThread.

Another related CL started documenting @RequiresPermission, so remove
duplicated information in existing APIs.

Suppress auto-doc on a handful of classes that are already
well-documented.

Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: I791437dccec0f11d5349a23b982ba098cb551af8
/frameworks/base/core/java/android/app/KeyguardManager.java
2cff9319e8d37c9ee5527326da7a778137b917b8 24-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Merge commit '12562abcd47de4aee3b0469cb04bf771c2072113' into manual_merge_12562abcd47d"
6111e23d3057aba6a470b0269a806a98e5bc544f 23-Jan-2017 Nancy Zheng <nzheng@google.com> Merge commit '12562abcd47de4aee3b0469cb04bf771c2072113' into manual_merge_12562abcd47d

Test: manually tested upstream

Change-Id: I8ca2eebcb468f73bf609ed09dc141a2bf40b8697
0b1853f997e175dc9cf4b93088f63b774f05253f 23-Jan-2017 Adrian Roos <roosa@google.com> KeyguardManager: Fix user resolution of isDeviceSecure/Locked

Fixes isDeviceSecure and isDeviceLocked APIs to use
the user id of the app that executes the code rather
than that of any incoming binder call.

Change-Id: Ib7772b60c35a3ebf96830f9b013c539021e1f063
Fixes: 34592592
Test: manual
/frameworks/base/core/java/android/app/KeyguardManager.java
e256a18dcd8c0fda68abc5005c405eb8a5c18bea 22-Nov-2016 Nancy Zheng <nzheng@google.com> Query for the settings package in KeyguardManager instead of
hardcoding it.

Bug: 33047002
Change-Id: I57bfab4750540789937d50c72ec05bb7a4535ae1
/frameworks/base/core/java/android/app/KeyguardManager.java
241ae10b2189f449e57d8d660235ac56d8fb1b80 03-Nov-2016 Jorim Jaggi <jjaggi@google.com> Add explicit method to dismiss Keyguard

The flag is a bit clunky for most cases, and a method is more
clear.

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
android.server.cts.KeyguardTests

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
android.server.cts.KeyguardLockedTests

Test: runtest systemui -c
com.android.systemui.keyguard.DismissCallbackRegistryTest

Bug: 30961403
Bug: 27422134
Change-Id: I39de90c7cfecd99350a74f72cd76418e337f2b79
/frameworks/base/core/java/android/app/KeyguardManager.java
40cd8e410db8e9d78e5aef222c498a7c2dbf2dd4 21-Nov-2016 Nancy Zheng <nzheng@google.com> Merge commit '2a12d8520ea6f41bd2db8577a8da82204e341c51' into manual_merge_2a12d85

Test: compiled everything, CTS verifier passes
Change-Id: I96641860890e413342bcb6a3b24e87d6aeff0c99
43f166dfb439e7706b829a5e5a7cc910bb53dc8c 19-Nov-2016 Nancy Zheng <nzheng@google.com> Fix createConfirmDeviceCredentialIntent for wear for CTS.

Bug: 33000237
Change-Id: I1fdb5a518c41ab005f12d3142763e374b38d7553
/frameworks/base/core/java/android/app/KeyguardManager.java
49ca529a850e60482ddcc8c0762105b4aa10f35f 10-May-2016 Jeff Sharkey <jsharkey@android.com> Avoid caching services with missing binders.

When fetching system services early during boot, if the underlying
binder interface hasn't been published yet, we end up caching a
manager class that is broken for the remainder of the process
lifetime, and innocent downstream callers end up using the broken
cached manager.

Fix this by using an explicit exception to quickly abort manager
creation when the underlying binder is missing. The exception is
only used to skip the remainder of the manager creation, and it
doesn't actually crash the process.

Bug: 28634953
Change-Id: I0cb62261e6d6833660704b93a11185aa11a2ac97
/frameworks/base/core/java/android/app/KeyguardManager.java
514c5ef8d5774d8820ed1bf90fe53af1606cf106 25-May-2016 Aurimas Liutikas <aurimas@google.com> Add missing @Deprecated annotations.

Add missing @Deprecated annotations for methods with @deprecated tag
in javadoc.

Change-Id: I35b78ccb97832d86b914c21a300444ba29e33844
/frameworks/base/core/java/android/app/KeyguardManager.java
b3987bd7e9d9ed6e2b336c239b1d8019f8ffe073 19-Nov-2015 Clara Bayarri <clarabayarri@google.com> Make ConfirmCredentials take user into account when creating intent

The existing implementation returned null if the device was not locked,
but when using ConfirmCredentials for the Work Profile we need to take into
account the user we want to confirm credentials for, given that the device
user might not have a lock but the work profile will.

Change-Id: Ifb5882846b0a62c73ac7cc04d90d1a4d9b103e63
/frameworks/base/core/java/android/app/KeyguardManager.java
56878a93989a49538fabccfb7218face645030bf 29-Oct-2015 Clara Bayarri <clarabayarri@google.com> Create work challenge timeout

The work challenge should be locked whenever the device goes to sleep + admin
timeout or when the power button is pressed if the lock setting is on.

This change creates the infrastructure to lock a specific user instead of the
device and uses it in these cases. Then, the current code that brings up the
work challenge can check to only show it if the user is locked.

Change-Id: I89b4342b1458d97734d7afa66be52bf04ec3a3d4
/frameworks/base/core/java/android/app/KeyguardManager.java
c39b4fc6864db8c41261acaa54e0ac6d6a3a9bc1 29-Apr-2015 Adrian Roos <roosa@google.com> Clarify javadoc of isKeyguardSecure and isDeviceSecure

Bug: 20642788
Change-Id: I1114150cd645ee3de8e4617cdb79ff351e01b9df
/frameworks/base/core/java/android/app/KeyguardManager.java
672055e8d9972c6d8ee2ec20443246b7a7e6573e 24-Apr-2015 Tor Norbye <tnorbye@google.com> Add permission requirement annotation for KeyGuard

Change-Id: Ieb4a8c8d3da7090c6551cbae4db8944fbe462538
/frameworks/base/core/java/android/app/KeyguardManager.java
82893681ad6530eec8f2a9b4ecd2e039addf48b7 02-Apr-2015 Adrian Roos <roosa@google.com> Add KeyguardManager.isDeviceSecure

Bug: 19823211
Change-Id: I92a1d2542274bf1dc2d5757511ce495264f90733
/frameworks/base/core/java/android/app/KeyguardManager.java
50bfeec868157106e8b60abf8964cb24462af182 20-Nov-2014 Adrian Roos <roosa@google.com> Update KeyguardManager.isDeviceLocked API

Bug: 18414067
Change-Id: I0715714c2c9a122f578ec0c6f508faae12e6f752
/frameworks/base/core/java/android/app/KeyguardManager.java
bcd076525ccb8a3dfe7d1002bcae059661c1d111 22-Oct-2014 Adrian Roos <roosa@google.com> Add API for querying trusted state

Bug: 18084166
Change-Id: Ic755461cc6978943aef4943def93a0e38a1c96c0
/frameworks/base/core/java/android/app/KeyguardManager.java
2f2ebcd688ad3995df9860a6e02c8282b240516d 27-Aug-2014 Jim Miller <jaggies@google.com> Cleanup - Change name of confirm credentials method after API review

Fixes bug 17288988

Change-Id: I3d69b52e7ffc9f0268fb4dc9647f8704453668b7
/frameworks/base/core/java/android/app/KeyguardManager.java
bde3d18dd5748bd24e527c653504346ad012c2dc 27-Aug-2014 Jim Miller <jaggies@google.com> Change name of confirm credentials method after API review

Changed from getConfirmDeviceCredentialIntent to createConfirmDeviceCredentialIntent

Fixes bug 17288988

Change-Id: Iae9a997d9ea49ce23bdbbe38ad7b0763779b8f59
/frameworks/base/core/java/android/app/KeyguardManager.java
66093a9024a0ad88cb9c629457b9d8118071ae74 13-Aug-2014 Jim Miller <jaggies@google.com> API review - move confirm credential constants from Intent

Moves constants from Intent to KeyguardManager.

Fixes bug 17006280

Change-Id: I77f49fe85850a501e1531d39aad7446c9bca5801
/frameworks/base/core/java/android/app/KeyguardManager.java
d7d2d43b4967bb907b61180aa9d12ca51aaa15e2 09-May-2014 Kenny Root <kroot@google.com> WindowManagerService: add some defensive checks

Add checks before posting a message to the handler thread where
exceptions will crash the service.

Also make KeyguardLock fields final.

Bug: 14564617
Change-Id: I147d579d942f5fa555714d204cde52e2cd5f6154
/frameworks/base/core/java/android/app/KeyguardManager.java
a999d463c1f72fc7d9fcb21e850b78ec77793730 30-Oct-2013 Jim Miller <jaggies@google.com> Remove deprecated API calls to KeyguardManager from statusbar

Fixes bug 11448304

Change-Id: I3049a20d9320af0425d7a8f08d5aa208e470e292
/frameworks/base/core/java/android/app/KeyguardManager.java
98365d7663cbd82979a5700faf0050220b01084d 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Refactor for multi-display support.

Split WindowManagerImpl into two parts, the WindowManager
interface implementation remains where it is but the global
communications with the window manager are now handled by
the WindowManagerGlobal class. This change greatly simplifies
the challenge of having separate WindowManager instances
for each Context.

Removed WindowManagerImpl.getDefault(). This represents the
bulk of this change. Most of the usages of this method were
either to perform global functions (now handled by WindowManagerGlobal)
or to obtain the default display (now handled by DisplayManager).

Explicitly associate each new window with a display and make
the Display object available to the View hierarchy.

Add stubs for some new display manager API features.

Start to split apart the concepts of display id and layer stack.
since they operate at different layers of abstraction.
While it's true that each logical display uniquely corresponds to a
surface flinger layer stack, it is not necessarily the case that
they must use the same ids. Added Display.getLayerStack()
and started using it in places where it was relatively easy to do.

Change-Id: I29ed909114dec86807c4d3a5059c3fa0358bea61
/frameworks/base/core/java/android/app/KeyguardManager.java
9530e3a22d5ffa2019d1a5177b6a441d4d6d048b 19-Jun-2012 Nicolas Falliere <nicof@google.com> Added or fixed doctrings for required permissions.

Bug: 6591338
Change-Id: Ia2092f9994854701b5fa1425c371817367ae07ec
/frameworks/base/core/java/android/app/KeyguardManager.java
37fde0aca01fcfcd8483df70a4e82f622e15fda2 25-May-2012 Jean-Michel Trivi <jmtrivi@google.com> Unhide KeyguardManager locked and secure state getters

Unhide the following methods:
android.app.KeyguardManager.isKeyguardLocked()
android.app.KeyguardManager.isKeyguardSecure()

Fix some javadoc typos

Change-Id: Iedcd9f6a5261b7a3b47431edff013f629e1dc45d
/frameworks/base/core/java/android/app/KeyguardManager.java
9567a66a5e6f49dd8495fb5f6e2efb9f32e84b35 20-Apr-2011 Dianne Hackborn <hackbod@google.com> Deprecate a bunch of APIs.

And clean up some documentation.

Change-Id: I7882183b3daf883b7ac6098d19f88dc7cfbcdf61
/frameworks/base/core/java/android/app/KeyguardManager.java
505312482782a600e997c91712f03f83c7a70428 26-Feb-2011 Mike Lockwood <lockwood@android.com> KeyguardManager: Fix copy & paste error in isKeyguardLocked()

Change-Id: If5145e8483d3736d73698b3deb189f2253015543
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/app/KeyguardManager.java
520d8bc1d840966b5519195aaa514597a662c053 18-Feb-2011 Mike Lockwood <lockwood@android.com> KeyguardManager: Add isKeyguardLocked() and isKeyguardSecure()

BUG: 3402847

Change-Id: I725838c9d96617dd4497f9c80417cd623eceb846
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/app/KeyguardManager.java
cb52cb52253c3832ccc7f5f1dbb4d8a0bd8178c0 08-Jun-2010 Jim Miller <jaggies@google.com> Fix SDK build.

On branch fix_sdk
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

modified: core/java/android/app/KeyguardManager.java

Change-Id: I56848db098822536f0ac32efc8f0eb1d725bf6f9
/frameworks/base/core/java/android/app/KeyguardManager.java
d6b5705e188e55a3b9dbb07954b16564b1a31b9f 08-Jun-2010 Jim Miller <jaggies@google.com> Fix 2737842: disable keyguard API when device policy is enabled.

This fix disables KeyguardManager's enable/disable API when any
device policy admin requests a policy that enforces a password.

Change-Id: Idb1da16b14ed8963142f7b1f62d2b060d84ffa65
/frameworks/base/core/java/android/app/KeyguardManager.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/app/KeyguardManager.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/app/KeyguardManager.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/app/KeyguardManager.java