Commit graph

11771 commits

Author SHA1 Message Date
Keisuke Kuroyanagi
4cc3a6bd8a am 9eec97d5: Merge "Use DictionaryFacilitatorLruCache for personalization."
* commit '9eec97d5b06ebd1325b5f59a0097c6ae7dcd77b5':
  Use DictionaryFacilitatorLruCache for personalization.
2014-08-29 10:17:06 +00:00
Keisuke Kuroyanagi
9eec97d5b0 Merge "Use DictionaryFacilitatorLruCache for personalization." 2014-08-29 10:10:40 +00:00
Jatin Matani
704dff928d am aabb3512: Refactor StatsUtils into two components:StatsUtils & StatsUtilsManager
* commit 'aabb3512791979a00c0ab50c0be808f46d18cbe6':
  Refactor StatsUtils into two components:StatsUtils & StatsUtilsManager
2014-08-29 05:40:11 +00:00
Keisuke Kuroyanagi
e59f3e4fbf Use DictionaryFacilitatorLruCache for personalization.
Bug: 16547557

Change-Id: I5faba5e26d072b49c0fffcaeaf5062f9e0c2dcc0
2014-08-29 12:57:50 +09:00
Jatin Matani
aabb351279 Refactor StatsUtils into two components:StatsUtils & StatsUtilsManager
Bug:16522256
Change-Id: I9cb8129c552159cf17ea5c2656e0988bf0f999f5
2014-08-28 17:28:23 -07:00
Jean Chalard
cbab9207d7 am 98e56c69: am 3ef26ac1: am 6bd267f4: Merge "Add new attributes to our notification" into lmp-dev
* commit '98e56c6905e82c2a5f01bc42f125b03e6fa1b331':
  Add new attributes to our notification
2014-08-28 09:58:33 +00:00
Jean Chalard
98e56c6905 am 3ef26ac1: am 6bd267f4: Merge "Add new attributes to our notification" into lmp-dev
* commit '3ef26ac13b677bc8d7adeed378ce6d6cbad171ee':
  Add new attributes to our notification
2014-08-28 09:52:03 +00:00
Jean Chalard
a2928484f6 Add new attributes to our notification
Bug: 17167221
Bug: 17128331
Change-Id: I6a045fd2398f40dbdc10c9d20993f7513e1f2cff
2014-08-28 07:47:07 +00:00
Jean Chalard
b73228c740 am f9577035: Straighten the dead char implementation, take 3.
* commit 'f95770354c1a0a662c4b00674f2b9029437be7ea':
  Straighten the dead char implementation, take 3.
2014-08-28 07:22:53 +00:00
Jean Chalard
f95770354c Straighten the dead char implementation, take 3.
Change-Id: I4f70f6eebe076c7d2b780d25e3a2c1d3faa2edfa
2014-08-28 16:03:45 +09:00
Keisuke Kuroyanagi
ea79333a0a am b85349e9: Merge "Create DictionaryFacilitatorLruCache."
* commit 'b85349e981e446610e8ece22d3b6a74a2f31be53':
  Create DictionaryFacilitatorLruCache.
2014-08-28 03:19:38 +00:00
Keisuke Kuroyanagi
b85349e981 Merge "Create DictionaryFacilitatorLruCache." 2014-08-28 03:09:28 +00:00
Yohei Yukawa
eacc930638 am af5c2b24: am 8d0d2363: am acce1aa5: Make sure to obtain the IC before requesting CursorAnchorInfo
* commit 'af5c2b24e7a5226f19aa94c67268061cbc6ab060':
  Make sure to obtain the IC before requesting CursorAnchorInfo
2014-08-27 23:53:46 +00:00
Yohei Yukawa
af5c2b24e7 am 8d0d2363: am acce1aa5: Make sure to obtain the IC before requesting CursorAnchorInfo
* commit '8d0d236394548be4e2302a03960ce4ee363a5483':
  Make sure to obtain the IC before requesting CursorAnchorInfo
2014-08-27 23:41:33 +00:00
Yohei Yukawa
acce1aa59e Make sure to obtain the IC before requesting CursorAnchorInfo
RichInputConnection#requestUpdateCursorAnchorInfo must make
sure to obtain the input connection before calling methods
of it.

BUG: 17299587
Change-Id: I8e0cd473a4cc32583cd47634c227d702f7c69c6c
2014-08-27 15:59:52 -07:00
Baligh Uddin
cb7d1a63f1 Merge "Import translations. DO NOT MERGE" 2014-08-27 18:33:41 +00:00
Baligh Uddin
723d24e5a8 Merge "Import translations. DO NOT MERGE" 2014-08-27 18:33:41 +00:00
Baligh Uddin
4b97e997f5 Merge "Import translations. DO NOT MERGE" 2014-08-27 18:33:38 +00:00
Baligh Uddin
1f6a5d2587 Merge "Import translations. DO NOT MERGE" into jb-ub-latinimegoogle 2014-08-27 18:33:35 +00:00
Baligh Uddin
6f67018d8d Merge "Import translations. DO NOT MERGE" 2014-08-27 18:33:34 +00:00
Ken Wakasa
09a6dd1f77 am 95c4d269: Merge "Revert "Straighten the dead char implementation.""
* commit '95c4d26994f944c8a3a4e0673a3156183ef0228b':
  Revert "Straighten the dead char implementation."
2014-08-27 15:16:19 +00:00
Ken Wakasa
95c4d26994 Merge "Revert "Straighten the dead char implementation."" 2014-08-27 15:07:52 +00:00
Ken Wakasa
0ba6bcb16d Revert "Straighten the dead char implementation."
This reverts commit 5ef447aeea.

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-27 15:07:28 +00:00
Jean Chalard
220ee286db am 4204d598: Merge "Straighten the dead char implementation."
* commit '4204d59864b8855dd7c926c309abc6afc8ae423f':
  Straighten the dead char implementation.
2014-08-27 13:02:18 +00:00
Keisuke Kuroyanagi
d267764d5a Create DictionaryFacilitatorLruCache.
This class is separated from AndroidSpellCheckerService

Bug: 16547557

Change-Id: I3e58521207395588cecb2977234b89067d6da8c3
2014-08-27 22:00:48 +09:00
Jean Chalard
4204d59864 Merge "Straighten the dead char implementation." 2014-08-27 12:54:49 +00:00
Tadashi G. Takaoka
e509cc6960 am 8b5788d7: am 68a2a69a: am 37beaf15: Simplify onComputeInsets of LatinIME
* commit '8b5788d72b9025203582546255288dfb8a02dcf5':
  Simplify onComputeInsets of LatinIME
2014-08-27 10:48:54 +00:00
Tadashi G. Takaoka
8b5788d72b am 68a2a69a: am 37beaf15: Simplify onComputeInsets of LatinIME
* commit '68a2a69ae35352650a4c6dfc0b0c69069c4a1e1d':
  Simplify onComputeInsets of LatinIME
2014-08-27 10:44:51 +00:00
Tadashi G. Takaoka
37beaf1529 Simplify onComputeInsets of LatinIME
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-27 19:20:38 +09:00
Yohei Yukawa
f33d28c9f7 am 00042cb4: am c925ca43: am 97681ebd: Set highlight color along with the commit indicator
* commit '00042cb453ae72d2f76661c6a712210e2ecd79b4':
  Set highlight color along with the commit indicator
2014-08-27 10:07:54 +00:00
Ken Wakasa
4db998d65a am d8380fdb: Merge "resolved conflicts for merge of 8159336b to master"
* commit 'd8380fdba04d82566c623f1efbcb86aa33d9e401':
  Set the text bgcolor only when CursorAnchorInfo is available
2014-08-27 10:07:53 +00:00
Yohei Yukawa
00042cb453 am c925ca43: am 97681ebd: Set highlight color along with the commit indicator
* commit 'c925ca43a6e0b3175feb002ce6b5577ef7d66507':
  Set highlight color along with the commit indicator
2014-08-27 10:01:24 +00:00
Ken Wakasa
6da1c674fd resolved conflicts for merge of 8159336b to master
Change-Id: I9dd726593c6768b1db35305935ee69b0937358ef
2014-08-27 18:55:39 +09:00
Yohei Yukawa
2b06811843 am 8a413a2a: am 00d140ca: am a475c854: Introduce a mechanism to hide the indicator speculatively
* commit '8a413a2a62788cef59e2cb0a4362392e036cd7be':
  Introduce a mechanism to hide the indicator speculatively
2014-08-27 09:53:00 +00:00
Ken Wakasa
1c356ebee6 am c1596086: resolved conflicts for merge of 0268f736 to master
* commit 'c1596086d3de32b66a382acf2c9b5fa00779008f':
  Introduce commit/add-to-dictionary indicators
2014-08-27 09:52:59 +00:00
Yohei Yukawa
8a413a2a62 am 00d140ca: am a475c854: Introduce a mechanism to hide the indicator speculatively
* commit '00d140caeb02e2e68f5b2cf7b71d349e1ad4cb5c':
  Introduce a mechanism to hide the indicator speculatively
2014-08-27 09:48:34 +00:00
Ken Wakasa
c1596086d3 resolved conflicts for merge of 0268f736 to master
Change-Id: Ib89ef55a8752f9b5e357eed3a05c79dd28d0ec0e
2014-08-27 18:41:31 +09:00
Baligh Uddin
511e6729db Import translations. DO NOT MERGE
Change-Id: I0e264ee268375e1de7cd887a15f5b5e58e088329
Auto-generated-cl: translation import
2014-08-27 02:18:44 -07:00
Baligh Uddin
b8cd576d2d Import translations. DO NOT MERGE
Change-Id: I6a2cd642c61009394a29147643b0f240479cba5c
Auto-generated-cl: translation import
2014-08-27 02:15:37 -07:00
Baligh Uddin
d002c54ec2 Import translations. DO NOT MERGE
Change-Id: I632754d86444b86051d9d27becef3994c82a9458
Auto-generated-cl: translation import
2014-08-27 02:13:38 -07:00
Baligh Uddin
d036341454 Import translations. DO NOT MERGE
Change-Id: Icd839563ab1ac8d8233a8c8ad49daee02a87bd2b
Auto-generated-cl: translation import
2014-08-27 02:12:14 -07:00
Baligh Uddin
bd187bd803 Import translations. DO NOT MERGE
Change-Id: I067525751c072822661b855072b25e574f719a23
Auto-generated-cl: translation import
2014-08-27 02:10:48 -07:00
Jean Chalard
5ef447aeea Straighten the dead char implementation.
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-27 17:59:39 +09:00
Yohei Yukawa
97681ebdf1 Set highlight color along with the commit indicator
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-27 01:41:16 -07:00
Yohei Yukawa
29200b0abe Set 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
2014-08-27 01:30:45 -07:00
Yohei Yukawa
a475c85480 Introduce 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
2014-08-26 23:42:53 -07:00
Yohei Yukawa
bea17c49ec Introduce 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
2014-08-26 21:20:27 -07:00
Ken Wakasa
090b72a11a am 4660ecaa: Merge "Fix a bug where mic/emoji key wouldn\'t work."
* commit '4660ecaa44d4ca141ba53552d9533ea60d3e8323':
  Fix a bug where mic/emoji key wouldn't work.
2014-08-26 13:35:45 +00:00
Ken Wakasa
4660ecaa44 Merge "Fix a bug where mic/emoji key wouldn't work." 2014-08-26 13:30:15 +00:00
Jean Chalard
e38043849e Fix a bug where mic/emoji key wouldn't work.
Bug: 17272902
Bug: 17269948
Change-Id: I561609fa84a6265f8148db7d2411bc1fd38dd163
2014-08-26 22:06:21 +09:00