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
  • Field Details

  • Constructor Details

    • ShadowWindowManagerImpl

      public ShadowWindowManagerImpl()
  • Method Details

    • addView

      @Implementation public void addView(View view, ViewGroup.LayoutParams layoutParams)
    • removeView

      @Implementation public void removeView(View view)
    • removeViewImmediate

      @Implementation protected void removeViewImmediate(View view)
    • getViews

      public List<View> getViews()
    • getDefaultDisplay

      @Implementation(maxSdk=16) public Display getDefaultDisplay()
    • getWindowInsetsFromServer

      @Implementation(minSdk=30, maxSdk=32) protected WindowInsets getWindowInsetsFromServer(WindowManager.LayoutParams attrs, Rect bounds)
      Re implement to avoid server call
    • reset

      @Resetter public static void reset()