Package org.robolectric.shadows
Class ShadowViewRootImpl
- java.lang.Object
-
- org.robolectric.shadows.ShadowViewRootImpl
-
@Implements(value=android.view.ViewRootImpl.class, isInAndroidSdk=false) public class ShadowViewRootImpl extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
ShadowViewRootImpl.ViewRootImplReflector
Reflector interface forViewRootImpl
's internals.
-
Field Summary
Fields Modifier and Type Field Description protected ViewRootImpl
realObject
-
Constructor Summary
Constructors Constructor Description ShadowViewRootImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
callDispatchResized()
protected Display
getDisplay()
protected static IWindowSession
getWindowSession(Looper mainLooper)
void
playSoundEffect(int effectId)
protected int
relayoutWindow(WindowManager.LayoutParams params, int viewVisibility, boolean insetsPending)
static void
reset()
protected void
setView(View view, WindowManager.LayoutParams attrs, View panelParentView)
protected void
setView(View view, WindowManager.LayoutParams attrs, View panelParentView, int userId)
-
-
-
Field Detail
-
realObject
@RealObject protected ViewRootImpl realObject
-
-
Method Detail
-
getWindowSession
@Implementation(maxSdk=16) protected static IWindowSession getWindowSession(Looper mainLooper)
-
playSoundEffect
@Implementation public void playSoundEffect(int effectId)
-
relayoutWindow
@Implementation protected int relayoutWindow(WindowManager.LayoutParams params, int viewVisibility, boolean insetsPending) throws RemoteException
- Throws:
RemoteException
-
callDispatchResized
public void callDispatchResized()
-
getDisplay
protected Display getDisplay()
-
setView
@Implementation protected void setView(View view, WindowManager.LayoutParams attrs, View panelParentView)
-
setView
@Implementation(minSdk=30) protected void setView(View view, WindowManager.LayoutParams attrs, View panelParentView, int userId)
-
reset
@Resetter public static void reset()
-
-