LatinIME/java/src/com/android/inputmethod/latin
Yohei Yukawa fdfc55d3db Introduce a custom intent action to close software keyboard
This CL introduces a custom intent action for apps to ask AOSP Keyboard to
close its software keyboard with guarding it with a signature-protected
permission.

Any app that is signed with the same signature as AOSP Keyboard can have
the following line in AndroidManifest.xml

  <uses-permission
          android:name="com.android.inputmethod.latin.HIDE_SOFT_INPUT"/>

to request AOSP Keyboard to close its software keyboard as follows.

  sendBroadcast(new Intent("com.android.inputmethod.latin.HIDE_SOFT_INPUT")
          .setPackage("com.android.inputmethod.latin"));

Test: Manually verified with a test app.
Fixes: 65270710
Change-Id: I4fd2e3a7336ec66c70582a2f274a200cbf035a7f
2017-09-01 00:22:21 -07:00
..
accounts Don't restore device specific preferences 2014-10-10 10:49:32 -07:00
inputlogic Merge changes Iaed8abfb,I8e55b57c into jb-ub-latinimegoogle 2015-06-23 20:55:23 +00:00
makedict Retire Delight2 migration code to speed up tests. 2015-03-20 11:16:46 -07:00
network Fix Javadoc and null analysis related warnings 2014-10-23 09:58:42 +09:00
permissions [LatinIME] Support MNC permissions. 2015-07-15 22:51:53 +00:00
personalization Use BinaryDicitonary.MAX_PREV_WORD_COUNT_FOR_NGRAM for D2 dictioanries. 2015-03-17 11:43:16 -07:00
settings Handle Cloud Sync and SpellChecker settings when permission changed 2015-07-24 02:00:54 +00:00
setup Add StatsUtils.onSettingsActivity to collect the settings page stats. 2015-03-13 16:12:14 -07:00
spellcheck Handle Cloud Sync and SpellChecker settings when permission changed 2015-07-24 02:00:54 +00:00
suggestions Fix the ellipses image scaling of LatinIME 2015-08-12 18:03:44 +00:00
userdictionary Bring back shortcuts and add to dictionary UI 2015-07-06 17:32:13 -07:00
utils [LatinIME] Support MNC permissions. 2015-07-15 22:51:53 +00: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
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
DictionaryFactory.java Don't notify dictpack for updates for service dump 2015-03-27 11:10:00 -07:00
DictionaryPackInstallBroadcastReceiver.java
DictionaryStats.java Specify fileName argument as Nullable. 2015-04-23 14:12:33 -07:00
DicTraverseSession.java Move decoder specific constants to DecoderSpecificConstants.java 2015-02-05 13:27:36 -08: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 Introduce a custom intent action to close software keyboard 2017-09-01 00:22:21 -07:00
NgramContext.java Carry over the mMaxPreWordCount when creating the new NgramContext 2015-03-17 12:31:18 -07:00
PersonalDictionaryLookup.java Store raw strings for personal dictionary 2015-04-13 16:28:26 -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