Commit Graph

14 Commits

Author SHA1 Message Date
Ming-Shin Lu
9b36e56849 Remove onToggleSoftInput
As CL[1] removed InputMethodService#onToggleSoftInput since framework
side changed internal protocal to simplify the toggle logic without
this method callback.

Also remove ClientCallbackImpl#onToggleSoftInput for
MultiClientInputMethod sample app part to sync this change.

[1]: I390dc029e7bcc30c200926a9bfbbbd0268a1f714

Bug: 182071625
Test: build MultiClientInputMethod
Change-Id: I25568d9d0a963562fdc1d4a021f7016689b9ca54
2021-04-26 15:09:09 +08:00
Treehugger Robot
4f2eb07963 Merge "Update language to comply with Android’s inclusive language guidance" am: aace0e5dad am: 762e462fea
Original change: https://android-review.googlesource.com/c/platform/development/+/1381456

Change-Id: I31b165b51d8a4caa87daf3341fb7eeeb8962e520
2020-07-31 17:01:22 +00:00
Jeff Sharkey
29bc7dcc26 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: I56dd8778516103367dc17ae55bdff4457185de46
2020-07-30 20:05:08 -06:00
Antonio Kantek
c448acb573 Disabling popped preview key since it is currently broken.
Test script:
Step 1: Patch this CL, ag/11800786 and ag/11802630 on rvc-dev repo
Step 2: Build and flash Hawk
Step 3: Build and install a sample multi-client IME
  make -j MultiClientInputMethod
  adb install -r $OUT/system/priv-app/MultiClientInputMethod/MultiClientInputMethod.apk
Step 4: Enable multi-client IME for the side-loaded sample multi-client IME
  adb root
  adb shell setprop persist.debug.multi_client_ime com.example.android.multiclientinputmethod/.MultiClientInputMethod
  adb reboot
Step 5: Open KitchenSync app, select carboard, enter text on Plain Text
tab (sample multi-session keyboard doesn't support numeric keyboard yet)

Bug: 158663354
Test: manual (see test script above)
Change-Id: I11cf467acb1091b1d417e5039519e09fa7be2bf8
2020-06-10 18:49:26 +00:00
lumark
eac77301f8 Remove StartInputFlags.FIRST_WINDOW_FOCUS_GAIN
Since this flag does not do any check during start input,
CL[1] removes this flag and the related parameter for IMM#onPostWindowFocus
to keep the logic simpler (included removing
ViewRootImpl#mHasHadWindowFocus).

Also remove this flag's debug string for For MultiClientInputMethod.

This is refector CL and does not impact any behavior change.

CL[1]: I9119f4846cbbd2b15246dea9a3b1fc5845dce951

Bug: 141738570
Test: Refector CL, make sure all existing test passed.
Change-Id: I9c8c9ac0ce5d0e4a803842d4cefb9119ec51024d
2019-10-29 23:59:42 +08:00
Tarandeep Singh
ea0fe35391 Fix MSIME client's active state
Introduce per-display active client. Also, deactivate previous client
when window loses focus so that connection can be restarted on next
focus gain.

Test: Manually using the steps in bug.
Bug: 131619304
Change-Id: Iefad3f018ef0cc1b3729af4a140afa1b52139ce0
Merged-In: Iefad3f018ef0cc1b3729af4a140afa1b52139ce0
2019-09-10 04:16:10 +00:00
Yuncheol Heo
52b912ddd6 Supports VirtualDisplay for the input window mappings.
- Uses the regular expression to match the display unique id.
- Changes the config separator from comma to slash, since comma is used in
  virtual display unique id.
- Adds the example config for ActivityView.

Bug: 136039906
Test: manually with the example configs.
Change-Id: I51917d39c5cb11666dcb4fea69545f3075a024a7
2019-08-26 18:24:49 -07:00
Yuncheol Heo
073cb3db84 Supports the separate display for the input window.
Bug: 136039906
Test: Test manually with the uncommented example config in hawk_md.
Change-Id: I404cc2ce137563ced8e2180dd0539bd98524ff57
2019-07-12 14:51:52 -07:00
Tarandeep Singh
0f7a3f791d Fix MSIME client's active state
Introduce per-display active client. Also, deactivate previous client
when window loses focus so that connection can be restarted on next
focus gain.

Test: Manually using the steps in bug.
Bug: 131619304
Change-Id: Iefad3f018ef0cc1b3729af4a140afa1b52139ce0
2019-06-13 11:39:38 -07:00
Yuncheol Heo
9d4c7d79dc Handle a shift key.
- Add a symbol shift keylayout.
- Apply a shifted state (upper case) on the next key input.

Bug: 132636760
Test: test manually.
Change-Id: I7447b9df47a953dad7216977e0b75ab801d863e4
2019-05-16 22:51:38 +00:00
Yuncheol Heo
94376a0ffe Add a symbol keyboard.
- Add a symbol layout.
- Let it change the layout between qwerty and symbol on KEYCODE_MODE_CHANGE.
- Adjust key-sizes of the last row in the qwerty keyboard to make it 100%

Bug: 132636760
Test: test manually
Change-Id: I33bd70dc47498ad3f6d255641c9edf48113c053d
2019-05-16 14:04:34 -07:00
Tarandeep Singh
f4de813fcf MSIME sample: Make lastClientId non-static
This is a followup for comment in I77bf8c844838f32888004611975cfa316255961b
lastClientId doesn't need to be static as MultiClientInputMethod is single instance.

Bug: 128751901
Test: Manually verified using steps in bug.

Change-Id: I049a5e9966408b1d304e23713fae2c3597d89a5c
2019-04-16 15:05:10 -07:00
Tarandeep Singh
0994cdf0dc Modify MSIME sample to use setActive()
MSIME sample can now set connection active/inactive.

Bug: 128751901
Test: Manually verified using steps in bug.
Change-Id: I77bf8c844838f32888004611975cfa316255961b
2019-04-11 15:57:42 -07:00
Yohei Yukawa
eb0868906c Add a sample multi-client IME
This CL adds a sample multi-client IME.  Ahthough there are still many
limitations and missing features in this sample IME, this CL
demonstrates how a multi-client IME can be implemented.

Fix: 115784148
Test: prebuilts/checkstyle/checkstyle.py -f \
      development/samples/MultiClientInputMethod/
Test: Manually verified as follows:
  1. make -j MultiClientInputMethod
  2. adb install -r $OUT/system/priv-app/MultiClientInputMethod/MultiClientInputMethod.apk
  3. adb root
  4. adb shell setprop persist.debug.multi_client_ime \
       com.example.android.multiclientinputmethod/.MultiClientInputMethod
  5. adb reboot
  6. Try multiple text input scenario
Change-Id: Ide43e16448fa00355a2c08bc45ae94d98553da50
2018-11-12 15:09:07 -08:00