Skip to content
Commit ef1965bd authored by lumark's avatar lumark
Browse files

Show IME in default display for some use cases.

- Since IME is a kind of system decoration, for some use cases
  that has not set FLAG_CAN_SHOW_SYSTEM_DECORATIONS flag,
  it means there is no system decorations in display & need to show IME
  in default display.
- For VR 2D display case, we show IME in default display
  when detected VR IME started.
- Add unit tests for verifying above logics in InputMethodManagerServiceTests:
  - testComputeImeDisplayId_defaultDisplayId
  - testComputeImeDisplayId_InvalidDisplayId
  - testComputeImeDisplayId_VrIme
  - testComputeImeDisplayId_noSystemDecorationSupportDisplay
  - testComputeImeDisplayId_withSystemDecorationSupportDisplay

Bug: 114350902
Test: atest FrameworksServicesTests:InputMethodManagerServiceTests
Change-Id: Iedd71e4ddf4983f90b02dd72e471e7fa8e838fbf
parent 6ea57e1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment