aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-08-06[HS3] Fix a bug on ICSJean Chalard2-0/+23
There is a bug in ICS where the input connection won't take any writing commands after rotation until the cursor moves. This fixes it by wiggling the cursor position once before trying to do anything. Bug: 16810766 Change-Id: Ib14c70bd0550420cecfa86dea501d13a1a91e296
2014-08-06[HS2] Move more stuff to onStartInputJean Chalard2-51/+62
Bug: 8152758 Change-Id: Ida05df7d151ceb582886e2ad06c5bdf0b59978ee
2014-08-06Clean up IntArrayViewTestKeisuke Kuroyanagi1-9/+9
Change-Id: I30138f0722571100fe13efc96f8332efde846c2e
2014-08-05Add ViewCompatUtils.setElevationTadashi G. Takaoka1-0/+10
Bug: 16210054 Change-Id: I632158951a60ab527246410caefd9fbe471dd859
2014-08-05Remove unnecessarily overridden defaultEnterKeyStyleTadashi G. Takaoka2-8/+1
The overriding defaultEnterKeyStyle was needed because there were two Key's attributes to control key's visual, keyLabel and keyIcon. Because these were merged into one keySpec attribute, there is no need to override defaultEnterKeyStyle. Bug: 16787857 Change-Id: I78ca2c7c9349e4532c67e8d6468a5b98309adc05
2014-08-05[HW16] Implement processing event chains.Jean Chalard1-7/+11
Change-Id: I4e1e4f101050ebda77c629a61c548d3c8efb330f
2014-08-05[HW15] Pass events instead of reading them from the transactionJean Chalard2-43/+52
It's probably cleaner to just pass the events rather than read them from a transaction, especially when a transaction may be associated with several events in a chain. Change-Id: I27830f0f3f3f32fe77ea8b9cad505b7ebee648af
2014-08-05Remove ProbabilityDictContent and use LanguageModelDictContentKeisuke Kuroyanagi16-282/+43
Bug: 14425059 Change-Id: I1bb9e78ecb24139b87c99be6722e37eec0a2285d
2014-08-05Add methods for unigrams to LanguageModelDictContent.Keisuke Kuroyanagi8-2/+277
Bug: 14425059 Change-Id: I0a6b480a3d4735787ffac68c47b4ffefc3f1b8a5
2014-08-06Add/Get n-gram probability entry in languageModelDictContentKeisuke Kuroyanagi5-10/+44
Bug: 14425059 Change-Id: I7926c3812f89b9a71fe1873a5bc32f793f91b640
2014-08-05Make popup hint letter theme-awareTadashi G. Takaoka6-5/+18
Bug: 16351091 Change-Id: I6af18ea210c00916157138b9cfbeb073aee6ca1b
2014-08-05[HW14] CleanupJean Chalard3-38/+31
Do away with the didAutoCorrect local variables which are unnatural to return out of all these functions. Change-Id: I22024004d2c489de018beff812c2c589bfd8ca32
2014-08-05[HW13] Split up onCodeInputJean Chalard1-110/+164
Change-Id: I503c5403dcaea5db632eba85ae3fae9ba9a1f946
2014-08-04[HS1] Save some data in startInputViewJean Chalard1-7/+25
Bug: 8152758 Change-Id: Ic57d3918b08e775769d4ba5d73ba5c31231e0d6a
2014-08-04[HW12] Use the consumed status of the Event.Jean Chalard5-7/+46
Change-Id: I1619f6132f8f71bc1291fd6a5604a5e1e3431ae2
2014-08-04Clean up compatible utility classesTadashi G. Takaoka8-30/+41
Change-Id: I95a682052037d292801477db0f05e04926b61412
2014-08-01Save language model in the body buffer.Keisuke Kuroyanagi6-3/+56
Bug: 14425059 Change-Id: Iaec277f7bed03d6c6780c6ce90fbe5fe799e175e
2014-08-01Make MmappedBuffer use byte array view.Keisuke Kuroyanagi13-53/+76
Bug: 16691311 Change-Id: I2122c01ee27c33e11dec52643925c069927bea2b
2014-08-01Use ReadWriteByteArrayView in BufferWithExtendableBuffer.Keisuke Kuroyanagi2-21/+22
Bug: 16691311 Change-Id: Ibd68354a53cebf284a886d76bd8ce9848a51346f
2014-08-01Add LanguageModelDictContent.Keisuke Kuroyanagi3-0/+36
This class will replace BigramDictContent and ProbabilityDictContent. Bug: 14425059 Change-Id: I3d15c833957e27b2f5999386db042188272bbb4b
2014-08-01Remove DictContent.Keisuke Kuroyanagi3-39/+2
Bug: 14425059 Change-Id: I74fa4b6ba4605447c1c87427371e4be5eb8e7ae6
2014-08-01Remove getBigramsIteratorOfPtNode from structure policy.Keisuke Kuroyanagi8-38/+12
Bug: 14425059 Change-Id: I427fbfd026c1e33b5e9cf78949fe862d8748b7ec
2014-08-01Use NgramListener in MultiBigramMap.Keisuke Kuroyanagi4-56/+55
Bug: 14425059 Change-Id: I425536290111f2a8172f31370706f858a1e07f6e
2014-07-31[HW11] CleanupJean Chalard1-39/+33
Change-Id: Ia866d3f9a5981c687766f8c39979fb6091018e44
2014-07-31[HW10] Pull the processed event in its eventual placeJean Chalard1-6/+9
Change-Id: I5f7932097627766e907764a99a5e9c170f725bc0
2014-07-31[HW9] Pull the processed event further.Jean Chalard1-8/+12
The 'processedEvent' variables will ultimately disappear entirely. Change-Id: I612c5ce7dedc341b64921a86ac028fe91b75359b
2014-07-31Construct TrieMap from existing buffer.Keisuke Kuroyanagi2-0/+6
Bug: 14425059 Change-Id: Ia1c58d88540f55fb38fe0bdfcd7c0a34ebc7415e
2014-07-31Add TrieMap.save().Keisuke Kuroyanagi2-0/+10
Bug: 14425059 Change-Id: Ie0b4fe8b9a157da0401bb277c703ab084d5bf9cc
2014-07-30Add entry iteration method to TrieMap.Keisuke Kuroyanagi3-2/+215
Bug: 14425059 Change-Id: I79420b755f29f651d8eed61e7e48b6eb001d8dd2
2014-07-31Remove doesAutoCorrectValidWord().Keisuke Kuroyanagi3-13/+2
Possibly offensive words are wrongly demoted when input by gesture. Change-Id: Ibb2eb73d4191dea6cb767643341fe96465c1f70c
2014-07-31Fix native debug build.Keisuke Kuroyanagi1-6/+6
Change-Id: I95ff6b14d7f444911ec76698381b8d2d8da94776
2014-07-30[HW8] Pull up the processed event.Jean Chalard1-5/+5
Change-Id: I18021b7ec1588fc52533c48b7d8774bec7764822
2014-07-31Fix some unit tests.Jean Chalard1-1/+1
The default value for the script needs to be Latin, as we don't specify it in the files. Change-Id: I1275f13f1cd92f00dc5708748fefb4982f0a60b3
2014-08-01Add memory view class for int and uint8_t.Keisuke Kuroyanagi4-1/+202
Bug: 16691311 Change-Id: I32eb692cdb758861e24b772fdcda57642b95ae1b
2014-07-30Revert "[HW6] Split processing and applying the event."Ken Wakasa3-29/+9
This reverts commit 1db3d860ca0d7380c5a6a3a0f95751565f23043b. Reverting due to a few critical bugs and unit test failures. Change-Id: I5e2d02300320438ef9c29577ec5b0860ea91d822
2014-07-29[HW6] Split processing and applying the event.Jean Chalard3-9/+29
If anyone has better names for those... Change-Id: Ia2dfc75381816bd688948647e2c50c10657b9e89
2014-07-29Change getUnigramProbabilityOfPtNode to getProbabilityOfPtNode()Keisuke Kuroyanagi8-10/+23
Bug: 14425059 Change-Id: I92403d750d2979408b41554dcd79b0ed31b41161
2014-07-27Make "Show correction suggestions" as a binary optionTadashi G. Takaoka9-95/+53
Formerly "Show correction suggestions" had three options, "always show", "show in portrait mode", and "always hide". The reason behind "show in portrait mode" was that there may not be enough screen estate in landscape mode to show suggestions. Because recent phone devices have relatively large screen, we decide to remove "show in portrait mode" option. Bug: 15780939 Change-Id: I896d737452c3893d43ce20bd88127f10c1eb3d83
2014-07-29Improve the russian dictionary.Jean Chalard2-0/+0
Deleted: 38 words Probability adjusted: 11 words Added: 1299 words [Category diff] +1 15 -1 0 +2 0 -2 0 +3 0 -3 0 +4 0 -4 0 +5 0 -5 3 +6 1 -6 0 +7 0 -7 13 [Weighted category diff] +1 15 -1 0 +2 0 -2 0 +3 0 -3 0 +4 0 -4 0 +5 0 -5 3 +6 1 -6 0 +7 0 -7 13 Change-Id: I1a6513954d60b30738cb849578ce535c5e05eb1a
2014-07-29Show "navigate up" icon on settings activityTadashi G. Takaoka2-11/+34
Bug: 15813742 Change-Id: I8b1feb5c35377e62199e5a909640d9c50f970654
2014-07-28Wait for an event before actually realizing itJean Chalard1-1/+1
This would wrongly emit a 'timeout' log entry when switching between two instances of the same language. Change-Id: I56e5de121b87f3e762b58f0b2a77e9abc784036e
2014-07-30Add a method to iterate ngram entries.Keisuke Kuroyanagi10-22/+132
Bug: 14425059 Change-Id: I9962c546504288f6c22b1a7368f775decd229c62
2014-07-30Remove PrevWordsInfo.getBigramsIteratorForPrediction().Keisuke Kuroyanagi9-76/+46
This changes the behavior of predictions for some rare cases. For example, let's consider the case of the prev word is "ABC", "ABC" and "abc" is in the dict, "ABC" doesn't have any bigrams, and "abc" has bigrams. Without this change, "abc"'s bigrams are used for prediction. But, with this change, "abc"'s bigrams are not used for prediction. This strategy is the same as the the current way of bigram probability computation during traversal (for suggestion). Bug: 14425059 Change-Id: I857ff39aa70aea265efa651451a63b759bb47d48
2014-07-30Revert "[HW7] Introduce consumed events"Ken Wakasa5-31/+15
This reverts commit 99aff0af98e66b1d8515225a103f5beb84d098b9. Reverting due to a few critical bugs and unit test failures. Change-Id: Id41d802981d079f17134a03cc30ab36a3cdd4ac1
2014-07-29[HW7] Introduce consumed eventsJean Chalard5-15/+31
Change-Id: Ic2d95d19b1ac66e3e97e4a16187ce5aecb4ac678
2014-07-29Update Material icons and backgroundsTadashi G. Takaoka78-12/+7
Bug: 16143083 Change-Id: I6396f725b30e9ef6fa7964a0c9d7eb6d1d97e376
2014-07-28Allow adding DICTIONARY_MAX_WORD_LENGTH-length words.Keisuke Kuroyanagi4-7/+6
Bug: 12725817 Change-Id: Ib9b30473ba94242a7b97ccd3b850068f596a5d17
2014-07-28Add boundary check for ver2 bigram reading.Keisuke Kuroyanagi8-20/+52
Bug: 16330528 Change-Id: I6aca6c7a735e2a652eb325572d44dff660789cff
2014-07-28Use fragment for advanced preference screenTadashi G. Takaoka5-234/+304
Bug: 16522808 Change-Id: If4a2ad7a7dfecc7019bf78ad37d93fa8f37cf21e
2014-07-30[SD13] Reorder an enum alphabeticallyJean Chalard2-79/+79
Change-Id: I907041b09e5bfce537ed4f592947b2cec8cef4ac