@Test public void getDownloadManager() { DownloadManager downloadManager = mock(DownloadManager.class); when(mContext.getSystemService(DOWNLOAD_SERVICE)).thenReturn(downloadManager); assertEquals(downloadManager, mReleaseDownloader.getDownloadManager()); }
DownloadManager getDownloadManager() { return (DownloadManager) mContext.getSystemService(DOWNLOAD_SERVICE); }
DownloadManagerReleaseDownloader extends AbstractReleaseDownloader { DownloadManager getDownloadManager() { return (DownloadManager) mContext.getSystemService(DOWNLOAD_SERVICE); } }
DownloadManagerReleaseDownloader extends AbstractReleaseDownloader { DownloadManager getDownloadManager() { return (DownloadManager) mContext.getSystemService(DOWNLOAD_SERVICE); } DownloadManagerReleaseDownloader(@NonNull Context context, @NonNull ReleaseDetails releaseDetails, @NonNull Listener listener); }
DownloadManagerReleaseDownloader extends AbstractReleaseDownloader { DownloadManager getDownloadManager() { return (DownloadManager) mContext.getSystemService(DOWNLOAD_SERVICE); } DownloadManagerReleaseDownloader(@NonNull Context context, @NonNull ReleaseDetails releaseDetails, @NonNull Listener listener); @Override synchronized boolean isDownloading(); @AnyThread @Override synchronized void resume(); @Override synchronized void cancel(); }
DownloadManagerReleaseDownloader extends AbstractReleaseDownloader { DownloadManager getDownloadManager() { return (DownloadManager) mContext.getSystemService(DOWNLOAD_SERVICE); } DownloadManagerReleaseDownloader(@NonNull Context context, @NonNull ReleaseDetails releaseDetails, @NonNull Listener listener); @Override synchronized boolean isDownloading(); @AnyThread @Override synchronized void resume(); @Override synchronized void cancel();  }