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

Commit 71355876 authored by Cosmin Băieș's avatar Cosmin Băieș
Browse files

Make isImeNavigationBarShownForTesting TestApi

This exposes isImeNavigationBarShownForTesting as a TestApi, to be used
through MockIme in CTS tests.

Flag: EXEMPT testfix
Bug: 424078428
Test: atest InputMethodServiceTest#testOnCustomImeSwitcherButtonRequestedVisible_gestureNav
Change-Id: I34a632e39dbd3fcef0981bebf937aed215cfb36f
parent 5e4edde8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1999,6 +1999,7 @@ package android.inputmethodservice {
  }

  @UiContext public class InputMethodService extends android.inputmethodservice.AbstractInputMethodService {
    method public final boolean isImeNavigationBarShownForTesting();
    field public static final long DISALLOW_INPUT_METHOD_INTERFACE_OVERRIDE = 148086656L; // 0x8d39f80L
    field public static final long FINISH_INPUT_NO_FALLBACK_CONNECTION = 156215187L; // 0x94fa793L
  }
+3 −0
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@ import android.annotation.IntDef;
import android.annotation.MainThread;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SuppressLint;
import android.annotation.TestApi;
import android.annotation.UiContext;
import android.app.ActivityManager;
@@ -4368,6 +4369,8 @@ public class InputMethodService extends AbstractInputMethodService {
     *
     * @hide
     */
    @SuppressLint("UnflaggedApi") // @TestApi without associated feature.
    @TestApi
    @VisibleForTesting
    public final boolean isImeNavigationBarShownForTesting() {
        return mNavigationBarController.isShown();