Commit graph

31893 commits

Author SHA1 Message Date
Yohei Yukawa
d4dbbd5008 Use C++11 random library
srand() and its friends are supposed to be discouraged since C++14.
This CL replaces srand() with new C++11 random libraries.

Change-Id: If2c25158c88c674cd3fd6d891559a9e32283e19e
2014-04-09 17:59:31 +09:00
Keisuke Kuroyanagi
9d6a3e3892 am 111c05ff: Add BloomFilterTest.
* commit '111c05ff35763d6fe08a05ff341086de61498dc2':
  Add BloomFilterTest.
2014-04-09 08:42:45 +00:00
Keisuke Kuroyanagi
111c05ff35 Add BloomFilterTest.
Change-Id: If97b9e9cc3bbaa4c7877991c11d7935626268ca3
2014-04-09 17:15:55 +09:00
Keisuke Kuroyanagi
f24d72017a am 26c80662: Use 2D normal distribution for gesture.
* commit '26c806620c26e048918624367ee624526613b0d2':
  Use 2D normal distribution for gesture.
2014-04-09 07:56:47 +00:00
Keisuke Kuroyanagi
63d33f42c8 Increase terminal cache size for gesture.
Before:
(0)  670.00 (10.52%)
(1)  5530.00 (86.81%)
(2)  120.00 (1.88%)
Total 6370.00 (sum of others 6320.00)

After:
(0)  730.00 (11.06%)
(1)  5750.00 (87.12%)
(2)  100.00 (1.52%)
Total 6600.00 (sum of others 6580.00)

Bug: 13773693
Bug: 10701902
Bug: 9505397
Change-Id: Ie53640994180a7acabe05da544ab2166403e2394
2014-04-09 16:50:31 +09:00
Keisuke Kuroyanagi
bc9500fb14 Quit limiting gesture search space by distance.
Before:
(0)  470.00 (8.25%)
(1)  5160.00 (90.53%)
(2)  50.00 (0.88%)
(66)  10.00 (0.18%)
Total 5700.00 (sum of others 5690.00)

After:
(0)  670.00 (10.52%)
(1)  5530.00 (86.81%)
(2)  120.00 (1.88%)
Total 6370.00 (sum of others 6320.00)

Bug: 13773693
Bug: 10701902
Bug: 9505397

Change-Id: Ie168ac4ae0ca0e954512b08e3cc0f6399a3c163d
2014-04-09 16:50:31 +09:00
Keisuke Kuroyanagi
26c806620c Use 2D normal distribution for gesture.
Bug: 13799846
Bug: 10701902
Bug: 9505397

Change-Id: I6c3f84f035f2310f2f7dfec4432ebdb6e50d5df0
2014-04-09 16:50:31 +09:00
Keisuke Kuroyanagi
7386ddb8c9 am e3d57ae7: Merge "Use bitset for BloomFilter."
* commit 'e3d57ae792779a6e5588cb97885970cb1adef312':
  Use bitset for BloomFilter.
2014-04-09 07:42:31 +00:00
Keisuke Kuroyanagi
e3d57ae792 Merge "Use bitset for BloomFilter." 2014-04-09 07:39:49 +00:00
Keisuke Kuroyanagi
2fd0bf9a37 Use bitset for BloomFilter.
Before:
(0)  660.00 (1.43%)
(1)  45320.00 (98.18%)
(2)  80.00 (0.17%)
Total 46160.00 (sum of others 46060.00)

After:
(0)  620.00 (1.34%)
(1)  45310.00 (98.05%)
(2)  130.00 (0.28%)
Total 46210.00 (sum of others 46060.00)

Change-Id: I936b639c50e15208aee999a929b33983c6caa59d
2014-04-09 16:18:23 +09:00
Yohei Yukawa
e6a69f53b0 am bbefa8c8: Merge "Make NELEMS type-safe"
* commit 'bbefa8c8265820f5f9aeb0e2a49a4526d7cdd682':
  Make NELEMS type-safe
2014-04-09 06:59:00 +00:00
Yohei Yukawa
bbefa8c826 Merge "Make NELEMS type-safe" 2014-04-09 06:56:31 +00:00
Yohei Yukawa
b417d7d69f Make NELEMS type-safe
Change-Id: I867271665b3c595dc40ac63e93e68c87dc213d08
2014-04-09 15:51:39 +09:00
Tadashi G. Takaoka
8d49064832 am daf75d27: Add en_IN subtype
* commit 'daf75d275e7041bd9669315eb162489ddbf558a8':
  Add en_IN subtype
2014-04-09 06:19:14 +00:00
Tadashi G. Takaoka
daf75d275e Add en_IN subtype
Bug: 13914988
Change-Id: Ifd497a6a1d2686490e388e10e391475e97e9c166
2014-04-09 12:48:43 +09:00
Jean Chalard
49c95cc153 am 27a4f2e5: Merge "Add shift mode tests"
* commit '27a4f2e5e17ef684a94fbd66b5d74ad0fc1fa4f6':
  Add shift mode tests
2014-04-08 13:35:53 +00:00
Jean Chalard
27a4f2e5e1 Merge "Add shift mode tests" 2014-04-08 13:33:11 +00:00
Jean Chalard
90608190ec Add shift mode tests
Change-Id: I067e91a1f899c1f83fd60adeae66495606812a95
2014-04-08 22:24:25 +09:00
Jean Chalard
74058b0ee1 am 45e34b43: [CB24] Remove a useless test
* commit '45e34b43744b75a76cfe09d5026026af83f24de0':
  [CB24] Remove a useless test
2014-04-08 13:09:22 +00:00
Jean Chalard
45e34b4374 [CB24] Remove a useless test
If 1 character, then for sure !isGesture

Bug: 13406701
Change-Id: If8e9b080372eb8ddb15b8f97cce1399dc0c7f099
2014-04-08 21:36:52 +09:00
Yohei Yukawa
70f290475b am 36dfb6d1: Fix build breakage caused by I0218dd07
* commit '36dfb6d1a4188be8ad4458808f7b5dc8fe88306c':
  Fix build breakage caused by I0218dd07
2014-04-08 11:07:02 +00:00
Yohei Yukawa
36dfb6d1a4 Fix build breakage caused by I0218dd07
BUG: 11746191
Change-Id: I0b693c4b22793f6e8fd77a9f045f205aa8fe4050
2014-04-08 20:00:16 +09:00
Yohei Yukawa
df34e53a69 am c9539f42: Merge "Add StatsUtils for checking state"
* commit 'c9539f42f6a0c2f591fb2ed688a9303d097a463b':
  Add StatsUtils for checking state
2014-04-08 10:27:40 +00:00
Yohei Yukawa
c9539f42f6 Merge "Add StatsUtils for checking state" 2014-04-08 10:23:41 +00:00
Tadashi G. Takaoka
dbdc492235 am 8afe2189: Merge "Use locale to look up KeyboardTextsTable"
* commit '8afe218954d5ac73acf4bda1636a722f9347abaf':
  Use locale to look up KeyboardTextsTable
2014-04-08 10:20:48 +00:00
Tadashi G. Takaoka
8afe218954 Merge "Use locale to look up KeyboardTextsTable" 2014-04-08 10:18:17 +00:00
Tadashi G. Takaoka
6bb3556ff7 Use locale to look up KeyboardTextsTable
Change-Id: I1e05c7fdbb757efef0e9407dc25482ef1115e49a
2014-04-08 19:12:31 +09:00
Yohei Yukawa
dc0f7ca167 Add StatsUtils for checking state
BUG: 11746191
Change-Id: I0218dd07dde1d09321009ea1497258fc4235a1e8
2014-04-08 19:09:49 +09:00
Keisuke Kuroyanagi
b06548851a am ee6392f5: Merge "Separate unigram/bigram property from WordProperty."
* commit 'ee6392f5a6d7c41b562e5e3946ce74cf0b3c88a1':
  Separate unigram/bigram property from WordProperty.
2014-04-08 09:45:20 +00:00
Keisuke Kuroyanagi
ee6392f5a6 Merge "Separate unigram/bigram property from WordProperty." 2014-04-08 09:42:24 +00:00
Tadashi G. Takaoka
daf200be27 am 465a2ac5: Refactor make-keyboard-text
* commit '465a2ac534bf5c0dea38608dbe713ed3a9dc84eb':
  Refactor make-keyboard-text
2014-04-08 09:42:05 +00:00
Keisuke Kuroyanagi
e41b2ed8d3 Separate unigram/bigram property from WordProperty.
Bug: 13406708

Change-Id: I48e9fccedd9dcdc1a35ffe027745b58966a83315
2014-04-08 18:24:06 +09:00
Tadashi G. Takaoka
465a2ac534 Refactor make-keyboard-text
Change-Id: Ifaf955ae896a18e5cbc9c1af5a1b7e15942eb886
2014-04-08 17:11:06 +09:00
Tadashi G. Takaoka
6ed9f4d74b am 113523d2: Merge "Update KeyboardTextsTable.java"
* commit '113523d22db3b183203abe475baebbc6ad0c486c':
  Update KeyboardTextsTable.java
2014-04-08 07:45:31 +00:00
Tadashi G. Takaoka
113523d22d Merge "Update KeyboardTextsTable.java" 2014-04-08 07:40:19 +00:00
Tadashi G. Takaoka
ceda8b925f Update KeyboardTextsTable.java
Change-Id: I821eb214f3a8c34e91ca9bbf116cc53389a2fff0
2014-04-08 16:16:05 +09:00
Tadashi G. Takaoka
61319558de am 1b1732be: Merge "Use Quantum.Light theme for API 20 or later"
* commit '1b1732be5b771ee0295bbe7a7cc034baba7ae503':
  Use Quantum.Light theme for API 20 or later
2014-04-08 03:28:27 +00:00
Tadashi G. Takaoka
1b1732be5b Merge "Use Quantum.Light theme for API 20 or later" 2014-04-08 03:24:28 +00:00
Tadashi G. Takaoka
0d76807dee am f1f29799: Merge "Add "preliminary" comment to hindi_compact subtype"
* commit 'f1f297999446ebdce1afb2543641c2a4f1e3cd3f':
  Add "preliminary" comment to hindi_compact subtype
2014-04-08 02:40:33 +00:00
Tadashi G. Takaoka
f1f2979994 Merge "Add "preliminary" comment to hindi_compact subtype" 2014-04-08 02:35:15 +00:00
Tadashi G. Takaoka
aff1fcb43f Add "preliminary" comment to hindi_compact subtype
Hindi (Compact) input should be marked as "preliminary" until a
combining input logic for that subtype is implemented.

Bug: 13779052
Change-Id: Iae5be2cc24507d7533ca1dd56b18cd80818a8cf1
2014-04-08 11:32:37 +09:00
Baligh Uddin
0e52441926 am 4a43b493: (-s ours) Import translations. DO NOT MERGE
* commit '4a43b4935553ba6322640eca954ab784629ef852':
  Import translations. DO NOT MERGE
2014-04-08 02:30:58 +00:00
Tadashi G. Takaoka
a1df9ef753 Use Quantum.Light theme for API 20 or later
Bug: 13698528
Change-Id: Ibf03b3eedbd07e986d7d206bfd3803108dbbe6d5
2014-04-08 11:23:47 +09:00
Baligh Uddin
4a43b49355 Import translations. DO NOT MERGE
Change-Id: Idd39b817c682589b998fb5955f65f7bce8843058
Auto-generated-cl: translation import
2014-04-07 15:35:08 -07:00
Baligh Uddin
f60c47a91a Import translations. DO NOT MERGE
Change-Id: I770f91288581cb143d4729b8ee6000634c9d75f0
Auto-generated-cl: translation import
2014-04-07 15:34:10 -07:00
Tadashi G. Takaoka
f19ea2f2c8 am a857235d: Merge "Remove workaround code of placing DrawingPreviewPlacerView"
* commit 'a857235d0c2d56f92502d76460325377170ee5b8':
  Remove workaround code of placing DrawingPreviewPlacerView
2014-04-07 09:03:53 +00:00
Tadashi G. Takaoka
a857235d0c Merge "Remove workaround code of placing DrawingPreviewPlacerView" 2014-04-07 08:58:20 +00:00
Jean Chalard
3d972f85d2 am da5c2069: Merge "[CB23] Merge add and deleteLast"
* commit 'da5c20693421d087c56707c95edcf19fc153c12a':
  [CB23] Merge add and deleteLast
2014-04-07 08:42:15 +00:00
Tadashi G. Takaoka
0c01fc6f1c Remove workaround code of placing DrawingPreviewPlacerView
This CL divides MainKeyboardView.locatePreviewPlacerView method into
two methods. One is installing DrawingPreviewPlacerView to the window
as Frontmost view. Another is telling the location of MainKeyboardView
to DrawingPreviewPlacerView. Thus we can eliminate workaround code to
deal with transient states in orientation change.

Change-Id: Ia5d8f28dfb5213d27aa218c72d838a3c3be5a527
2014-04-07 17:36:53 +09:00
Jean Chalard
da5c206934 Merge "[CB23] Merge add and deleteLast" 2014-04-07 08:16:36 +00:00