aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Support RTL layout in custom input style settingsTadashi G. Takaoka2014-08-292-6/+39
| | | | | Bug: 17322353 Change-Id: I3b211ab8729121271563a8a243558a58ee7847c2
* Fix an IOOB exceptionJean Chalard2014-08-291-1/+1
| | | | | Bug: 17316001 Change-Id: Iaa2cfd30ebbe0d49e10a5c3a30336e06817d0a8b
* Clear keyboard cache when system locale is changedTadashi G. Takaoka2014-08-284-26/+24
| | | | | Bug: 17310080 Change-Id: I2b388772f269f1e7610a5bd32de80793da2df16e
* Add new attributes to our notificationJean Chalard2014-08-282-3/+93
| | | | | | Bug: 17167221 Bug: 17128331 Change-Id: I6a045fd2398f40dbdc10c9d20993f7513e1f2cff
* Make sure to obtain the IC before requesting CursorAnchorInfoYohei Yukawa2014-08-271-2/+8
| | | | | | | | | RichInputConnection#requestUpdateCursorAnchorInfo must make sure to obtain the input connection before calling methods of it. BUG: 17299587 Change-Id: I8e0cd473a4cc32583cd47634c227d702f7c69c6c
* Simplify onComputeInsets of LatinIMETadashi G. Takaoka2014-08-274-68/+78
| | | | | | | | | | | 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
* Set highlight color along with the commit indicatorYohei Yukawa2014-08-271-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
* Set the text bgcolor only when CursorAnchorInfo is availableYohei Yukawa2014-08-273-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
* Introduce a mechanism to hide the indicator speculativelyYohei Yukawa2014-08-262-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
* Introduce commit/add-to-dictionary indicatorsYohei Yukawa2014-08-266-15/+939
| | | | | | | | | | 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
* Fix a bug where the top prediction would disappear.Jean Chalard2014-08-266-35/+30
| | | | | | | | | | 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
* Merge "Use more descriptive names for some internal fields" into lmp-devYohei Yukawa2014-08-252-15/+17
|\
| * Use more descriptive names for some internal fieldsYohei Yukawa2014-08-252-15/+17
| | | | | | | | | | | | | | This CL clarifies that delay parameters are specified with milliseconds. Change-Id: I401a60b8c09c2a04201af5b74babcdb091c07f4a
* | Show view even when IME is explicitly shown with physical keyboardTadashi G. Takaoka2014-08-251-0/+12
| | | | | | | | | | | | Bug: 17242477 Bug: 13988700 Change-Id: I519c0481760a9aa93a5d9bee68e0f6a3a8fc4d9d
* | Merge "Fix NPE when pressing ALT key" into lmp-devTadashi G. Takaoka2014-08-251-0/+3
|\ \ | |/ |/|
| * Fix NPE when pressing ALT keyTadashi G. Takaoka2014-08-251-0/+3
| | | | | | | | | | Bug: 17203708 Change-Id: I4f203603496e9401dacba4db21372e3353916418
* | Fix build due to an illegal characterYohei Yukawa2014-08-241-1/+1
| | | | | | | | Change-Id: I597ab26db70387b80ddcd7d51de6ae751380030d
* | Merge "Dismiss "Add to dictionary" hint with non-special char event" into ↵Yohei Yukawa2014-08-251-2/+7
|\ \ | | | | | | | | | lmp-dev
| * | Dismiss "Add to dictionary" hint with non-special char eventYohei Yukawa2014-08-241-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
* | | Introduce #shouldShowAddToDictionaryHintYohei Yukawa2014-08-241-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
* | Allow to add/remove background color to/from the committed textYohei Yukawa2014-08-242-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
* Indroduce SuggestedWords#getTypedWordInfoOrNullYohei Yukawa2014-08-241-0/+15
| | | | | | | This is a groundwork for subsequent CLs whith need to do certain things for and only for the typed word. Change-Id: I374b79cbc79470f57f523c996010301ea5701a61
* Support Accept typed word UITadashi G. Takaoka2014-08-223-71/+153
| | | | Change-Id: I58e95b2791a45afdc7dae8e26dcfc200b3b4b854
* follow-up to API change in I4a577bfd02b37bYohei Yukawa2014-08-212-100/+20
| | | | | | BUG: 17182367 BUG: 17185263 Change-Id: Id54ca29c191b9752fa82ffe5a960113b2e97e5c1
* Merge "Use #onStartInputInternal to initialize cursor rect retrieval" into ↵Yohei Yukawa2014-08-201-12/+12
|\ | | | | | | lmp-dev
| * Use #onStartInputInternal to initialize cursor rect retrievalYohei Yukawa2014-08-211-12/+12
| | | | | | | | | | | | | | This CL simply moves the method calls of #requestCursorAnchorInfo into #onStartInputInternal just to consolidate the logic. Change-Id: Ia205738b9614e9ae375c1dab767a91d2e1f6d0d3
* | Merge "DO NOT MERGE: Abolish source code overlay and introduce overridable ↵Ken Wakasa2014-08-1615-585/+0
|\ \ | |/ |/| | | src dir" into lmp-dev
| * DO NOT MERGE: Abolish source code overlay and introduce overridable src dirKen Wakasa2014-08-2015-585/+0
| | | | | | | | | | | | | | This should make IDEs happy with appropriate source code directory selection. Change-Id: Ic734bd4d20aa050c688a3158b1a382ae0ac18991 (cherry picked from commit fb74ab15c1343084740d65ef8744cad33a678e82)
* | Support more methods in the wrapper of CursorAnchorInfoYohei Yukawa2014-08-202-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
* Let the backing view cover the entire content areaYohei Yukawa2014-08-163-7/+8
| | | | | | | | With this CL, the backing view starts covering the content area entirely. This allows the IME to render its UI elements at an arbitrary position on the screen. Change-Id: I8b4173410931b776964dddf66de2fe247e51d9de
* Add the input style to SuggestedWords.Jean Chalard2014-08-148-55/+95
| | | | Change-Id: I81f37d08659d449822b027d3d5912e11eec8b8ff
* Use light emoji icon for Material light tablet keyboardTadashi G. Takaoka2014-08-142-4/+6
| | | | | Bug: 16808603 Change-Id: I39ce0ed8b5580754dfd0cf1494289b0a23863d50
* Enable CursorAnchorInfo callback when necessaryYohei Yukawa2014-08-132-4/+7
| | | | Change-Id: If3dda7442418053600ac935da50baaddb0e31d37
* Add stub implementation of #onUpdateCursorAnchorInfoYohei Yukawa2014-08-131-0/+12
| | | | | | | | This CL never changes existing behavior because ProductionFlags.ENABLE_CURSOR_ANCHOR_INFO_CALLBACK is not yet turned on. Change-Id: I4bcbd2aebd05977b07231e8aa14acdcf6d8e1fa0
* Add setting boolean for showing UI to accept typed wordTadashi G. Takaoka2014-08-134-0/+11
| | | | Change-Id: Iedd90d07b904362d9debc9994ce86cd78a0303b9
* (DO NOT MERGE) Add debug setting to force hardware special keyTadashi G. Takaoka2014-08-134-2/+14
| | | | | | Bug: 13988700 Change-Id: If23f8a14097431e76a303a6d6c24e8d9835fb655 (cherry picked from commit 3659c70fc3174b00ac24e105677d7e480596bf56)
* Add BuildCompatUtils to get an effective platfrom API versionTadashi G. Takaoka2014-08-134-20/+51
| | | | | | | This CL removes reference of VERSION_CODES.CUR_DEVELOPMENT. Bug: 13888366 Change-Id: I5c8499a175473a220c8fb04ead219760c585a19a
* Revert "Remove reference of VERSION_CODES.CUR_DEVELOPMENT"Tadashi G. Takaoka2014-08-131-5/+8
| | | | | | This reverts commit 5380acfd04342b35289599f0bda3eaae1ddac642. Bug: 13888366 Change-Id: Iae0fb6798cef9d59c9de3790123f6acaf8b2746b
* Remove reference of VERSION_CODES.CUR_DEVELOPMENTTadashi G. Takaoka2014-08-121-8/+5
| | | | | Bug: 13888366 Change-Id: I0b829e2cf9a11c694cf01b6f02753233c9c85105
* Merge "Add CursorAnchorInfoCompatWrapper for KitKat and older platforms" ↵Yohei Yukawa2014-08-111-0/+135
|\ | | | | | | into lmp-dev
| * Add CursorAnchorInfoCompatWrapper for KitKat and older platformsYohei Yukawa2014-08-121-0/+135
| | | | | | | | Change-Id: Ia26c783ebefd7b928d623a598792b7ba32d89a80
* | (DO NOT MERGE) Add SpecialkeyDetectorTadashi G. Takaoka2014-08-122-3/+44
| | | | | | | | | | | | Bug: 13988700 Change-Id: I215e879ad33b149370c1d0a5fdcf2203c0fc8b4a (cherry picked from commit 34541bfeb68e63bad71b83f1b7eba7922cca1723)
* | (DO NOT MERGE) Show InputView even when hardware keyboard is connectedTadashi G. Takaoka2014-08-122-1/+41
| | | | | | | | | | | | Bug: 13988700 Change-Id: I4aeb01bf3571afc97959c213474a6424d7896120 (cherry picked from commit 06514f00f43f15e702ad3d8287e0d90bff555b7f)
* | Auto scale-X text of key popup previewTadashi G. Takaoka2014-08-122-1/+54
| | | | | | | | | | Bug: 9978106 Change-Id: I335fa3117ac2af2cb8220c4827dd54c1a1da4c5c
* | Fix Tamil keyboardTadashi G. Takaoka2014-08-112-157/+213
|/ | | | | | | | | This CL adds Tamil (Sri Lanka) and Tamil (Singapore) subtypes. This CL also fixes Sinhala Keyboard's currency symbol. Bug: 9978106 Bug: 6911143 Change-Id: I2060978097882d0f4b1ec10f1103260ed8a447d0
* Help & feedback should be the very last item in the menuKen Wakasa2014-08-081-2/+2
| | | | | | bug: 16717930 Change-Id: I7ce73fe067bb7f9a639b414875780c39bb1de12d
* Merge "Rename distracter filter class." into lmp-devKeisuke Kuroyanagi2014-08-072-5/+7
|\
| * Rename distracter filter class.Keisuke Kuroyanagi2014-08-082-5/+7
| | | | | | | | | | | | Bug: 13142176 Bug: 15531638 Change-Id: I89cef5264073eed25ffb5be10fdff731df0a3138
* | Merge "Use suggestions in the distracter filter." into lmp-devKeisuke Kuroyanagi2014-08-071-6/+162
|\|
| * Use suggestions in the distracter filter.Keisuke Kuroyanagi2014-08-081-6/+162
| | | | | | | | | | | | | | Bug: 13142176 Bug: 15531638 Change-Id: I609fa61fccf2a0c738726985806b7d9248eadf49