Commit Graph

42188 Commits

Author SHA1 Message Date
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
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
Xin Li
ee92039436 [automerger skipped] Merge tm-dev-plus-aosp-without-vendor@8763363 am: 0f20a65101 -s ours am: 612860d449 -s ours am: 3b9989cf61 -s ours
am skip reason: Merged-In Ib4b72e0a277d8b2fb78837bed5d2e9cccd819a07 with SHA-1 f134ea3848 is already in history

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

Change-Id: Ic73fb15f7f2918bd2a5bb5f318abad607240209b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-30 00:02:15 +00:00
Xin Li
3b9989cf61 [automerger skipped] Merge tm-dev-plus-aosp-without-vendor@8763363 am: 0f20a65101 -s ours am: 612860d449 -s ours
am skip reason: Merged-In Ib4b72e0a277d8b2fb78837bed5d2e9cccd819a07 with SHA-1 f134ea3848 is already in history

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

Change-Id: I8e3947377fc021574b7d21f76873f4c119e355ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-29 22:56:32 +00:00
Xin Li
612860d449 [automerger skipped] Merge tm-dev-plus-aosp-without-vendor@8763363 am: 0f20a65101 -s ours
am skip reason: Merged-In Ib4b72e0a277d8b2fb78837bed5d2e9cccd819a07 with SHA-1 f134ea3848 is already in history

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

Change-Id: I096e09860be31172ba86e1770c15b59013b8af2d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-29 22:13:02 +00:00
Xin Li
0f20a65101 Merge tm-dev-plus-aosp-without-vendor@8763363
Bug: 236760014
Merged-In: Ib4b72e0a277d8b2fb78837bed5d2e9cccd819a07
Change-Id: I9d0e133b64c2d6afb795eb049c58bc2ff5ab79b5
2022-06-27 23:39:16 +00:00
Ming-Shin Lu
7e26debb41 EditTextVariations: create a IME focusable overlay for test am: f134ea3848 am: 1fbc8de4b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/17759925

Change-Id: I82dd9d78d3e802f7c65113d2a126ab82d3de9663
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 12:09:07 +00:00
Ming-Shin Lu
1fbc8de4b7 EditTextVariations: create a IME focusable overlay for test am: f134ea3848
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/17759925

Change-Id: I42513112e3cdc14629874ab2cd424b62d37a694d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 11:54:15 +00:00
Ming-Shin Lu
f134ea3848 EditTextVariations: create a IME focusable overlay for test
Bug: 228766370
Test: manual by using EditorTextVariations tool
     1) make and install EditTextVariations
     2) Enable "Settings > Display over other apps" for
        EditTextVariations
     3) Launch EditTextVariations from all apps
     4) Menu -> Show IME focuable overlay
     5) Go to home screen by gesture or pressing home key
     6) Launch any app (e.g. Chrome) and tap the editor
     7) Expect IME can show up

Change-Id: Ib4b72e0a277d8b2fb78837bed5d2e9cccd819a07
2022-04-21 16:42:23 +08:00
Xin Li
be5ec69242 [automerger skipped] Merge "Merge Android 12L" am: 85ef644a8a -s ours am: c932faf4df -s ours am: a9786e84d9 -s ours
am skip reason: Merged-In Iea002572895dfdb74f72b5d6fe7a1efbd4139cac with SHA-1 6454ff57c1 is already in history

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

Change-Id: I80f31beb6bc22130874b31d172b2fd60cc4a5d5b
2022-03-09 10:06:07 +00:00
Xin Li
eef2791684 [automerger skipped] Merge Android 12L am: 810578896e -s ours am: d4cc9ab2e5 -s ours am: 39f406f8a0 -s ours
am skip reason: Merged-In Iea002572895dfdb74f72b5d6fe7a1efbd4139cac with SHA-1 6454ff57c1 is already in history

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

Change-Id: I043e801e312f24aa88bc0d318b5a3f7989e51409
2022-03-09 10:02:46 +00:00
Xin Li
a9786e84d9 [automerger skipped] Merge "Merge Android 12L" am: 85ef644a8a -s ours am: c932faf4df -s ours
am skip reason: Merged-In Iea002572895dfdb74f72b5d6fe7a1efbd4139cac with SHA-1 6454ff57c1 is already in history

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

Change-Id: I44c6f56f70b925b34509b1b82c969edf7ad8f139
2022-03-08 11:07:39 +00:00