History log of /frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3fb0af38a1de9258cc80b227361c9a8ded88cfef 15-May-2012 Jeff Sharkey <jsharkey@android.com> Enable haptic feedback from ILockSettings.

Bug: 6438580
Change-Id: I671ef3c7ac816596ab1944609bae672d1b0cb0ef
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
d9d09451ccec7c551d5f9c2f1417c9c1de2952a6 03-Nov-2011 Jim Miller <jaggies@google.com> Fix 5231823: PIN/Password polish on lock screen

Fixes these issues:
- add IME button to switch IMEs on password screen on tablet
- centers '0' on PIN screen for phones and tablets
- tablets now use the same ICS background key asset as phones
- make PIN layout consistent between phones and tablet
- center the I-beam when any button is showing in the password entry field

Change-Id: I4da0173f9b2efeab46617c5a41a8132895b63a97
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
aef555bcf26e770e37f2065913084588fb92c6fb 13-Oct-2011 Jim Miller <jaggies@google.com> Fix 5444675: Fix vibrate regression on Pattern and PIN unlock screens.

This fixes a regression caused by a resource change to the vibrate
pattern. It used to contain an array of delays and values. Now it has
another mode with just one value with an associated change to the vibrate
API.

Instead of using a custom vibration pattern, it now just follows the system
vibrate pattern for HapticFeedbackConstants.VIRTUAL_KEY, which is shared by the
home key, among other things.

Change-Id: Ib58493a96a42383955ae59f8ac3865bb46a86a31
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
51ea88a86e5cf418e956b199de35658f0a5fd623 03-Oct-2011 Ben Komalo <benkomalo@google.com> New PIN unlock screen layout.

Moves "OK" to the right and moves backspace up to beside the text field.

Bug: 5255976
Change-Id: I1b97ee108c9f10f11e5feb361810150bd6dbc776
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
ebcd6bb1b9ac5f898621ba25c37f2e3ccd2ff33b 22-Sep-2011 Adam Cohen <adamcohen@google.com> Fixing emergency dialer flicker on lock screen (issue 5314293)

Change-Id: Ia9bf4acb84923e200b89ee55fc53bc92877001cf
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
1c18828d20807342d37000746b18a3c1696f3b2e 09-Aug-2011 Jim Miller <jaggies@google.com> Fix 5044158: Integrate music transport control into LockScreen

This integrates a new version of TransportControlView into LockScreen
and adds plumbing to handle new AudioService events to show/hide the view
and updates the required assets for all devices.

Updated to use new AudioManager API. Since the current API only supports
one RCD, the handler now lives in TransportControlView.

Change-Id: I220d4dd760bef35bd84209adc3c5829bf5bc9a2c
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
b0166bc62f781c3dd921560c0ebafd965603fb16 29-Aug-2011 Jim Miller <jaggies@google.com> Fix 5216579: Don't show IME switch option in numeric mode of lockscreen

Since LockScreen provides its own PIN entry keyboard, we don't need to show
the IME switcher button.

Change-Id: I04528acaee66e5109d631c0c79a3e7c64876e4c5
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
4f36995777a4136e8e63ea51cef2ff61df48790d 20-Aug-2011 Jim Miller <jaggies@google.com> Fix 5026428: Rework unlock attempt logic with active DPM to show better messages

Prior to this change, we didn't have a mechanism to warn the user when
they were approaching the wipe data threshold dictated by active DPMs.

Here's the new flow:

- If a device policy manager is installed and sets the max
password attempts, we start warning the user when they are within
a grace period of hitting the max (currently hard-wired to 5).

- We continue to show a dialog after each continued attempt
until the user reaches 0 remaining attempts.

- We now show a message when they hit 0 so they know why their device is
being reset. The device will reboot and wipe data shortly after this final
dialog is shown.

Also increased the criteria for a pattern attempt from 3 dots to 4 dots
since the user can never set a pattern less than 4 in length. This will
greatly reduce the likelihood of a false wipe on the pattern unlock screens
without compromising security.

Change-Id: I28825ef21dfa2e2b6540e743252c6d50c41e5ad7
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
858f8eaac75bcd1b296b41837caf3dae82d1d72a 19-Aug-2011 Jim Miller <jaggies@google.com> Fix 5021968: Add input method switcher button to lock screen.

This adds an IME switcher button to lock screen. It is only
shown if the user has more than one applicable and enabled IME installed.

Change-Id: I5f9503a205c2edb27170825539ba4a6ef25418ed
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
6b05d58018c2806459c121e507c005639b74aee9 18-Jul-2011 Jim Miller <jaggies@google.com> Fix 5044158: Initial pass: add music transport controls to LockScreen

Refactored all lockscreen notifications to go through new KeyguardStatusViewManager.
This is required to intercept messages originally intended for separate TextViews that
are now shown in a single view when showing the transport control view.

Refactor EmergencyCallButton to be handled by common code in KeyguardStatusViewManager.

First pass at LockScreenWidgetCallback for LockScreen "widgets" to send events back to LockScreen.

First pass at LockScreenWidgetInterface, which will be required of Views that want to be rendered on
LockScreen.

Added place-holder TransportControlView until the real one is ready and integrated it into GridLayouts.

Ensured emergencyCallButton is in all views, even if not shown since some devices may lock the user
out if certain criteria isn't met (missing SIM, etc).

Refactored layouts and removed keyguard_screen_status*.xml since layouts are all over the map and
no longer make good use of a shared layout for this.

Minor tweak to MultiWaveView to fix layout issues when placed in GridLayout where the measurement
was being calculated improperly.

Moved EmergencyCallButton to bottom of view where we can.

Removed unused Alpha keyboards from tablet password unlock layouts.

Removed unused views (status2, emergencyCallText screenLocked) from layouts and made common views have common names.

Fixed bug with MultiWave layout in landscape where array was shown in wrong orientation.

Separated clock colors for phones/tablets since they're now different.

Converted remaining phone layouts to use GridLayout.

Start routing audiomanager events to lockscreen views.

Move emergency call button handling to KeyguardStatusViewManager.

Change-Id: I480b0346cfe19aad316fea0c0aaabf8862693636
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
dcb9376913a954266d07733e5e33bd846230cff8 15-Jul-2011 Jim Miller <jaggies@google.com> Fix 5027468: prevent screen from turning back on while lockscreen in password mode.

This fixes a bug where LockScreen would turn back on due to the sequence of events
that ultimately cause PasswordUnlockScreen.onResume() to be called when the device powers off.

This is required because the lockscreen rebuilds itself before the screen turns off
so that it's ready to show immediately when the device comes back on.

Change-Id: I86a61cc3b1d77cf7f2a9a198051ea2bbe90607b2
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
8ecfac1d8c2988c3d5031e78f9edefff6e663fd1 09-Jul-2011 Jim Miller <jaggies@google.com> Fix 4942542, 4590542: Password unlock fixes

Fixes issue where hint text was inappropriately shown on password unlock screen.
This was caused by TextView.setKeyListener() clearing the inputType flags. The
workaround is to change the order of these calls. TextView.setKeyListener()
should probably not be clearing existing inputType flags.

Fixes wake issue caused by IME events not poking the wakelock. It now correctly pokes
the wakelock whenever the password text field changes.

Change-Id: I746b21117492c4a176f6627e7d33150e6104495e
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
08a975ef86200a73db51bfbcca6bea8ad2a63cbd 22-Jun-2011 Jim Miller <jaggies@google.com> Update LockScreen layouts to latest UX spec.

- better placement and consistent handling of emergency button.
- use new GridLayout for landscape modes.
- add dimensionable parameters for time and status line fonts.
- fix assets and emergencyCallButton resource references when building for tablets.

Change-Id: I5f4c9cfb6a88ce3ccd8ab4fdafede8e6e59f9407
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
5a1ff22f20cf825c0f95509aa187a823ca0075a2 03-Jun-2011 Jim Miller <jaggies@google.com> Fix 4368649: Fix visible password issue on password unlock screen

Change-Id: I9ec30898e27d49d82d11dfcf3abb4273e4277316
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
5cfee3fabb3482c6a6df1c8b6f21e843cf214527 31-May-2011 Brian Carlstrom <bdc@google.com> Integrating keystore with keyguard (Part 1 of 4)

Summary:

frameworks/base
keystore rewrite
keyguard integration with keystore on keyguard entry or keyguard change
KeyStore API simplification

packages/apps/Settings
Removed com.android.credentials.SET_PASSWORD intent support
Added keyguard requirement for keystore use

packages/apps/CertInstaller
Tracking KeyStore API changes
Fix for NPE in CertInstaller when certificate lacks basic constraints

packages/apps/KeyChain
Tracking KeyStore API changes

Details:

frameworks/base

Move keystore from C to C++ while rewriting password
implementation. Removed global variables. Added many comments.

cmds/keystore/Android.mk
cmds/keystore/keystore.h
cmds/keystore/keystore.c => cmds/keystore/keystore.cpp
cmds/keystore/keystore_cli.c => cmds/keystore/keystore_cli.cpp

Changed saveLockPattern and saveLockPassword to notify the keystore
on changes so that the keystore master key can be reencrypted when
the keyguard changes.

core/java/com/android/internal/widget/LockPatternUtils.java

Changed unlock screens to pass values for keystore unlock or initialization

policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
policy/src/com/android/internal/policy/impl/PatternUnlockScreen.java

KeyStore API changes
- renamed test() to state(), which now return a State enum
- made APIs with byte[] key arguments private
- added new KeyStore.isEmpty used to determine if a keyguard is required

keystore/java/android/security/KeyStore.java

In addition to tracking KeyStore API changes, added new testIsEmpty
and improved some existing tests to validate expect values.

keystore/tests/src/android/security/KeyStoreTest.java

packages/apps/Settings

Removing com.android.credentials.SET_PASSWORD intent with the
removal of the ability to set an explicit keystore password now
that the keyguard value is used. Changed to ensure keyguard is
enabled for keystore install or unlock. Cleaned up interwoven
dialog handing into discrete dialog helper classes.

AndroidManifest.xml
src/com/android/settings/CredentialStorage.java

Remove layout for entering new password

res/layout/credentials_dialog.xml

Remove enable credentials checkbox

res/xml/security_settings_misc.xml
src/com/android/settings/SecuritySettings.java

Added ability to specify minimum quality key to ChooseLockGeneric
Activity. Used by CredentialStorage, but could also be used by
CryptKeeperSettings. Changed ChooseLockGeneric to understand
minimum quality for keystore in addition to DPM and device
encryption.

src/com/android/settings/ChooseLockGeneric.java

Changed to use getActivePasswordQuality from
getKeyguardStoredPasswordQuality based on experience in
CredentialStorage. Removed bogus class javadoc.

src/com/android/settings/CryptKeeperSettings.java

Tracking KeyStore API changes

src/com/android/settings/vpn/VpnSettings.java
src/com/android/settings/wifi/WifiSettings.java

Removing now unused string resources

res/values-af/strings.xml
res/values-am/strings.xml
res/values-ar/strings.xml
res/values-bg/strings.xml
res/values-ca/strings.xml
res/values-cs/strings.xml
res/values-da/strings.xml
res/values-de/strings.xml
res/values-el/strings.xml
res/values-en-rGB/strings.xml
res/values-es-rUS/strings.xml
res/values-es/strings.xml
res/values-fa/strings.xml
res/values-fi/strings.xml
res/values-fr/strings.xml
res/values-hr/strings.xml
res/values-hu/strings.xml
res/values-in/strings.xml
res/values-it/strings.xml
res/values-iw/strings.xml
res/values-ja/strings.xml
res/values-ko/strings.xml
res/values-lt/strings.xml
res/values-lv/strings.xml
res/values-ms/strings.xml
res/values-nb/strings.xml
res/values-nl/strings.xml
res/values-pl/strings.xml
res/values-pt-rPT/strings.xml
res/values-pt/strings.xml
res/values-rm/strings.xml
res/values-ro/strings.xml
res/values-ru/strings.xml
res/values-sk/strings.xml
res/values-sl/strings.xml
res/values-sr/strings.xml
res/values-sv/strings.xml
res/values-sw/strings.xml
res/values-th/strings.xml
res/values-tl/strings.xml
res/values-tr/strings.xml
res/values-uk/strings.xml
res/values-vi/strings.xml
res/values-zh-rCN/strings.xml
res/values-zh-rTW/strings.xml
res/values-zu/strings.xml
res/values/strings.xml

packages/apps/CertInstaller

Tracking KeyStore API changes
src/com/android/certinstaller/CertInstaller.java

Fix for NPE in CertInstaller when certificate lacks basic constraints
src/com/android/certinstaller/CredentialHelper.java

packages/apps/KeyChain

Tracking KeyStore API changes
src/com/android/keychain/KeyChainActivity.java
src/com/android/keychain/KeyChainService.java
support/src/com/android/keychain/tests/support/IKeyChainServiceTestSupport.aidl
support/src/com/android/keychain/tests/support/KeyChainServiceTestSupport.java
tests/src/com/android/keychain/tests/KeyChainServiceTest.java

Change-Id: Ic141fb5d4b43d12fe62cb1e29c7cbd891b4be35d
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
da3ae8fba865e4b02016bcb65b87a1fbfa000158 15-Apr-2011 Jim Miller <jaggies@google.com> Use system IME for LockScreen password mode.

Change-Id: I16c4d26fd2aeac2fe1647145b70dfde9d8d26af9
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
688435833fea20c5aa9bc4305dc052e55bcec33c 18-Jan-2011 Jim Miller <jaggies@google.com> Fix 3339257: Update lockscreen keyboard to fit Holo theme

This updates the lockscreen keyboard to be like the
latin-1 IME keyboard and updates it to fit the holo theme.

Fixed some minor issues addressed in review.

Change-Id: I3c6dd8f91be753510e6eadfa9ad913f77038947b
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
305093f9116b364856bcdcd499e9f69910e249dd 17-Jan-2011 Jim Miller <jaggies@google.com> Fix 3005526: Properly update StatusView from Password/PIN unlock

This uses the newly added setHelpMessage() to properly show PIN and
password help in StatusView.

Change-Id: I8662e179e989c6e72f657c81f23b1b2fa7982727
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
b47bed9c48f73dbd94c0240983f61edc875e99f5 16-Jan-2011 Jim Miller <jaggies@google.com> Fix 3355957: Don't hide the keyboard for PIN/Password

BT or USB keyboards currently cause the on-screen keyboard to
be hidden. This will probably need to be refactored in the
future but the change is too complicated for the current
release.

Change-Id: Ieb655b85622f7c174ed4a5d1c3766d130a9d32f1
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
8171b5182f5f07d33c9dfdf2dd8f0f6ae9588039 05-Aug-2010 Jae Yong Sung <jysung@google.com> lock screen for xlarge

Change-Id: Iab9f53609bf24be774752a9960aaaa654d7a614f
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
83ea9e395e86ca2d12d822609ca2a8b35b78cca9 16-Jun-2010 Brett Chabot <brettchabot@android.com> am 685fcf36: am c95812e6: Merge "Move out all framework-tests classes." into gingerbread

Merge commit '685fcf364b84d5ac911ae9cbbc4fec99f36cbd48'

* commit '685fcf364b84d5ac911ae9cbbc4fec99f36cbd48':
Move out all framework-tests classes.
be81f4f15dad6d690efcab1973d1e174ce3b001b 15-Jun-2010 Brett Chabot <brettchabot@android.com> Move out all framework-tests classes.

Previously tests/framework-tests contained a quarantined set of test classes
that needed access to package-private framework api. Running these tests
normally would cause the dalvik verifier to throw errors.

runtest now has support for turning off the dalvik verifier for frameworks
tests, so move this tests into their recommended location, close to the source
being tested.

Also move policy source into a 'src' folder to accommodate the tests move.

Change-Id: I62f839da185a55bc553b653bf583fd99da438512
/frameworks/base/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java