aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/accessibility/KeyCodeDescriptionMapper.java (unfollow)
Commit message (Expand)AuthorFilesLines
2014-08-27Set the text bgcolor only when CursorAnchorInfo is available•••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 Yohei Yukawa3-14/+53
2014-08-26Introduce a mechanism to hide the indicator speculatively•••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 Yohei Yukawa2-16/+52
2014-08-27Add TimeKeeperTest.•••Change-Id: Id35823414f8552fd6820a5a559d6c9d54c7d6cb6 Keisuke Kuroyanagi2-1/+40
2014-08-26Introduce commit/add-to-dictionary indicators•••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 Yohei Yukawa7-15/+1066
2014-08-26Fix a bug where mic/emoji key wouldn't work.•••Bug: 17272902 Bug: 17269948 Change-Id: I561609fa84a6265f8148db7d2411bc1fd38dd163 Jean Chalard5-17/+23
2014-08-26Fix a bug where the top prediction would disappear.•••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 Jean Chalard8-45/+41
2014-08-26Adds documentation for a few methods.•••Change-Id: I6bdae25a8b81cdac931f2591f33570b01e34fb2c David Faden2-4/+26
2014-08-26Add a method to iterate entries in LanguageModelDictContent.•••Bug: 14425059 Change-Id: I4e9c3a97891c020f762fa709f806d333c067f496 Keisuke Kuroyanagi4-1/+98
2014-08-25Add SparseTableTest.•••Change-Id: I5684a24f9584cd326e014274c2298773aa3a91ca Keisuke Kuroyanagi3-1/+48
2014-08-25Use more descriptive names for some internal fields•••This CL clarifies that delay parameters are specified with milliseconds. Change-Id: I401a60b8c09c2a04201af5b74babcdb091c07f4a Yohei Yukawa3-18/+20
2014-08-25Fix unit tests•••Change-Id: I48bfa4e4dd80f36d2fe0a1e9d2a2706533cc722e Jean Chalard4-10/+17
2014-08-25Add ByteArrayUtilsTest.•••Change-Id: I4695a2573b4d2d8331fc9ce1e9ff83397791a586 Keisuke Kuroyanagi4-2/+95
2014-08-25Introduce onEvent() to improve testability•••...and prepare for the future Change-Id: Ieed96ab552993fd148e80b9c3355f1b569bd716f Jean Chalard2-21/+34
2014-08-25Show view even when IME is explicitly shown with physical keyboard•••Bug: 17242477 Bug: 13988700 Change-Id: I519c0481760a9aa93a5d9bee68e0f6a3a8fc4d9d Tadashi G. Takaoka1-0/+12
2014-08-25Get dynamic dict stats via DictionaryFacilitator•••Bug: 16553957 Change-Id: Ida08ceaf34708daed52d61b3d5adfbdb48e42c71 Keisuke Kuroyanagi1-0/+12
2014-08-25Fix NPE when pressing ALT key•••Bug: 17203708 Change-Id: I4f203603496e9401dacba4db21372e3353916418 Tadashi G. Takaoka1-0/+3
2014-08-25Revert "Revert "[ML1] Introduce RichInputMethodSubtype""•••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 Jean Chalard18-284/+354
2014-08-24Fix build due to an illegal character•••Change-Id: I597ab26db70387b80ddcd7d51de6ae751380030d Yohei Yukawa1-1/+1
2014-08-24Introduce #shouldShowAddToDictionaryHint•••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 Yohei Yukawa1-8/+15
2014-08-25Fix the bottom row of tablet keyboard layout•••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 Tadashi G. Takaoka39-292/+592
2014-08-24Dismiss "Add to dictionary" hint with non-special char event•••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 Yohei Yukawa1-2/+7
2014-08-24Allow to add/remove background color to/from the committed text•••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 Yohei Yukawa2-4/+97
2014-08-24Indroduce SuggestedWords#getTypedWordInfoOrNull•••This is a groundwork for subsequent CLs whith need to do certain things for and only for the typed word. Change-Id: I374b79cbc79470f57f523c996010301ea5701a61 Yohei Yukawa2-21/+82
2014-08-22Support Accept typed word UI•••Change-Id: I58e95b2791a45afdc7dae8e26dcfc200b3b4b854 Tadashi G. Takaoka6-72/+378
2014-08-22Get bigram probability using language model dict content.•••Bug: 14425059 Change-Id: Ia0493ed94e9bd47e9396d8cda94511b47820db0d Keisuke Kuroyanagi1-10/+17
2014-08-22Truncate entries in language model dict content.•••Bug: 14425059 Change-Id: I023c1d5109a2c43fcea3bb11a0fd7198c82891ba Keisuke Kuroyanagi3-0/+152
2014-08-22Update probabilities in language model dict content for GC.•••Bug: 14425059 Change-Id: I354408afd8e5c1955ff0acea3d0243d628fe3843 Keisuke Kuroyanagi5-21/+72
2014-08-22Revert "[ML1] Introduce RichInputMethodSubtype"•••This reverts commit 8ffe4bc9321e582a4d882f21e465d5886616f489. Change-Id: I9d4c98b0adfdb78b0f4d376f7691e50d1bd2228f Jean Chalard18-354/+284
2014-08-22Revert "[HW17] Straighten the dead char implementation."•••This reverts commit c6612ff05185503bedc56dc610aa300d01be2e82. Change-Id: I750d9bff9cb89a6ab13af7a33567c3a0fe2af381 Jean Chalard4-463/+24
2014-08-22[ML1] Introduce RichInputMethodSubtype•••Bug: 11230254 Change-Id: Ic7a1bf938a5a186dcff527b556295aba2406e8b9 Jean Chalard18-284/+354
2014-08-22Pass a new argument to StatsUtils.•••Change-Id: I61e32c7a455a273e8daf9a5487d7969923802488 Bug: 17013677 Mohammadinamul Sheik3-3/+7
2014-08-22[HW17] Straighten the dead char implementation.•••This now supports all cases, including cases not supported by the framework. Change-Id: I9dfbe2829c28c5bcb64b0b5a2551e7806990c00f Jean Chalard4-24/+463
2014-08-21follow-up to API change in I4a577bfd02b37b•••BUG: 17182367 BUG: 17185263 Change-Id: Id54ca29c191b9752fa82ffe5a960113b2e97e5c1 Yohei Yukawa3-113/+24
2014-08-22Add ExpandableBinaryDictionary#getDictionaryStats().•••Bug: 16553957 Change-Id: I05866624d0ba9f32ea7a71cb231ba501dde4376c Keisuke Kuroyanagi2-0/+46
2014-08-21Add Hinglish (hi_ZZ) subtype•••Bug: 17169632 Change-Id: Ibee088d76c2b19f1d62a3c9c119452726e856ec8 Tadashi G. Takaoka11-5/+159
2014-08-21Update FormatSpec.java•••Change-Id: I27d14697f931c9511420a459c49312ea6e10c366 Keisuke Kuroyanagi1-83/+10
2014-08-21Remove unused dictionary writing methods.•••Change-Id: Ica6ac057c0d0f037b7dd5539ab5b591c83bfa4d7 Keisuke Kuroyanagi4-37/+0
2014-08-21Use #onStartInputInternal to initialize cursor rect retrieval•••This CL simply moves the method calls of #requestCursorAnchorInfo into #onStartInputInternal just to consolidate the logic. Change-Id: Ia205738b9614e9ae375c1dab767a91d2e1f6d0d3 Yohei Yukawa1-12/+12
2014-08-20Support more methods in the wrapper of CursorAnchorInfo•••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 Yohei Yukawa2-43/+156
2014-08-18Import translations. DO NOT MERGE•••Change-Id: I3cae3b62faf27fea8cc7c24051ac18f415934399 Auto-generated-cl: translation import Baligh Uddin1-1/+1
2014-08-18Import translations. DO NOT MERGE•••Change-Id: I9d51675746cc1b3987f2c7a2469a3deced820e69 Auto-generated-cl: translation import Baligh Uddin58-133/+76
2014-08-18Import translations. DO NOT MERGE•••Change-Id: Iacc87d9f13f21de7584cd5028527ec59c7c12802 Auto-generated-cl: translation import Baligh Uddin1-1/+1
2014-08-18Import translations. DO NOT MERGE•••Change-Id: Ieef69130fa6f1f9c9f95a8f308175fbec470af86 Auto-generated-cl: translation import Baligh Uddin2-38/+38
2014-08-18Import translations. DO NOT MERGE•••Change-Id: I0b7fb1fc18139ff80343703ab7a6caa2166fa519 Auto-generated-cl: translation import Baligh Uddin2-32/+32
2014-08-19Use FrameLayout for the backing view•••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 Yohei Yukawa1-1/+1
2014-08-18Have the "add to dictionary" hint display the right word•••Before this, we display the word we have committed instead of the word we will actually insert into the personal dictionary. There is a difference when the word was typed with auto-caps. Bug: 17071785 Change-Id: I2bfec0402b1307934590a78ab5c25104d92b75ca Jean Chalard1-8/+8