Commit Graph

14746 Commits

Author SHA1 Message Date
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
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
Bill Yi
d7efca3250 Import translations. DO NOT MERGE
Change-Id: Ic8c8b74c22d74c43897762200e7b0c925ce1e5c0
Auto-generated-cl: translation import
2019-09-24 22:10:05 -07:00
Bill Yi
5ac7c60248 Import translations. DO NOT MERGE
Change-Id: I35067db3dbae5228b51d48383eae67eba48a6717
Auto-generated-cl: translation import
2019-09-24 22:09:07 -07:00
Bill Yi
0cdbc7b3b9 Import translations. DO NOT MERGE
Change-Id: I8735b7149146b06e4f2df15c746c24ca83b97b94
Auto-generated-cl: translation import
2019-09-24 22:08:29 -07:00
Bill Yi
3f805692b0 Import translations. DO NOT MERGE
Change-Id: I25500c09630cd8037896424a30086207d489467b
Auto-generated-cl: translation import
2019-09-24 22:07:17 -07:00
Bill Yi
1cad92ede4 Import translations. DO NOT MERGE
Change-Id: I15b1a2d1ad1b939ef39ef2484f779668c54a1bf8
Auto-generated-cl: translation import
2019-09-24 22:06:40 -07:00
TreeHugger Robot
b7b8ce6c9b Merge "Import translations. DO NOT MERGE" 2019-09-22 20:06:36 +00:00
Bill Yi
5fe4d13897 Import translations. DO NOT MERGE
Change-Id: I57b997f66c345b0c0514e9c3c7ed7991ea6fc483
Auto-generated-cl: translation import
2019-09-22 03:15:20 -07:00
Bill Yi
02f3f105e1 Import translations. DO NOT MERGE
Change-Id: I65c22d7115304aa452b9d292d6f51967e4f89abe
Auto-generated-cl: translation import
2019-09-22 03:15:05 -07:00
ryanlwlin
389e849a42 Implement text entry key API for accessibility services in AOSP Keyboard
From Android Q, Talkback supports lift-to-type feature if the node claims
it is a text entry key via setTextEntryKey(). We implement this API to
show how this API is applied.

This CL uses AccessibilityNodeInfoCompat instead of AccessibilityNodeInfo
so that the same functionality can be used even on pre-Q devices when
the AccessibilityService supports it.
With that, this CL removes the legacy code of lift-to-type feature,
which was implemented in the AOSP Keyboard side.

Bug: 131644969

Test: manual - enable Talkback suporting lift-to-type,check Talback
perform click action when finger is lifted.

Change-Id: I1ec2928f5a9ba0bde999b09d4c0b9c922f179a2a
2019-09-17 20:42:45 +08:00
lumark
87f14f1e18 Create display context when switching IME to new display for AOSP IME
To address IME service context's Resources / DisplayMetrics update
when switching IME window to another display after onConfigurationChange.

We use Context#createDisplayContext to create display specific context when
display changed, to ensure soft keyboard can re-layout with correct resources.

Bug: 126930163
Test: manual with AOSP IME as below steps:
     1) Settings > Developer options > enable "Simulated Display" & "Force desktop mode".
     2) Reboot device
     3) Launch app (i.e. Contacts) with bluetooth or usb mouse in Simulated display.
     4) Tap EditText on app to see see if IME window layout correctly on simulated display.
     5) Launch app (i.e Files) on primary display.
     6) Tap EditText on app to see if IME window layout correctly on primary display.

Change-Id: I0ed6a079af1ed90c75fee1d36d5ce3ef3c41f8ed
Merged-In: I0ed6a079af1ed90c75fee1d36d5ce3ef3c41f8ed
2019-09-11 02:02:48 +00:00
TreeHugger Robot
fe3e93b576 Merge "Import translations. DO NOT MERGE" 2019-09-09 20:13:39 +00:00
Bill Yi
2e3edf9b02 Import translations. DO NOT MERGE
Change-Id: If6d07090582c762f5c79dcefbbcc4aeb377632b1
Auto-generated-cl: translation import
2019-09-09 11:34:48 -07:00
Bill Yi
e330aac59e Import translations. DO NOT MERGE
Change-Id: I6f8eb4be2955eaebbd85acd61b770c19d64c3dc0
Auto-generated-cl: translation import
2019-09-09 11:34:34 -07:00
Bill Yi
6ce25ae20b Import translations. DO NOT MERGE
Change-Id: I0ad8850037ed50c05776751727c707231671f520
Auto-generated-cl: translation import
2019-08-30 10:51:13 -07:00
Bill Yi
35ae1b2a57 Import translations. DO NOT MERGE
Change-Id: I80a179ff64845d9e2d5783f5aa0f1db0dfc4cd15
Auto-generated-cl: translation import
2019-08-24 14:00:51 -07:00
Bill Yi
450f30db4d Import translations. DO NOT MERGE
Change-Id: Ie360fef58d520aab88d9ac91fcd241f9dd2dbbb2
Auto-generated-cl: translation import
2019-07-29 12:05:20 -07:00
TreeHugger Robot
4fd7107c8b Merge "Import translations. DO NOT MERGE" 2019-07-21 06:42:29 +00:00
Bill Yi
87ad4c979f Import translations. DO NOT MERGE
Change-Id: Ice306f134cebf3e690c82a7b2d1323e3021e7980
Auto-generated-cl: translation import
2019-07-20 01:50:32 -07:00
Bill Yi
317f27da90 Import translations. DO NOT MERGE
Change-Id: Ia43c3b9683afca77e14a783a540bb0544476cb9d
Auto-generated-cl: translation import
2019-07-20 01:50:16 -07:00
TreeHugger Robot
4966ccb748 Merge "Import translations. DO NOT MERGE" 2019-07-11 20:40:24 +00:00
TreeHugger Robot
9e52aa593f Merge "Import translations. DO NOT MERGE" 2019-07-11 20:20:31 +00:00
Bill Yi
2c4b9f4c4e Import translations. DO NOT MERGE
Change-Id: Ie717b206a48323525d983243dff3f369498e8e2e
Auto-generated-cl: translation import
2019-07-10 23:25:35 -07:00
Bill Yi
d5104c99b8 Import translations. DO NOT MERGE
Change-Id: Ib0a179d42aaa9afe0d3dcd74526e5bfef976f39f
Auto-generated-cl: translation import
2019-07-10 23:25:28 -07:00
Bill Yi
957770b52f Import translations. DO NOT MERGE
Change-Id: I61256545c68787133dcb179078e6c0a2dad09437
Auto-generated-cl: translation import
2019-07-10 23:25:17 -07:00
lumark
4d464ec07d Create display context when switching IME to new display for AOSP IME
To address IME service context's Resources / DisplayMetrics update
when switching IME window to another display after onConfigurationChange.

We use Context#createDisplayContext to create display specific context when
display changed, to ensure soft keyboard can re-layout with correct resources.

Bug: 126930163
Test: manual with AOSP IME as below steps:
     1) Settings > Developer options > enable "Simulated Display" & "Force desktop mode".
     2) Reboot device
     3) Launch app (i.e. Contacts) with bluetooth or usb mouse in Simulated display.
     4) Tap EditText on app to see see if IME window layout correctly on simulated display.
     5) Launch app (i.e Files) on primary display.
     6) Tap EditText on app to see if IME window layout correctly on primary display.

Change-Id: I0ed6a079af1ed90c75fee1d36d5ce3ef3c41f8ed
2019-07-09 21:08:19 +08:00
lumark
bd7fbb4ccb Merge "Remove extend touchable region for AOSP keyboard" am: ff1db79a18 am: b1dec95c37 am: 61722df601
am: 075f86ba3b

Change-Id: Ic66c2b5479be4d994aed1cd11422192052fb2df5
2019-07-05 09:09:53 -07:00
lumark
b1dec95c37 Merge "Remove extend touchable region for AOSP keyboard"
am: ff1db79a18

Change-Id: Ic162b5e20213a3f1b2aeaf77250bf1d7edc198c5
2019-07-05 07:45:50 -07:00
lumark
b4360e65ca Remove extend touchable region for AOSP keyboard
Remove EXTENDED_TOUCHABLE_REGION_HEIGHT from LatinIME#onComputeInsets
to prevent keyboard touch region covered navigation bar
when in split-window mode with display density < 240 case.

Fix: 134893742
Test: manual as below steps:
1) Set window density as 240 with "adb shell wm density 240"
2) Launch a app (i.e. Messages) from recents activity, set as split-screen mode.
3) Tap Search bar to show IME keyboard.
4) Press home / back / recents key if it works, expect it works.

Change-Id: I596b7276041fecc50d2bc095c7e51664f632368d
2019-07-05 03:30:10 +00:00
TreeHugger Robot
2d7a031f4c Merge "Import translations. DO NOT MERGE" 2019-07-01 00:27:32 +00:00
Bill Yi
55141c26c7 Import translations. DO NOT MERGE
Change-Id: I334b253792d204292c3d2ab0e4bee2291fc979d2
Auto-generated-cl: translation import
2019-06-30 09:14:32 -07:00
Bill Yi
6fdd43abb1 Import translations. DO NOT MERGE
Change-Id: I52029df7c39a5af4e6fe76da6edef90d675a6ad2
Auto-generated-cl: translation import
2019-06-30 09:14:18 -07:00
TreeHugger Robot
54af6af084 Merge "Import translations. DO NOT MERGE" 2019-06-09 01:11:28 +00:00
Bill Yi
0881d0470b Import translations. DO NOT MERGE
Change-Id: I75d10c9ab3ed7c355483599c83157d20352a1712
Auto-generated-cl: translation import
2019-06-08 16:18:20 -07:00
Bill Yi
e2a8d7d4bf Import translations. DO NOT MERGE
Change-Id: I9794c1317480e86e594b4cff4333e5e72be86517
Auto-generated-cl: translation import
2019-06-08 16:17:50 -07:00
Xin Li
a9e018f52d DO NOT MERGE - Merge pi-platform-release (PPRL.190505.001) into stage-aosp-master
Bug: 132622481
Change-Id: I64de94291e8fb8ac0e0b574594c3923aeb97d21d
2019-05-13 15:39:17 -07:00
Bill Yi
da490f06b8 Import translations. DO NOT MERGE
Change-Id: I7ec1c2054a3670d38f2631020421a0c6c574de25
Auto-generated-cl: translation import
2019-05-10 23:49:43 -07:00
TreeHugger Robot
593197da73 Merge "Import translations. DO NOT MERGE" 2019-05-09 20:02:06 +00:00
TreeHugger Robot
5056057c27 Merge "Import translations. DO NOT MERGE" 2019-05-09 19:52:21 +00:00
TreeHugger Robot
54108a7270 Merge "Import translations. DO NOT MERGE" 2019-05-09 18:29:25 +00:00
Bill Yi
708d2c3c6f Import translations. DO NOT MERGE
Change-Id: Idd5aa546321308fe3f3700ad3ba85c39ea1c6e54
Auto-generated-cl: translation import
2019-05-08 14:55:55 -07:00
Bill Yi
a0a3fe1556 Import translations. DO NOT MERGE
Change-Id: Iedb3a809a9814645adf004992c3808215554e6c8
Auto-generated-cl: translation import
2019-05-08 14:55:46 -07:00
Bill Yi
dff7ddfab9 Import translations. DO NOT MERGE
Change-Id: Ib1badde2da2337eac0c7d3442792b10bd1d363c6
Auto-generated-cl: translation import
2019-05-08 14:55:26 -07:00
Bill Yi
9e12b166e5 Import translations. DO NOT MERGE
Change-Id: I4b1e2ad645e0da4b5da30f9f3f37a2328fe25ba2
Auto-generated-cl: translation import
2019-05-08 14:55:07 -07:00
Yohei Yukawa
9dd8853932 Launch AOSP Keyboard Settings on the same display am: d762841494
am: d6c56279b3

Change-Id: Iee16bafc93cd5550cdb8da83b1bf2b93f3b2a83e
2019-05-06 08:37:18 -07:00
Yohei Yukawa
d6c56279b3 Launch AOSP Keyboard Settings on the same display
am: d762841494

Change-Id: Id06f29304f0f1e47ee546bacbee28f66d15e8baa
2019-05-06 08:25:05 -07:00
Yohei Yukawa
d762841494 Launch AOSP Keyboard Settings on the same display
This CL demonstrates how an IME can show an Activity on the display
where the IME is shown.  The key points are:

 * The current display ID can be obtained as follows.

    final int curentDisplayId = inputMethodService
            .getSystemService(WindowManager.class)
            .getDefaultDisplay()
            .getDisplayId();

 * When launching an Activity, specify the target display ID as
   follows.

    inputMethodService.startActivity(intent, ActivityOptions
            .makeBasic()
            .setLaunchDisplayId(curentDisplayId)
            .toBundle());

Fix: 131718879
Test: Manually verified as follows.
  1. Build aosp_blueline-userdebug and flash it.
  2. adb shell settings put global force_desktop_mode_on_external_displays 1
  3. adb shell settings put global overlay_display_devices 1920x1080/320
  4. adb reboot
  5. With a mouse, launch any application that has input field
     in the secondary display.
  6. Click that input field to bring up AOSP Keyboard.
  7. Long click the comma key then select the gear icon.
  8. Select "Android Keyboard Settings (AOSP)"
  9. Make sure that the AOSP Keyboard Settings is launched in
     the secondary display, not in the default display.
 10. Go back to the step 7.
 11. Select "Languages"
 12. Subtype Enabler for AOSP Keyboard is shown in the secondary
     display, not in the default display.
Change-Id: I9f89f371c38d9a7b5a06d018d4b41aa09815ea24
2019-05-04 09:52:07 -07:00
TreeHugger Robot
35cca31844 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-05-04 07:01:44 +00:00
TreeHugger Robot
fed6dee6ce Merge "Import translations. DO NOT MERGE" into qt-dev 2019-05-04 06:59:34 +00:00
Bill Yi
ac9ff315d9 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5a1e14997b62527fe4b7c902855c999e06fee399
2019-05-03 19:49:02 -07:00
Bill Yi
fa95428cd0 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I28ede254065c4491af0c8f82f724e1f83d5a8c69
2019-05-03 19:47:52 -07:00
Bill Yi
c21dbf355f Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Icf4d8be7d9322b87d1d2eebe55c6b7d270f47a2b
2019-05-03 19:43:12 -07:00
Bill Yi
dec7e77280 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I582cc100421d415defcd817a96191f6608eea8ad
2019-04-24 21:42:13 -07:00
TreeHugger Robot
d3f3fbd2b2 Merge "Import translations. DO NOT MERGE" 2019-04-21 02:58:22 +00:00
TreeHugger Robot
c437afff40 Merge "Import translations. DO NOT MERGE" 2019-04-21 02:47:32 +00:00
TreeHugger Robot
ea7b9f0daa Merge "Import translations. DO NOT MERGE" 2019-04-21 02:38:02 +00:00
TreeHugger Robot
4c27376913 Merge "Import translations. DO NOT MERGE" 2019-04-21 02:36:22 +00:00
Bill Yi
bee8dfc7bc Import translations. DO NOT MERGE
Change-Id: Ifa649bf20cb9e0c8b1c71bc76d5534a4b2098602
Auto-generated-cl: translation import
2019-04-20 13:43:37 -07:00
Bill Yi
942d362e8b Import translations. DO NOT MERGE
Change-Id: I184737a561ddf45c51c30dc004fff78ae1b9ca0b
Auto-generated-cl: translation import
2019-04-20 13:43:21 -07:00
Bill Yi
6fc74bbd68 Import translations. DO NOT MERGE
Change-Id: If46e330aca97d1eef493f826f5000103b206eab0
Auto-generated-cl: translation import
2019-04-20 13:43:00 -07:00
Bill Yi
a1cfd45f7f Import translations. DO NOT MERGE
Change-Id: I4989c412b885b7e1af5e3ed76b01a4a5a1d5193f
Auto-generated-cl: translation import
2019-04-20 13:42:43 -07:00
Bill Yi
0a26e26006 Import translations. DO NOT MERGE
Change-Id: Iee3b38b10338ec37e5d83245abc36ec4337c8662
Auto-generated-cl: translation import
2019-04-20 13:42:08 -07:00
TreeHugger Robot
e73e47f83f Merge "Import translations. DO NOT MERGE" into qt-dev 2019-04-17 21:45:24 +00:00
TreeHugger Robot
7630c6c549 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-04-17 21:32:27 +00:00
TreeHugger Robot
1999854ad9 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-04-17 21:31:44 +00:00
TreeHugger Robot
c96234e71c Merge "Import translations. DO NOT MERGE" into qt-dev 2019-04-17 21:27:32 +00:00
TreeHugger Robot
b22d5f3fe7 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-04-17 21:27:12 +00:00
Bill Yi
86df8fb903 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ibd1ea3ad66df1032a70a90f0f38df532b1f8e7a2
2019-04-16 19:28:34 -07:00
Bill Yi
ceded9ebcb Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia43a2ac5c29cef680fb4e44ef12da74176726b3b
2019-04-16 19:27:49 -07:00
Bill Yi
56198b8702 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I3dee70ec398ce7e6f4bfb4b677a97153906a9b19
2019-04-16 19:26:44 -07:00
Bill Yi
2c79d22ccd Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I4a2e1950cd5eff7f1a64b023a15ec591f43b13c0
2019-04-16 19:26:01 -07:00
Bill Yi
9f3ef50e34 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I3ffc9f82edaa14bc34372a9107e71e834a494c57
2019-04-16 19:24:27 -07:00
Bill Yi
dea379f4ba Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Id5f69f9696d57630083976b6e0b438409fc8b59e
2019-04-16 19:23:48 -07:00
TreeHugger Robot
ef2514adb4 Merge "Import translations. DO NOT MERGE" 2019-04-12 07:47:50 +00:00
TreeHugger Robot
a510d9fce7 Merge "Import translations. DO NOT MERGE" 2019-04-12 07:23:10 +00:00
TreeHugger Robot
95e34e34ff Merge "Import translations. DO NOT MERGE" 2019-04-12 07:10:17 +00:00
TreeHugger Robot
a82b5d517f Merge "Import translations. DO NOT MERGE" 2019-04-12 07:09:07 +00:00
Bill Yi
36a639f362 Import translations. DO NOT MERGE
Change-Id: Ic89513e1d17e006229ff037a0b26828b47a30f7d
Auto-generated-cl: translation import
2019-04-11 15:12:40 -07:00
Bill Yi
9ebda1eb56 Import translations. DO NOT MERGE
Change-Id: Ic33126ed6112eb6068da2fc23e2a446b1991bae6
Auto-generated-cl: translation import
2019-04-11 15:12:23 -07:00
Bill Yi
acdf6f56c4 Import translations. DO NOT MERGE
Change-Id: I46be6ee7016f363f8e960e53aa48bb76704179ec
Auto-generated-cl: translation import
2019-04-11 15:11:45 -07:00
Bill Yi
11c1357279 Import translations. DO NOT MERGE
Change-Id: I065b01ebce821dd835cc419f43c632d3cbf225cc
Auto-generated-cl: translation import
2019-04-11 15:11:14 -07:00
Bill Yi
36e4c81372 Import translations. DO NOT MERGE
Change-Id: I6b136c5da5db3391baa91ce2ec01a367d0120f72
Auto-generated-cl: translation import
2019-04-11 15:10:58 -07:00
TreeHugger Robot
a82e44cc3d Merge "Import translations. DO NOT MERGE" 2019-04-08 19:04:46 +00:00
Bill Yi
823e75e2ce Import translations. DO NOT MERGE
Change-Id: I88307c88d211620bd51cd6ef8a760fc585378517
Auto-generated-cl: translation import
2019-04-08 08:49:07 -07:00
Bill Yi
56eb28cb52 Import translations. DO NOT MERGE
Change-Id: Ibd4590bf1cbe976ba97e3d4c0f8373fe008e6f27
Auto-generated-cl: translation import
2019-04-08 08:48:43 -07:00
TreeHugger Robot
3463f19ce6 Merge "Import translations. DO NOT MERGE" 2019-04-07 08:36:11 +00:00
TreeHugger Robot
9db1319d77 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-04-07 06:25:13 +00:00
Bill Yi
ca994736cc Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I7437c061744c3a3ff86c6b476ac1a87525fc74d8
2019-04-05 17:42:08 -07:00
Bill Yi
71c4e1263b Import translations. DO NOT MERGE
Change-Id: If065e19b8eb151a87285dd390c2dca5213d216a3
Auto-generated-cl: translation import
2019-04-05 17:41:25 -07:00
Bill Yi
4be998498e Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ic1c492d7ebd6718099bc2b12f3daed09596218cd
2019-04-05 17:27:17 -07:00
Bill Yi
b46ec50c7e Import translations. DO NOT MERGE
Change-Id: Id4513ea623403b0edceebf4a80d0cccbcefa3713
Auto-generated-cl: translation import
2019-04-05 17:26:16 -07:00
Bill Yi
4292bf3f69 Import translations. DO NOT MERGE
Change-Id: I4f02f5f4ccc6ff864fb5120dc7766755fb773fcf
Auto-generated-cl: translation import
2019-03-23 07:56:54 -07:00
TreeHugger Robot
01090bdaaf Merge "Import translations. DO NOT MERGE" 2019-02-21 20:47:33 +00:00
TreeHugger Robot
769f5d069d Merge "Import translations. DO NOT MERGE" 2019-02-21 19:50:52 +00:00
TreeHugger Robot
4dc4196a34 Merge "Import translations. DO NOT MERGE" 2019-02-21 19:37:35 +00:00
TreeHugger Robot
289a72634b Merge "Import translations. DO NOT MERGE" into pi-dev 2019-02-21 18:47:25 +00:00
TreeHugger Robot
624bac2cd8 Merge "Import translations. DO NOT MERGE" into pi-dev 2019-02-21 18:36:34 +00:00
TreeHugger Robot
a921223fe2 Merge "Import translations. DO NOT MERGE" into pi-dev 2019-02-21 18:32:55 +00:00
TreeHugger Robot
01900e65fc Merge "Import translations. DO NOT MERGE" into pi-dev 2019-02-21 18:30:35 +00:00
TreeHugger Robot
e951835344 Merge "Import translations. DO NOT MERGE" into pi-dev 2019-02-21 18:29:46 +00:00
TreeHugger Robot
35ac417ae0 Merge "Import translations. DO NOT MERGE" into pi-dev 2019-02-21 18:23:15 +00:00
Bill Yi
9e73c487e4 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I2b984642494033f59d02cf4c640793b47e63c6b3
2019-02-21 06:21:12 -08:00
Bill Yi
141c72a1dc Import translations. DO NOT MERGE
Change-Id: I48a6f3055d8dd3182ff98a6edace3a4e35b4326d
Auto-generated-cl: translation import
2019-02-21 06:20:27 -08:00
Bill Yi
621f24c948 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I7809654384cc42e87999e222316e25f4bd70641f
2019-02-21 06:17:52 -08:00
Bill Yi
49f35d15be Import translations. DO NOT MERGE
Change-Id: Icdaeac3123fef5ca97a44cc155d4f428138ae985
Auto-generated-cl: translation import
2019-02-21 06:17:12 -08:00
Bill Yi
463afb44e2 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I136d94f85222806b5104a16b6d544dc1c377c5e3
2019-02-21 06:12:24 -08:00
Bill Yi
c57cda4a3a Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I6e496165fde5ea66dda1559f39a0c02c949265b0
2019-02-21 06:08:02 -08:00
Bill Yi
58f382cb84 Import translations. DO NOT MERGE
Change-Id: Iaaf42624b7933d8a479a9eea71aedbc3711de6cb
Auto-generated-cl: translation import
2019-02-21 06:06:58 -08:00
Bill Yi
42f8490ea3 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ied44fc2e6b9256a6744387ca511946b21fd44524
2019-02-21 06:04:26 -08:00
Bill Yi
685f412885 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I9edb7e3ebf58bdf8fe5b12096c37815e58a39e40
2019-02-21 06:01:44 -08:00
Bill Yi
f82540f2d4 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I05cf27d7d1a197dde37d6dc69433c26e62c88458
2019-02-21 05:59:00 -08:00
Bill Yi
ba59aeb8e1 Import translations. DO NOT MERGE
Change-Id: I3962401c95664f199216b443e27bf07871b20d07
Auto-generated-cl: translation import
2019-02-21 05:58:22 -08:00
Bill Yi
1a39f585b1 Import translations. DO NOT MERGE
Change-Id: If684531601502dce2fa4c0fe36a1af2086226faa
Auto-generated-cl: translation import
2019-02-07 20:57:21 -08:00
TreeHugger Robot
a55797bfba Merge "Import translations. DO NOT MERGE" 2019-02-02 17:39:35 +00:00
TreeHugger Robot
5efe640eee Merge "Import translations. DO NOT MERGE" 2019-02-02 17:39:33 +00:00
TreeHugger Robot
90026f50fb Merge "Import translations. DO NOT MERGE" 2019-02-02 17:36:35 +00:00
TreeHugger Robot
c4918159e8 Merge "Import translations. DO NOT MERGE" 2019-02-02 17:34:39 +00:00
TreeHugger Robot
0b66f7e9ff Merge "Import translations. DO NOT MERGE" 2019-02-02 17:32:37 +00:00
TreeHugger Robot
f9bab82514 Merge "Import translations. DO NOT MERGE" 2019-02-02 17:29:40 +00:00
Bill Yi
21ac0441c7 Import translations. DO NOT MERGE
Change-Id: I58ea73335befe5324077a7775c4ff78f04ed1a4b
Auto-generated-cl: translation import
2019-02-02 00:51:47 -08:00
Bill Yi
3352776929 Import translations. DO NOT MERGE
Change-Id: I09408d72060cc69d3734647abe7969528539c1cc
Auto-generated-cl: translation import
2019-02-02 00:51:41 -08:00
Bill Yi
0bf41fa9bc Import translations. DO NOT MERGE
Change-Id: Ide4b5b729b9a7b482cfbd2aff914c3064f5ec668
Auto-generated-cl: translation import
2019-02-02 00:51:34 -08:00
Bill Yi
173fc8d243 Import translations. DO NOT MERGE
Change-Id: Ie30d0bb36cd7157921f3745fe722f7c0c458e92f
Auto-generated-cl: translation import
2019-02-02 00:51:27 -08:00
Bill Yi
b56eb6676f Import translations. DO NOT MERGE
Change-Id: Id25f8e0d7b2bb7c47e9f04e6355a10f2da9f9b25
Auto-generated-cl: translation import
2019-02-02 00:51:21 -08:00
Bill Yi
a6b9015e52 Import translations. DO NOT MERGE
Change-Id: I782e5d547025d56f98fc6a972c205367fa9e7bca
Auto-generated-cl: translation import
2019-02-02 00:51:13 -08:00
Bill Yi
0294f8c213 Import translations. DO NOT MERGE
Change-Id: I51b7669e416dce6ccf73724110d9ed446e0f2940
Auto-generated-cl: translation import
2019-02-02 00:51:05 -08:00
Bill Yi
3153a23cba Import translations. DO NOT MERGE
Change-Id: I9612b424937fd60ea265f2276d5a53ebe332afb9
Auto-generated-cl: translation import
2019-01-28 22:24:16 -08:00
Anton Hansson
575340c674 Merge "Move LatinIME and its lib to /product" am: 149b9d4f6e am: 84d156b1e6
am: d894eec1ee

Change-Id: Ib7cdb0007c22934f7736cd02c02e0f9358f889d4
2019-01-14 02:11:11 -08:00
Anton Hansson
d894eec1ee Merge "Move LatinIME and its lib to /product" am: 149b9d4f6e
am: 84d156b1e6

Change-Id: I386b9b5ed6ba02a4cd00efb75804ffef24603a2c
2019-01-14 01:56:34 -08:00
TreeHugger Robot
06c8063be0 Merge "Import translations. DO NOT MERGE" into pi-dev 2019-01-14 00:34:29 +00:00
Bill Yi
54b7ed4a9d Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I55aec88a6c77441c68c7121cab8dcce25d5ef4cc
2019-01-13 01:12:10 -08:00
Bill Yi
ab4f7ace74 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I9baa804b18e008b1083ef970d9d3c12498364744
2019-01-13 01:08:13 -08:00
TreeHugger Robot
d9bca3f150 Merge "Import translations. DO NOT MERGE" 2019-01-12 06:15:26 +00:00
Bill Yi
b4ca13697f Import translations. DO NOT MERGE
Change-Id: I57c8de2acc020fdb8d30f8cdc6f5b616acc98eab
Auto-generated-cl: translation import
2019-01-11 14:14:06 -08:00
Bill Yi
b6b44c113b Import translations. DO NOT MERGE
Change-Id: I23b6acdfb44a25c8136764c6b1b254dd54e363a2
Auto-generated-cl: translation import
2019-01-11 14:13:56 -08:00
Anton Hansson
1c429e3a09 Move LatinIME and its lib to /product
This app is frequently overriden by proprietary apps
on shipping devices, so move it to /product along with
its jni library.

Bug: 122353713
Test: launch keyboard on aosp_arm64 emulator
Change-Id: Ied8c1e6133b67e28da76b0e48254e2e2e0ed15bf
2019-01-11 15:20:31 +00:00
TreeHugger Robot
2d2288f37c Merge "Import translations. DO NOT MERGE" into pi-dev 2018-12-28 22:05:37 +00:00
TreeHugger Robot
ba23f94b7b Merge "Import translations. DO NOT MERGE" into pi-dev 2018-12-28 20:17:46 +00:00
TreeHugger Robot
e921fbc7db Merge "Import translations. DO NOT MERGE" into pi-dev 2018-12-28 20:10:37 +00:00
Bill Yi
80e3014666 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Id860302ad84eb62980b4a945874cb45edfdcc687
2018-12-28 10:44:42 -08:00
Bill Yi
3d3c1cd8bc Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I6c89395f7bef7820235bd25d506493ab2bd577e5
2018-12-28 10:43:51 -08:00
Bill Yi
10af3a4c3c Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I1bb720f59308fd358bf855f68bec70fa4884f197
2018-12-28 10:42:05 -08:00
Bill Yi
ddfe606cca Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Iedbf75b9435c748ada110ea50847d4be9efe5f79
2018-12-28 10:40:03 -08:00
TreeHugger Robot
fd6a4b36d1 Merge "Import translations. DO NOT MERGE" 2018-12-11 21:17:52 +00:00
Bill Yi
8f8172dbae Import translations. DO NOT MERGE
Change-Id: Ife74efb16f80197258d9d56f26a5e8253fa9e503
Auto-generated-cl: translation import
2018-12-11 10:26:44 -08:00
Bill Yi
f40e90e607 Import translations. DO NOT MERGE
Change-Id: I390f4cc2cb95c7f814594b8ade8d41086e6772df
Auto-generated-cl: translation import
2018-12-11 10:26:31 -08:00
Bill Yi
633282d3f3 Import translations. DO NOT MERGE
Change-Id: I8f5a587e64d849d775f31e7f3383b2ea2f7c4146
Auto-generated-cl: translation import
2018-12-06 07:51:38 -08:00
Yohei Yukawa
b6ad3b8cbd Merge "Move MODULE_LICENSE_APACHE2 to the project top dir" am: a9cc446212 am: 91bb8ea67e
am: 55327c1a62

Change-Id: I35afb8777a41a3cfadb22e99b8e459b9ccd2520f
2018-11-19 23:33:36 -08:00
Yohei Yukawa
55327c1a62 Merge "Move MODULE_LICENSE_APACHE2 to the project top dir" am: a9cc446212
am: 91bb8ea67e

Change-Id: I1693b71dd6e5b9c3ad8b8d994545f77907903258
2018-11-19 23:13:53 -08:00
Yohei Yukawa
5b85311ab0 Move MODULE_LICENSE_APACHE2 to the project top dir
In general files in LatinIME project should be Apache 2 license
(unless some exceptional note is there).  This is not limited to Java
source files.

Hence moving MODULE_LICENSE_APACHE2 [1] to the project top directory
would make much more sense to avoid possible confusions.

NOTICE file is a bit complicated because it also needs to be copied
into the system image.  Since the actual build rule for LatinIME.apk
is placed as java/Android.bp, and
  notice: "../NOTICE"
is something that is not supported / recommended, this CL just copies
NOTICE file from java/NOTICE to the top level directory.

Note also that NOTICE for LatinIME has a special notation [2].

 [1]: Originally added in the following CL for Bug 2548782
      If50b2e9e9cc4b4876b0d047fc9f34e2d537a6da4
      443c360d0a
 [2]: Originally added in the following CL for Bug 7285172
      Ib4f4e433850d3f58e0a7cef205be4dc59c7f28c4
      49d301e9ad

Test: Locally verified as follows:
  lunch aosp_taimen-userdebug
  make -j
  cat $OUT/obj/NOTICE_FILES/src/system/app/LatinIME/LatinIME.apk.txt
Change-Id: I0ca84c46125de7f86f9e26906e107ac9ad7af177
2018-11-19 12:11:31 -08:00
Yohei Yukawa
04573e30ff Bump targetSdkVersion to "28" and minSdkVersion to "21"
With this CL, targetSdkVersion and minSdkVersion will be bumped as
follows:

  targetSdkVersion: 23 -> 28
     minSdkVersion: 14 -> 21

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

Fix: 119489995
Test: manually verified that LatinIME still is functional
Change-Id: I68f1545778b0c8b44c6850f22f3f5ca25bdb6de0
2018-11-13 13:51:59 -08:00
Yohei Yukawa
69ceec9045 Re-introduce <uses-sdk> to the main AndroidManifest.xml
This logically reverts my previous CL [1], which moved <uses-sdk />
from AndroidManifest.xml to AndroidManifest_SdkVersion.xml, which was
later accidentally removed during Android.bp migration [2].

Since gradle support in LatinIME is still experimental and not used in
official build, it is OK to keep it broken for a while.  A more
important problem right now is letting LatinIME target API 28.

As the first step to let LatinIME target SDK 28, <uses-sdk> will be
revived in AndroidManifest.xml

 [1]: Ib673bca5a31b2f95329c9310a127ec0701bd8fdc
      9cd42f39eb
 [2]: Ib8867d3b74f09fc1d9f95adc9a49a81ac0f7f054
      22ebec6e2e

Bug: 110741422
Bug: 119489995
Test: manually verified that LatinIME still is functional
Change-Id: I8b04caa56fe2431c07e076fb6f97c560d5da8838
2018-11-13 13:49:23 -08:00
TreeHugger Robot
0b6f4bb0a6 Merge "Import translations. DO NOT MERGE" 2018-11-10 15:02:17 +00:00
TreeHugger Robot
f1f7f05512 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-11-10 14:44:20 +00:00
Bill Yi
9727374039 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If1a85bd7e787396faf8fb780a96e598c81dc4087
2018-11-10 00:11:52 -08:00
Bill Yi
af30ac8326 Import translations. DO NOT MERGE
Change-Id: Iec7f8162a5f1fa6323b5aaad028982d27ae4d703
Auto-generated-cl: translation import
2018-11-10 00:10:48 -08:00
Bill Yi
968f11511b Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I6dd75f52e619fdc8c3d54ea223f0e35171b3bc1c
2018-11-09 23:52:56 -08:00
Bill Yi
517e77569e Import translations. DO NOT MERGE
Change-Id: I2cf19a83bd266325c4a1b37344bdab61753cdbca
Auto-generated-cl: translation import
2018-11-09 23:51:36 -08:00
Dan Willemsen
948cbbe986 Merge "Convert to Android.bp" am: 128f68acb2
am: 8e315deff9

Change-Id: I9d256889dbc4717293cff2b0ddd6e867ae54e47d
2018-11-08 17:03:45 -08:00
Bill Yi
2a04a34ee7 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I075d4469fed4c68a77c131c2f9d76ec283fe0b04
2018-11-06 05:31:13 -08:00
Bill Yi
13611e7a26 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I42759929af5c662c4b5d306b4967e67f5ad05547
2018-11-02 11:02:18 -07:00
Dan Willemsen
a23407bf62 Convert to Android.bp
See build/soong/README.md for more information.

Test: cd packages/inputmethods/LatinIME; mma
Change-Id: Ib8867d3b74f09fc1d9f95adc9a49a81ac0f7f054
Merged-In: Ib8867d3b74f09fc1d9f95adc9a49a81ac0f7f054
2018-11-01 23:09:33 +00:00
Dan Willemsen
22ebec6e2e Convert to Android.bp
See build/soong/README.md for more information.

Test: cd packages/inputmethods/LatinIME; mma
Change-Id: Ib8867d3b74f09fc1d9f95adc9a49a81ac0f7f054
2018-10-31 21:49:02 -07:00
Tadashi G. Takaoka
b6301306fa Merge "Fix dicttool build" am: a92d0f9262 am: 438a303732
am: 6aed05232b

Change-Id: I558fb5ff22a7428d1d82eac82b4caba469ed48d4
2018-10-31 09:24:08 -07:00
Tadashi G. Takaoka
6aed05232b Merge "Fix dicttool build" am: a92d0f9262
am: 438a303732

Change-Id: If8b5ba833fa6872fcaeb43dbd7b0b0c9a5c65986
2018-10-31 09:18:51 -07:00
Tadashi G. Takaoka
6a1b37353d Fix dicttool build
This CL partially reverts
  - Id88b02b74bdfe4ca05b08181ceb6b34d5652fc0c
  - I05c7d8429e8d9a26139456763c77997340fea8c2
And followup (remove shortcut support)
  - I73b7dc008a5acaf75a31a36a2d332b5afabd82d0

Bug: 28255684
Test: make -j10 dicttool_aosp
Change-Id: I2e01ed86b9517a1141aee35ea6d8ef39258981d1
2018-10-29 15:59:05 +09:00
Bill Yi
9855237563 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I27785eae6f6e44e130a7cad0cfedeb8ed630e95f
2018-10-28 14:41:50 -07:00
Bill Yi
9c8608c642 Import translations. DO NOT MERGE
Change-Id: I60b4bb2939b9e6bb73072b3c2e96ca197c41f6f2
Auto-generated-cl: translation import
2018-10-25 06:24:18 -07:00
Bill Yi
67efbc844c Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I8f0f4691bcdb730d71feae0616c65f1e38b99b06
2018-10-15 09:48:59 -07:00
TreeHugger Robot
fe42418de4 Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2018-10-14 02:47:56 +00:00
TreeHugger Robot
5958fb4cbc Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2018-10-14 02:47:54 +00:00
TreeHugger Robot
0ca0ed10c3 Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2018-10-14 02:47:35 +00:00
TreeHugger Robot
f1e3e4c5a8 Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2018-10-14 02:46:38 +00:00
TreeHugger Robot
051ebe1f67 Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2018-10-14 02:44:16 +00:00
Bill Yi
54e8416096 Import translations. DO NOT MERGE
Change-Id: Id26d6b48ca52c631b3f2041682663f07b49e4b80
Auto-generated-cl: translation import
2018-10-13 08:35:07 -07:00
Bill Yi
946631933a Import translations. DO NOT MERGE
Change-Id: I76dbccb4e65ebb99db55049222d6fe361d08d9fc
Auto-generated-cl: translation import
2018-10-13 08:34:10 -07:00
Bill Yi
b0fc52fca9 Import translations. DO NOT MERGE
Change-Id: I0606bc4b8d8c37ef386f1af4764a6887b86017f5
Auto-generated-cl: translation import
2018-10-13 08:32:35 -07:00
Bill Yi
4f8a5c0dd6 Import translations. DO NOT MERGE
Change-Id: Id8ca0f5d84e52df495611542f8c52e63329d531a
Auto-generated-cl: translation import
2018-10-13 08:31:41 -07:00
Bill Yi
819b30680c Import translations. DO NOT MERGE
Change-Id: I915ddb171c85d7f9f1428bb52e60727a9e254a60
Auto-generated-cl: translation import
2018-10-13 08:30:21 -07:00
Bill Yi
3725a3fbca Import translations. DO NOT MERGE
Change-Id: I521ffadf560fd919a12387844ba6799a024884b1
Auto-generated-cl: translation import
2018-10-13 08:28:46 -07:00
TreeHugger Robot
8353ab156f Merge "Import translations. DO NOT MERGE" into pi-dev 2018-09-29 21:29:24 +00:00
TreeHugger Robot
8f67a3867c Merge "Import translations. DO NOT MERGE" into pi-dev 2018-09-29 21:26:16 +00:00
Bill Yi
49192ae51d Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I9784cfcb5280e415a04ad109c5ddee33997f7261
2018-09-28 21:46:47 -07:00
Bill Yi
dacc99b4c5 Import translations. DO NOT MERGE
Change-Id: I46a499dd1da79f06718cddfd3eafed8123a05967
Auto-generated-cl: translation import
2018-09-28 21:46:01 -07:00
Bill Yi
7eb444bd3f Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ib422a258a32e4a483c7e0713f3aadcaf8de7f512
2018-09-28 21:43:34 -07:00
Bill Yi
5cf980e6bc Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If0632d69913ac40f1723faa89272cece8b83f1a0
2018-09-28 21:33:11 -07:00
Bill Yi
47ce19e9dd Import translations. DO NOT MERGE
Change-Id: Ib23c52e3e48c46d621a99838f101982d17308d43
Auto-generated-cl: translation import
2018-09-26 20:54:53 -07:00
Bill Yi
0adefed05a Import translations. DO NOT MERGE
Change-Id: Ie1e3f7f1f5c270873cecd1b84cffbb2998a09423
Auto-generated-cl: translation import
2018-09-21 16:50:32 -07:00
Bill Yi
5acbc37fd4 Import translations. DO NOT MERGE
Change-Id: Ic2ea9113d32f5c0e0a13ab87b0dca6f71ea3dd78
Auto-generated-cl: translation import
2018-08-30 16:48:29 -07:00
Bill Yi
15c37f8bab Import translations. DO NOT MERGE
Change-Id: Ie86b819785a70d5613155360f4551c77b6bf0fd0
Auto-generated-cl: translation import
2018-08-07 17:37:26 -07:00
TreeHugger Robot
8d19c8cbf7 Merge "Import translations. DO NOT MERGE" 2018-08-02 05:34:55 +00:00
Bill Yi
e2610221be Import translations. DO NOT MERGE
Change-Id: I4d394e997b58cd7dd2768861a3da887fdb7c1c6d
Auto-generated-cl: translation import
2018-08-01 20:27:35 -07:00
Bill Yi
7305b0b41e Import translations. DO NOT MERGE
Change-Id: Ifaf4318866c3ba72adee1190e0dfce8506fbd7b0
Auto-generated-cl: translation import
2018-08-01 20:27:24 -07:00
Yohei Yukawa
c884b6631f Let Android Studio use 'shared' cert to build APK
make build uses 'shared' cert in build/make/target/product/security/.
If LatinIME APK built with AndroidStudio doesn't use the same signing
cert, then you cannot install the APK into AOSP image, which is not
convenient.

With this CL, AndroidStudio build also uses the same signing cert.

Note that shared.keystore was built as follows.

 $ openssl pkcs8 -inform DER -nocrypt                      \
   -in build/make/target/product/security/shared.pk8       \
   -out shared.pem
 $ openssl pkcs12 -export                                  \
   -in build/make/target/product/security/shared.x509.pem  \
   -inkey shared.pem -out shared.p12                       \
   -password pass:android -name AndroidDebugKey
 $ keytool -importkeystore -deststorepass android          \
   -destkeystore shared.keystore -srckeystore shared.p12   \
   -srcstoretype PKCS12 -srcstorepass android

Fix: 110741422
Test: made sure that the APK built with Android Studio can be
      installed to an AOSP build
Change-Id: I471a87e190b15ff02bb06849e4660ed7898897a5
2018-07-25 18:08:35 -07:00
Yohei Yukawa
41f89ae88c Specify version code in AndroidManifest.xml
This should be the most convenient way for both make build and Android
Studio build to share the same version code.

Bug: 110741422
Test: tapas LatinIME LatinIMETests arm64 userdebug && make -j
Change-Id: I35f850c392553b2640a4c3c7398441ac28e90eca
2018-07-25 17:08:47 -07:00
Yohei Yukawa
9cd42f39eb Move <uses-sdk /> to a differnt XML
Basically Android Studio does want targetSdkVersion to be specified in
build.gradle rather than AndroidManifest.xml.  To make both make build
and Android Studio build happy, this CL splits <uses-sdk /> from the
main AndroidManifest.xml to a different file and let them merged in
make build.

There should be no behavior change.

Bug: 110741422
Test: Manually verified that there is no difference in
      AndroidManifest.xml in the APK.
Change-Id: Ib673bca5a31b2f95329c9310a127ec0701bd8fdc
2018-07-25 14:21:09 -07:00
Bill Yi
501ff64cfd Import translations. DO NOT MERGE
Change-Id: I55e880457966992e25acd30cc65390e80fa4a515
Auto-generated-cl: translation import
2018-07-21 20:50:09 -07:00