Revert^2 "Allow hiding the IME navigation bar"

Allow hiding the IME navigation bar

This implements a mechanism to allow IMEs to request hiding the IME
navigation bar (containing the IME collapse and IME switcher buttons)
using existing InsetsControllers API.

To make this work, the previous insetsSizeOverride for the IME set on
the system navigation bar was removed, and the IME navigation bar is now
treated as a caption bar internally, providing insets from its own
process.

Tests were fixed by providing a default implementation for
setImeCaptionBarInsetsHeight, and by handling ID_IME_CAPTION_BAR
in InsetsSource#calculateInsets.

42aaa57f93a739258169051685943b09c52426f3

Test: atest
  InputMethodServiceTest#testRequestHideImeCaptionBar
  InputMethodServiceTest#testRequestHideThenShowImeCaptionBar
Bug: 292515843

Change-Id: I8793db69fb846046300d5a56b3b0060138ef4cd5
8 files changed