aboutsummaryrefslogtreecommitdiffstats
path: root/java (follow)
Commit message (Expand)AuthorAgeFilesLines
* Baseline NewApi issues•••NewApi is a lint check that you don't call framework methods that were introduced in versions later than your min_sdk_version. We want to make this an error, so we're baselineing all existing issues. This cl was generated automatically, by taking all the NewApi issues from the reference baselines, and all the non-NewApi issues from the existing checked in baselines. Bug: 268261262 Test: Presubmits Change-Id: If1b1214da673fec9f1e8bede86d5780a6b5f347b Cole Faust2024-01-101-13/+22
* List baseline_filename on modules that are implititly using it•••lintable modules currently pick up files named "lint-baseline.xml" to use as the lint baseline implicitly. This is confusing because you could end up using the baseline files in more modules than intended. Lint also has a feature where it requests you remove unnecessary findings from the baseline file, so something could be necessary for one module, but unnecessary for another that accidentally picked up the baseline. We're removing the implicit detection of the baseline file, which requires all modules using it to list the baseline file explicitly. Bug: 272769514 Test: Presubmits Change-Id: Ib640f0642fbb12b96309ce518a505376dda01cb4 Cole Faust2023-12-201-0/+3
* Merge "Fix erroneous LXX theme text color mappings" into mainTreehugger Robot2023-12-071-2/+2
|\
| * Fix erroneous LXX theme text color mappings•••keyTextInactivatedColor and functionalTextColor were wrongly assigned, eventhough correct definitions already exist. Change-Id: I06694447ee22fb609267aa2256a36a2585ad6b3f Georg Veichtlbauer2023-08-231-2/+2
* | Merge "Add required flag to receivers in LatinIME" into udc-devMichael Groover2023-03-141-4/+19
|\ \
| * | Add required flag to receivers in LatinIME•••Android T allows apps to declare a runtime receiver as not exported by invoking registerReceiver with a new RECEIVER_NOT_EXPORTED flag; receivers registered with this flag will only receive broadcasts from the platform and the app itself. However to ensure developers can properly protect their receivers, all apps targeting U and registering a receiver for non-system broadcasts must specify either the exported or not exported flag when invoking registerReceiver; if one of these flags is not provided, the platform will throw a SecurityException. This commit updates the dictionary receivers with the RECEIVER_NOT_EXPORTED flag since these are only sent from the local app. The HIDE_SOFT_INPUT receiver is flagged with the RECEIVER_EXPORTED flag since it can be sent by any app with the corresponding permission. Bug: 234659204 Test: Build Change-Id: I2b9a1360e0eb1c1965c07cc71dca9f11eb153517 Michael Groover2023-03-091-4/+19
* | | Baseline NewApi issues•••NewApi was recently updated to support linting methods in the system, module_lib, and system_server sdks, and was demoted to a warning due to the new issues it finds. Baseline all the new issues that NewApi can be made an error again. These cls were generated automatically by a script that copied the NewApi issues from the reference baselines. Bug: 268261262 Test: m lint-check Change-Id: I99bb901018da30f39cf799ac6c939863266cee34 Cole Faust2023-03-091-32/+12
|/ /
* | Merge "Fix errorprone warnings that should be errors" am: 6d585ed76c am: 78a4...•••Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2256807 Change-Id: I0b54d410fdabe3424e0eff31153048e474e93923 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> Treehugger Robot2022-10-172-2/+2
|\|
| * 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 Cole Faust2022-10-172-2/+2
* | Declaring package visibility needs for LatinIME•••Bug: 179783492 Bug: 179783499 Bug: 216823971 Test: atest LatinIMETests Change-Id: I309ffefe261049a5d3abce8e16829cd66f9123dc Rhed Jao2022-09-211-1/+9
* | Merge "Fix array-related errorprone warnings" am: 370d41de92 am: 3a06d6180b a...•••Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/2186538 Change-Id: Idd10a3df6c0a34fe3d14d493a8af5b64338f298f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> Treehugger Robot2022-08-241-1/+3
|\|
| * Merge "Fix array-related errorprone warnings"Treehugger Robot2022-08-241-1/+3
| |\
| | * 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 Cole Faust2022-08-151-1/+3
* | | Make DownloadOverMeteredDialog not exported•••The DownloadOverMeteredDialog is exported which may allow a app to prompt this dialog to ask the user to download dictionary. Since the app can control the download dictionary size and may show an incorrect size for user to make security concern. Make the activity not exported for apps to launch. Bug: 236688064 Test: Manual test as follow steps: 1. lunch aosp_bramble-userdebug and flash 2. Verify the AOSP keyboard work properly 3. Launch the PoC test app 4. Verify the DownloadOverMeteredDialog cannot be launched Change-Id: I9be92ba2813e7aaad0ef10555f585c5c8a25361f Wilson Wu2022-08-101-1/+1
|/ /
* | Remove unused method for dictionarypack•••Remove the showDictionaryAvailableNotification method since there is no module use it. Bug: 209479751 Test: presubmit Change-Id: I4c88b4a2d0cb36761d9102ce35260f93303625d9 Wilson Wu2022-02-231-54/+0
* | 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 Lais Andrade2022-01-171-2/+1
|/
* 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 Ming-Shin Lu2022-01-121-19/+37
* 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 Ming-Shin Lu2021-06-181-1/+2
* 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 360052f3044eee612af1cbfcd1f2e202096e3541) Yohei Yukawa2021-06-152-4/+4
* 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 Pedro Loureiro2021-04-121-0/+81
* [LSC] Add LOCAL_LICENSE_KINDS to packages/inputmethods/LatinIME•••Added SPDX-license-identifier-Apache-2.0 to: Android.bp common/Android.bp java/Android.bp native/dicttoolkit/Android.bp native/jni/Android.bp tests/Android.bp tools/EditTextVariations/Android.bp tools/dicttool/Android.bp tools/make-keyboard-text/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I440008bffac5c97a2497970af377a9d03262b6d8 Bob Badour2021-02-171-0/+19
* Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)•••Bug: 166295507 Merged-In: Ic072c06935a52c466d43fe4787cee7c7da73756c Change-Id: Ia56c511912ee213555b170faf292f1640d90cb75 Xin Li2020-08-27580-153463/+153861
|\
| * Merge "Add an exported flag in manifest" am: 2e60c56ea9 am: 6f1b6d7a94•••Change-Id: Ia32701aa3b3b6b6eb0f87df614ed68ba75d1d385 Treehugger Robot2020-03-311-90/+103
| |\
| * \ Merge "Implement text entry key API for accessibility services in AOSP Keyboa...•••Change-Id: Ie3e94bbd0401ddabb489b0bcf6e7f6fc6be8f0c0 Automerger Merge Worker2019-12-043-16/+4
| |\ \
| * \ \ Merge "Support polytonic Greek diacritics in the Greek keyboard" am: f64e2769...•••am: 9b45f98e23 Change-Id: I9e2f744204ceae36d092d2b95526e5c956f7c14f Alex Henrie2019-11-253-27/+199
| |\ \ \
| * \ \ \ Merge "Import translations. DO NOT MERGE"TreeHugger Robot2019-11-101-1/+1
| |\ \ \ \
| | * | | | Import translations. DO NOT MERGE•••Change-Id: Iee2e651ebfd028b235b428939964b1b532427e78 Auto-generated-cl: translation import Bill Yi2019-11-101-1/+1
| * | | | | Merge "Import translations. DO NOT MERGE"TreeHugger Robot2019-11-101-1/+1
| |\ \ \ \ \
| | * | | | | Import translations. DO NOT MERGE•••Change-Id: I5f46ed0024412fbf2b1e5d549ac4f5747ba10ead Auto-generated-cl: translation import Bill Yi2019-11-101-1/+1
| | |/ / / /
| * | | | | Merge "Import translations. DO NOT MERGE"TreeHugger Robot2019-11-102-6/+6
| |\ \ \ \ \
| | * | | | | Import translations. DO NOT MERGE•••Change-Id: I2688babc5d396ae65481a97b186e52c7c3dafbc9 Auto-generated-cl: translation import Bill Yi2019-11-102-6/+6
| | |/ / / /
| * / / / / Import translations. DO NOT MERGE•••Change-Id: I237d2997fb1314302be85530c6b6bc710426b36b Auto-generated-cl: translation import Bill Yi2019-11-101-1/+1
| |/ / / /
| * | | | Import translations. DO NOT MERGE•••Change-Id: I096635ffb38bb645e04c4ed143cece7ce68b6ddc Auto-generated-cl: translation import Bill Yi2019-10-301-1/+1
| * | | | Import translations. DO NOT MERGE•••Change-Id: Ia7e18aa418d665e934f39dfbebb4696a10fd129a Auto-generated-cl: translation import Bill Yi2019-10-271-1/+1
| * | | | Import translations. DO NOT MERGE•••Change-Id: I82449a197920db5447cdf46cc3f7f4f2549d949d Auto-generated-cl: translation import Bill Yi2019-10-191-2/+2
| * | | | Merge "Import translations. DO NOT MERGE"TreeHugger Robot2019-10-1282-115945/+115945
| |\ \ \ \
| | * | | | Import translations. DO NOT MERGE•••Change-Id: Ic47ec88c6b88d291d340ab2573a034b872ccdf7f Auto-generated-cl: translation import Bill Yi2019-10-1282-115945/+115945
| * | | | | Merge "Import translations. DO NOT MERGE"TreeHugger Robot2019-10-1283-83/+83
| |\ \ \ \ \
| | * | | | | Import translations. DO NOT MERGE•••Change-Id: Id69b811277253a6bde5bcbc3c3a35f2ef65af4cd Auto-generated-cl: translation import Bill Yi2019-10-1283-83/+83
| | |/ / / /
| * | | | | Merge "Import translations. DO NOT MERGE"TreeHugger Robot2019-10-1284-15876/+15876
| |\ \ \ \ \
| | * | | | | Import translations. DO NOT MERGE•••Change-Id: Ic64f5bdff1583cc41c1ce0d34195503671708c9b Auto-generated-cl: translation import Bill Yi2019-10-1284-15876/+15876
| | |/ / / /
| * | | | | Merge "Import translations. DO NOT MERGE"TreeHugger Robot2019-10-1283-664/+664
| |\ \ \ \ \
| | * | | | | Import translations. DO NOT MERGE•••Change-Id: I0473ea031a34f87b909238ddce678796dbf8252b Auto-generated-cl: translation import Bill Yi2019-10-1283-664/+664
| | |/ / / /
| * | | | | Merge "Import translations. DO NOT MERGE"TreeHugger Robot2019-10-1283-332/+332
| |\ \ \ \ \
| | * | | | | Import translations. DO NOT MERGE•••Change-Id: I095af4cc229dbf1952977730ea354b36e5ebe41a Auto-generated-cl: translation import Bill Yi2019-10-1283-332/+332
| | |/ / / /
| * | | | | Merge "Import translations. DO NOT MERGE"TreeHugger Robot2019-10-1282-14678/+14678
| |\ \ \ \ \
| | * | | | | Import translations. DO NOT MERGE•••Change-Id: Ib66698524a9cb6c31aedb7b2654bcdae4ee9c0bf Auto-generated-cl: translation import Bill Yi2019-10-1282-14678/+14678
| | |/ / / /
| * / / / / Import translations. DO NOT MERGE•••Change-Id: I1658ecf392971a2a9ddc388b5cf3bcc741e524b3 Auto-generated-cl: translation import Bill Yi2019-10-1283-6074/+6074
| |/ / / /
| * | | | Merge "Import translations. DO NOT MERGE"TreeHugger Robot2019-10-051-1/+1
| |\ \ \ \
| | * | | | Import translations. DO NOT MERGE•••Change-Id: Ic52d7cbe0bb3662fa2b25861fbac2e231c2c321b Auto-generated-cl: translation import Bill Yi2019-10-041-1/+1