Commit Graph

898 Commits (f2b995769bf55b07797e05b4474457f910d5aa7a)

Author SHA1 Message Date
Tadashi G. Takaoka de3afcfdcc Fix import and javadoc comments of unit tests
Change-Id: Ic3f249bf9e3a5ec7ffd07abd4bc38d343bb14d39
2014-05-12 16:25:49 +09:00
Tadashi G. Takaoka 139773d016 Enable voice and language switch keys for keyboard layout tests
Change-Id: I19ee05e30d09eb13753b737961882e345591c1df
2014-05-12 16:09:53 +09:00
Tadashi G. Takaoka d5e3f02586 Add pseudo LMP theme
This CL introduce pseudo LMP theme. This keyboard theme is a
placeholder and not final. The drawables and colors that this CL
introduces should be replaced with the final assets.

Bug: 14419121
Change-Id: I7a37c884e4ee0cac09ad21ff729996c2b9c1b4af
2014-05-12 11:52:41 +09:00
Tadashi G. Takaoka 59c3ef1ff8 Refactor KeyboardTheme
This CL introduces two preference keys in addition to the existing one.

- pref_keyboard_theme: The new preference key that is used only in the
  preference settings.

- pref_keyboard_layout_20110916: The previous preference key that
  holds keyboard color scheme settings. This is superseded by the next
  key.

- pref_keyboard_theme_20140509: The new preference key that holds
  keyboard theme settings. This value is forcibly reset to LMP theme
  on a LMP device. On a KitKat and previous device, the settings of
  the pref_keyboard_layout_20110916 is carried on into this
  preference.

This CL must be checked in together with Id7b3ddd8aa.

Change-Id: I2d55602d026e30b38d8f822d2124f5c5e4a9a812
2014-05-12 10:59:10 +09:00
Ken Wakasa 4f5ea4dfc2 Merge "Revert "Refactor KeyboardTheme"" 2014-05-09 11:28:51 +00:00
Ken Wakasa d47dca429e Revert "Refactor KeyboardTheme"
This reverts commit 19688b584b.

Build breakage.

Change-Id: I95d4be1578824eaee5a2fb08ec277250727ac668
2014-05-09 11:28:19 +00:00
Tadashi G. Takaoka c2a49f3006 Merge "Refactor KeyboardTheme" 2014-05-09 08:26:05 +00:00
Tadashi G. Takaoka 19688b584b Refactor KeyboardTheme
This CL introduces two preference keys in addition to the existing one.

- pref_keyboard_theme: The new preference key that is used only in the
  preference settings.

- pref_keyboard_layout_20110916: The previous preference key that
  holds keyboard color scheme settings. This is superseded by the next
  key.

- pref_keyboard_theme_20140509: The new preference key that holds
  keyboard theme settings. This value is forcibly reset to LMP theme
  on a LMP device. On a KitKat and previous device, the settings of
  the pref_keyboard_layout_20110916 is carried on into this
  preference.

This CL must be checked in together with Ifcedeabbec.

Change-Id: Ibe75146e2c1c7eebf964ca86550baf244fedb79a
2014-05-09 16:21:02 +09:00
Keisuke Kuroyanagi eaa347bc1a Merge "Add VERSION4_TEST for testing." 2014-05-09 07:06:06 +00:00
Keisuke Kuroyanagi 455dc84cf2 Add VERSION4_TEST for testing.
Bug: 13406708
Change-Id: I0b434717ea3edbb131650af634c53cfbfe113c3e
2014-05-09 15:17:01 +09:00
Tadashi G. Takaoka ebac0aa28f Reorder accented letters of English
This is a follow up change of Idff0b6d08e.

Bug: 13177865
Change-Id: I00ea7cda954efbd248d2abc2fa6d4995d6acbf19
2014-05-09 12:06:42 +09:00
Tadashi G. Takaoka 71c96c079f Merge "Add Marathi keyboard layout" 2014-05-02 01:20:07 +00:00
Tadashi G. Takaoka a5ab5d830c Add Marathi keyboard layout
Bug: 10028772
Change-Id: I7bca05bbbfdb2e5f61d5db611dff62ace3b71e31
2014-05-01 18:25:56 +09:00
Jean Chalard 29c00ff538 Introduce clustering punctuation
Bug: 10081730
Change-Id: If198fa3df68ecb267da0a278da41fd509d6165f1
2014-05-01 15:45:24 +09:00
Keisuke Kuroyanagi 1737b7ff5c Use ReentrantReadWriteLock in ExpandableBinaryDictionary.
Bug: 8187060
Change-Id: Ic665f0a5e940708aa9addedac068a64900b307e7
2014-04-28 20:56:01 +09:00
Keisuke Kuroyanagi 67c0ed8f8c Handle user history dictionary as an ExpandableBinaryDictionary.
Bug: 13755213
Change-Id: I1ea8a6df007af7153852f2d32bf5e8ec669c432b
2014-04-24 14:48:01 -07:00
Keisuke Kuroyanagi 2dcb5c1b4d Remove clearAndFlushDictionary() and use clear().
clearAndFlushDictionary() was needed when dictionaries are constructed
in java side. All expandable dictionaries now use native code; thus,
this method is same to clear() and no longer needed.

Bug: 13755213
Change-Id: Ifd836e64f8ff807930f7cd2319b103b65e8fce70
2014-04-24 11:25:47 -07:00
Keisuke Kuroyanagi 3b7984752c Support creating BinaryDictionary without creating dict file.
Bug: 14166482
Change-Id: Ic8c78ec2c8f39358a1f085a041b608972a380eef
2014-04-22 13:18:34 -07:00
Keisuke Kuroyanagi ce76821dce Revert "Support creating BinaryDictionary without creating dict file."
This reverts commit 89939b8708.

Change-Id: I8ca1b55609ad305a93178063bd88bd1cede872af
2014-04-22 19:34:44 +00:00
Keisuke Kuroyanagi 89939b8708 Support creating BinaryDictionary without creating dict file.
Bug: 14166482
Change-Id: Ib065279f96e227ab0fee7c8141560c4ada744d3b
2014-04-22 12:01:33 -07:00
Tadashi G. Takaoka c13c1adfa7 Sort keys from top-left to bottom-right order
Change-Id: I228748824de62e9e46fa43db200d23f41eb6d2ce
2014-04-21 18:36:11 -07:00
Tadashi G. Takaoka 5326dcfb7d Use unmodifiable list to return keys from Keyboard
Change-Id: I85a0b18d2d78632e9a9f074eda1de9225001f876
2014-04-21 14:31:27 -07:00
Jean Chalard 1ee443d848 Merge "[IL135] Make getCurrentAutoCapsState private" 2014-04-15 02:27:52 +00:00
Jean Chalard 82d3a56b09 Merge "[IL134] Add an alternative path to getCurrentAutoCapsState" 2014-04-15 02:24:41 +00:00
Jean Chalard 751dc070bf Merge "Fix updating the shift state upon backspace" 2014-04-14 12:31:22 +00:00
Jean Chalard 2282e8520a Fix updating the shift state upon backspace
Bug: 13514349
Change-Id: If4c9db12b0ab5be676f7a2f72715f469066ee537
2014-04-14 21:28:24 +09:00
Jean Chalard f091c491ea [IL135] Make getCurrentAutoCapsState private
Bug: 8636060
Change-Id: I800aefe6fee4c14df6fe5abe21b2387c69abb8f5
2014-04-14 21:09:32 +09:00
Jean Chalard ddc163988a [IL134] Add an alternative path to getCurrentAutoCapsState
Bug: 8636060

Change-Id: I959e13d34910adad028ed6174f92029ff690eeeb
2014-04-14 21:09:32 +09:00
Tadashi G. Takaoka 21eafd7910 Use KeyboardTheme id insteand of index
This CL must be checked in together with I771216f8bd.

Bug: 14042743
Change-Id: I45c3acf9242985fb03721a9a6d377fbccc8e2019
2014-04-14 18:59:54 +09:00
Tadashi G. Takaoka d6aa94e6b5 Refactor KeyboardTheme as top-level class
This CL should be checked in together with I63e33388f9.

Bug: 14042743
Change-Id: I13f0a45bac6f19e006bf1280a36173e52d6d7160
2014-04-14 17:10:11 +09:00
Tadashi G. Takaoka 977d052f8c Revise myanmar keyboard layout
Note that this keyboard layout is still a preliminary.

Bug: 7963632
Change-Id: I4c53b3359ea2c0dd8e2ce7db8ec916ab9340eec5
2014-04-11 15:29:30 +09:00
Jean Chalard 2e967f6607 Merge "Fix some flaky tests." 2014-04-10 08:47:20 +00:00
Jean Chalard 4370ff0998 Fix some flaky tests.
In tests, we create many instances of LatinIME, but we never
destroy them. That means we never close the dictionaries nor
the handlers.
This change calls onDestroy, which closes all dictionaries, and
adds some code to finish the handlers.

Change-Id: I942517a2a940c54256b08763f6b38f5b55809f55
2014-04-10 17:32:05 +09:00
Tadashi G. Takaoka 9eec53a2c2 Merge "Reorder German umlaut letters" 2014-04-10 06:26:21 +00:00
Tadashi G. Takaoka 0ce38865d7 Merge "Reorder Greek accented vowels" 2014-04-10 06:25:25 +00:00
Tadashi G. Takaoka 784a4429ea Reorder German umlaut letters
Bug: 13940739
Change-Id: I2e377b56e4a74d36c7e0cea4ad4e8d9341eb7feb
2014-04-10 15:24:45 +09:00
Tadashi G. Takaoka d1cc4e0beb Reorder Greek accented vowels
Bug: 13941339
Change-Id: I501e69d8f28526e3791ee8a338345926ff1b9a4c
2014-04-10 15:20:17 +09:00
Tadashi G. Takaoka 043d9bc2c9 Separate ItalianCustomizer as a top level class
This is a follow up of I57df8ca12b

Change-Id: I6a73de1ddecaf39ba42e03956e022cf7a398c864
2014-04-10 15:06:23 +09:00
Tadashi G. Takaoka ac5e6ddd97 Add Italian (Switzerland) it_CH layout
Bug: 13920900
Change-Id: I57df8ca12b0d8cc4bbca2372c0470dcae5b5cbfb
2014-04-10 11:56:44 +09:00
Tadashi G. Takaoka fa1ac6a9db Merge "Add Spanish (Latin America) subtype (es_419)" 2014-04-09 10:22:06 +00:00
Tadashi G. Takaoka 9a924d7b00 Add Spanish (Latin America) subtype (es_419)
Bug: 7531804
Change-Id: I183443779f8d9d472ac5e528e1d905366bd83c90
2014-04-09 19:09:17 +09:00
Jean Chalard 77dd17ad36 Merge "[CB25] Refactor some array copying" 2014-04-09 09:57:00 +00:00
Jean Chalard 5f430e0189 [CB25] Refactor some array copying
Bug: 13406701
Change-Id: I09edd822f5cc2446b324d41c76d835bcff1191e6
2014-04-09 18:38:29 +09:00
Tadashi G. Takaoka daf75d275e Add en_IN subtype
Bug: 13914988
Change-Id: Ifd497a6a1d2686490e388e10e391475e97e9c166
2014-04-09 12:48:43 +09:00
Jean Chalard 90608190ec Add shift mode tests
Change-Id: I067e91a1f899c1f83fd60adeae66495606812a95
2014-04-08 22:24:25 +09:00
Tadashi G. Takaoka eb88f03f97 Merge "Fix subtype count unit test due to Ic7c17d9656" 2014-04-03 15:44:14 +00:00
Tadashi G. Takaoka cafc8de2b2 Fix subtype count unit test due to Ic7c17d9656
Change-Id: Id708752e0d97a78ce02623956e32b990bc2a1cfd
2014-04-04 00:09:08 +09:00
Jean Chalard 28a59dd049 Fix a bug with double-space-to-period
Bug: 13778001
Change-Id: I3ebd57950cdfacbbcdc64ed214c0590519a0665c
2014-04-03 22:07:57 +09:00
Tadashi G. Takaoka a3804e5e10 Add hindi_compact keyboard
Bug: 13779052
Change-Id: Ic7c17d96560501422a63340d7ce6bd8720e6c3c9
2014-04-03 19:47:31 +09:00
Tadashi G. Takaoka 303f440311 Refactor Devanagari key-styles
Change-Id: I799b04317d5b7daff4bb230294b2de474e5585eb
2014-04-03 17:59:29 +09:00
Tadashi G. Takaoka b6ca5763aa Add keyboard layout test for API 14 and 15
Bug: 13017434
Change-Id: Iaa995ba0b6ba4caabc7c77f084f376bebc5b766e
2014-04-03 17:49:43 +09:00
Tadashi G. Takaoka 7dd32dfc06 Remove country name from space bar text when appropriate
Remove country name from space bar text when there no other subtype
that is a same language and a same keyboard layout.

Bug: 8084704
Change-Id: I7c785a925ff7a0a61e5d009f138e1df52b3aeb3a
2014-04-02 12:50:52 +09:00
Tadashi G. Takaoka 9364d46ac3 Add SpacebarLanguageUtils class
The SpacebarLanguageUtils class is separated from SubtypeLocaleUtils
and handles the language name on the spacebar.

Bug: 8084704
Change-Id: I82f79a061d4f0cc2895263298c3ebf8ee444c61d
2014-04-01 12:17:06 +09:00
Tadashi G. Takaoka 03f9c4820a Merge "Make NeedsToDisplayLanguage as a top level class" 2014-03-28 09:15:25 +00:00
Tadashi G. Takaoka 8e3c585265 Make NeedsToDisplayLanguage as a top level class
Change-Id: Ia05e0494a9dccebfb5c1316479e52f04cf2ae444
2014-03-28 17:59:57 +09:00
Keisuke Kuroyanagi 781e3df73b Merge "Dictionary migration in Java side." 2014-03-28 08:07:26 +00:00
Jean Chalard 35645ac39a Merge "[CB14.5] Stop copying WordComposers." 2014-03-28 06:51:17 +00:00
Jean Chalard 8e829c37df [CB14.5] Stop copying WordComposers.
This is an overdue refactoring that I have been wanted to
do forever, and that we can at last do now that suggestions
come only from instances of BinaryDictionary instances.

With this, all unit tests and regression tests are
passing again.

Bug: 13667648
Bug: 13665487
Bug: 8636060
Change-Id: Ie23a19f9b7e692edf2ee0b107ddaff2d7db564b6
2014-03-28 15:26:27 +09:00
Tadashi G. Takaoka 2202d47386 Stop displaying locale string on short space bar
Bug: 12070355
Change-Id: I2d6fa20431bc56d5139caeac33e396b73906d075
2014-03-28 13:05:13 +09:00
Keisuke Kuroyanagi a785fa8edd Dictionary migration in Java side.
Bug: 13406708

Change-Id: If83938e4b4810d2e8353c70cdd8ef3ea97a29571
2014-03-27 17:46:35 +09:00
Keisuke Kuroyanagi 6008898b99 Merge "Move code only used for dicttool and tests under tests." 2014-03-27 06:37:10 +00:00
Keisuke Kuroyanagi 93cda5bb39 Move code only used for dicttool and tests under tests.
Bug: 13035567
Change-Id: I13c6df013ef2b67c9bf67455d9c32d283bf9ea2e
2014-03-27 15:30:32 +09:00
Tadashi G. Takaoka c4b558d375 Merge "Rename text resources consistently" 2014-03-26 10:06:34 +00:00
Jean Chalard 1079665c3c [CB14] Implement backspace in the combiner chain
Bug: 13622107
Bug: 13406701
Change-Id: I0023b398c4451253f9f717e2bd990b8a054004bc
2014-03-25 17:57:03 +09:00
Tadashi G. Takaoka 393efd94e5 Rename text resources consistently
- keylabel_<key>, the key label text of the <key>
- keyspec_<key>, the key specification of the <key>
- keyhintlabel_<key>, the hint label text of the <key>
- morekeys_<key>, the more keys specifications of the <key>
- additional_morekeys_<key>, the additional more keys specification of
  the <key>

Change-Id: Ib2127f21fa33a2568e8a6eba65cfdb2cf78b480e
2014-03-25 13:02:09 +09:00
Jean Chalard 1dda9107ca Merge "Rework the logic that tells if the cursor touches words" 2014-03-20 14:35:19 +00:00
Jean Chalard 72b67f6541 Rework the logic that tells if the cursor touches words
Bug: 13312942
Change-Id: I6be6a558bbc6c88508150f9c25cadbd0240ff88e
2014-03-20 23:16:53 +09:00
Tadashi G. Takaoka df39eb6961 Consolidate KeyboardTextsSet.setLocale and loadStringResoucres
Change-Id: Idaf8f0d80fdeef4f1430f11d4083366e8ab7f6e0
2014-03-20 18:55:03 +09:00
Tadashi G. Takaoka 0c268b08b6 Merge "Refactor KeyboardTextsSet class" 2014-03-20 09:52:02 +00:00
Tadashi G. Takaoka 58b19655d8 Merge "Add pcqwerty layout test" 2014-03-20 09:40:47 +00:00
Tadashi G. Takaoka 6007a1b7a9 Refactor KeyboardTextsSet class
Change-Id: Ibb59a9d4902db9ec0e00244304be9ab35b215a50
2014-03-20 18:38:59 +09:00
Tadashi G. Takaoka f64a9d8fd6 Fix subtype count test
This is a follow up of I6cce26c4fc.

Because we implement Basque, Galician, and preliminary Myanmar
keyboard.

Change-Id: I055fe4f453cf454bbd65bc8542733411e9d3556c
2014-03-20 17:09:08 +09:00
Tadashi G. Takaoka e7420f6bd1 Merge "Utilize autoColumnOrder for punctuation more keys" 2014-03-20 08:01:18 +00:00
Tadashi G. Takaoka 844205ca2e Utilize autoColumnOrder for punctuation more keys
Change-Id: I1f8f5013f0bdf93cf590b8bd00d680b31e03d8b0
2014-03-20 16:38:38 +09:00
Tadashi G. Takaoka 7e9e20b7bc Fix subtype count test
Because we implement Basque and Galician keyboard.

Change-Id: I6cce26c4fc17100b8f0511cb38243b1235a2375f
2014-03-20 16:36:21 +09:00
Tadashi G. Takaoka e884fde8d2 Merge "Fix Armenian punctuation order" 2014-03-20 06:43:50 +00:00
Tadashi G. Takaoka e4e6e739e8 Merge "Add armenian_phonetic layout tests" 2014-03-20 04:55:58 +00:00
Tadashi G. Takaoka d51aebd328 Fix Armenian punctuation order
Bug: 12623502
Change-Id: I6cc026132922e103d212b663664e7e0aa2404b35
2014-03-20 13:17:38 +09:00
Tadashi G. Takaoka 36c89e7e00 Add armenian_phonetic layout tests
This CL adds Armenian (AM) Phonetic keyboard test.

Bug: 13017434

Change-Id: I3b93ef2094b8a9d82ca0e1b88f93136271166ddb
2014-03-20 13:01:17 +09:00
Tadashi G. Takaoka 270bd39af4 Remove Latin comma from Arabic/Persian keyboard
Bug: 12807701
Change-Id: Icca63586d561a57b2c15cbfbae0de98dfcc137a3
2014-03-20 11:45:53 +09:00
Tadashi G. Takaoka b2b01f9125 Add pcqwerty layout test
This CL adds No language PC Qwerty keyboard test.

Bug: 13017434
Change-Id: I64df493b884ff0a5d30fe9e66a8c5efffacb71aa
2014-03-19 21:20:33 +09:00
Tadashi G. Takaoka 110e9f9e88 Add Galician keyboard
Bug: 13169021
Bug: 13017434
Change-Id: I5d44dc4c2387644028a5cf594954795e014f357a
2014-03-19 19:41:18 +09:00
Tadashi G. Takaoka 0c797e8867 Add Basque keyboard
Bug: 13169021
Bug: 13017434
Change-Id: I46c738e833a9f287586a03bda9ab0230f8b9eac1
2014-03-19 19:40:34 +09:00
Tadashi G. Takaoka 9ab9f281f9 Merge "Add cloemak keyboard test" 2014-03-19 10:38:42 +00:00
Tadashi G. Takaoka 4640e7c989 Fix French accented letters order
Bug: 13497958
Change-Id: I062a0e2e75b2f6c2606b1309808cbaa83cc91018
2014-03-19 17:43:53 +09:00
Tadashi G. Takaoka 5b2c686885 Add cloemak keyboard test
This CL adds No language Colemak keyboard test.

Bug: 13017434
Change-Id: Ifa3480ce874013e0ae6ed62dd842e37f00d7d882
2014-03-19 17:41:21 +09:00
Tadashi G. Takaoka e40a52cc62 Add dvorak layout tests
This CL adds, English Dvorak, French Dvorak, German Dvorak, and No
language Dvorak keyboard tests.

Bug: 13017434
Change-Id: Ie87cee896c687eec279141389a1feda8951fddad
2014-03-19 17:40:18 +09:00
Tadashi G. Takaoka 0dabae720a Support additional more keys for keyboard layout test
Bug: 13017434
Change-Id: I44c31dce3391d9638979539bb5e58c0525186fb4
2014-03-19 17:27:48 +09:00
Tadashi G. Takaoka 54d74ff74a Fix unit test message
Change-Id: I7f98cb5784ebd7a04cd2951f0b62fa4afdcf085c
2014-03-19 15:25:27 +09:00
Tadashi G. Takaoka b58b529c9a Merge "Clean up keyboard layout test harness a bit" 2014-03-18 08:48:23 +00:00
Tadashi G. Takaoka 6d44cb5122 Clean up keyboard layout test harness a bit
Bug: 13017434
Change-Id: I66e5da53b9afbe44f43b8c398c2821e7a72ec4b4
2014-03-18 17:11:43 +09:00
Tadashi G. Takaoka 1325ddbae3 Merge "Guard possible NumberFormatException" 2014-03-18 07:26:18 +00:00
Tadashi G. Takaoka d2c6151d4d Guard possible NumberFormatException
Bug: 13472379
Change-Id: Ib7640b3d8816d8d7fb4747d2288eedd94bc49b06
2014-03-18 15:40:43 +09:00
Tadashi G. Takaoka f4f4ae8fee Merge "Add hebrew keyboard test" 2014-03-17 10:22:06 +00:00
Tadashi G. Takaoka 7961d3bb02 Add hebrew keyboard test
This CL adds Hebrew keyboard test.

Bug: 13017434
Change-Id: I4b200e9d1e70919d671281bf52f671240ddbe63a
2014-03-17 18:31:41 +09:00
Tadashi G. Takaoka e8facf4559 Fix cosmetic comment typo
Change-Id: I9772daaa2f742556b4f63ed8c08693dbce5f7534
2014-03-17 18:05:28 +09:00
Tadashi G. Takaoka b8f8d2ceb8 Add farsi keyboard test
This CL adds Persian keyboard test.

Bug: 13017434
Change-Id: I8c73b0940d78642fa17ac17c88ed5f5d7d7b0fa8
2014-03-17 12:42:46 +09:00
Tadashi G. Takaoka d28ac52033 Merge "Add lao keyboard test" 2014-03-17 03:25:59 +00:00
Tadashi G. Takaoka 082e033ea2 Merge "Add mongolian keyboard test" 2014-03-17 03:25:51 +00:00
Tadashi G. Takaoka a8b3748b9a Merge "Add georgian keyboard test" 2014-03-17 03:25:42 +00:00