aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-08-29Add TerminalPositionLookupTableTest.Keisuke Kuroyanagi3-1/+78
Change-Id: I4a3ab4c94a7759d7f24c7edc9c167fe6bbdd3eb7
2014-08-29Add DicNodePoolTest.Keisuke Kuroyanagi2-1/+71
Change-Id: I9bec708def3af6bea1c82b9576b80ce1b7901ddc
2014-08-29Use DictionaryFacilitatorLruCache for personalization.Keisuke Kuroyanagi4-39/+57
Bug: 16547557 Change-Id: I5faba5e26d072b49c0fffcaeaf5062f9e0c2dcc0
2014-08-28Refactor StatsUtils into two components:StatsUtils & StatsUtilsManagerJatin Matani3-15/+49
Bug:16522256 Change-Id: I9cb8129c552159cf17ea5c2656e0988bf0f999f5
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-28Straighten the dead char implementation, take 3.Jean Chalard5-24/+465
Change-Id: I4f70f6eebe076c7d2b780d25e3a2c1d3faa2edfa
2014-08-28Implement IntArrayView::skip().Keisuke Kuroyanagi2-0/+24
Change-Id: Ib7f13963ac1d9c64eff2c08391154c6a25024126
2014-08-28Fix Hinglish subtype locale testTadashi G. Takaoka1-1/+1
Change-Id: I6fc2fd4f04069485acc432ff957421b85083a344
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-27Revert "Straighten the dead char implementation."Ken Wakasa4-463/+24
This reverts commit 5ef447aeea97c755008785b36468715922b7ccc1. Reverting because this broke a bunch of unit tests -- https://sponge.corp.google.com/target?id=b6439742-099e-46cb-8f00-d0c602a4d9bb&target=com.google.android.inputmethod.latin.tests&searchFor=&show=FAILED&sortBy=STATUS Change-Id: Ibbd9e11372993f62e630fd9da37158ffcf47c17a
2014-08-27Create DictionaryFacilitatorLruCache.Keisuke Kuroyanagi3-114/+245
This class is separated from AndroidSpellCheckerService Bug: 16547557 Change-Id: I3e58521207395588cecb2977234b89067d6da8c3
2014-08-27Remove redundant code.Keisuke Kuroyanagi1-2/+0
Change-Id: I173eac15dc128e84893881ec4ee0ad1ad2fce44b
2014-08-27Use IntArrayView for dictionary structure policy.Keisuke Kuroyanagi11-113/+117
Change-Id: I0dc94908259d70d5085ff22abf422d90affb1452
2014-08-27Remove bigram dict content.Keisuke Kuroyanagi15-1044/+15
Bug: 14425059 Change-Id: I75918c6761a50832da511088eb83becd56b23662
2014-08-27Get entry count after truncation using LanguageModelDictContent.Keisuke Kuroyanagi3-9/+26
Bug: 14425059 Change-Id: I41b237c1c22c21740946d52e3be9d6f963c9cd54
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-27Import translations. DO NOT MERGEBaligh Uddin73-15/+234
Change-Id: I0e264ee268375e1de7cd887a15f5b5e58e088329 Auto-generated-cl: translation import
2014-08-27Import translations. DO NOT MERGEBaligh Uddin1-1/+1
Change-Id: I632754d86444b86051d9d27becef3994c82a9458 Auto-generated-cl: translation import
2014-08-27Import translations. DO NOT MERGEBaligh Uddin2-38/+38
Change-Id: Icd839563ab1ac8d8233a8c8ad49daee02a87bd2b Auto-generated-cl: translation import
2014-08-27Import translations. DO NOT MERGEBaligh Uddin2-32/+32
Change-Id: I067525751c072822661b855072b25e574f719a23 Auto-generated-cl: translation import
2014-08-27Straighten the dead char implementation.Jean Chalard4-24/+463
This now supports all cases, including cases not supported by the framework. Now rebased on top of the right change, and renamed Change-Id: I7886f0dcbb86cdb4dccec09aa7c52ad339680e04
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-27Add TimeKeeperTest.Keisuke Kuroyanagi2-1/+40
Change-Id: Id35823414f8552fd6820a5a559d6c9d54c7d6cb6
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 mic/emoji key wouldn't work.Jean Chalard5-17/+23
Bug: 17272902 Bug: 17269948 Change-Id: I561609fa84a6265f8148db7d2411bc1fd38dd163
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-26Adds documentation for a few methods.David Faden2-4/+26
Change-Id: I6bdae25a8b81cdac931f2591f33570b01e34fb2c
2014-08-26Use word id to construct DicNode instead of isTerminal flag.Keisuke Kuroyanagi11-16/+23
Bug: 14425059 Change-Id: I8484d34756bd76668ece34211e7366a4758d7bf5
2014-08-26Use LanguageModelDictContent in getWordProperty().Keisuke Kuroyanagi2-48/+25
Bug: 14425059 Change-Id: Ic230f764ff5570f24ce6ce930023798718f326df
2014-08-26Use LanguageModelDictContent in iterateNgramEntries().Keisuke Kuroyanagi1-5/+15
Bug: 14425059 Change-Id: I8a5028657ea5a4eeee8ef40db52a80f09b878972
2014-08-26Add a method to iterate entries in LanguageModelDictContent.Keisuke Kuroyanagi4-1/+98
Bug: 14425059 Change-Id: I4e9c3a97891c020f762fa709f806d333c067f496
2014-08-25Add SparseTableTest.Keisuke Kuroyanagi3-1/+48
Change-Id: I5684a24f9584cd326e014274c2298773aa3a91ca
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-25Fix unit testsJean Chalard4-10/+17
Change-Id: I48bfa4e4dd80f36d2fe0a1e9d2a2706533cc722e
2014-08-25Add ByteArrayUtilsTest.Keisuke Kuroyanagi4-2/+95
Change-Id: I4695a2573b4d2d8331fc9ce1e9ff83397791a586
2014-08-25Introduce onEvent() to improve testabilityJean Chalard2-21/+34
...and prepare for the future Change-Id: Ieed96ab552993fd148e80b9c3355f1b569bd716f
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-25Get dynamic dict stats via DictionaryFacilitatorKeisuke Kuroyanagi1-0/+12
Bug: 16553957 Change-Id: Ida08ceaf34708daed52d61b3d5adfbdb48e42c71
2014-08-25Fix NPE when pressing ALT keyTadashi G. Takaoka1-0/+3
Bug: 17203708 Change-Id: I4f203603496e9401dacba4db21372e3353916418
2014-08-25Revert "Revert "[ML1] Introduce RichInputMethodSubtype""Jean Chalard18-284/+354
This reverts commit a63d0a8ee6cb05bcddb69bf9a6018853d89d886a. This patch seems to be fine after all, but was submitted without its companion [ML1.1] patch causing a build breakage. Reverting the revert and submitting both at the same time seems like the right thing to do. Change-Id: Ib8fefa40b74dcee0edb025a52dac9b35c82d49df
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