Package org.robolectric.shadows
Class ShadowWindowManagerGlobal
- java.lang.Object
-
- org.robolectric.shadows.ShadowWindowManagerGlobal
-
@Implements(value=android.view.WindowManagerGlobal.class, isInAndroidSdk=false, minSdk=17, looseSignatures=true) public class ShadowWindowManagerGlobal extends Object
-
-
Constructor Summary
Constructors Constructor Description ShadowWindowManagerGlobal()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearLastDragClipData()
Clears the data returned bygetLastDragClipData()
.static boolean
getInTouchMode()
static ClipData
getLastDragClipData()
Returns the lastClipData
passed to a drag initiated from a call toView.startDrag(android.content.ClipData, android.view.View.DragShadowBuilder, java.lang.Object, int)
orView.startDragAndDrop(android.content.ClipData, android.view.View.DragShadowBuilder, java.lang.Object, int)
, or null if there isn't one.static Object
getWindowManagerService()
protected static IWindowSession
getWindowSession()
protected static Object
getWindowSession(Looper looper)
protected static IWindowSession
peekWindowSession()
static void
reset()
-
-
-
Method Detail
-
reset
@Resetter public static void reset()
-
getInTouchMode
public static boolean getInTouchMode()
-
getLastDragClipData
@Nullable public static ClipData getLastDragClipData()
Returns the lastClipData
passed to a drag initiated from a call toView.startDrag(android.content.ClipData, android.view.View.DragShadowBuilder, java.lang.Object, int)
orView.startDragAndDrop(android.content.ClipData, android.view.View.DragShadowBuilder, java.lang.Object, int)
, or null if there isn't one.
-
clearLastDragClipData
public static void clearLastDragClipData()
Clears the data returned bygetLastDragClipData()
.
-
getWindowSession
@Implementation(minSdk=18) protected static IWindowSession getWindowSession()
-
getWindowSession
@Implementation(maxSdk=17) protected static Object getWindowSession(Looper looper)
-
peekWindowSession
@Implementation protected static IWindowSession peekWindowSession()
-
getWindowManagerService
@Implementation public static Object getWindowManagerService() throws RemoteException
- Throws:
RemoteException
-
-