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 import static android.os.Build.VERSION_CODES.JELLY_BEAN_MR2;
      5 
      6 import android.os.Looper;
      7 import android.view.WindowManagerGlobal;
      8 import org.robolectric.annotation.Implementation;
      9 import org.robolectric.annotation.Implements;
     10 import org.robolectric.annotation.Resetter;
     11 import org.robolectric.util.ReflectionHelpers;
     12 
     13 @Implements(value = WindowManagerGlobal.class, isInAndroidSdk = false,
     14     minSdk = JELLY_BEAN_MR1, looseSignatures = true)
     15 public class ShadowWindowManagerGlobal {
     16 
     17   @Resetter
     18   public static void reset() {
     19     ReflectionHelpers.setStaticField(
     20         WindowManagerGlobal.class, "sDefaultWindowManager", null);
     21   }
     22 
     23   @Implementation(minSdk = JELLY_BEAN_MR2)
     24   public static Object getWindowSession() {
     25     return null;
     26   }
     27 
     28   @Implementation(maxSdk = JELLY_BEAN_MR1)
     29   public static Object getWindowSession(Looper looper) {
     30     return null;
     31   }
     32 
     33   @Implementation
     34   public static Object getWindowManagerService() {
     35     return null;
     36   }
     37 
     38 }