Inline IMM.DelegateImpl#finishInput()

This CL inlines

  InputMethodManager.DelegateImpl#finishInput().

There must be no observable behavior change except for we no longer
log IME tracing event

  "InputMethodManager.DelegateImpl#finishInput".

If that event is turned out to be useful, we can add a similar tag
later, but for now it doesn't look to be critically useful.

Bug: 234882948
Test: presubmit
Change-Id: Ie204f9f665e9ab4814100068ac357fbb4b26b5a5
This commit is contained in:
Yohei Yukawa
2022-10-13 21:53:02 -07:00
parent b7b38bd0b3
commit 867ceacb77

View File

@@ -738,15 +738,6 @@ public final class InputMethodManager {
private final class DelegateImpl implements
ImeFocusController.InputMethodManagerDelegate {
private void finishInput() {
ImeTracing.getInstance().triggerClientDump(
"InputMethodManager.DelegateImpl#finishInput", InputMethodManager.this,
null /* icProto */);
synchronized (mH) {
finishInputLocked();
}
}
/**
* Used by {@link ImeFocusController} to finish input connection and callback
* {@link InputMethodService#onFinishInput()}.
@@ -899,7 +890,7 @@ public final class InputMethodManager {
}
// Close the connection when no next served view coming.
if (mNextServedView == null) {
finishInput();
finishInputLocked();
closeCurrentInput();
return false;
}
@@ -939,7 +930,7 @@ public final class InputMethodManager {
return;
}
if (mServedView != null) {
finishInput();
finishInputLocked();
}
setCurrentRootView(null);
}