Loading core/java/android/window/WindowTokenClient.java +1 −4 Original line number Diff line number Diff line Loading @@ -31,10 +31,8 @@ import android.content.res.Configuration; import android.inputmethodservice.AbstractInputMethodService; import android.os.Binder; import android.os.Build; import android.os.Bundle; import android.os.Debug; import android.os.Handler; import android.os.IBinder; import android.util.Log; import com.android.internal.annotations.GuardedBy; Loading Loading @@ -76,8 +74,7 @@ public class WindowTokenClient extends Binder { * Attaches {@code context} to this {@link WindowTokenClient}. Each {@link WindowTokenClient} * can only attach one {@link Context}. * <p>This method must be called before invoking * {@link android.view.IWindowManager#attachWindowContextToDisplayArea(IBinder, int, int, * Bundle)}.<p/> * {@link android.view.IWindowManager#attachWindowContextToDisplayArea}.<p/> * * @param context context to be attached * @throws IllegalStateException if attached context has already existed. Loading services/tests/wmtests/src/com/android/server/wm/InputMethodDialogWindowContextTest.java +3 −0 Original line number Diff line number Diff line Loading @@ -160,6 +160,9 @@ public class InputMethodDialogWindowContextTest extends WindowTestsBase { final DisplayAreaGroup firstDaGroup = mSecondaryDisplay.mFirstRoot; maxBoundsVerifier.setMaxBounds(firstDaGroup.getMaxBounds()); // Clear the previous invocation histories in case we may count the previous // onConfigurationChanged invocation into the next verification. clearInvocations(tokenClient, imeContainer); firstDaGroup.placeImeContainer(imeContainer); verify(imeContainer, timeout(WAIT_TIMEOUT_MS)).onConfigurationChanged( Loading Loading
core/java/android/window/WindowTokenClient.java +1 −4 Original line number Diff line number Diff line Loading @@ -31,10 +31,8 @@ import android.content.res.Configuration; import android.inputmethodservice.AbstractInputMethodService; import android.os.Binder; import android.os.Build; import android.os.Bundle; import android.os.Debug; import android.os.Handler; import android.os.IBinder; import android.util.Log; import com.android.internal.annotations.GuardedBy; Loading Loading @@ -76,8 +74,7 @@ public class WindowTokenClient extends Binder { * Attaches {@code context} to this {@link WindowTokenClient}. Each {@link WindowTokenClient} * can only attach one {@link Context}. * <p>This method must be called before invoking * {@link android.view.IWindowManager#attachWindowContextToDisplayArea(IBinder, int, int, * Bundle)}.<p/> * {@link android.view.IWindowManager#attachWindowContextToDisplayArea}.<p/> * * @param context context to be attached * @throws IllegalStateException if attached context has already existed. Loading
services/tests/wmtests/src/com/android/server/wm/InputMethodDialogWindowContextTest.java +3 −0 Original line number Diff line number Diff line Loading @@ -160,6 +160,9 @@ public class InputMethodDialogWindowContextTest extends WindowTestsBase { final DisplayAreaGroup firstDaGroup = mSecondaryDisplay.mFirstRoot; maxBoundsVerifier.setMaxBounds(firstDaGroup.getMaxBounds()); // Clear the previous invocation histories in case we may count the previous // onConfigurationChanged invocation into the next verification. clearInvocations(tokenClient, imeContainer); firstDaGroup.placeImeContainer(imeContainer); verify(imeContainer, timeout(WAIT_TIMEOUT_MS)).onConfigurationChanged( Loading