aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-09-04Add unit tests for enter key's more keysTadashi G. Takaoka3-0/+380
Bug: 15681452 Change-Id: I3070c46bb2c0cb8ccaae66eaea132b41c567e135
2014-09-03Add shared abstract test class for action label testTadashi G. Takaoka3-154/+179
Bug: 15681452 Change-Id: I0ad21e6979aed1b5c8c210399c4edfd5993adbdc
2014-09-03Update spacebar background for MaterialTadashi G. Takaoka20-6/+6
Bug: 17318036 Change-Id: Iaa091b525433d56db9aca9e0301f3727ce392605
2014-09-03Add new value "spacebar" to Key.backgroundType attributeTadashi G. Takaoka8-8/+32
Bug: 17318036 Change-Id: Ie84438a6aa3adc14a9db603d0cd4d5e37a55d612
2014-09-03Removes "customAction" value from Key.backgroundType attributeTadashi G. Takaoka4-15/+0
Bug: 17318036 Change-Id: I6a36d50ba2e69eafbb0faa049014281bd4d4ddfc
2014-09-03Add new "keyboardTheme" <case> predicatorTadashi G. Takaoka9-22/+75
Bug: 17318036 Change-Id: Ief386c84969d8646fb5cfe2050a2f59a7db16c88
2014-09-03Follow up API signature changeYohei Yukawa3-21/+19
This is a follow up CL for API signature change in I772c48ff18918e48a81e807b48ff907614485c09 BUG: 17320996 Change-Id: Ic8b6162bda12bf74fae79af212c5d81c400eb9e8
2014-09-03Fix depedency of debug settingsTadashi G. Takaoka1-6/+6
This is a follow of the I26e4d292de. Bug: 15678343 Change-Id: I364d6df386cf32102e4ebb0151d18e49dcc5bd2c
2014-09-02Follow API signature change in CursorAnchorInfoYohei Yukawa2-33/+16
This is just a follow up CL for Ia8cbb9f6b41cd9509fc0147fd68763df. No behavial change is intended. BUG: 17200900 Change-Id: Iba23b731ebde64ec2e816c5b4bef1d93632fce1e
2014-09-02Add theme aware key popup preview animationTadashi G. Takaoka18-120/+352
Bug: 15678343 Change-Id: I26e4d292deab37724387cc9ebc03033fcd698c60
2014-09-02Fix missing Material light more keys' backgroundTadashi G. Takaoka2-2/+22
Bug: 15782668 Change-Id: I8b59d8a4dabe03418e520c18d5d64e2d10f4cae2
2014-08-29Use right arrow for the commit indicatorYohei Yukawa1-10/+16
Change-Id: I5074acd2eec451f77b47378bf9a5f7a14c792ce6
2014-08-29Show the commit indicator only for word to be auto-correctedYohei Yukawa1-1/+1
Change-Id: I61e25b960ae083857efc2704498a0761e0965ad3
2014-08-29Support RTL layout in custom input style settingsTadashi G. Takaoka3-40/+94
Bug: 17322353 Change-Id: I3b211ab8729121271563a8a243558a58ee7847c2
2014-08-29Fix an IOOB exceptionJean Chalard2-1/+11
Bug: 17316001 Change-Id: Iaa2cfd30ebbe0d49e10a5c3a30336e06817d0a8b
2014-08-29Fix the order of keys on more keys keyboardTadashi G. Takaoka5-33/+2528
This CL fixes the behavior of !autoColumnOrder!<n> flag in a more keys specification. Formerly the <n> value specifies the maximum number of column of more keys. With this CL, the <n> value specifies the exact number of column of more keys. Bug: 16603887 Change-Id: I2120620fa512ee30043bb146ad675a942a375129
2014-08-28Clear keyboard cache when system locale is changedTadashi G. Takaoka6-30/+36
Bug: 17310080 Change-Id: I2b388772f269f1e7610a5bd32de80793da2df16e
2014-08-28Add action label tests in other locale than subtype'sTadashi G. Takaoka3-122/+177
This unit test can catch the bug: 17310080. Bug: 17310080 Change-Id: I931561217647fd558929b954ee1ef58c1d49df07
2014-08-28Add new attributes to our notificationJean Chalard3-3/+95
Bug: 17167221 Bug: 17128331 Change-Id: I6a045fd2398f40dbdc10c9d20993f7513e1f2cff
2014-08-27Make sure to obtain the IC before requesting CursorAnchorInfoYohei Yukawa1-2/+8
RichInputConnection#requestUpdateCursorAnchorInfo must make sure to obtain the input connection before calling methods of it. BUG: 17299587 Change-Id: I8e0cd473a4cc32583cd47634c227d702f7c69c6c
2014-08-27Simplify onComputeInsets of LatinIMETadashi G. Takaoka7-101/+129
This CL expands SoftInputWindow to the entire screen. Thus a key review backing view is eliminated and onComputeInsets() gets simplified too. Bug: 17212702 Bug: 10841052 Bug: 10541453 Change-Id: I2d859f4e4698c64cabe399000821f13bab729996
2014-08-27Set highlight color along with the commit indicatorYohei Yukawa1-2/+39
With this CL, the text highlight color is applied when the commit indicator is displayed. Note that the underline is not rendered when the background color is enabled. This is a known issue. Change-Id: Ia19355e1303e3a10e8a7d69bc47c779feb70248a
2014-08-27Set the text bgcolor only when CursorAnchorInfo is availableYohei Yukawa3-14/+53
When CursorAnchorInfo is unavailable, we shouldn't try to show the commit indicator and set the text highlight color. With this CL, RichInputConnection can be used to track if the application responded that it does support CursorAnchorInfo or not. This result will be taken into consideration when InputLogic needs to determine whether the commit indicator should be displayed or not. Change-Id: I945d70eeb02a7a5f3d9b22459b23d7028508910f
2014-08-26Introduce a mechanism to hide the indicator speculativelyYohei Yukawa2-16/+52
This is an optional optimization to reduce the UI latency. Imagine that the commit indicator is now displayed and the composing text is being updated, it is highly likely that the commit indicator will disappear unless the application rejects the setComposingText request. If we assume that the application will accept the new composing text without any modifications, we can hide the indicator without waiting for the arrival of new CursorAnchorInfo event. This optimization isn't dangerous because we can show the indicator again when we receive new CursorAnchorInfo event and the assumption is turned out to be invalid. Change-Id: Id59c6607a1029782410611e768791af9984f14ac
2014-08-26Introduce commit/add-to-dictionary indicatorsYohei Yukawa7-15/+1066
This CL introduces commit/add-to-dictionary indicators. Note that the text is not yet highlighted when the commit indicator is displayed. It will be addressed in subsequent CLs. Change-Id: I7e9b0fcfdc0776a50a1d8cfb41ee0add813317dd
2014-08-26Fix a bug where the top prediction would disappear.Jean Chalard8-45/+41
This is because prediction can't be easily distinguished in style. This fixes the bug by simulating the right members, but some refactoring should be done to remove useless booleans. Bug: 17271923 Change-Id: Ib88f3fb95678021624e59535492926dd315d26fb
2014-08-25Use more descriptive names for some internal fieldsYohei Yukawa3-18/+20
This CL clarifies that delay parameters are specified with milliseconds. Change-Id: I401a60b8c09c2a04201af5b74babcdb091c07f4a
2014-08-25Show view even when IME is explicitly shown with physical keyboardTadashi G. Takaoka1-0/+12
Bug: 17242477 Bug: 13988700 Change-Id: I519c0481760a9aa93a5d9bee68e0f6a3a8fc4d9d
2014-08-25Fix NPE when pressing ALT keyTadashi G. Takaoka1-0/+3
Bug: 17203708 Change-Id: I4f203603496e9401dacba4db21372e3353916418
2014-08-24Fix build due to an illegal characterYohei Yukawa1-1/+1
Change-Id: I597ab26db70387b80ddcd7d51de6ae751380030d
2014-08-24Introduce #shouldShowAddToDictionaryHintYohei Yukawa1-8/+15
This is a groundwork for subsequent CLs where we need to call this method from multiple places. This CL does not change any existing behaviors. Change-Id: Id8fa0360305d7383571edffab6752b2240367cf9
2014-08-25Fix the bottom row of tablet keyboard layoutTadashi G. Takaoka39-292/+592
This CL eliminates "_" and "/" keys from the bottom row of tablet keyboard. This CL also reorganizes the bottom row of tablet Dvorak keyboard. Bug: 16603887 Change-Id: Ic1570836dea1a475bed5d43aeb6a351507bf5428
2014-08-24Dismiss "Add to dictionary" hint with non-special char eventYohei Yukawa1-2/+7
This CL slightly extends the condition when "Add to dictionary" hint is dismissed. With this CL, "Add to dictionary hint" will be dismissed by any non-special char event. This is more comfortable especially if we start using more intrusive UIs such as indicator and/or background color with the text hint in the suggestion strip. Change-Id: I2ea0fa40d9c6663ebf5d5439be3eca2a2cbd5166
2014-08-24Allow to add/remove background color to/from the committed textYohei Yukawa2-4/+97
This is a groundwork for subsequent CLs where we need to add/remove background color to/from the commited text. In this CL, we use Spanned#SPAN_COMPOSING so that we can easily remove such a background color by calling InputConnection#finishComposingText. To make this operation easy and realiable, we need to track whether we have specified the background color to the commited text or not at one place. Here we use RichInputConnection for this purpose. Change-Id: I5f9bc4425c5d1b80a719a20e5baf336729ec08d2
2014-08-24Indroduce SuggestedWords#getTypedWordInfoOrNullYohei Yukawa2-21/+82
This is a groundwork for subsequent CLs whith need to do certain things for and only for the typed word. Change-Id: I374b79cbc79470f57f523c996010301ea5701a61
2014-08-22Support Accept typed word UITadashi G. Takaoka6-72/+378
Change-Id: I58e95b2791a45afdc7dae8e26dcfc200b3b4b854
2014-08-21follow-up to API change in I4a577bfd02b37bYohei Yukawa3-113/+24
BUG: 17182367 BUG: 17185263 Change-Id: Id54ca29c191b9752fa82ffe5a960113b2e97e5c1
2014-08-21Use #onStartInputInternal to initialize cursor rect retrievalYohei Yukawa1-12/+12
This CL simply moves the method calls of #requestCursorAnchorInfo into #onStartInputInternal just to consolidate the logic. Change-Id: Ia205738b9614e9ae375c1dab767a91d2e1f6d0d3
2014-08-20Support more methods in the wrapper of CursorAnchorInfoYohei Yukawa2-43/+156
This CL add more compatibility wrapper methods for CursorAnchorInfo. This CL also adds more utility functions and types into CompatUtils to reduce explict cast operations. Change-Id: Id50165b552bbf28b832a6da13bf06eedcd2a190e
2014-08-19Use FrameLayout for the backing viewYohei Yukawa1-1/+1
If we render our UI around the composing text in the fullscreen mode, probably we need to have our views under android.R.id.extractArea, which is implemented as FrameLayout. Therefore, using FrameLayout for the backing view makes it easy to simplify the code between normal mode and full screen mode. Change-Id: I69533b22d9d1368ad906dc5ef7be1a1b674d10b8