@Test public void setup_withContext_hold() { FileDownloader.setup(application); Assert.assertEquals(application.getApplicationContext(), FileDownloadHelper.getAppContext()); }
public static void setup(Context context) { FileDownloadHelper.holdContext(context.getApplicationContext()); }
FileDownloader { public static void setup(Context context) { FileDownloadHelper.holdContext(context.getApplicationContext()); } }
FileDownloader { public static void setup(Context context) { FileDownloadHelper.holdContext(context.getApplicationContext()); }  }
FileDownloader { public static void setup(Context context) { FileDownloadHelper.holdContext(context.getApplicationContext()); }  static void setup(Context context); static DownloadMgrInitialParams.InitCustomMaker setupOnApplicationOnCreate(Application application); static void init(final Context context); static void init(final Context context,
                            final DownloadMgrInitialParams.InitCustomMaker maker); static FileDownloader getImpl(); static void setGlobalPost2UIInterval(final int intervalMillisecond); static void setGlobalHandleSubPackageSize(final int packageSize); static void enableAvoidDropFrame(); static void disableAvoidDropFrame(); static boolean isEnabledAvoidDropFrame(); BaseDownloadTask create(final String url); boolean start(final FileDownloadListener listener, final boolean isSerial); void pause(final FileDownloadListener listener); void pauseAll(); int pause(final int id); boolean clear(final int id, final String targetFilePath); void clearAllTaskData(); long getSoFar(final int downloadId); long getTotal(final int id); byte getStatusIgnoreCompleted(final int id); byte getStatus(final String url, final String path); byte getStatus(final int id, final String path); int replaceListener(String url, FileDownloadListener listener); int replaceListener(String url, String path, FileDownloadListener listener); int replaceListener(int id, FileDownloadListener listener); void bindService(); void bindService(final Runnable runnable); void unBindService(); boolean unBindServiceIfIdle(); boolean isServiceConnected(); void addServiceConnectListener(final FileDownloadConnectListener listener); void removeServiceConnectListener(final FileDownloadConnectListener listener); void startForeground(int id, Notification notification); void stopForeground(boolean removeNotification); @SuppressWarnings("UnusedParameters") boolean setTaskCompleted(String url, String path, long totalBytes); @SuppressWarnings("UnusedParameters") boolean setTaskCompleted(@SuppressWarnings("deprecation") List<FileDownloadTaskAtom> taskAtomList); boolean setMaxNetworkThreadCount(final int count); FileDownloadLine insureServiceBind(); FileDownloadLineAsync insureServiceBindAsync(); }
FileDownloader { public static void setup(Context context) { FileDownloadHelper.holdContext(context.getApplicationContext()); }  static void setup(Context context); static DownloadMgrInitialParams.InitCustomMaker setupOnApplicationOnCreate(Application application); static void init(final Context context); static void init(final Context context,
                            final DownloadMgrInitialParams.InitCustomMaker maker); static FileDownloader getImpl(); static void setGlobalPost2UIInterval(final int intervalMillisecond); static void setGlobalHandleSubPackageSize(final int packageSize); static void enableAvoidDropFrame(); static void disableAvoidDropFrame(); static boolean isEnabledAvoidDropFrame(); BaseDownloadTask create(final String url); boolean start(final FileDownloadListener listener, final boolean isSerial); void pause(final FileDownloadListener listener); void pauseAll(); int pause(final int id); boolean clear(final int id, final String targetFilePath); void clearAllTaskData(); long getSoFar(final int downloadId); long getTotal(final int id); byte getStatusIgnoreCompleted(final int id); byte getStatus(final String url, final String path); byte getStatus(final int id, final String path); int replaceListener(String url, FileDownloadListener listener); int replaceListener(String url, String path, FileDownloadListener listener); int replaceListener(int id, FileDownloadListener listener); void bindService(); void bindService(final Runnable runnable); void unBindService(); boolean unBindServiceIfIdle(); boolean isServiceConnected(); void addServiceConnectListener(final FileDownloadConnectListener listener); void removeServiceConnectListener(final FileDownloadConnectListener listener); void startForeground(int id, Notification notification); void stopForeground(boolean removeNotification); @SuppressWarnings("UnusedParameters") boolean setTaskCompleted(String url, String path, long totalBytes); @SuppressWarnings("UnusedParameters") boolean setTaskCompleted(@SuppressWarnings("deprecation") List<FileDownloadTaskAtom> taskAtomList); boolean setMaxNetworkThreadCount(final int count); FileDownloadLine insureServiceBind(); FileDownloadLineAsync insureServiceBindAsync();  }