LatinIME/java/src/com/android/inputmethod/latin
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
..
about Merge java-overridable/ into java/ again 2018-05-06 20:46:17 -07:00
accounts Migrated various apps under packages/inputmethods/LatinIME/ to androidx 2018-05-15 14:55:43 -07:00
define Merge java-overridable/ into java/ again 2018-05-06 20:46:17 -07:00
inputlogic Merge changes Iaed8abfb,I8e55b57c into jb-ub-latinimegoogle 2015-06-23 20:55:23 +00:00
makedict Fix dicttool build 2018-10-29 15:59:05 +09:00
network Fix Javadoc and null analysis related warnings 2014-10-23 09:58:42 +09:00
permissions Migrated various apps under packages/inputmethods/LatinIME/ to androidx 2018-05-15 14:55:43 -07:00
personalization Use BinaryDicitonary.MAX_PREV_WORD_COUNT_FOR_NGRAM for D2 dictioanries. 2015-03-17 11:43:16 -07:00
settings Migrated various apps under packages/inputmethods/LatinIME/ to androidx 2018-05-15 14:55:43 -07:00
setup Migrated various apps under packages/inputmethods/LatinIME/ to androidx 2018-05-15 14:55:43 -07:00
spellcheck Migrated various apps under packages/inputmethods/LatinIME/ to androidx 2018-05-15 14:55:43 -07:00
suggestions Migrated various apps under packages/inputmethods/LatinIME/ to androidx 2018-05-15 14:55:43 -07:00
touchinputconsumer Merge java-overridable/ into java/ again 2018-05-06 20:46:17 -07:00
userdictionary Bring back shortcuts and add to dictionary UI 2015-07-06 17:32:13 -07:00
utils Merge java-overridable/ into java/ again 2018-05-06 20:46:17 -07:00
AssetFileAddress.java More verbosity when reporting broken dictionaries 2014-11-14 13:42:24 -08:00
AudioAndHapticFeedbackManager.java Move Constants.java to the latin.common package 2014-10-23 20:27:37 +09:00
BackupAgent.java Don't restore debug preferences 2014-10-13 18:59:48 -07:00
BinaryDictionary.java Add prev words context to the SuggestedWordInfo. 2015-03-19 16:07:04 -07:00
BinaryDictionaryFileDumper.java Remove android.util.Log from FileUtils 2015-07-09 11:50:10 -07:00
BinaryDictionaryGetter.java Make the DictionaryService stage the downloaded files 2015-05-04 11:57:31 -07:00
ContactsBinaryDictionary.java [LatinIME] Support MNC permissions. 2015-07-15 22:51:53 +00:00
ContactsContentObserver.java [LatinIME] Support MNC permissions. 2015-07-15 22:51:53 +00:00
ContactsDictionaryConstants.java Add affinity model for contact names. 2015-04-16 11:33:54 -07:00
ContactsDictionaryUtils.java Refactor content provider code from ContactsDict 2015-02-11 16:29:14 -08:00
ContactsManager.java Add affinity model for contact names. 2015-04-16 11:33:54 -07:00
DicTraverseSession.java Move decoder specific constants to DecoderSpecificConstants.java 2015-02-05 13:27:36 -08:00
Dictionary.java Add shortcut support to UserDictionaryLookup. 2015-04-02 11:15:27 -07:00
DictionaryCollection.java Remove Dict dependency on WordComposer and ProximityInfo 2014-10-29 12:27:24 +09:00
DictionaryDumpBroadcastReceiver.java Add dictionary dump buttons in debug settings. 2014-02-04 21:29:09 +09:00
DictionaryFacilitator.java Look up thresholds during decoder reset. 2015-05-04 14:48:28 -07:00
DictionaryFacilitatorImpl.java [LatinIME] Support MNC permissions. 2015-07-15 22:51:53 +00:00
DictionaryFacilitatorLruCache.java Remove ALS from LatinIME. 2015-03-11 17:29:12 -07:00
DictionaryFacilitatorProvider.java Merge java-overridable/ into java/ again 2018-05-06 20:46:17 -07:00
DictionaryFactory.java Don't notify dictpack for updates for service dump 2015-03-27 11:10:00 -07:00
DictionaryPackInstallBroadcastReceiver.java Move util classes to the latin/utils directory 2013-06-24 17:04:40 +09:00
DictionaryStats.java Specify fileName argument as Nullable. 2015-04-23 14:12:33 -07:00
EmojiAltPhysicalKeyDetector.java Fix AltR+1 -> ESC shortcuts bringing on-screen keyboard 2015-11-03 17:36:15 +00:00
ExpandableBinaryDictionary.java Log interrupted tasks in AOSP. 2015-04-02 14:47:36 -07:00
InputAttributes.java Move StringUtils under common. 2014-10-28 22:44:30 +09:00
InputView.java Fix Javadoc and null analysis related warnings 2014-10-23 09:58:42 +09:00
LastComposedWord.java Move decoder specific constants to DecoderSpecificConstants.java 2015-02-05 13:27:36 -08:00
LatinIME.java Create display context when switching IME to new display for AOSP IME 2019-09-11 02:02:48 +00:00
NgramContext.java Carry over the mMaxPreWordCount when creating the new NgramContext 2015-03-17 12:31:18 -07:00
PunctuationSuggestions.java Add prev words context to the SuggestedWordInfo. 2015-03-19 16:07:04 -07:00
ReadOnlyBinaryDictionary.java Remove Dict dependency on WordComposer and ProximityInfo 2014-10-29 12:27:24 +09:00
RichInputConnection.java Merge "Small optimization to eliminate a >0 check in RichInputConnection." into jb-ub-latinimegoogle 2015-06-24 19:44:37 +00:00
RichInputMethodManager.java Experimental automatic language switching support. 2016-01-22 02:24:28 -08:00
RichInputMethodSubtype.java Map "sr-Latn" to "sr_ZZ" for internal use. 2016-03-04 13:07:17 -08:00
Suggest.java Add prev words context to the SuggestedWordInfo. 2015-03-19 16:07:04 -07:00
SuggestedWords.java Add prev words context to the SuggestedWordInfo. 2015-03-19 16:07:04 -07:00
SystemBroadcastReceiver.java Do not force downloads on package replace. 2015-06-23 10:15:34 -07:00
UserBinaryDictionary.java Remove shortcut support from LatinIME. 2015-02-11 13:02:41 -08:00
WordComposer.java Race condition in cursor move. 2015-02-27 10:29:47 -08:00
WordListInfo.java Arrange to send the rawChecksum to LatinIME. 2014-05-22 11:01:04 +09:00