Home | History | Annotate | Download | only in shadows
      1 package org.robolectric.shadows;
      2 
      3 import static android.os.Build.VERSION_CODES.JELLY_BEAN_MR1;
      4 
      5 import android.os.Looper;
      6 import android.view.WindowManagerGlobal;
      7 import org.robolectric.annotation.Implementation;
      8 import org.robolectric.annotation.Implements;
      9 import org.robolectric.annotation.Resetter;
     10 import org.robolectric.util.ReflectionHelpers;
     11 
     12 @Implements(value = WindowManagerGlobal.class, isInAndroidSdk = false, minSdk = JELLY_BEAN_MR1)
     13 public class ShadowWindowManagerGlobal {
     14 
     15   @Resetter
     16   public static void reset() {
     17     ReflectionHelpers.setStaticField(WindowManagerGlobal.class, "sDefaultWindowManager", null);
     18   }
     19 
     20   @Implementation
     21   public static Object getWindowSession() {
     22     return null;
     23   }
     24 
     25   @Implementation
     26   public static Object getWindowSession(Looper looper) {
     27     return null;
     28   }
     29 
     30   @Implementation
     31   public static Object getWindowManagerService() {
     32     return null;
     33   }
     34 
     35 }