diff options
| author | 2022-04-18 08:59:50 -0700 | |
|---|---|---|
| committer | 2022-04-18 08:59:50 -0700 | |
| commit | d92f3fca7402f54ae59b8fc4a450878332009531 (patch) | |
| tree | 0f160b1a47e199c7567064b803a058e5cf2a8ad7 /cmds/bootanimation/BootAnimation.cpp | |
| parent | c60176c1f315e10c95f3eec0019149d7b7932aa9 (diff) | |
Auto finish composing text when A11yIME commits text
We have intentionally not exposed "composition" related APIs to
A11yIME to minimize the problem space of concurrent text editing
between the real IME and A11yIMEs.  To make this model more
predictable and reliable, it is planned to finish any existing
composing text when
  AccessibilityInputConnection#commitText()
gets called.  This CL actually make it happen.
Fix: 218749467
Test: Manually verified with sample A11yIme as follows.
  1. Build aosp_coral-userdebug and flash it.
  2. make -j EditTextVariations
  3. adb install -r $ANDROID_TARGET_OUT_TESTCASES/EditTextVariations/arm64/EditTextVariations.apk
  4. make -j SampleInputMethodAccessibilityService
  5. adb install -r $OUT/system/app/SampleInputMethodAccessibilityService/SampleInputMethodAccessibilityService.apk
  6. adb shell settings put secure enabled_accessibility_services com.example.android.sampleinputmethodaccessibilityservice/com.example.android.sampleinputmethodaccessibilityservice.SampleInputMethodAccessibilityService
  7. adb shell am start -n com.android.inputmethod.tools.edittextvariations/.EditTextVariations
  8. Tap the top edit field.
  9. Make sure that AOSP Keyboard shows up.
 10. Type "abc" with AOSP Keyboard.
 11. Hit "A" button on the sample A11yIME.
 12. Make sure that the text becomes "abcA".
Change-Id: I4afd279d8bc1a04d4e52ccb947dc28aed8f891f0
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions