Commit Graph

42099 Commits

Author SHA1 Message Date
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
abb128
69f6c29860 Add license 2023-08-15 19:44:22 +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
5ddbcc3eea Fix CI 2023-08-11 23:32:09 +03:00
abb128
b7fd15bffc Add debug statement to CI 2023-08-11 23:20:16 +03:00
abb128
6b42077940 Add build CI 2023-08-11 23:03:20 +03:00
abb128
9e935b05a2 Add README 2023-08-11 22:55:05 +03:00
abb128
434f8b6b27 Initial working build of fork 2023-07-06 21:57:49 +03:00
Treehugger Robot
d847619a2b Merge "Remove unused variables" am: fe0c000f40 am: 752ef94cfc
Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2445925

Change-Id: I2bae39a9a7e659300a47203f1b4c99a94c386513
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-20 08:50:49 +00:00
Treehugger Robot
752ef94cfc Merge "Remove unused variables" am: fe0c000f40
Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2445925

Change-Id: I996fc354112500e41977b93521e9050bdccce81b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-20 08:13:57 +00:00
Treehugger Robot
fe0c000f40 Merge "Remove unused variables" 2023-03-20 07:44:15 +00:00
Jing Mike
03eef94a8d Remove unused variables
Since some variables with module LatinIME are defined but not used,
when compiled with build combination "sdk_pc_x86_64-userdebug" and
build command "mmm packages/inputmethods/LatinIME", the following
code lines will be reported that "variable 'XXX' set but not used".
(should be similar for all the other build combinations)

Repeated 10 times for each:
terminal_position_lookup_table.cpp:74:9 removedEntryCount
terminal_position_lookup_table.cpp:85:9 removedEntryCount
proximity_info_state_utils.cpp:493:9 tempTime
trie_map.cpp:56:9 unusedRegionSize
suggestion_results.cpp💯9 index

Repeated 80+ times:
proximity_info_utils.h:75:25 proximityChar

With this patch we are removing some of the unused variables and
putting the C++ 17 attribute [[maybe_unused]] to the others which
are used for logging. Then all the related build warnings have been
eliminated.

Test: mmm packages/inputmethods/LatinIME, presubmit check.

Change-Id: Ia66766322d6ae8a010b1cb55cc22993fbc6d012c
Signed-off-by: Jing Mike <jingyangliu@eswincomputing.com>
2023-03-19 10:00:01 +00:00
Treehugger Robot
ce22ebc557 Merge "Fix errorprone warnings that should be errors" am: 6d585ed76c am: 78a43f6c9c
Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2256807

Change-Id: Ie8d7a908adb83e2556d7b2d27beecc0e29978173
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 20:51:27 +00:00
Treehugger Robot
78a43f6c9c Merge "Fix errorprone warnings that should be errors" am: 6d585ed76c
Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2256807

Change-Id: I7d8662bdc880e331cf2d912dae7cc18b70743975
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 20:23:33 +00:00
Treehugger Robot
6d585ed76c Merge "Fix errorprone warnings that should be errors" 2022-10-17 19:46:29 +00: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
2549e988db Merge "Fix array-related errorprone warnings" am: 370d41de92 am: 3a06d6180b am: e546038cdf am: 51466cffd6
Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2186538

Change-Id: Ib3878ed212ae13dddd9761aefda2960cb7defbb4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 04:12:11 +00:00
Treehugger Robot
51466cffd6 Merge "Fix array-related errorprone warnings" am: 370d41de92 am: 3a06d6180b am: e546038cdf
Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2186538

Change-Id: I609ca003a48f3eb2a323ed456fc54d5754bd694f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 03:43:13 +00:00
Treehugger Robot
e546038cdf Merge "Fix array-related errorprone warnings" am: 370d41de92 am: 3a06d6180b
Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2186538

Change-Id: Ic25b4e765f6612409aa840c7e4dc392d99fb254a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 01:42:59 +00:00
Treehugger Robot
3a06d6180b Merge "Fix array-related errorprone warnings" am: 370d41de92
Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2186538

Change-Id: I8c9cc9d63affa572ca6bf79ff156f69f7ee96db1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 01:13:44 +00:00
Treehugger Robot
370d41de92 Merge "Fix array-related errorprone warnings" 2022-08-24 00:40:18 +00:00
Xin Li
50ddfe15d1 [automerger skipped] Merge "DO NOT MERGE - Merge Android 13" am: 7005e0c12f -s ours am: b34de510ec -s ours am: a8004dc404 -s ours
am skip reason: Merged-In Ib4b72e0a277d8b2fb78837bed5d2e9cccd819a07 with SHA-1 f134ea3848 is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2186832

Change-Id: Ifc14b063977916d54bec38aa1d4f7f09bbe9d401
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-17 00:23:42 +00:00
Xin Li
7aa0255dc4 [automerger skipped] DO NOT MERGE - Merge Android 13 am: 2012c03ae7 -s ours am: 9238ba585c -s ours am: c17909460e -s ours
am skip reason: Merged-In Ib4b72e0a277d8b2fb78837bed5d2e9cccd819a07 with SHA-1 f134ea3848 is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2186832

Change-Id: I35d476cbc57a934f0ba08a3ef203a1ec42ad7cd5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-17 00:23:40 +00:00
Xin Li
a8004dc404 [automerger skipped] Merge "DO NOT MERGE - Merge Android 13" am: 7005e0c12f -s ours am: b34de510ec -s ours
am skip reason: Merged-In Ib4b72e0a277d8b2fb78837bed5d2e9cccd819a07 with SHA-1 f134ea3848 is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2186832

Change-Id: I0aa5940a87d0a9cf5eb40d8d3841f0d0e6a7c310
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 23:37:31 +00:00
Xin Li
c17909460e [automerger skipped] DO NOT MERGE - Merge Android 13 am: 2012c03ae7 -s ours am: 9238ba585c -s ours
am skip reason: Merged-In Ib4b72e0a277d8b2fb78837bed5d2e9cccd819a07 with SHA-1 f134ea3848 is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2186832

Change-Id: I210262f2fe9ad726ae1c4c9a832ec6db5fd76a80
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 23:37:29 +00:00
Xin Li
b34de510ec [automerger skipped] Merge "DO NOT MERGE - Merge Android 13" am: 7005e0c12f -s ours
am skip reason: Merged-In Ib4b72e0a277d8b2fb78837bed5d2e9cccd819a07 with SHA-1 f134ea3848 is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2186832

Change-Id: I2c79acfa20a9200db266fd982b142905ec8cf0b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 23:10:23 +00:00
Xin Li
9238ba585c [automerger skipped] DO NOT MERGE - Merge Android 13 am: 2012c03ae7 -s ours
am skip reason: Merged-In Ib4b72e0a277d8b2fb78837bed5d2e9cccd819a07 with SHA-1 f134ea3848 is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2186832

Change-Id: Ifa4bae36305d050c1a6b5a569ad471f85a9d51d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 23:10:22 +00:00
Xin Li
7005e0c12f Merge "DO NOT MERGE - Merge Android 13" 2022-08-16 19:08:18 +00:00
Xin Li
2012c03ae7 DO NOT MERGE - Merge Android 13
Bug: 242648940
Merged-In: Ib4b72e0a277d8b2fb78837bed5d2e9cccd819a07
Change-Id: Id6eef7910c3955e9dd6c49749406520d86e73dad
2022-08-15 22:04:51 -07:00