@Test public void asyncIgnoredPre16() { ReflectionHelpers.setStaticField(Build.VERSION.class, "SDK_INT", 14); ShadowLooper mainLooper = ShadowLooper.getShadowMainLooper(); mainLooper.pause(); ShadowMessageQueue mainMessageQueue = shadowOf(Looper.getMainLooper().getQueue()); Scheduler main = AndroidInteropSchedulers.from(Looper.getMainLooper(), true); main.scheduleDirect(new Runnable() { @Override public void run() { } }); Message message = mainMessageQueue.getHead(); assertFalse(message.isAsynchronous()); }
public static Scheduler from(Looper looper) { return from(looper, false); }
AndroidInteropSchedulers { public static Scheduler from(Looper looper) { return from(looper, false); } }
AndroidInteropSchedulers { public static Scheduler from(Looper looper) { return from(looper, false); } private  AndroidInteropSchedulers(); }
AndroidInteropSchedulers { public static Scheduler from(Looper looper) { return from(looper, false); } private  AndroidInteropSchedulers(); static Scheduler mainThread(); static Scheduler from(Looper looper); @SuppressLint("NewApi") // Checking for an @hide API. static Scheduler from(Looper looper, boolean async); }
AndroidInteropSchedulers { public static Scheduler from(Looper looper) { return from(looper, false); } private  AndroidInteropSchedulers(); static Scheduler mainThread(); static Scheduler from(Looper looper); @SuppressLint("NewApi") // Checking for an @hide API. static Scheduler from(Looper looper, boolean async);  }