Java 类com.facebook.react.devsupport.DevSupportManager 实例源码

项目:Ironman    文件:Timing.java   
public Timing(ReactApplicationContext reactContext, DevSupportManager devSupportManager) {
  super(reactContext);
  mDevSupportManager = devSupportManager;
  // We store timers sorted by finish time.
  mTimers = new PriorityQueue<Timer>(
      11, // Default capacity: for some reason they don't expose a (Comparator) constructor
      new Comparator<Timer>() {
        @Override
        public int compare(Timer lhs, Timer rhs) {
          long diff = lhs.mTargetTime - rhs.mTargetTime;
          if (diff == 0) {
            return 0;
          } else if (diff < 0) {
            return -1;
          } else {
            return 1;
          }
        }
      });
  mTimerIdsToTimers = new HashMap<>();
  mSendIdleEventsExecutorTokens = new HashSet<>();
  mIdleCallbackContextsToCall = new ArrayList<>();
}
项目:Ironman    文件:ReactIntegrationTestCase.java   
/**
 * Timing module needs to be created on the main thread so that it gets the correct Choreographer.
 */
protected Timing createTimingModule() {
  final SimpleSettableFuture<Timing> simpleSettableFuture = new SimpleSettableFuture<Timing>();
  UiThreadUtil.runOnUiThread(
      new Runnable() {
        @Override
        public void run() {
          Timing timing = new Timing(getContext(), mock(DevSupportManager.class));
          simpleSettableFuture.set(timing);
        }
      });
  try {
    return simpleSettableFuture.get(5000, TimeUnit.MILLISECONDS);
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
}
项目:ReactNativeSignatureExample    文件:ExceptionsManagerModule.java   
public ExceptionsManagerModule(DevSupportManager devSupportManager) {
  mDevSupportManager = devSupportManager;
}
项目:ReactNativeSignatureExample    文件:ReactInstanceManagerImpl.java   
@Override
public DevSupportManager getDevSupportManager() {
  return mDevSupportManager;
}
项目:react-native-workers    文件:WorkerModule.java   
private DevSupportManager getDevSupportManager() {
    return getReactInstanceManager().getDevSupportManager();
}
项目:react-native-workers    文件:ReactContextBuilder.java   
public ReactContextBuilder setDevSupportManager(DevSupportManager devSupportManager) {
    this.devSupportManager = devSupportManager;
    return this;
}
项目:react-native-ibeacon-android    文件:ExceptionsManagerModule.java   
public ExceptionsManagerModule(DevSupportManager devSupportManager) {
  mDevSupportManager = devSupportManager;
}
项目:react-native-ibeacon-android    文件:ReactInstanceManagerImpl.java   
@Override
public DevSupportManager getDevSupportManager() {
  return mDevSupportManager;
}
项目:react-native-box-loaders    文件:ExceptionsManagerModule.java   
public ExceptionsManagerModule(DevSupportManager devSupportManager) {
  mDevSupportManager = devSupportManager;
}
项目:react-native-box-loaders    文件:ReactInstanceManagerImpl.java   
@Override
public DevSupportManager getDevSupportManager() {
  return mDevSupportManager;
}
项目:Ironman    文件:ExceptionsManagerModule.java   
public ExceptionsManagerModule(DevSupportManager devSupportManager) {
  mDevSupportManager = devSupportManager;
}
项目:Ironman    文件:XReactInstanceManagerImpl.java   
@Override
public DevSupportManager getDevSupportManager() {
  return mDevSupportManager;
}
项目:ReactNativeSignatureExample    文件:ReactInstanceManager.java   
public abstract DevSupportManager getDevSupportManager();
项目:react-native-ibeacon-android    文件:ReactInstanceManager.java   
public abstract DevSupportManager getDevSupportManager();
项目:react-native-box-loaders    文件:ReactInstanceManager.java   
public abstract DevSupportManager getDevSupportManager();
项目:Ironman    文件:ReactInstanceManager.java   
public abstract DevSupportManager getDevSupportManager();