History log of /frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
385912ee2d78e0e557704cfd5f8c7dbe2b7fd280 10-Feb-2017 Phil Weaver <pweaver@google.com> Deprecate "speak passwords" setting.

This will now be controlled by individual accessibility services.
We'll provide the password information to them, and they can
present or hide the information as it makes sense for their users.

Password information was anyway provided when a headset was
connected.

Bug: 28139568
Test: Manually verified that TalkBack now speaks passwords on the
lock screen and in text views. Since I'm removing functionality
that didn't have tests, it's tricky to have specific tests.
Change-Id: Ic3c724ccce5762ee9dcd9e7dcbd4eae6734dd05e
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
5ba31aa77d4319c3a473d626c5bd48be5c3a0dd2 23-Oct-2015 Clara Bayarri <clarabayarri@google.com> Fix crash in KeyboardView with null Handler

A recent change in how the handler is created in KeyboardView
caused the password change flow to crash in ChooseLockPassword.

Change-Id: Id5fcb256f9a09b75bf91c5c79614d8abfc29747f
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
d0374c6b25c3ad8e638827bd8190553f80d9bf22 20-Oct-2015 John Reck <jreck@google.com> Fix a few view ctors to not call Looper.myLooper

Bug: 25116730
Change-Id: I4e394c281feef6f7987433298d66f2df11352416
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
9752428dc1829450e90417ca3e46d077e915ae90 03-Dec-2014 Alan Viverette <alanv@google.com> Use CURRENT_OR_SELF when checking SPEAK_PASSWORD setting

Using CURRENT isn't always safe.

BUG: 18557273
Change-Id: I12e197ab25b8ffdc04c5e74836945177870698a2
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
b6e0cb97b7d8e4acf345efc8066f1587408b83e0 25-Nov-2014 Alan Viverette <alanv@google.com> Load SPEAK_PASSWORD from currently active user rather than self

Also fixes a typo in UserHandle's docs.

BUG: 18295054
Change-Id: I1f5384f84062b9ea7dcbebe1e5f64af331028d41
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
617feb99a06e7ffb3894e86a286bf30e085f321a 10-Sep-2013 Alan Viverette <alanv@google.com> Add View constructor that supplies a default style resource

Also updates the constructor of every class that extends View.

BUG: 10676369
Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
b6a0b09bf570679587f1875ef336dfe676ea8ebe 23-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Interaction model of KeyboarView should be same as latimIME

1. In latin IME key up types in - now the keyboad view does the same.

bug:6534935

Change-Id: I91cd40c5cd541199f3fb43e4d0bf26be511dcd09
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
55f937abe1a4fedb86c2679c66f0b5220ec3780e 05-Dec-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding a system preference whether to speak passwords in accessibility mode.

By default we do not speak passwords if the user has no headset. However,
many users find this too restrictive and would like a way to enable
password announcement. While we cannot speak the passwords all the time
,to avoid leaking them, we expose a preference so each user can choose
the option that best works for him/her.

bug:5712607

Change-Id: I6eb0c40834abe5297f7dc74be02d180a5bef0174
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
67578618fb7ac1bf353d7caaadf9a49c09be5d07 02-Nov-2011 Svetoslav Ganov <svetoslavganov@google.com> Update KeyBoardView to reflect the interaction model in Latin IME

A new patch checked in Latin IME makes it behave like any other Views. Touch
explore announces the letter under the finger and subsequent tap types in the
letter. Making KeyBoardView consistent with that.

bug:5552217

Change-Id: Ifeb6c3f071a5d64d0a16de584bf04ea40fff62fc
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
bd39ca701492cb4dccfbe70c7bb76219979326a4 05-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> Make prompt for headset while typing a password if accessibilbity is on less verbose.

If accessibility is enabled and there is no headset we do not speak the pressed keys.
In such a case we provide a prompt to the blind user to use a headset. This was announced
on every keypress which is quite annoying. Now this is announced only once.

bug:5342234

Change-Id: Ibe55ad991ad2153d09cde57b030544948fa0d73b
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
a95e1087b2258b118a7ccb2bedb44da359d3abd0 20-Sep-2011 Chet Haase <chet@google.com> Fix 5335993, calculate correct size of lockscreen buttons

The buttons on the lockscreen were sized at startup time,
before the actual size of the keyboard's container (KeyboardView)
was known. Also, horizontal/vertical gaps were not taken into
account in calculating perecent sizes of the keys. This change
causes resize events (including the first one where the container
size is finally known) to recalculate the keys' sizes and positions
according to correct sizing of the container and the keyboard's gaps.

Change-Id: I5ba7a401226ed4b100e5739f3405388955d97997
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
e8b8e1aed046711b41804de1670e58c7a8a9d6ad 22-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding accessibility support to the PIN lock screen.

1. The password lock screen is accessible and with this
change the PIN lock screen is accessibile as well.
This is enough to cover the enterprise use case of
imposed lock of the deivce. we will hide the options
for pattern since it is hard for use by a blind person.
We may reconsider this for subsequent releases.

bug:4978246

Change-Id: I069f8ebe1ff7ea1591cab42ea580f00f3d31b2e6
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
709349396b0f1e41ccff72f604b516076979745f 17-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Breaks the build

Revert "Adding accessibility support to the PIN lock screen."

This reverts commit 0d67c8900276494cd38539bce40342e11ed83508
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
0d67c8900276494cd38539bce40342e11ed83508 06-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding accessibility support to the PIN lock screen.

1. The password lock screen is accessible and with this
change the PIN lock screen is accessibile as well.
This is enough to cover the enterprise use case of
imposed lock of the deivce. we will hide the options
for pattern since it is hard for use by a blind person.
We may reconsider this for subsequent releases.

bug:4978246

Change-Id: I67ef783b799ffd64ebff6cdb614c03025fc911e6
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
21334fdbbe9f2e6890fb9877b9ef3d441f3eb6fb 20-Apr-2011 Tadashi G. Takaoka <takaoka@google.com> Fix key preview coordinates calculation

Bug: 4310526

Change-Id: I67be4e69056faea9bdf4157ada9435dd326e52f0
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
0972d071cd1b5eba60a6c20551f4500b638a1bf1 31-Jul-2010 Tadashi G. Takaoka <takaoka@google.com> Fix KeyboardView's verticalCorrection handling

Do not correct the touch point if it is within the range of
verticalCorrection from the top of KeyboardView, so that the touch
point will not have negative y-axis value.

Bug: 2659128

Change-Id: I91a3e65fc5dee1383dbbfb45690e307fc0adc1d1
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
42973a4a03ac6ebea94b4d4db1b319c7d45f720d 20-Mar-2010 Amith Yamasani <yamasani@google.com> Move the key feedback bubble to the side if there's not enough room above. bug: 2519903
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
7aa936e8368268c3cca7c3fd23fde7fd02318c58 12-Feb-2010 Amith Yamasani <yamasani@google.com> Fix key debounce (was too aggressive and buggy) and dismiss mini keyboard on cancel event.

Set a 70ms debounce time - i.e., if you spend less than 70ms on the touch-up key,
which was less time than the time spent on the previous key (assuming they weren't the same),
then don't emit the last key. Use the previous key that you lingered on for longer.
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
0b31970cac04259a6e20dfc6d6e42cd9532528e3 06-Feb-2010 Jim Miller <jaggies@google.com> Fix 2402303: Split Keyboard widget from LatinIME into reusable PasswordEntryKeyboardView

- Added new PasswordEntryKeyboardView to internal/widgets. Widget supports:
- alpha mode with symbols (latin-1 only).
- a numeric keyboard
- IME emulation that applies keyboard input to arbitrary top-level view widget.
- Added new transparent assets to framework resources.
- Modified Keyguard and Keyguard layouts to use new PasswordEntryKeyboardView.
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
ec5df83c5b44ad2f2b28a1a4420c4c4056dd6103 09-Feb-2010 Amith Yamasani <yamasani@google.com> Fix to enable having a primary index that's not the closest match.

Needed for predictive hit target correction in LatinIME.
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
46a61bb730e1f144511be49722af573aba73edba 08-Feb-2010 Romain Guy <romainguy@android.com> Prevent crash in KeyboardView when the view is 0x0.

See http://code.google.com/p/android/issues/detail?id=6374
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
4d2c27b145969f4467cf70037eecf730572dcf5d 05-Jan-2010 Amith Yamasani <yamasani@google.com> Fix for 2345922: Press and hold space in ?123 mode will give .....

Abort the repeat sequence until the next touch down event.
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
0743a389e8fd1e696c2c02e22689b2d6f12dc48b 08-Dec-2009 Amith Yamasani <yamasani@google.com> Close popup when Keyboard gets a CANCEL motion event.

Needed for Extension keyboard feature.
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
678cdbe55e0de71436f8aad5f139eafc2ab6f937 27-Oct-2009 Amith Yamasani <yamasani@google.com> Fix build.
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
aea1b3b24ee895c24ed25c5706bc2f390b41689d 22-Oct-2009 Amith Yamasani <yamasani@google.com> Disambiguation between multiple pointers and swipe gestures.

Sometimes quickly touching the screen with two fingers will result
in the firmware thinking one finger moved very quickly. This code
tries to identify the difference between the two based on velocity
of the last N points versus the velocity of the last M points and
figure out if there was mostly acceleration or a sudden deceleration.

It's still not perfect and very dependent on the touch hardware.
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
ebe3d518ffaeb14f3f2e0e74cdbc15fd2ddf4453 17-Sep-2009 Amith Yamasani <yamasani@google.com> Fix possible race condition when switching keyboards while there are pending messages.
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
8b37eb0c2a94d32c012a2709ddb0effc985b1d65 20-Aug-2009 Amith Yamasani <yamasani@google.com> Fix bug 2045914: When pressing 2 keys, sometimes the second key gets stuck.

Also lock repeatable keys so that you don't get space and 'v', for example,
when you move just a little bit off the spacebar.
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
29d85df051ca5e888a8f2b42416d09fc931d1a75 12-Aug-2009 Amith Yamasani <yamasani@google.com> Remove delay for key feedback bubble.

Most users seem to expect the feedback to show up right away. So
remove the delay before the bubble shows up.
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
e877ec632c3338234eb89c89c3dd8a68267b8633 06-Aug-2009 Amith Yamasani <yamasani@google.com> Use multi-pointer support to improve 2-thumb typing. No more missed keys!

Also reduce garbage when switching between keyboards.
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
e403700972f0c3187382c35e9b037b9a4907cf52 24-Jul-2009 Amith Yamasani <yamasani@google.com> Fix #1977876 : Key preview in WVGA broken.

Use PX unit when setting the text size since we're getting the size from getTextSize()
Reduce delay for popup.
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
b974c7a7495849beac1a904fae0839080cd382dc 22-Jul-2009 Amith Yamasani <yamasani@google.com> Fix for enabling auto-switch back to alpha mode from symbols.

When switching keyboards in the IME view, make sure that any pending touches
don't generate up events when released.
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
f04da95400e409dbb4ba33653f075bc76e091ef1 07-May-2009 Amith Yamasani <yamasani@google.com> Fix keyboard redraw bug on long-press of CapsLock.

Expose invalidateKey and invalidateAllKeys for subclasses to call when needed.
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75 11-Apr-2009 Andy Stadler <> AI 145778: Manual merge changes 145382-145384 from cupcake.

Automated import of CL 145778
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
88fb1069bf254dc68c83546496592a9b5e739a07 27-Mar-2009 Dianne Hackborn <> AI 143147: Manual integration

Automated import of CL 143147
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
ba87e3e6c985e7175152993b5efcc7dd2f0e1c93 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
4df2423a947bcd3f024cc3d3a1a315a8dc428598 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.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/inputmethodservice/KeyboardView.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/inputmethodservice/KeyboardView.java
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
3001a035439d8134a7d70d796376d1dfbff3cdcd 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
da996f390e17e16f2dfa60e972e7ebc4f868f37e 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
f1e484acb594a726fb57ad0ae4cfe902c7f35858 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
9266c558bf1d21ff647525ff99f7dadbca417309 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/inputmethodservice/KeyboardView.java