Package org.robolectric.shadows
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, looseSignatures=true) public class ShadowPhoneWindow extends ShadowWindow
Shadow for PhoneWindow for APIs 23+
-
Field Summary
Fields Modifier and Type Field Description protected boolean
decorFitsSystemWindows
protected Window
realWindow
-
Constructor Summary
Constructors Constructor Description ShadowPhoneWindow()
-
Method Summary
Modifier and Type Method Description boolean
getDecorFitsSystemWindows()
Returns true with the last value passed tosetDecorFitsSystemWindows(boolean)
, or the default value (true).protected int
getOptionsPanelGravity()
void
setBackgroundDrawable(Drawable drawable)
protected void
setDecorFitsSystemWindows(boolean decorFitsSystemWindows)
void
setTitle(CharSequence title)
Methods inherited from class org.robolectric.shadows.ShadowWindow
addOnFrameMetricsAvailableListener, addPrivateFlags, addSystemFlags, create, getBackgroundDrawable, getFlag, getPrivateFlag, getSoftInputMode, getTitle, removeOnFrameMetricsAvailableListener, reportOnFrameMetricsAvailable, reportOnFrameMetricsAvailable, setFlags, setSoftInputMode
-
Field Details
-
realWindow
-
decorFitsSystemWindows
protected boolean decorFitsSystemWindows
-
-
Constructor Details
-
ShadowPhoneWindow
public ShadowPhoneWindow()
-
-
Method Details
-
setTitle
-
setBackgroundDrawable
-
getOptionsPanelGravity
-
setDecorFitsSystemWindows
@Implementation(minSdk=30) protected void setDecorFitsSystemWindows(boolean decorFitsSystemWindows) -
getDecorFitsSystemWindows
public boolean getDecorFitsSystemWindows()Returns true with the last value passed tosetDecorFitsSystemWindows(boolean)
, or the default value (true).
-