Class ShadowPhoneWindow

  • Direct Known Subclasses:
    ShadowPhoneWindowFor22

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

      • realWindow

        @RealObject
        protected Window realWindow
      • decorFitsSystemWindows

        protected boolean decorFitsSystemWindows
    • Constructor Detail

      • ShadowPhoneWindow

        public ShadowPhoneWindow()
    • Method Detail

      • 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

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