Commit Graph

14987 Commits

Author SHA1 Message Date
Aleksandras Kostarevas
97859147d9 Add system languages as subtypes when blank 2024-05-14 17:29:29 -05:00
Aleksandras Kostarevas
7570e4d258 Refactor input method subtype system 2024-05-14 17:13:52 -05:00
Aleksandras Kostarevas
ef1860b8d0 Add notice for when built in voice input is disabled 2024-05-12 18:26:57 -05:00
Aleksandras Kostarevas
790f90622f Add queries block for voice ime detection 2024-05-12 18:22:40 -05:00
Aleksandras Kostarevas
e6ac130706 Save enabled subtypes as setting 2024-05-10 17:51:40 -05:00
Aleksandras Kostarevas
2e7611349a Automatically refresh languages in settings 2024-05-10 17:43:00 -05:00
Aleksandras Kostarevas
36157909c7 Update more keys 2024-05-08 17:01:34 -05:00
Aleksandras Kostarevas
0153d855b9 Remove incorrect app name translations 2024-05-08 16:46:10 -05:00
Aleksandras Kostarevas
3ad22e5a82 Update key hints to show morekeys[0] 2024-05-08 16:37:24 -05:00
Aleksandras Kostarevas
08cfe36dce Update Lithuanian morekeys 2024-05-08 16:36:58 -05:00
Aleksandras Kostarevas
21d55993f0 Use steps for keyboard height and offset 2024-05-08 13:10:55 -05:00
Aleksandras Kostarevas
49cbcabf5e Add slider for long press duration 2024-05-08 13:02:36 -05:00
Aleksandras Kostarevas
abda1a3d08 Fix wrong more keys offset without preview 2024-05-08 12:25:28 -05:00
Aleksandras Kostarevas
951c24e1c9 Fix incorrect bottom padding color 2024-05-07 16:22:55 -05:00
Aleksandras Kostarevas
193c0078ee Update default weight 2024-05-07 13:44:59 -05:00
Aleksandras Kostarevas
d83e9ae637 Add GitHub issue tracker URL and subtitles 2024-05-07 12:51:01 -05:00
Aleksandras Kostarevas
360c2f4ada Fix wrong update check for theme 2024-05-07 12:17:44 -05:00
Aleksandras Kostarevas
7fbb62fb4c Add number row to most layouts 2024-05-07 12:11:25 -05:00
Aleksandras Kostarevas
173cf38710 Use Compose padding for vertical offset 2024-05-07 12:11:07 -05:00
Aleksandras Kostarevas
233e850422 Fix incorrect vertical position for more keys 2024-05-07 12:10:48 -05:00
Aleksandras Kostarevas
918f0dbd2d Add toggle for number row 2024-05-07 11:17:13 -05:00
Aleksandras Kostarevas
bed5f68b11 Fix key preview text size being dependent on keyboard size 2024-05-06 17:00:00 -05:00
Aleksandras Kostarevas
c937a618e1 Fix key preview appearing wrongly depending on key height 2024-05-06 16:54:28 -05:00
Aleksandras Kostarevas
80272cbab4 Resize icons to match letter size 2024-05-06 16:44:27 -05:00
Aleksandras Kostarevas
c992bc0849 Update limits 2024-05-06 16:32:52 -05:00
Aleksandras Kostarevas
937ece0b34 Add options for keyboard height and bottom offset 2024-05-06 16:16:04 -05:00
Aleksandras Kostarevas
3c84c747fa Add payment URL setting 2024-04-30 14:11:44 -04:00
Aleksandras Kostarevas
57cb64f8bd Remove some logging 2024-04-30 13:58:46 -04:00
Aleksandras Kostarevas
474839f60b Add option to undo slide deletion 2024-04-29 22:16:45 -04:00
Aleksandras Kostarevas
740bd08e28 Fix problem where wrong autocorrection is used during stress 2024-04-29 21:10:30 -04:00
Aleksandras Kostarevas
21800d37e2 Disable transformer when super stressed 2024-04-29 20:58:37 -04:00
Aleksandras Kostarevas
ecaf9df340 Make manual update notice smarter, add toggle to disable reminders 2024-04-29 20:38:51 -04:00
Aleksandras Kostarevas
147f711138 Update payment flow to work 2024-04-29 15:19:43 -04:00
Aleksandras Kostarevas
41b44d434e Add developer settings toggle to developer settings 2024-04-29 10:10:27 -04:00
Aleksandras Kostarevas
579845df45 Update credits screen with linkbacks 2024-04-29 10:07:55 -04:00
Aleksandras Kostarevas
9aea3efd66 Add initial credits screen 2024-04-28 23:16:59 -04:00
Aleksandras Kostarevas
0b1ad01f1a LM rescoring WIP 2024-04-28 21:55:32 -04:00
Aleksandras Kostarevas
7d5b12feaf Add payment menu 2024-04-28 21:52:42 -04:00
Aleksandras Kostarevas
5c9bada7ae Use a slider for several settings 2024-04-25 01:02:40 -04:00
Aleksandras Kostarevas
645c7d6e49 Set SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR when necessary 2024-04-24 10:20:34 -04:00
Aleksandras Kostarevas
15eb04895d Update subtitle for finetuning toggle 2024-04-22 22:20:18 -04:00
Aleksandras Kostarevas
b4f198944f Update emoji menu popup 2024-04-22 11:46:28 -04:00
Aleksandras Kostarevas
5b42876fc9 Remove exit transition for NavHost 2024-04-22 11:21:00 -04:00
Aleksandras Kostarevas
ed5dbe1f2c Update weighting and max limit 2024-04-22 10:49:07 -04:00
Aleksandras Kostarevas
ea166f2750 Show single word in actionbar during update batch 2024-04-22 10:40:32 -04:00
Aleksandras Kostarevas
db3542090d Make gesture recognition occur more often 2024-04-22 01:06:16 -04:00
Aleksandras Kostarevas
250cffcd13 Disable floating text preview for swipe 2024-04-22 00:55:17 -04:00
Aleksandras Kostarevas
768accda75 Use theme color for swipe trail 2024-04-22 00:55:09 -04:00
Aleksandras Kostarevas
43984a6a76 Fix swipe trail disappearing on theme change 2024-04-22 00:45:46 -04:00
Aleksandras Kostarevas
d62b733412 Fix graphics memory leak when keyboard recreated 2024-04-22 00:33:03 -04:00
Aleksandras Kostarevas
9e0dc28848 Add memory debug action window 2024-04-22 00:32:36 -04:00
Aleksandras Kostarevas
cdb0bed56a Disable transformer swipe typing 2024-04-18 17:12:41 -05:00
Aleksandras Kostarevas
10a8be824b Hide actions on suggestedwords change 2024-04-18 16:14:09 -05:00
Aleksandras Kostarevas
3ea6a08ccc Allow re-arranging actionbar 2024-04-18 15:20:08 -05:00
Aleksandras Kostarevas
d2de3dee38 Fix issue causing keyboard to be recreated on any datastore setting change 2024-04-18 13:24:16 -05:00
Aleksandras Kostarevas
8ae3263822 Implement initial swipe typing 2024-04-18 10:29:10 -05:00
Aleksandras Kostarevas
db83e9d4c3 Fix build 2024-04-11 22:40:11 -05:00
Aleksandras Kostarevas
ecafe8f86a Remove some unneeded code and permissions 2024-04-11 21:47:24 -05:00
Aleksandras Kostarevas
5ba9a1be78 Add build flavors, remove some unused code 2024-04-11 18:00:49 -05:00
Aleksandras Kostarevas
81cc428e92 Add pre-alpha text to spacebar 2024-04-11 00:54:27 -05:00
Aleksandras Kostarevas
725c679eef Move expert mode to dev settings 2024-04-11 00:19:53 -05:00
Aleksandras Kostarevas
5ba72b33cf Fix crash related to transformer suggestions 2024-04-11 00:03:22 -05:00
Aleksandras Kostarevas
a225907b4c Make enter and spacebar less prominent in expert mode 2024-04-10 23:41:24 -05:00
Aleksandras Kostarevas
46eef2d014 Unhide language on spacebar for expert mode 2024-04-10 23:25:24 -05:00
Aleksandras Kostarevas
d5a4a0b4b3 Add option for key borders and other styling options 2024-04-10 23:13:13 -05:00
Aleksandras Kostarevas
2531a74b71 Add emoji key to bottom row and option to disable it 2024-04-10 19:44:59 -05:00
Aleksandras Kostarevas
e7ec9c3d78 Disable emoji key appearing in instant messagers 2024-04-10 19:18:10 -05:00
Aleksandras Kostarevas
cbd75f9799 Fix some race conditions and properly free language model 2024-04-09 23:06:31 -05:00
Aleksandras Kostarevas
389e2efcd6 Rename .java to .kt 2024-04-09 23:06:31 -05:00
Aleksandras Kostarevas
a4bf434ff8 Fix wording on crash reporter 2024-04-09 14:37:18 -05:00
Aleksandras Kostarevas
5460d69669 Update dictionary URL 2024-04-09 13:35:28 -05:00
Aleksandras Kostarevas
15ba128095 Add back http crash report for now 2024-04-02 16:56:53 -05:00
Aleksandras Kostarevas
5649668bfb Add developer settings menu 2024-04-02 16:56:40 -05:00
Aleksandras Kostarevas
2a4840d794 Switch to email crash reporting 2024-04-02 13:03:48 -05:00
Aleksandras Kostarevas
314df88693 Remove voice input model picker, which is no longer relevant 2024-04-02 12:29:29 -05:00
Aleksandras Kostarevas
20acfb57c6 Update help menu 2024-04-02 11:52:31 -05:00
Aleksandras Kostarevas
c4bd35c921 Display imported dictionary name 2024-04-02 11:25:22 -05:00
Aleksandras Kostarevas
31b5fe933e Allow deleting imported dictionaries and voice input models 2024-04-01 16:48:39 -05:00
Aleksandras Kostarevas
626477a027 Automatically select correct language for dictionaries, reload dict after import 2024-04-01 15:44:52 -05:00
Aleksandras Kostarevas
1af8bbfd78 Add help screen 2024-04-01 14:54:38 -05:00
Aleksandras Kostarevas
ff29bf5802 Add resource importing (dict/voice/transformer) 2024-04-01 14:31:11 -05:00
Aleksandras Kostarevas
400492870d Update languages menu 2024-03-30 18:56:47 -05:00
Aleksandras Kostarevas
14fa302f1f Add languages menu 2024-03-25 13:07:10 -05:00
Aleksandras Kostarevas
ce92ea6845 Suppress InputLogic selection updates during transaction 2024-03-21 22:38:33 -05:00
Aleksandras Kostarevas
21da28ff22 Use batchEdit during voice input transaction 2024-03-21 19:59:51 -05:00
Aleksandras Kostarevas
20f897aa56 Keep screen awake during voice input 2024-03-21 19:34:35 -05:00
Aleksandras Kostarevas
925eda3be7 Remove "it" alias for Italy 2024-03-19 13:17:04 -05:00
Aleksandras Kostarevas
03a028a9fa Fix some icons being untinted, add haptic vibration setting 2024-03-19 12:35:51 -05:00
Aleksandras Kostarevas
25229530f0 Add missing haptic/sound to compose elements 2024-03-19 12:12:16 -05:00
Aleksandras Kostarevas
b4790b22f7 Fix Voice Input view looking broken 2024-03-18 16:17:11 -05:00
Aleksandras Kostarevas
536460cfd4 Update input logic to better handle combined emoji 2024-03-18 16:00:20 -05:00
Aleksandras Kostarevas
9410e5a825 Use CODE_DELETE instead of KEYCODE_DEL event for delete pointer 2024-03-18 15:06:13 -05:00
Aleksandras Kostarevas
12110e96aa Add an emoji to badwords list 2024-03-18 13:11:02 -05:00
Aleksandras Kostarevas
0302cbffd9 Filter (most) unsupported emoji from menu for older devices 2024-03-18 13:08:39 -05:00
Aleksandras Kostarevas
ed36c99ff9 Fix emoji tone popup being misplaced for 1 frame 2024-03-18 12:40:20 -05:00
Aleksandras Kostarevas
efac63ac10 Remember selecting emoji suggestions, improve emoji alias picking 2024-03-18 12:32:15 -05:00
Aleksandras Kostarevas
10c08ebda6 Add category separators and recent emoji to emoji menu 2024-03-18 12:08:00 -05:00
Aleksandras Kostarevas
e2c0652eec Show manual update notice every so often 2024-03-15 13:57:57 -05:00
Aleksandras Kostarevas
00a69a9eab Update transformer docs URL 2024-03-15 11:13:59 -05:00
Aleksandras Kostarevas
d0fbabf165 Style settings and enter icons 2024-03-15 11:03:02 -05:00
Aleksandras Kostarevas
94dfebca21 Add settings action to more easily access settings 2024-03-15 10:59:13 -05:00
Aleksandras Kostarevas
6490e2941b Add more update fallbacks in case people are stubborn and block network 2024-03-15 10:47:20 -05:00
Aleksandras Kostarevas
b15d882d77 Improve emoji suggestions 2024-03-15 10:15:16 -05:00
Aleksandras Kostarevas
da9abecce4 Check for updates when settings is launched, show update more often and auto-dismiss it 2024-03-15 10:15:07 -05:00
Aleksandras Kostarevas
91a8e7eb92 Shorten update check interval to 12 hours instead of 48 2024-03-15 09:58:54 -05:00
Aleksandras Kostarevas
0b7c386d11 Make logging less chatty 2024-03-14 15:43:51 -05:00
Aleksandras Kostarevas
455c3741ae Apply blacklist filter before bothAlgorithmsCameToSameConclusion,
allow emoji suggestions after typing a word, allow easily disabling emoji suggestions through long-tapping
2024-03-14 15:40:44 -05:00
Aleksandras Kostarevas
65686b39a0 Make emoji suggestions less aggressive 2024-03-14 15:17:55 -05:00
Aleksandras Kostarevas
cd8499f742 Mitigate OOM during update 2024-03-14 14:45:23 -05:00
Aleksandras Kostarevas
f134517f11 Auto-update improvements
1. Keep screen awake during download
2. Maintain download state
3. Cache download, don't re-download if cancelled and restarted
2024-03-14 14:28:13 -05:00
Aleksandras Kostarevas
f7ca151e18 Fix setup looking weird on some devices 2024-03-14 13:51:29 -05:00
Aleksandras Kostarevas
e424f36529 Add option for emoji suggestions 2024-03-13 16:50:53 -05:00
Aleksandras Kostarevas
e209eefd48 Add emoji suggestions 2024-03-13 16:47:17 -05:00
Aleksandras Kostarevas
6c4c6b8965 Request mic permission during setup, add test text field 2024-03-13 15:26:23 -05:00
Aleksandras Kostarevas
350b8e8fcf Add bad word filtering and blacklisting 2024-03-13 13:31:51 -05:00
Aleksandras Kostarevas
a294d9c4ca Fix potential crash related to fullContext 2024-03-12 11:44:33 -05:00
Aleksandras Kostarevas
b13e04d3f1 Fix shortcuts 2024-03-07 15:32:58 +02:00
Aleksandras Kostarevas
08947c6e89 Update model name field 2024-03-05 17:00:50 +02:00
Aleksandras Kostarevas
5086f3fa1c Add toggle for finetuning 2024-03-05 16:19:07 +02:00
Aleksandras Kostarevas
0c95240cff Update model 2024-03-05 15:57:45 +02:00
Aleksandras Kostarevas
69649256f8 Fix comma key to open settings menu 2024-03-05 15:54:18 +02:00
Aleksandras Kostarevas
c57a3d83af Add personal dictionary glossary for voice input and keyboard 2024-03-05 15:24:30 +02:00
Aleksandras Kostarevas
42ac255a81 Sync whisper.cpp changes from voice input 2024-03-05 11:06:24 +02:00
Aleksandras Kostarevas
76aad2469b Fix issue with settings menu losing nav state on screen rotation 2024-02-27 12:07:12 +02:00
Aleksandras Kostarevas
f351a61d42 Add update important notice, download and install update from within the app 2024-02-27 12:06:51 +02:00
Aleksandras Kostarevas
5888f87fd9 Move parameter settings into advanced submenu 2024-02-20 21:20:20 +02:00
Aleksandras Kostarevas
4ebd5efcbc Fix crash in optimized build 2024-02-20 21:19:53 +02:00
Aleksandras Kostarevas
184bc20b79 Use BinaryDictionary results to double-check and complement Transformer LM 2024-02-20 20:59:39 +02:00
Aleksandras Kostarevas
52bf8b5ba4 Separate model manager code, fix export issue 2024-02-04 16:59:29 +02:00
Aleksandras Kostarevas
6453c15a21 Merge branch 'lm-2-finetuning-whisperggml' into 'model-metadata'
Add autocorrect threshold to model-metadata branch

See merge request alex/latinime!6
2024-02-03 15:18:27 +00:00
Aleksandras Kostarevas
6d5252e60a Improve avoiding autocorrect w/ URLs/emails 2024-02-01 22:58:08 +02:00
Aleksandras Kostarevas
c7113297fb Add radio selection for threshold 2024-02-01 21:55:56 +02:00
Aleksandras Kostarevas
413b4fd5ff Skip the last value in outStrings 2024-01-30 21:19:48 +02:00
Aleksandras Kostarevas
a111164bb8 Improve algorithm in a few ways:
* If the first letter is capital, only capitalized first tokens will be sampled. If the whole text is capitalized, then only fully capital tokens will be sampled for the whole word
* If a word is an exact match, it gets boosted relative to others
* Probability threshold for autocorrect is now 18.0
* Add "clueless" threshold, if it's less than 1.3 then just show the user's typed word in the middle instead.
2024-01-30 20:30:44 +02:00
Aleksandras Kostarevas
3aecbd5ada Fix issue where mOriginatesFromTransformerLM gets lost 2024-01-30 19:59:47 +02:00
Aleksandras Kostarevas
f888ba3353 Fix finetuning, add a finetuning screen, handle errors during importing model, update metadata format, add model exporting 2024-01-30 17:14:02 +02:00
Aleksandras Kostarevas
5bf4492634 Fix embedded tokenizer loading, implement new model management methods, implement model info loading, model importing 2024-01-28 22:40:39 +02:00
Aleksandras Kostarevas
1d4b07566c Add correction confidence threshold 2024-01-27 20:09:13 +02:00
Aleksandras Kostarevas
abc5a74004 Add fallback for getting dictionary resid a more normal way 2024-01-24 02:09:19 +02:00
Aleksandras Kostarevas
0021b6aa04 Model metadata and manager component 2024-01-24 01:03:16 +02:00
Aleksandras Kostarevas
1ccba84322 Fix some lint warnings and errors, remove some unused classes 2024-01-17 18:18:53 +02:00
Aleksandras Kostarevas
3b85a3f0ec Specify FLAG_IMMUTABLE for pending intent 2024-01-17 15:55:30 +02:00
Aleksandras Kostarevas
ec6969b5c2 Fix Android 14+ FGS type crash 2024-01-17 15:08:07 +02:00
Aleksandras Kostarevas
18fd80ef55 Fix Android 14 registerReceiver API change 2024-01-16 23:40:37 +02:00
Aleksandras Kostarevas
dbad61d2e6 Fix non-English dictionary prediction 2024-01-16 21:02:55 +02:00
Aleksandras Kostarevas
ff903bd4a4 Change emoji key to go to new emoji menu 2024-01-16 17:56:45 +02:00
Aleksandras Kostarevas
74c74c7ba7 Add automatic update checking service 2024-01-15 17:38:46 +02:00
Aleksandras Kostarevas
fda0052c55 Don't use Popup for EmojiAction
Popup would leave leftover dead popups forever after screen orientation change
2024-01-11 22:27:38 +02:00
Aleksandras Kostarevas
4d5359fb59 Rewrite EmojiAction
* Use RecyclerView for significantly better performance
* Skin tone selector popup
2024-01-11 21:45:22 +02:00
Aleksandras Kostarevas
2188a2b03a Make digits and letters same class 2024-01-11 15:19:09 +02:00
Aleksandras Kostarevas
968b39af24 Improve text selection logic
* Shift + swiping space now lets you select text
* Text editor uses more consistent selection logic instead of sending dpad and relying on apps to implement shift+dpad selection, which many of them don't. Dpad is still used for up/down
2024-01-10 18:42:20 +02:00
Aleksandras Kostarevas
0457a56218 Avoid getString with resid 0 2024-01-09 23:19:33 +02:00
Aleksandras Kostarevas
b5446fb77f Fix missing methods due to proguard 2024-01-09 23:07:04 +02:00
Aleksandras Kostarevas
25e66ec447 Add ability to expand keyboard during action 2024-01-09 17:26:05 +02:00
Aleksandras Kostarevas
fd905bcabd Move UIX management to separate class 2024-01-09 14:26:54 +02:00
Aleksandras Kostarevas
adfab75086 Update text edit mode 2024-01-09 10:56:14 +02:00
Aleksandras Kostarevas
b237e49ece Add basic text edit mode 2024-01-08 20:23:54 +02:00
Aleksandras Kostarevas
7f17d66072 Add sliding cursor/deletion 2024-01-07 16:22:17 +02:00
Aleksandras Kostarevas
e2999ada34 Add undo, redo, paste actions 2024-01-07 16:20:20 +02:00
Aleksandras Kostarevas
9cccdcb79d Update input logic for actions 2024-01-07 14:29:54 +02:00
Aleksandras Kostarevas
e554745869 Add popup symbols for qwerty 2024-01-07 14:27:12 +02:00
Aleksandras Kostarevas
b75933b321 Update theming for more keys popup 2024-01-07 14:26:09 +02:00
Aleksandras Kostarevas
ebb70b9c12 Fix build, disable gesture input pending model update 2023-12-19 20:28:58 +02:00
Aleksandras Kostarevas
4e9e86d871 Implement multimodal position encoder 2023-12-19 20:02:20 +02:00
Aleksandras Kostarevas
c3018cdd86 Draw emojis in emoji menu asynchronously 2023-12-05 18:07:19 +00:00
Aleksandras Kostarevas
7075c22179 Add key embedding mixing 2023-12-04 20:09:51 +00:00
Aleksandras Kostarevas
14a846673d Fix input connection termination crash case 2023-11-28 21:17:45 +00:00
Aleksandras Kostarevas
88403fad79 Add EmojiAction 2023-11-28 19:23:51 +00:00
Aleksandras Kostarevas
4f15ff4a73 Add experimental swipe typing 2023-11-28 17:01:58 +00:00
abb128
f31db527d6 Add whisper.cpp 2023-11-25 09:13:50 +02:00
Aleksandras Kostarevas
eb5ed75227 Update 2023-11-21 20:41:14 +02:00
Aleksandras Kostarevas
001f1eb442 Disable debug flag 2023-11-21 20:33:21 +02:00
Aleksandras Kostarevas
cd3d5a284f Automatically schedule training 2023-11-21 20:26:23 +02:00
Aleksandras Kostarevas
cb2edca601 Update training hyperparameters 2023-11-21 17:07:43 +02:00
Aleksandras Kostarevas
e57c1072d8 Add training transposition and deletion 2023-11-21 17:07:29 +02:00
Aleksandras Kostarevas
80c857a4b5 Update model 2023-11-14 21:05:04 +02:00
Aleksandras Kostarevas
14fcb55565 Save LoRA-merged model after training 2023-11-14 20:40:00 +02:00
Aleksandras Kostarevas
2409eecef5 Loss/progress training callbacks 2023-11-14 18:11:00 +02:00
Aleksandras Kostarevas
b53a46b18d Move training to CoroutineWorker 2023-11-14 17:23:08 +02:00
Aleksandras Kostarevas
38b06d7909 History logging and training based on log 2023-11-14 11:43:36 +02:00
Aleksandras Kostarevas
33be6fb3ed Refactor LanguageModel invocation code 2023-11-13 16:44:52 +02:00
Aleksandras Kostarevas
0e0876f06c Revise training 2023-11-13 16:42:01 +02:00
Aleksandras Kostarevas
1d50ae9f22 Add TrainingDataGenerator 2023-11-08 16:24:10 +02:00
Aleksandras Kostarevas
ee8a81f12c Initial fine-tuning 2023-11-07 16:48:48 +02:00
Aleksandras Kostarevas
d1e54b9d3d Show user's uncorrected word as the third option 2023-11-02 23:05:21 +02:00
Aleksandras Kostarevas
8bb38c7ae3 Show visual feedback when will autocorrect 2023-11-02 17:56:56 +02:00
Aleksandras Kostarevas
b0ba33babe Update settings menu 2023-10-17 21:31:35 +03:00
Aleksandras Kostarevas
192c7fcca4 Update logic to suppress suggestions/autocorrect 2023-10-17 20:34:13 +03:00
Aleksandras Kostarevas
89a862e0fd Fix indicator tint 2023-10-17 19:50:41 +03:00
Aleksandras Kostarevas
af9cab5f2a Don't return suggestions for non-English locales 2023-10-17 19:24:51 +03:00
Aleksandras Kostarevas
21bd35237d Show indicator for transformer suggestions, lazily load model 2023-10-17 19:06:29 +03:00
Aleksandras Kostarevas
7c4531e32d Fix crashes related to too large context 2023-10-16 18:24:00 +03:00
Aleksandras Kostarevas
1d29501673 Add option to toggle transformer LM 2023-10-16 17:35:01 +03:00
Aleksandras Kostarevas
c73fe16ddc Add q8 model 2023-10-16 17:31:43 +03:00
Aleksandras Kostarevas
ec7cae6bbf Disable globe key by default 2023-10-13 21:40:06 +03:00
Aleksandras Kostarevas
92480fd460 Adjust space probability and mustNotAutocorrect 2023-10-13 18:44:38 +03:00
Aleksandras Kostarevas
334619086b Trim context and fix case for misautocorections 2023-10-13 18:32:57 +03:00
Aleksandras Kostarevas
b8539ce88a Initial batched inference using llama_batch 2023-10-10 22:34:04 +03:00
Aleksandras Kostarevas
16fdb3629d Add LanguageModel class 2023-09-28 19:42:29 +03:00
Aleksandras Kostarevas
a88bd5c820 Update melSpectrogram 2023-09-27 23:05:27 +03:00
Aleksandras Kostarevas
d089d0fe00 Disable advanced navigation item 2023-09-04 20:09:33 +03:00
Aleksandras Kostarevas
606c29a8ec Update app icon 2023-09-04 17:54:36 +03:00
Aleksandras Kostarevas
2088909f88 Add model downloader activity for voice input 2023-09-04 17:30:18 +03:00
Aleksandras Kostarevas
94c606718d Make new ThemeScreen for selecting theme 2023-09-04 16:54:19 +03:00
Aleksandras Kostarevas
dc342f33a6 Update theme picker in keyboard 2023-09-04 15:20:48 +03:00
Aleksandras Kostarevas
0a7ab52e8b Set status bar color in settings 2023-09-04 14:13:17 +03:00
Aleksandras Kostarevas
263165b596 Creatre initial updated settings menu 2023-09-01 23:57:12 +03:00
Aleksandras Kostarevas
7f656bb622 Load voice input settings instead of hardcoding 2023-09-01 08:51:42 +03:00
Aleksandras Kostarevas
af42223a0c Replace certain hardcoded strings with stringres 2023-09-01 08:08:13 +03:00
Aleksandras Kostarevas
08296ec484 Add crash reporting using ACRA 2023-08-31 22:45:11 +03:00
Aleksandras Kostarevas
d180b5646f Automatically add space for voice input action 2023-08-31 20:55:46 +03:00
Aleksandras Kostarevas
8f53297eea Make full action window clickable 2023-08-31 19:33:24 +03:00
Aleksandras Kostarevas
3acb8b5e44 Create SoundPlayer for persistent state 2023-08-31 19:15:50 +03:00
Aleksandras Kostarevas
731fbf1254 Greatly refactor Voice Input module 2023-08-31 00:20:23 +03:00
Aleksandras Kostarevas
4e3b4e5a46 Initial voice input implementation 2023-08-27 19:08:44 +03:00
Aleksandras Kostarevas
1b0dd25244 Separate actions into its own files 2023-08-26 21:31:31 +03:00
Aleksandras Kostarevas
8278de9484 Inflate inline suggestions only once 2023-08-26 20:39:55 +03:00
Aleksandras Kostarevas
d72838e659 Update dynamic themes when colors change 2023-08-26 20:26:26 +03:00
Aleksandras Kostarevas
bd0368d89f Add initial inline suggestions support 2023-08-26 20:04:56 +03:00
Aleksandras Kostarevas
9d4ea1f7c1 Move certain things into separate files 2023-08-22 23:19:57 +03:00
Aleksandras Kostarevas
05fce3bd09 Disable top suggestion icon 2023-08-22 20:40:12 +03:00
Aleksandras Kostarevas
d11025192e Move themes to separate files, save theme choice 2023-08-22 20:37:51 +03:00
Aleksandras Kostarevas
106de18b3b Recreate keyboard whenever action window is exited 2023-08-22 16:47:53 +03:00
Aleksandras Kostarevas
226fea5d46 Fix scrollability in theme switcher 2023-08-22 15:52:49 +03:00
Aleksandras Kostarevas
f91a626955 Implement Actions, create a theme switcher action window 2023-08-22 15:36:40 +03:00
Aleksandras Kostarevas
ad151d7f11 Update theme to use dynamic color scheme 2023-08-19 15:06:18 +03:00
Aleksandras Kostarevas
cccc18a1de Only suggest typed word when it's valid 2023-08-19 14:21:09 +03:00
Aleksandras Kostarevas
996f09eb9d Style text color and replace certain icons 2023-08-19 13:55:02 +03:00
Aleksandras Kostarevas
0b3af718b8 Fix key feedback 2023-08-18 16:29:49 +03:00
Aleksandras Kostarevas
5a4f42cafe Create certain drawables during runtime for theming 2023-08-18 15:55:09 +03:00
Aleksandras Kostarevas
039f9145c3 Fix broken key preview on landscape 2023-08-18 15:52:52 +03:00
Aleksandras Kostarevas
6f4a801d14 Update ActionBar 2023-08-18 11:18:24 +03:00
abb128
138d3a7886 Replace SuggestionStripView with ActionBar 2023-08-15 19:48:27 +03:00
Aleksandras Kostarevas
62ff4f47e4 Fix theme update bug 2023-08-14 17:44:08 +03:00
Aleksandras Kostarevas
d81d79ea67 Fix inset setting code 2023-08-14 16:53:33 +03:00
Aleksandras Kostarevas
948ba3c6f0 Wrap legacy input view in AndroidView and return ComposeView from onCreateInputView 2023-08-14 13:22:00 +03:00
Aleksandras Kostarevas
bd7dbd7cf8 Rename LatinIME to LatinIMELegacy and wrap it in a new Compose class 2023-08-14 12:48:12 +03:00
Aleksandras Kostarevas
9b3ed09a88 Remove InputMethodServiceCompatUtils which serves no use anymore 2023-08-14 11:11:02 +03:00
Aleksandras Kostarevas
8431e57eab Fix some light resources 2023-08-14 10:57:18 +03:00
Aleksandras Kostarevas
7285bc2506 Remove ICS and Holo themes. Remove most png keyboard resources, replacing with xml shapes and colors 2023-08-14 10:57:05 +03:00
abb128
434f8b6b27 Initial working build of fork 2023-07-06 21:57:49 +03:00
Cole Faust
91cb9a6acf Fix errorprone warnings that should be errors
This commit is part of a large scale change to fix errorprone
errors that have been downgraded to warnings in the android
source tree, so that they can be promoted to errors again.
The full list of changes include the following, but not all
will be present in any one individual commit:

BadAnnotationImplementation
BadShiftAmount
BanJNDI
BoxedPrimitiveEquality
ComparableType
ComplexBooleanConstant
CollectionToArraySafeParameter
ConditionalExpressionNumericPromotion
DangerousLiteralNull
DoubleBraceInitialization
DurationFrom
DurationTemporalUnit
EmptyTopLevelDeclaration
EqualsNull
EqualsReference
FormatString
FromTemporalAccessor
GetClassOnAnnotation
GetClassOnClass
HashtableContains
IdentityBinaryExpression
IdentityHashMapBoxing
InstantTemporalUnit
InvalidTimeZoneID
InvalidZoneId
IsInstanceIncompatibleType
JUnitParameterMethodNotFound
LockOnBoxedPrimitive
MathRoundIntLong
MislabeledAndroidString
MisusedDayOfYear
MissingSuperCall
MisusedWeekYear
ModifyingCollectionWithItself
NoCanIgnoreReturnValueOnClasses
NonRuntimeAnnotation
NullableOnContainingClass
NullTernary
OverridesJavaxInjectableMethod
ParcelableCreator
PeriodFrom
PreconditionsInvalidPlaceholder
ProtoBuilderReturnValueIgnored
ProtoFieldNullComparison
RandomModInteger
RectIntersectReturnValueIgnored
ReturnValueIgnored
SelfAssignment
SelfComparison
SelfEquals
SizeGreaterThanOrEqualsZero
StringBuilderInitWithChar
TreeToString
TryFailThrowable
UnnecessaryCheckNotNull
UnusedCollectionModifiedInPlace
XorPower

See https://errorprone.info/bugpatterns for more
information on the checks.

Bug: 253827323
Test: m RUN_ERROR_PRONE=true javac-check
Change-Id: I454a105ae82484a2d19aff1808e8d9dd55ba64f4
2022-10-17 11:01:42 -07:00
Treehugger Robot
370d41de92 Merge "Fix array-related errorprone warnings" 2022-08-24 00:40:18 +00:00
Cole Faust
7ad99e3431 Fix array-related errorprone warnings
The ArrayEquals, ArrayHashCode, ArrayToString, and
ArraysAsListPrimitiveArray errorprone findings were
demoted from errors to warnings. Fix existing
occurrences of them so they can be made errors again.

Bug: 242630963
Test: RUN_ERROR_PRONE=true m javac-check
Change-Id: I689397a7196277de3fd301836e72f7555e2036cb
2022-08-15 18:54:02 -07:00
Wilson Wu
0d93961d85 Remove unused method for dictionarypack
Remove the showDictionaryAvailableNotification
method since there is no module use it.

Bug: 209479751
Test: presubmit
Change-Id: I4c88b4a2d0cb36761d9102ce35260f93303625d9
2022-02-23 15:35:18 +08:00
Lais Andrade
97a3132c95 Remove flag to ignore user settings from haptic feedback
The keyboard key-press haptic feedback should follow the user
settings for "Touch feedback".

Bug: 185351540
Test: manual
Change-Id: I718d3bf15b1ef841a869a898038d0eca1eca78f0
2022-01-17 19:16:47 +00:00
Ming-Shin Lu
6c752d8eca Using IME context to inflate layout from S_V2
With CL[1],[2] to migrate InputMethodService as the subclass of the new
introduced class WindowProviderService in S_V2, IME context resources
can be managed by associating the window container of IME window when
its display/window configuration changed.

So we can get rid of createDisplayContext logic from S_V2 with gated
by SDK version and refining the method of get IME context with
documentation to make it clear.

[1]: Ie565e30ed5dd3f2cfe27355a6dded76dc3adc14b
[2]: I64a1614f32d097785915f6105b1813a929e0fe32

Bug: 213118079
Bug: 133825283
Test: manual with below steps
 1) adb install -r EditTextVariations.apk
 2) tapas LatinIME
 3) make
 4) adb install -r out/target/product/generic/system/app/LatinIME/\
        LatinIME.apk
 5) adb shell ime enable com.android.inputmethod.latin/.LatinIME
 6) adb shell ime set com.android.inputmethod.latin/.LatinIME
 5) Enable screen auto-rotation
 7) Launch EditTextVariations from launcher's shortcut
 8) Tap the first EditText field to show IME
 9) Rotate the device to the landscape mode
 10) Expect the IME should not be shrunk

Change-Id: If2cc1c5bdb257a9c0af653fa7157cf781a90bf1d
2022-01-12 11:50:28 +08:00
Ming-Shin Lu
6ae09365a5 Fix Keyboard Theme update when device orientation changed
As CL[1] introduces diplayContext to address
IME service context's Resources / DisplayMetrics update when
switching IME window to another display after onConfigurationChange.

In LatinIME#onInitializeInterface, we only update keyboard theme context
and displayContent when the displayId is changed, but overlooked even
the displayId is the same, the display context's resource configuration
might changed like the device orientation changd.

It leads getDefaultKeyboardHeight will get wrong config_max_keyboard_height
fraction value when rotating to landcape because the context resources
didn't get updated.

Add a check to update keyboard theme context when the current display
configuation is changed accordingly.

[1]: I0ed6a079af1ed90c75fee1d36d5ce3ef3c41f8ed

Fix: 186507147
Test: manual as issue steps
    1) Turn on auto-rotate
    2) Open Settings
    3) Rotating the device to landscape mode
    4) Tap “Search settings", verify if the soft-keyboard shown and the
       size is expected.
Change-Id: I288a31baf04fa2e63d6b4a14ad81b401cb36ece5
Merged-In: I288a31baf04fa2e63d6b4a14ad81b401cb36ece5
2021-06-18 02:16:19 +00:00
Yohei Yukawa
07ce283acd Bump targetSdkVersion to "30"
With this CL, versionCode, targetSdkVersion and minSdkVersion will be
bumped/set as follows:

       versionCode: 28 -> 30
  targetSdkVersion: 28 -> 30
     minSdkVersion: 21

As far as we know, there should be no user-visible behavior change on
supported OS versions.

Fix: 189558760
Test: manually verified that LatinIME still is functional
Change-Id: I3a7deb452960b370f5290f3d1bac9c79fe935303
Merged-In: I4bf7588c62fb77bf78d4afcb665e9bfbbef53966
(cherry picked from commit 360052f304)
2021-06-15 11:13:09 -07:00
Pedro Loureiro
b47de75af3 Add lint baseline to address NewApi errors
We are enabling a new lint check where the min sdk != compile sdk.
It has produced a lot of errors and adding the baseline file(s)
allows us to continue work without introducing more problems.

Bug: 150847901

Test: m lint-check
Change-Id: Ic37bd8c531af7e68c939ce9c05614c37e6699b03
2021-04-12 10:48:26 +00:00