Package org.robolectric.shadows
Class ShadowWindowManagerImpl
- java.lang.Object
-
- org.robolectric.shadows.ShadowWindowManager
-
- org.robolectric.shadows.ShadowWindowManagerImpl
-
@Implements(value=android.view.WindowManagerImpl.class, isInAndroidSdk=false) public class ShadowWindowManagerImpl extends ShadowWindowManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowWindowManagerImpl.ShadowCompatModeWrapper
-
Field Summary
Fields Modifier and Type Field Description static int
NEW_INSETS_MODE_FULL
-
Constructor Summary
Constructors Constructor Description ShadowWindowManagerImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addView(View view, ViewGroup.LayoutParams layoutParams)
static void
configureDefaultDisplayForJBOnly(Configuration configuration, DisplayMetrics displayMetrics)
internal onlyDisplay
getDefaultDisplay()
List<View>
getViews()
protected WindowInsets
getWindowInsetsFromServer(WindowManager.LayoutParams attrs, Rect bounds)
Re implement to avoid server callvoid
removeView(View view)
protected void
removeViewImmediate(View view)
static void
reset()
-
-
-
Field Detail
-
NEW_INSETS_MODE_FULL
public static final int NEW_INSETS_MODE_FULL
- See Also:
- Constant Field Values
-
-
Method Detail
-
configureDefaultDisplayForJBOnly
public static void configureDefaultDisplayForJBOnly(Configuration configuration, DisplayMetrics displayMetrics)
internal only
-
addView
@Implementation public void addView(View view, ViewGroup.LayoutParams layoutParams)
-
removeView
@Implementation public void removeView(View view)
-
removeViewImmediate
@Implementation protected void removeViewImmediate(View view)
-
getDefaultDisplay
@Implementation(maxSdk=16) public Display getDefaultDisplay()
-
getWindowInsetsFromServer
@Implementation(minSdk=30) protected WindowInsets getWindowInsetsFromServer(WindowManager.LayoutParams attrs, Rect bounds)
Re implement to avoid server call
-
reset
@Resetter public static void reset()
-
-