public static int addDisplay ( String qualifiersStr ) { int id = getShadowDisplayManagerGlobal ( ) . addDisplay ( createDisplayInfo ( qualifiersStr , null ) ) ; shadowMainLooper ( ) . idle ( ) ; return id ; }
Adds a simulated display and drain the main looper queue to ensure all the callbacks are processed .