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 ShadowWindowShadow for PhoneWindow for APIs 23+
-
-
Field Summary
Fields Modifier and Type Field Description protected booleandecorFitsSystemWindowsprotected WindowrealWindow-
Fields inherited from class org.robolectric.shadows.ShadowWindow
backgroundDrawable, title
-
-
Constructor Summary
Constructors Constructor Description ShadowPhoneWindow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetDecorFitsSystemWindows()Returns true with the last value passed tosetDecorFitsSystemWindows(boolean), or the default value (true).protected intgetOptionsPanelGravity()voidsetBackgroundDrawable(Drawable drawable)protected voidsetDecorFitsSystemWindows(boolean decorFitsSystemWindows)voidsetTitle(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 Detail
-
realWindow
@RealObject protected Window realWindow
-
decorFitsSystemWindows
protected boolean decorFitsSystemWindows
-
-
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 tosetDecorFitsSystemWindows(boolean), or the default value (true).
-
-