Commit graph

14542 commits

Author SHA1 Message Date
7aab3f949e make gradle buildable
many tears were shed in this process
2022-03-23 13:52:05 +01: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
Bob Badour
f3d9532a32 [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
2021-02-17 09:46:27 -08:00
Xin Li
98755ccae9 Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: Ic072c06935a52c466d43fe4787cee7c7da73756c
Change-Id: Ia56c511912ee213555b170faf292f1640d90cb75
2020-08-27 10:16:59 -07:00
Adrian Roos
444da56414 Update LatinIME to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Bug: 162536543
Change-Id: I5df9e60ec6caa2e1e3253532c2b59b74adfc1749
2020-08-12 13:07:02 +02:00
Jeff Sharkey
1d9bf42009 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Bug: 161896447
Change-Id: I171bc299e660f96f20041a67a3052bd8a2ed781c
2020-07-31 09:33:35 -06:00
Seigo Nonaka
f53e034a17 Update language to comply with Android’s inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Bug: 161896447
Test: tapas LatinIME && m
Change-Id: I2ffb39ff70f61e579b62761d3da526a545dead1f
2020-07-22 14:08:35 -07:00
Treehugger Robot
0428fa5453 Merge "Add an exported flag in manifest" am: 2e60c56ea9 am: 6f1b6d7a94
Change-Id: Ia32701aa3b3b6b6eb0f87df614ed68ba75d1d385
2020-03-31 21:51:48 +00:00
Ashwini Oruganti
7c1b5497f2 Add an exported flag in manifest
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for S+. This change adds the value reflecting the previous
default to the manifest.

These changes were made using an automated tool, the xml file may be
reformatted slightly creating a larger diff. The only "real" change is
the addition of "android:exported" to activities, services, and
receivers that have one or more intent-filters.

Bug: 150232615
Test: TH
Exempt-From-Owner-Approval: mechanical refactoring
Change-Id: Idc43e262fd2911e19f0bcd20add29e4c3392d3da
2020-03-23 16:23:26 -07:00
Automerger Merge Worker
f82d822b42 Merge "Implement text entry key API for accessibility services in AOSP Keyboard" am: c3eafcb756 am: fc2bc10530
Change-Id: Ie3e94bbd0401ddabb489b0bcf6e7f6fc6be8f0c0
2019-12-04 17:12:21 +00:00
Ryan Lin
c3eafcb756 Merge "Implement text entry key API for accessibility services in AOSP Keyboard" 2019-12-04 08:41:04 +00:00
Alex Henrie
b012dd4284 Merge "Support polytonic Greek diacritics in the Greek keyboard" am: f64e2769b7 am: fa276af7df
am: 9b45f98e23

Change-Id: I9e2f744204ceae36d092d2b95526e5c956f7c14f
2019-11-25 19:00:33 -08:00
Alex Henrie
fa276af7df Merge "Support polytonic Greek diacritics in the Greek keyboard"
am: f64e2769b7

Change-Id: I1a18716ff46f0d9aae119941d426ea1d778a5407
2019-11-25 18:55:11 -08:00
Treehugger Robot
f64e2769b7 Merge "Support polytonic Greek diacritics in the Greek keyboard" 2019-11-26 02:42:31 +00:00
TreeHugger Robot
0ef462a0d3 Merge "Import translations. DO NOT MERGE" 2019-11-10 15:37:44 +00:00
TreeHugger Robot
b8b6774841 Merge "Import translations. DO NOT MERGE" 2019-11-10 15:37:32 +00:00
TreeHugger Robot
3e9889e0bf Merge "Import translations. DO NOT MERGE" 2019-11-10 15:33:31 +00:00
Bill Yi
3f9169604b Import translations. DO NOT MERGE
Change-Id: I2688babc5d396ae65481a97b186e52c7c3dafbc9
Auto-generated-cl: translation import
2019-11-10 03:00:17 -08:00
Bill Yi
8027df8ddb Import translations. DO NOT MERGE
Change-Id: I237d2997fb1314302be85530c6b6bc710426b36b
Auto-generated-cl: translation import
2019-11-10 02:59:09 -08:00
Bill Yi
c7d75c69d8 Import translations. DO NOT MERGE
Change-Id: Iee2e651ebfd028b235b428939964b1b532427e78
Auto-generated-cl: translation import
2019-11-10 02:57:21 -08:00
Bill Yi
edb5207e2b Import translations. DO NOT MERGE
Change-Id: I5f46ed0024412fbf2b1e5d549ac4f5747ba10ead
Auto-generated-cl: translation import
2019-11-10 02:56:17 -08:00
Bill Yi
20879d29dc Import translations. DO NOT MERGE
Change-Id: I096635ffb38bb645e04c4ed143cece7ce68b6ddc
Auto-generated-cl: translation import
2019-10-30 22:14:41 -07:00
Bill Yi
8bb8bf356b Import translations. DO NOT MERGE
Change-Id: Ia7e18aa418d665e934f39dfbebb4696a10fd129a
Auto-generated-cl: translation import
2019-10-27 11:34:47 -07:00
Bill Yi
6c130fb1fa Import translations. DO NOT MERGE
Change-Id: I82449a197920db5447cdf46cc3f7f4f2549d949d
Auto-generated-cl: translation import
2019-10-19 03:47:32 -07:00
Alex Henrie
0cf4376826 Support polytonic Greek diacritics in the Greek keyboard
Although modern Greek is typically written with only acute accent marks,
polytonic diacritics are still used by the Greek orthodox church, the
Greek newspaper Estia, and students of classical Greek texts. Supporting
these special characters is helpful to all of those groups.

Note that for the short vowels (epsilon, upsilon, iota, and omicron) all
of the diacritics permitted on lowercase letters are also permitted on
their uppercase forms. However, for the long vowels (alpha, eta, and
omega) the diacritics permitted on uppercase letters are a subset of the
diacritics permitted on lowercase letters. That's just how Greek is.

Test: Manually turned on the Greek (Greece) keyboard in the aosp_x86-eng
emulator and tried out all the new characters with Shift, with Shift
Lock, and without any modifiers.

Bug: 142007431
Change-Id: Iec4a82cab02aea5176721e8447f7dfdba46bacb3
2019-10-13 17:36:45 -06:00
TreeHugger Robot
d3c51db948 Merge "Import translations. DO NOT MERGE" 2019-10-12 19:11:24 +00:00
TreeHugger Robot
f080039f36 Merge "Import translations. DO NOT MERGE" 2019-10-12 18:47:41 +00:00
TreeHugger Robot
bcad66fa53 Merge "Import translations. DO NOT MERGE" 2019-10-12 18:33:01 +00:00
TreeHugger Robot
4d4586f743 Merge "Import translations. DO NOT MERGE" 2019-10-12 18:17:28 +00:00
TreeHugger Robot
e5046427ab Merge "Import translations. DO NOT MERGE" 2019-10-12 18:09:38 +00:00
TreeHugger Robot
0b18cfe534 Merge "Import translations. DO NOT MERGE" 2019-10-12 18:04:38 +00:00
Bill Yi
1aa76ff54d Import translations. DO NOT MERGE
Change-Id: Ic64f5bdff1583cc41c1ce0d34195503671708c9b
Auto-generated-cl: translation import
2019-10-12 07:27:53 -07:00
Bill Yi
a1b74675d0 Import translations. DO NOT MERGE
Change-Id: I1658ecf392971a2a9ddc388b5cf3bcc741e524b3
Auto-generated-cl: translation import
2019-10-12 07:21:54 -07:00
Bill Yi
4e38f179e5 Import translations. DO NOT MERGE
Change-Id: Ib66698524a9cb6c31aedb7b2654bcdae4ee9c0bf
Auto-generated-cl: translation import
2019-10-12 07:11:02 -07:00
Bill Yi
04ed37a7cb Import translations. DO NOT MERGE
Change-Id: Ic47ec88c6b88d291d340ab2573a034b872ccdf7f
Auto-generated-cl: translation import
2019-10-12 06:58:37 -07:00
Bill Yi
c640713ba2 Import translations. DO NOT MERGE
Change-Id: Id69b811277253a6bde5bcbc3c3a35f2ef65af4cd
Auto-generated-cl: translation import
2019-10-12 06:52:46 -07:00
Bill Yi
2c45150c6f Import translations. DO NOT MERGE
Change-Id: I095af4cc229dbf1952977730ea354b36e5ebe41a
Auto-generated-cl: translation import
2019-10-12 06:47:16 -07:00
Bill Yi
cb11369e26 Import translations. DO NOT MERGE
Change-Id: I0473ea031a34f87b909238ddce678796dbf8252b
Auto-generated-cl: translation import
2019-10-12 06:41:33 -07:00
TreeHugger Robot
ae3c162be8 Merge "Import translations. DO NOT MERGE" 2019-10-05 07:49:13 +00:00
Bill Yi
7233b4238b Import translations. DO NOT MERGE
Change-Id: Ic52d7cbe0bb3662fa2b25861fbac2e231c2c321b
Auto-generated-cl: translation import
2019-10-04 22:34:24 -07:00
Bill Yi
bbbcf57c5c Import translations. DO NOT MERGE
Change-Id: I88c23b00925c204c6ed9c817ff41241f58ee517a
Auto-generated-cl: translation import
2019-10-04 22:34:09 -07:00
TreeHugger Robot
6a40932ee2 Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2019-09-25 14:18:45 +00:00
TreeHugger Robot
9cee1b60eb Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2019-09-25 14:11:15 +00:00
TreeHugger Robot
54bcf4c593 Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2019-09-25 14:11:13 +00:00
TreeHugger Robot
6e683f824a Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2019-09-25 14:07:40 +00:00
TreeHugger Robot
355dfa6850 Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2019-09-25 13:58:13 +00:00
Bill Yi
71c0e9adab Import translations. DO NOT MERGE
Change-Id: Ib5d118c530a2f1a8a7671dcd5e5c3b77526b2582
Auto-generated-cl: translation import
2019-09-24 22:10:45 -07:00