PHASE_IME_APPLY_VISIBILITY_INSETS_CONSUMER timeout

Fixes a timeout at PHASE_IME_APPLY_VISIBILITY_INSETS_CONSUMER by moving
the progress call into the InputMethodPrivilegedOperations, and adding a
fail call as well.

Test: n/a
Bug: 292092249
Change-Id: If7472c9ce408d58784b80f4cf1e3ae039c282986
This commit is contained in:
Cosmin Băieș
2023-07-20 17:48:06 +02:00
parent 706c4bcfe1
commit 2a7fd46123
2 changed files with 4 additions and 2 deletions

View File

@@ -2986,8 +2986,6 @@ public class InputMethodService extends AbstractInputMethodService {
ImeTracing.getInstance().triggerServiceDump(
"InputMethodService#applyVisibilityInInsetsConsumerIfNecessary", mDumper,
null /* icProto */);
ImeTracker.forLogging().onProgress(mCurStatsToken,
ImeTracker.PHASE_IME_APPLY_VISIBILITY_INSETS_CONSUMER);
mPrivOps.applyImeVisibilityAsync(setVisible
? mCurShowInputToken : mCurHideInputToken, setVisible, mCurStatsToken);
}

View File

@@ -386,8 +386,12 @@ public final class InputMethodPrivilegedOperations {
@Nullable ImeTracker.Token statsToken) {
final IInputMethodPrivilegedOperations ops = mOps.getAndWarnIfNull();
if (ops == null) {
ImeTracker.forLogging().onFailed(statsToken,
ImeTracker.PHASE_IME_APPLY_VISIBILITY_INSETS_CONSUMER);
return;
}
ImeTracker.forLogging().onProgress(statsToken,
ImeTracker.PHASE_IME_APPLY_VISIBILITY_INSETS_CONSUMER);
try {
ops.applyImeVisibilityAsync(showOrHideInputToken, setVisible, statsToken);
} catch (RemoteException e) {