Class ShadowPhoneWindow

java.lang.Object
org.robolectric.shadows.ShadowWindow
org.robolectric.shadows.ShadowPhoneWindow
Direct Known Subclasses:
ShadowPhoneWindowFor22

@Implements(className="com.android.internal.policy.PhoneWindow", isInAndroidSdk=false, minSdk=23) public class ShadowPhoneWindow extends ShadowWindow
Shadow for PhoneWindow for APIs 23+
  • Field Details

    • realWindow

      @RealObject protected Window realWindow
    • decorFitsSystemWindows

      protected boolean decorFitsSystemWindows
  • Constructor Details

    • ShadowPhoneWindow

      public ShadowPhoneWindow()
  • Method Details

    • setTitle

      @Implementation(minSdk=23) public void setTitle(CharSequence title)
    • setBackgroundDrawable

      @Implementation(minSdk=23) public void setBackgroundDrawable(Drawable drawable)
    • getOptionsPanelGravity

      @Implementation protected int getOptionsPanelGravity()
    • setDecorFitsSystemWindows

      @Implementation(minSdk=30) protected void setDecorFitsSystemWindows(boolean decorFitsSystemWindows)
    • getDecorFitsSystemWindows

      @RequiresApi(30) public boolean getDecorFitsSystemWindows()
      Returns true with the last value passed to setDecorFitsSystemWindows(boolean), or the default value (true).