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

Commit 414820ec authored by Charles Chen's avatar Charles Chen
Browse files

Add test API getDisplayId for cts test

Bug: 130379901
Bug: 116349163
Test: atest MultiDisplayClientTests
Change-Id: I6f26c3b5a3abcd82945298e62015ea1259aea954
parent f8e4e75d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3389,6 +3389,7 @@ package android.view.contentcapture {
package android.view.inputmethod {

  public final class InputMethodManager {
    method public int getDisplayId();
    method public boolean isInputMethodPickerShown();
  }

+10 −0
Original line number Diff line number Diff line
@@ -2887,6 +2887,16 @@ public final class InputMethodManager {
        }
    }

    /**
     * <p>This is used for CTS test only. Do not use this method outside of CTS package.<p/>
     * @return the ID of this display which this {@link InputMethodManager} resides
     * @hide
     */
    @TestApi
    public int getDisplayId() {
        return mDisplayId;
    }

    void doDump(FileDescriptor fd, PrintWriter fout, String[] args) {
        final Printer p = new PrintWriterPrinter(fout);
        p.println("Input method client state for " + this + ":");