Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0062cec8 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Remove unused logging from IMMS

Bug: 322062773
Test: presubmit
Change-Id: Id164333222803459a4082259ee74ec6cc8f5d998
parent 14420376
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -116,7 +116,6 @@ import android.util.PrintWriterPrinter;
import android.util.Printer;
import android.util.Slog;
import android.util.SparseArray;
import android.util.SparseBooleanArray;
import android.util.proto.ProtoOutputStream;
import android.view.InputChannel;
import android.view.InputDevice;
@@ -282,8 +281,6 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub
    @NonNull
    private InputMethodSettings mSettings;
    final SettingsObserver mSettingsObserver;
    private final SparseBooleanArray mLoggedDeniedGetInputMethodWindowVisibleHeightForUid =
            new SparseBooleanArray(0);
    final WindowManagerInternal mWindowManagerInternal;
    private final ActivityManagerInternal mActivityManagerInternal;
    final PackageManagerInternal mPackageManagerInternal;
@@ -1355,13 +1352,6 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub
            clearPackageChangeState();
        }

        @Override
        public void onUidRemoved(int uid) {
            synchronized (ImfLock.class) {
                mLoggedDeniedGetInputMethodWindowVisibleHeightForUid.delete(uid);
            }
        }

        private void clearPackageChangeState() {
            // No need to lock them because we access these fields only on getRegisteredHandler().
            mChangedPackages.clear();
@@ -4277,10 +4267,6 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub
            synchronized (ImfLock.class) {
                if (!canInteractWithImeLocked(callingUid, client,
                        "getInputMethodWindowVisibleHeight", null /* statsToken */)) {
                    if (!mLoggedDeniedGetInputMethodWindowVisibleHeightForUid.get(callingUid)) {
                        EventLog.writeEvent(0x534e4554, "204906124", callingUid, "");
                        mLoggedDeniedGetInputMethodWindowVisibleHeightForUid.put(callingUid, true);
                    }
                    return 0;
                }
                // This should probably use the caller's display id, but because this is unsupported