
org.robolectric.shadows.ShadowWindowManagerGlobal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
An alternative Android testing framework.
The newest version!
package org.robolectric.shadows;
import android.os.Looper;
import android.view.WindowManagerGlobal;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.Resetter;
import org.robolectric.util.ReflectionHelpers;
import static android.os.Build.VERSION_CODES.JELLY_BEAN_MR1;
@Implements(value = WindowManagerGlobal.class, isInAndroidSdk = false, minSdk = JELLY_BEAN_MR1)
public class ShadowWindowManagerGlobal {
@Resetter
public static void reset() {
ReflectionHelpers.setStaticField(WindowManagerGlobal.class, "sDefaultWindowManager", null);
}
@Implementation
public static Object getWindowSession() {
return null;
}
@Implementation
public static Object getWindowSession(Looper looper) {
return null;
}
@Implementation
public static Object getWindowManagerService() {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy