Exemplo n.º 1
0
 public static void resetStaticState() {
   ShadowWrangler.getInstance().silence();
   Robolectric.application = new Application();
   ShadowBitmapFactory.reset();
   ShadowDrawable.reset();
   ShadowMediaStore.reset();
   ShadowLog.reset();
   ShadowContext.clearFilesAndCache();
   ShadowLooper.resetThreadLoopers();
 }
Exemplo n.º 2
0
 public static void resetStaticState() {
   ShadowWrangler.getInstance().silence();
   Robolectric.application = new Application();
   ShadowBitmapFactory.reset();
   ShadowDrawable.reset();
   ShadowMediaStore.reset();
   ShadowLog.reset();
   ShadowContext.clearFilesAndCache();
   ShadowLooper.resetThreadLoopers();
   ShadowDialog.reset();
   ShadowContentResolver.reset();
   ShadowLocalBroadcastManager.reset();
   ShadowMimeTypeMap.reset();
   ShadowPowerManager.reset();
   ShadowStatFs.reset();
   ShadowTypeface.reset();
 }
Exemplo n.º 3
0
 public static void idleMainLooper(int interval) {
   ShadowLooper.idleMainLooper(interval);
 }
Exemplo n.º 4
0
 public static void unPauseMainLooper() {
   ShadowLooper.unPauseMainLooper();
 }
Exemplo n.º 5
0
 public static void pauseMainLooper() {
   ShadowLooper.pauseMainLooper();
 }
Exemplo n.º 6
0
 public static void unPauseLooper(Looper looper) {
   ShadowLooper.unPauseLooper(looper);
 }
Exemplo n.º 7
0
 public static void pauseLooper(Looper looper) {
   ShadowLooper.pauseLooper(looper);
 }
Exemplo n.º 8
0
 public static void idleMainLooperConstantly(boolean shouldIdleConstantly) {
   ShadowLooper.idleMainLooperConstantly(shouldIdleConstantly);
 }