SYMBOL INDEX (1854 symbols across 117 files) FILE: demo/src/main/java/com/liulishuo/filedownloader/demo/Constant.java type Constant (line 6) | public interface Constant { FILE: demo/src/main/java/com/liulishuo/filedownloader/demo/DemoApplication.java class DemoApplication (line 19) | public class DemoApplication extends Application { method onCreate (line 23) | @Override FILE: demo/src/main/java/com/liulishuo/filedownloader/demo/GlobalMonitor.java class GlobalMonitor (line 28) | public class GlobalMonitor implements FileDownloadMonitor.IMonitor { class HolderClass (line 32) | private final static class HolderClass { method getImpl (line 36) | public static GlobalMonitor getImpl() { method onRequestStart (line 42) | @Override method onRequestStart (line 49) | @Override method onTaskBegin (line 53) | @Override method onTaskStarted (line 58) | @Override method onTaskOver (line 63) | @Override method getMarkStart (line 68) | public int getMarkStart() { method getMarkOver (line 72) | public int getMarkOver() { FILE: demo/src/main/java/com/liulishuo/filedownloader/demo/HybridTestActivity.java class HybridTestActivity (line 28) | public class HybridTestActivity extends AppCompatActivity { method onCreate (line 34) | @Override method onClickDel (line 71) | public void onClickDel(final View view) { method onClickStartSingleDownload (line 108) | public void onClickStartSingleDownload(final View view) { method onClickMultiParallel (line 124) | public void onClickMultiParallel(final View view) { method onClickMultiSerial (line 150) | public void onClickMultiSerial(final View view) { method createListener (line 169) | private FileDownloadListener createListener() { method updateDisplay (line 248) | private void updateDisplay(final CharSequence msg) { method run (line 260) | @Override method onDestroy (line 268) | @Override method assignViews (line 279) | private void assignViews() { FILE: demo/src/main/java/com/liulishuo/filedownloader/demo/MainActivity.java class MainActivity (line 18) | public class MainActivity extends AppCompatActivity { method onCreate (line 20) | @Override method onClickMultitask (line 36) | public void onClickMultitask(final View view) { method onClickSingle (line 40) | public void onClickSingle(final View view) { method onClickHybridTest (line 44) | public void onClickHybridTest(final View view) { method onClickTasksManager (line 48) | public void onClickTasksManager(final View view) { method onClickPerformance (line 52) | public void onClickPerformance(final View view) { method onClickNotification (line 56) | public void onClickNotification(final View view){ method onCreateOptionsMenu (line 60) | @Override method onOptionsItemSelected (line 67) | @Override method openGitHub (line 78) | private void openGitHub() { method onDestroy (line 84) | @Override FILE: demo/src/main/java/com/liulishuo/filedownloader/demo/MultitaskTestActivity.java class MultitaskTestActivity (line 46) | public class MultitaskTestActivity extends AppCompatActivity { method onDestroy (line 50) | @Override method onCreate (line 56) | @Override method resetDisplayData (line 144) | private void resetDisplayData() { method start (line 179) | private boolean start() { method pause (line 267) | private void pause() { method stopTimeCount (line 273) | private void stopTimeCount() { method createLis (line 286) | private FileDownloadListener createLis() { method checkEndAll (line 413) | private void checkEndAll() { method goTimeCount (line 429) | private void goTimeCount() { method run (line 439) | @Override method assignViews (line 487) | private void assignViews() { FILE: demo/src/main/java/com/liulishuo/filedownloader/demo/NotificationSampleActivity.java class NotificationSampleActivity (line 50) | public class NotificationSampleActivity extends AppCompatActivity { method onCreate (line 59) | @Override method onClickStart (line 71) | public void onClickStart(final View view) { method onClickPause (line 105) | public void onClickPause(final View view) { method onClickDelete (line 109) | @SuppressWarnings("ResultOfMethodCallIgnored") class NotificationListener (line 129) | private static class NotificationListener extends FileDownloadNotifica... method NotificationListener (line 134) | public NotificationListener( method create (line 143) | @Override method addNotificationItem (line 153) | @Override method destroyNotification (line 161) | @Override method interceptCancel (line 169) | @Override method disableNotification (line 177) | @Override class NotificationItem (line 187) | public static class NotificationItem extends BaseNotificationItem { method NotificationItem (line 191) | private NotificationItem(int id, String title, String desc, String c... method show (line 218) | @Override method onDestroy (line 261) | @Override method assignViews (line 272) | private void assignViews() { FILE: demo/src/main/java/com/liulishuo/filedownloader/demo/SingleTaskTestActivity.java class SingleTaskTestActivity (line 22) | public class SingleTaskTestActivity extends AppCompatActivity { method onCreate (line 24) | @Override method initFilePathEqualDirAndFileName (line 46) | private void initFilePathEqualDirAndFileName() { method initNormalDataAction (line 94) | private void initNormalDataAction() { method initChunkTransferEncodingDataAction (line 120) | private void initChunkTransferEncodingDataAction() { method onDestroy (line 145) | @Override method createDownloadTask (line 152) | private BaseDownloadTask createDownloadTask(final int position) { class ViewHolder (line 237) | private static class ViewHolder { method ViewHolder (line 246) | public ViewHolder(WeakReference weakReferenc... method setFilenameTv (line 256) | public void setFilenameTv(TextView filenameTv) { method updateSpeed (line 260) | private void updateSpeed(int speed) { method updateProgress (line 264) | public void updateProgress(final int sofar, final int total, final i... method updatePending (line 280) | public void updatePending(BaseDownloadTask task) { method updatePaused (line 286) | public void updatePaused(final int speed) { method updateConnected (line 292) | public void updateConnected(String etag, String filename) { method updateWarn (line 298) | public void updateWarn() { method updateError (line 303) | public void updateError(final Throwable ex, final int speed) { method updateCompleted (line 310) | public void updateCompleted(final BaseDownloadTask task) { method toast (line 325) | private void toast(final String msg) { method assignViews (line 368) | private void assignViews() { FILE: demo/src/main/java/com/liulishuo/filedownloader/demo/TasksManagerDemoActivity.java class TasksManagerDemoActivity (line 53) | public class TasksManagerDemoActivity extends AppCompatActivity { method onCreate (line 57) | @Override method postNotifyDataChanged (line 71) | public void postNotifyDataChanged() { method onDestroy (line 84) | @Override class TaskItemViewHolder (line 95) | private static class TaskItemViewHolder extends RecyclerView.ViewHolder { method TaskItemViewHolder (line 96) | public TaskItemViewHolder(View itemView) { method findViewById (line 101) | private View findViewById(final int id) { method update (line 114) | public void update(final int id, final int position) { method updateDownloaded (line 120) | public void updateDownloaded() { method updateNotDownloaded (line 128) | public void updateNotDownloaded(final int status, final long sofar, ... method updateDownloading (line 153) | public void updateDownloading(final int status, final long sofar, fi... method assignViews (line 186) | private void assignViews() { class TaskItemAdapter (line 195) | private static class TaskItemAdapter extends RecyclerView.Adapter a... method onDestroy (line 495) | public void onDestroy() { method isReady (line 500) | public boolean isReady() { method get (line 504) | public TasksManagerModel get(final int position) { method getById (line 508) | public TasksManagerModel getById(final int id) { method isDownloaded (line 523) | public boolean isDownloaded(final int status) { method getStatus (line 527) | public int getStatus(final int id, String path) { method getTotal (line 531) | public long getTotal(final int id) { method getSoFar (line 535) | public long getSoFar(final int id) { method getTaskCounts (line 539) | public int getTaskCounts() { method addTask (line 543) | public TasksManagerModel addTask(final String url) { method addTask (line 547) | public TasksManagerModel addTask(final String url, final String path) { method createPath (line 565) | public String createPath(final String url) { class TasksManagerDBController (line 574) | private static class TasksManagerDBController { method TasksManagerDBController (line 578) | private TasksManagerDBController() { method getAllTasks (line 584) | public List getAllTasks() { method addTask (line 610) | public TasksManagerModel addTask(final String url, final String path) { class TasksManagerDBOpenHelper (line 632) | private static class TasksManagerDBOpenHelper extends SQLiteOpenHelper { method TasksManagerDBOpenHelper (line 636) | public TasksManagerDBOpenHelper(Context context) { method onCreate (line 641) | @Override method onUpgrade (line 660) | @Override class TasksManagerModel (line 668) | private static class TasksManagerModel { method getId (line 679) | public int getId() { method setId (line 683) | public void setId(int id) { method getName (line 687) | public String getName() { method setName (line 691) | public void setName(String name) { method getUrl (line 695) | public String getUrl() { method setUrl (line 699) | public void setUrl(String url) { method getPath (line 703) | public String getPath() { method setPath (line 707) | public void setPath(String path) { method toContentValues (line 711) | public ContentValues toContentValues() { FILE: demo/src/main/java/com/liulishuo/filedownloader/demo/Utils.java class Utils (line 25) | public class Utils { method createNotificationChannel (line 26) | public static void createNotificationChannel( method deleteNotificationChannel (line 42) | public static void deleteNotificationChannel(String channelId, Context... method getNotificationManager (line 50) | @Nullable FILE: demo/src/main/java/com/liulishuo/filedownloader/demo/performance/IntParcel.java class IntParcel (line 25) | public class IntParcel implements Parcelable { method operate (line 32) | public void operate() { method describeContents (line 38) | @Override method writeToParcel (line 43) | @Override method IntParcel (line 50) | public IntParcel() { method IntParcel (line 53) | protected IntParcel(Parcel in) { method createFromParcel (line 60) | public IntParcel createFromParcel(Parcel source) { method newArray (line 64) | public IntParcel[] newArray(int size) { FILE: demo/src/main/java/com/liulishuo/filedownloader/demo/performance/LongParcel.java class LongParcel (line 25) | public class LongParcel implements Parcelable { method operate (line 31) | public void operate() { method describeContents (line 37) | @Override method writeToParcel (line 42) | @Override method LongParcel (line 49) | public LongParcel() { method LongParcel (line 52) | protected LongParcel(Parcel in) { method createFromParcel (line 59) | public LongParcel createFromParcel(Parcel source) { method newArray (line 63) | public LongParcel[] newArray(int size) { FILE: demo/src/main/java/com/liulishuo/filedownloader/demo/performance/PerformanceTestActivity.java class PerformanceTestActivity (line 47) | public class PerformanceTestActivity extends AppCompatActivity { method onCreate (line 51) | @Override method onClickLongOperate (line 58) | public void onClickLongOperate(final View view) { method onClickLongParcel (line 69) | public void onClickLongParcel(final View view) { method onClickIntOperate (line 82) | public void onClickIntOperate(final View view) { method onClickIntParcel (line 93) | public void onClickIntParcel(final View view) { method onClickWriteTest (line 112) | public void onClickWriteTest(final View view) { method initPerformanceTest (line 316) | private InputStream initPerformanceTest() { method infoAppend (line 330) | private void infoAppend(final String msg, final long start) { method assignViews (line 346) | private void assignViews() { FILE: library/src/main/java/com/liulishuo/filedownloader/BaseDownloadTask.java type BaseDownloadTask (line 30) | @SuppressWarnings({"WeakerAccess", "UnusedReturnValue"}) method setMinIntervalUpdateSpeed (line 44) | BaseDownloadTask setMinIntervalUpdateSpeed(int minIntervalUpdateSpeedMs); method setPath (line 50) | BaseDownloadTask setPath(final String path); method setPath (line 64) | BaseDownloadTask setPath(final String path, final boolean pathAsDirect... method setListener (line 70) | BaseDownloadTask setListener(final FileDownloadListener listener); method setCallbackProgressTimes (line 89) | BaseDownloadTask setCallbackProgressTimes(int callbackProgressCount); method setCallbackProgressMinInterval (line 106) | BaseDownloadTask setCallbackProgressMinInterval(int minIntervalMillis); method setCallbackProgressIgnored (line 112) | BaseDownloadTask setCallbackProgressIgnored(); method setTag (line 117) | BaseDownloadTask setTag(final Object tag); method setTag (line 126) | BaseDownloadTask setTag(final int key, final Object tag); method setForceReDownload (line 136) | BaseDownloadTask setForceReDownload(final boolean isForceReDownload); method setFinishListener (line 141) | BaseDownloadTask setFinishListener(final FinishListener finishListener); method addFinishListener (line 152) | BaseDownloadTask addFinishListener(final FinishListener finishListener); method removeFinishListener (line 161) | boolean removeFinishListener(final FinishListener finishListener); method setAutoRetryTimes (line 169) | BaseDownloadTask setAutoRetryTimes(int autoRetryTimes); method addHeader (line 178) | BaseDownloadTask addHeader(final String name, final String value); method addHeader (line 183) | BaseDownloadTask addHeader(final String line); method removeAllHeaders (line 188) | BaseDownloadTask removeAllHeaders(final String name); method setSyncCallback (line 195) | BaseDownloadTask setSyncCallback(final boolean syncCallback); method setWifiRequired (line 211) | BaseDownloadTask setWifiRequired(final boolean isWifiRequired); method ready (line 232) | int ready(); method asInQueueTask (line 244) | InQueueTask asInQueueTask(); method reuse (line 255) | boolean reuse(); method isUsing (line 265) | boolean isUsing(); method isRunning (line 274) | boolean isRunning(); method isAttached (line 285) | @SuppressWarnings("BooleanMethodIsAlwaysInverted") method start (line 293) | int start(); method pause (line 309) | boolean pause(); method cancel (line 318) | boolean cancel(); method getId (line 332) | int getId(); method getDownloadId (line 338) | int getDownloadId(); method getUrl (line 343) | String getUrl(); method getCallbackProgressTimes (line 350) | int getCallbackProgressTimes(); method getCallbackProgressMinInterval (line 356) | int getCallbackProgressMinInterval(); method getPath (line 365) | String getPath(); method isPathAsDirectory (line 371) | boolean isPathAsDirectory(); method getFilename (line 383) | String getFilename(); method getTargetFilePath (line 388) | String getTargetFilePath(); method getListener (line 393) | FileDownloadListener getListener(); method getSoFarBytes (line 399) | int getSoFarBytes(); method getSmallFileSoFarBytes (line 406) | int getSmallFileSoFarBytes(); method getLargeFileSoFarBytes (line 413) | long getLargeFileSoFarBytes(); method getTotalBytes (line 423) | int getTotalBytes(); method getSmallFileTotalBytes (line 430) | int getSmallFileTotalBytes(); method getLargeFileTotalBytes (line 437) | long getLargeFileTotalBytes(); method getSpeed (line 453) | int getSpeed(); method getStatus (line 459) | byte getStatus(); method isForceReDownload (line 465) | boolean isForceReDownload(); method getEx (line 470) | Throwable getEx(); method getErrorCause (line 475) | Throwable getErrorCause(); method isReusedOldFile (line 483) | boolean isReusedOldFile(); method getTag (line 488) | Object getTag(); method getTag (line 499) | Object getTag(int key); method isContinue (line 505) | boolean isContinue(); method isResuming (line 511) | boolean isResuming(); method getEtag (line 517) | String getEtag(); method getAutoRetryTimes (line 523) | int getAutoRetryTimes(); method getRetryingTimes (line 529) | int getRetryingTimes(); method isSyncCallback (line 538) | boolean isSyncCallback(); method isLargeFile (line 545) | boolean isLargeFile(); method isWifiRequired (line 551) | boolean isWifiRequired(); type InQueueTask (line 556) | interface InQueueTask { method enqueue (line 566) | int enqueue(); type FinishListener (line 569) | @SuppressWarnings("UnusedParameters") method over (line 581) | void over(final BaseDownloadTask task); type IRunningTask (line 589) | interface IRunningTask { method getOrigin (line 593) | BaseDownloadTask getOrigin(); method getMessageHandler (line 598) | ITaskHunter.IMessageHandler getMessageHandler(); method is (line 603) | boolean is(int id); method is (line 608) | boolean is(FileDownloadListener listener); method isOver (line 613) | @SuppressWarnings("BooleanMethodIsAlwaysInverted") method getAttachKey (line 624) | int getAttachKey(); method setAttachKeyByQueue (line 632) | void setAttachKeyByQueue(int key); method setAttachKeyDefault (line 638) | void setAttachKeyDefault(); method isMarkedAdded2List (line 643) | boolean isMarkedAdded2List(); method markAdded2List (line 648) | void markAdded2List(); method free (line 653) | void free(); method startTaskByQueue (line 658) | void startTaskByQueue(); method startTaskByRescue (line 666) | void startTaskByRescue(); method getPauseLock (line 673) | Object getPauseLock(); method isContainFinishListener (line 680) | boolean isContainFinishListener(); type LifeCycleCallback (line 686) | interface LifeCycleCallback { method onBegin (line 690) | void onBegin(); method onIng (line 696) | void onIng(); method onOver (line 701) | void onOver(); FILE: library/src/main/java/com/liulishuo/filedownloader/DownloadSpeedMonitor.java class DownloadSpeedMonitor (line 25) | public class DownloadSpeedMonitor implements IDownloadSpeed.Monitor, IDo... method start (line 39) | @Override method end (line 45) | @Override method update (line 61) | @Override method reset (line 90) | @Override method getSpeed (line 96) | @Override method setMinIntervalUpdateSpeed (line 101) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/DownloadTask.java class DownloadTask (line 35) | public class DownloadTask implements BaseDownloadTask, BaseDownloadTask.... method DownloadTask (line 76) | DownloadTask(final String url) { method setMinIntervalUpdateSpeed (line 85) | @Override method setPath (line 91) | @Override method setPath (line 96) | @Override method setListener (line 117) | @Override method setCallbackProgressTimes (line 127) | @Override method setCallbackProgressMinInterval (line 133) | @Override method setCallbackProgressIgnored (line 139) | @Override method setTag (line 144) | @Override method setTag (line 153) | @Override method setForceReDownload (line 162) | @Override method setFinishListener (line 168) | @Override method addFinishListener (line 175) | @Override method removeFinishListener (line 188) | @Override method setAutoRetryTimes (line 193) | @Override method addHeader (line 199) | @Override method addHeader (line 206) | @Override method removeAllHeaders (line 213) | @Override method setSyncCallback (line 229) | @Override method setWifiRequired (line 235) | @Override method ready (line 241) | @Override method asInQueueTask (line 246) | @Override method reuse (line 251) | @Override method isUsing (line 267) | @Override method isRunning (line 273) | @Override method isAttached (line 283) | @Override method start (line 288) | @Override method startTaskUnchecked (line 311) | private int startTaskUnchecked() { method pause (line 338) | @Override method cancel (line 345) | @Override method getId (line 352) | @Override method getDownloadId (line 368) | @Override method getUrl (line 373) | @Override method getCallbackProgressTimes (line 378) | @Override method getCallbackProgressMinInterval (line 383) | @Override method getPath (line 388) | @Override method isPathAsDirectory (line 393) | @Override method getFilename (line 398) | @Override method getTargetFilePath (line 403) | @Override method getListener (line 408) | @Override method getSoFarBytes (line 413) | @Override method getSmallFileSoFarBytes (line 418) | @Override method getLargeFileSoFarBytes (line 426) | @Override method getTotalBytes (line 431) | @Override method getSmallFileTotalBytes (line 436) | @Override method getLargeFileTotalBytes (line 445) | @Override method getSpeed (line 450) | @Override method getStatus (line 455) | @Override method isForceReDownload (line 460) | @Override method getEx (line 465) | @Override method getErrorCause (line 470) | @Override method isReusedOldFile (line 475) | @Override method getTag (line 480) | @Override method getTag (line 485) | @Override method isContinue (line 494) | @Override method isResuming (line 499) | @Override method getEtag (line 504) | @Override method getAutoRetryTimes (line 509) | @Override method getRetryingTimes (line 514) | @Override method isSyncCallback (line 519) | @Override method isLargeFile (line 524) | @Override method isWifiRequired (line 529) | @Override method checkAndCreateHeader (line 536) | private void checkAndCreateHeader() { method getHeader (line 546) | @Override method markAdded2List (line 558) | @Override method free (line 563) | @Override method startTaskByQueue (line 571) | @Override method startTaskByRescue (line 576) | @Override method getPauseLock (line 584) | @Override method isContainFinishListener (line 589) | @Override method isMarkedAdded2List (line 595) | @Override method getRunningTask (line 600) | @Override method setFileName (line 605) | @Override method getFinishListenerList (line 610) | @Override method getOrigin (line 615) | @Override method getMessageHandler (line 620) | @Override method is (line 625) | @Override method is (line 630) | @Override method isOver (line 635) | @Override method getAttachKey (line 640) | @Override method setAttachKeyByQueue (line 645) | @Override method setAttachKeyDefault (line 650) | @Override method toString (line 661) | @Override class InQueueTaskImpl (line 666) | private static final class InQueueTaskImpl implements InQueueTask { method InQueueTaskImpl (line 669) | private InQueueTaskImpl(DownloadTask task) { method enqueue (line 674) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/DownloadTaskHunter.java class DownloadTaskHunter (line 36) | public class DownloadTaskHunter implements ITaskHunter, ITaskHunter.ISta... method updateKeepAhead (line 43) | @Override method updateKeepFlow (line 57) | @Override method updateMoreLikelyCompleted (line 89) | @Override method updateSameFilePathTaskRunning (line 99) | @Override method getMessenger (line 114) | @Override method prepareErrorMessage (line 119) | @Override method update (line 126) | @SuppressWarnings("checkstyle:emptyblock") method onBegin (line 264) | @Override method onIng (line 276) | @Override method onOver (line 283) | @Override type ICaptureTask (line 311) | interface ICaptureTask { method getHeader (line 312) | FileDownloadHeader getHeader(); method getRunningTask (line 314) | BaseDownloadTask.IRunningTask getRunningTask(); method setFileName (line 316) | void setFileName(String fileName); method getFinishListenerList (line 318) | ArrayList getFinishListenerList(); method DownloadTaskHunter (line 340) | DownloadTaskHunter(ICaptureTask task, Object pauseLock) { method intoLaunchPool (line 349) | @Override method pause (line 395) | @Override method getStatus (line 438) | @Override method reset (line 443) | @Override method setMinIntervalUpdateSpeed (line 468) | @Override method getSpeed (line 473) | @Override method getSofarBytes (line 478) | @Override method getTotalBytes (line 483) | @Override method getErrorCause (line 488) | @Override method getRetryingTimes (line 493) | @Override method isReusedOldFile (line 498) | @Override method isResuming (line 503) | @Override method getEtag (line 508) | @Override method isLargeFile (line 513) | @Override method free (line 518) | @Override method prepare (line 526) | private void prepare() throws IOException { method getId (line 561) | private int getId() { method start (line 565) | @SuppressWarnings("checkstyle:emptyblock") method equalListener (line 659) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/FileDownloadConnectListener.java class FileDownloadConnectListener (line 28) | public abstract class FileDownloadConnectListener extends IDownloadListe... method FileDownloadConnectListener (line 32) | public FileDownloadConnectListener() { method callback (line 35) | @Override method connected (line 54) | public abstract void connected(); method disconnected (line 59) | public abstract void disconnected(); method getConnectStatus (line 61) | public DownloadServiceConnectChangedEvent.ConnectStatus getConnectStat... FILE: library/src/main/java/com/liulishuo/filedownloader/FileDownloadEventPool.java class FileDownloadEventPool (line 24) | public class FileDownloadEventPool extends DownloadEventPoolImpl { class HolderClass (line 26) | private static class HolderClass { method FileDownloadEventPool (line 30) | private FileDownloadEventPool() { method getImpl (line 34) | public static FileDownloadEventPool getImpl() { FILE: library/src/main/java/com/liulishuo/filedownloader/FileDownloadLargeFileListener.java class FileDownloadLargeFileListener (line 24) | @SuppressWarnings({"WeakerAccess", "UnusedParameters"}) method FileDownloadLargeFileListener (line 27) | public FileDownloadLargeFileListener() { method FileDownloadLargeFileListener (line 34) | public FileDownloadLargeFileListener(int priority) { method pending (line 46) | protected abstract void pending(final BaseDownloadTask task, final lon... method pending (line 55) | @Override method connected (line 68) | @SuppressWarnings("EmptyMethod") method connected (line 82) | @Override method progress (line 92) | protected abstract void progress(final BaseDownloadTask task, final lo... method progress (line 101) | @Override method retry (line 113) | @SuppressWarnings("EmptyMethod") method retry (line 125) | @SuppressWarnings("EmptyMethod") method paused (line 137) | protected abstract void paused(final BaseDownloadTask task, final long... method paused (line 146) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/FileDownloadLine.java class FileDownloadLine (line 33) | public class FileDownloadLine { method startForeground (line 38) | public void startForeground(final int id, final Notification notificat... method getSoFar (line 62) | public long getSoFar(final int id) { method getTotal (line 89) | public long getTotal(final int id) { method getStatus (line 116) | public byte getStatus(final int id, final String path) { method wait (line 144) | private void wait(final ConnectSubscriber subscriber) { class ConnectListener (line 168) | static class ConnectListener implements Runnable { method ConnectListener (line 172) | ConnectListener(ConnectSubscriber subscriber) { method isFinished (line 176) | public boolean isFinished() { method run (line 180) | @Override type ConnectSubscriber (line 190) | interface ConnectSubscriber { method connected (line 191) | void connected(); method getValue (line 193) | Object getValue(); FILE: library/src/main/java/com/liulishuo/filedownloader/FileDownloadLineAsync.java class FileDownloadLineAsync (line 25) | public class FileDownloadLineAsync { method startForeground (line 30) | public boolean startForeground(final int id, final Notification notifi... FILE: library/src/main/java/com/liulishuo/filedownloader/FileDownloadList.java class FileDownloadList (line 30) | @SuppressWarnings("UnusedReturnValue") class HolderClass (line 33) | private static final class HolderClass { method getImpl (line 37) | public static FileDownloadList getImpl() { method FileDownloadList (line 43) | private FileDownloadList() { method isEmpty (line 47) | boolean isEmpty() { method size (line 51) | int size() { method count (line 59) | int count(final int id) { method get (line 71) | public BaseDownloadTask.IRunningTask get(final int id) { method getReceiveServiceTaskList (line 83) | List getReceiveServiceTaskList(final in... method getDownloadingList (line 101) | List getDownloadingList(final int id) { method isNotContains (line 115) | boolean isNotContains(final BaseDownloadTask.IRunningTask download) { method copy (line 119) | List copy(final FileDownloadListener li... method assembleTasksToStart (line 132) | List assembleTasksToStart(int attachKey, method copy (line 147) | BaseDownloadTask.IRunningTask[] copy() { method divertAndIgnoreDuplicate (line 158) | void divertAndIgnoreDuplicate( method remove (line 174) | public boolean remove(final BaseDownloadTask.IRunningTask willRemoveDo... method add (line 222) | void add(final BaseDownloadTask.IRunningTask task) { method addUnchecked (line 240) | void addUnchecked(final BaseDownloadTask.IRunningTask task) { FILE: library/src/main/java/com/liulishuo/filedownloader/FileDownloadListener.java class FileDownloadListener (line 36) | @SuppressWarnings({"WeakerAccess", "UnusedParameters"}) method FileDownloadListener (line 39) | public FileDownloadListener() { method FileDownloadListener (line 46) | public FileDownloadListener(int priority) { method isInvalid (line 55) | protected boolean isInvalid() { method pending (line 67) | protected abstract void pending(final BaseDownloadTask task, final int... method started (line 76) | protected void started(final BaseDownloadTask task) { method connected (line 89) | protected void connected(final BaseDownloadTask task, final String etag, method progress (line 102) | protected abstract void progress(final BaseDownloadTask task, final in... method blockComplete (line 118) | protected void blockComplete(final BaseDownloadTask task) throws Throw... method retry (line 131) | protected void retry(final BaseDownloadTask task, final Throwable ex, ... method completed (line 146) | protected abstract void completed(final BaseDownloadTask task); method paused (line 157) | protected abstract void paused(final BaseDownloadTask task, final int ... method error (line 170) | protected abstract void error(final BaseDownloadTask task, final Throw... method warn (line 179) | protected abstract void warn(final BaseDownloadTask task); FILE: library/src/main/java/com/liulishuo/filedownloader/FileDownloadMessageStation.java class FileDownloadMessageStation (line 32) | @SuppressWarnings("WeakerAccess") class HolderClass (line 41) | private static final class HolderClass { method getImpl (line 45) | public static FileDownloadMessageStation getImpl() { method FileDownloadMessageStation (line 49) | private FileDownloadMessageStation() { method requestEnqueue (line 54) | void requestEnqueue(final IFileDownloadMessenger messenger) { method requestEnqueue (line 58) | void requestEnqueue(final IFileDownloadMessenger messenger, method handoverInUIThread (line 95) | private void handoverInUIThread(IFileDownloadMessenger messenger) { method interceptBlockCompleteMessage (line 104) | private static boolean interceptBlockCompleteMessage(final IFileDownlo... method enqueue (line 120) | private void enqueue(final IFileDownloadMessenger messenger) { method push (line 128) | private void push() { class UIHandlerCallback (line 165) | private static class UIHandlerCallback implements Handler.Callback { method handleMessage (line 167) | @Override method dispose (line 179) | private void dispose(final ArrayList disposi... method isIntervalValid (line 209) | public static boolean isIntervalValid() { FILE: library/src/main/java/com/liulishuo/filedownloader/FileDownloadMessenger.java class FileDownloadMessenger (line 33) | class FileDownloadMessenger implements IFileDownloadMessenger { method FileDownloadMessenger (line 42) | FileDownloadMessenger(final BaseDownloadTask.IRunningTask task, method init (line 47) | private void init(final BaseDownloadTask.IRunningTask task, method notifyBegin (line 54) | @Override method notifyPending (line 71) | @Override method notifyStarted (line 82) | @Override method notifyConnected (line 93) | @Override method notifyProgress (line 104) | @Override method notifyBlockComplete (line 128) | @Override method notifyRetry (line 140) | @Override method notifyWarn (line 155) | @Override method notifyError (line 166) | @Override method notifyPaused (line 177) | @Override method notifyCompleted (line 188) | @Override method process (line 199) | private void process(MessageSnapshot snapshot) { method inspectAndHandleOverStatus (line 228) | private void inspectAndHandleOverStatus(int status) { method handoverMessage (line 243) | @Override method handoverDirectly (line 371) | @Override method reAppointment (line 376) | @Override method isBlockingCompleted (line 388) | @Override method discard (line 393) | @Override method toString (line 398) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/FileDownloadMonitor.java class FileDownloadMonitor (line 27) | public class FileDownloadMonitor { method setGlobalMonitor (line 30) | public static void setGlobalMonitor(final IMonitor monitor) { method releaseGlobalMonitor (line 34) | public static void releaseGlobalMonitor() { method getMonitor (line 38) | public static IMonitor getMonitor() { method isValid (line 42) | public static boolean isValid() { type IMonitor (line 55) | public interface IMonitor { method onRequestStart (line 63) | void onRequestStart(int count, boolean serial, FileDownloadListener ... method onRequestStart (line 70) | void onRequestStart(BaseDownloadTask task); method onTaskBegin (line 77) | void onTaskBegin(BaseDownloadTask task); method onTaskStarted (line 84) | void onTaskStarted(BaseDownloadTask task); method onTaskOver (line 91) | void onTaskOver(BaseDownloadTask task); FILE: library/src/main/java/com/liulishuo/filedownloader/FileDownloadQueueSet.java class FileDownloadQueueSet (line 27) | @SuppressWarnings({"SameParameterValue", "WeakerAccess"}) method FileDownloadQueueSet (line 49) | public FileDownloadQueueSet(FileDownloadListener target) { method downloadTogether (line 60) | public FileDownloadQueueSet downloadTogether(BaseDownloadTask... tasks) { method downloadTogether (line 71) | public FileDownloadQueueSet downloadTogether(List ta... method downloadSequentially (line 83) | public FileDownloadQueueSet downloadSequentially(BaseDownloadTask... t... method downloadSequentially (line 93) | public FileDownloadQueueSet downloadSequentially(List attachKeyList); method serialQueueSize (line 47) | int serialQueueSize(); method contain (line 49) | boolean contain(int attachKey); FILE: library/src/main/java/com/liulishuo/filedownloader/ITaskHunter.java type ITaskHunter (line 25) | public interface ITaskHunter extends IDownloadSpeed.Lookup { method intoLaunchPool (line 31) | void intoLaunchPool(); method pause (line 36) | boolean pause(); method getStatus (line 42) | byte getStatus(); method reset (line 47) | void reset(); method getSofarBytes (line 52) | long getSofarBytes(); method getTotalBytes (line 57) | long getTotalBytes(); method getErrorCause (line 62) | Throwable getErrorCause(); method getRetryingTimes (line 67) | int getRetryingTimes(); method isReusedOldFile (line 73) | boolean isReusedOldFile(); method isResuming (line 79) | boolean isResuming(); method getEtag (line 84) | String getEtag(); method isLargeFile (line 89) | boolean isLargeFile(); method free (line 94) | void free(); type IStarter (line 101) | interface IStarter { method start (line 105) | void start(); method equalListener (line 111) | boolean equalListener(FileDownloadListener listener); type IMessageHandler (line 117) | interface IMessageHandler { method updateKeepAhead (line 125) | boolean updateKeepAhead(final MessageSnapshot snapshot); method updateKeepFlow (line 133) | boolean updateKeepFlow(final MessageSnapshot snapshot); method updateMoreLikelyCompleted (line 144) | boolean updateMoreLikelyCompleted(final MessageSnapshot snapshot); method updateSameFilePathTaskRunning (line 157) | boolean updateSameFilePathTaskRunning(final MessageSnapshot snapshot); method getMessenger (line 162) | IFileDownloadMessenger getMessenger(); method prepareErrorMessage (line 168) | MessageSnapshot prepareErrorMessage(Throwable cause); FILE: library/src/main/java/com/liulishuo/filedownloader/IThreadPoolMonitor.java type IThreadPoolMonitor (line 25) | public interface IThreadPoolMonitor { method isDownloading (line 26) | boolean isDownloading(FileDownloadModel model); method findRunningTaskIdBySameTempPath (line 28) | int findRunningTaskIdBySameTempPath(String tempFilePath, int excludeId); FILE: library/src/main/java/com/liulishuo/filedownloader/LostServiceConnectedHandler.java class LostServiceConnectedHandler (line 31) | public class LostServiceConnectedHandler extends FileDownloadConnectList... method connected (line 36) | @Override method disconnected (line 72) | @Override method isInWaitingList (line 114) | @Override method taskWorkFine (line 119) | @Override method dispatchTaskStart (line 128) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/MessageSnapshotGate.java class MessageSnapshotGate (line 30) | public class MessageSnapshotGate implements MessageSnapshotFlow.MessageR... method transmitMessage (line 32) | private boolean transmitMessage(List ta... method receive (line 79) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/PauseAllMarker.java class PauseAllMarker (line 32) | public class PauseAllMarker implements Handler.Callback { method PauseAllMarker (line 42) | public PauseAllMarker(IFileDownloadIPCService serviceHandler) { method createMarker (line 46) | @SuppressWarnings("ResultOfMethodCallIgnored") method markerFile (line 64) | private static File markerFile() { method isMarked (line 72) | private static boolean isMarked() { method clearMarker (line 76) | @SuppressWarnings("ResultOfMethodCallIgnored") method startPauseAllLooperCheck (line 84) | public void startPauseAllLooperCheck() { method stopPauseAllLooperCheck (line 91) | public void stopPauseAllLooperCheck() { method handleMessage (line 97) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/QueuesHandler.java class QueuesHandler (line 35) | class QueuesHandler implements IQueuesHandler { method QueuesHandler (line 39) | QueuesHandler() { method startQueueParallel (line 43) | @Override method startQueueSerial (line 61) | @Override method freezeAllSerialQueues (line 91) | @Override method unFreezeSerialQueues (line 100) | @Override method serialQueueSize (line 108) | @Override method contain (line 113) | @Override method onAssembledTasksToStart (line 118) | private boolean onAssembledTasksToStart(int attachKey, class SerialHandlerCallback (line 151) | private class SerialHandlerCallback implements Handler.Callback { method SerialHandlerCallback (line 157) | SerialHandlerCallback() { method setHandler (line 162) | public void setHandler(final Handler handler) { method setList (line 166) | public void setList(List list) { method handleMessage (line 170) | @Override method freeze (line 222) | public void freeze() { method unfreeze (line 227) | public void unfreeze() { method goNext (line 231) | private void goNext(final int nextIndex) { class SerialFinishListener (line 250) | private static class SerialFinishListener implements BaseDownloadTask.... method SerialFinishListener (line 253) | private SerialFinishListener(WeakReference wS... method setNextIndex (line 259) | public BaseDownloadTask.FinishListener setNextIndex(int index) { method over (line 264) | @Override method freezeSerialHandler (line 272) | private void freezeSerialHandler(Handler handler) { method unFreezeSerialHandler (line 276) | private void unFreezeSerialHandler(Handler handler) { FILE: library/src/main/java/com/liulishuo/filedownloader/connection/DefaultConnectionCountAdapter.java class DefaultConnectionCountAdapter (line 25) | public class DefaultConnectionCountAdapter implements FileDownloadHelper... method determineConnectionCount (line 36) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/connection/FileDownloadConnection.java type FileDownloadConnection (line 30) | @SuppressWarnings("EmptyMethod") method addHeader (line 41) | void addHeader(String name, String value); method dispatchAddResumeOffset (line 52) | @SuppressWarnings("UnusedParameters") method getInputStream (line 62) | InputStream getInputStream() throws IOException; method getRequestHeaderFields (line 73) | Map> getRequestHeaderFields(); method getResponseHeaderFields (line 84) | Map> getResponseHeaderFields(); method getResponseHeaderField (line 96) | String getResponseHeaderField(String name); method setRequestMethod (line 120) | boolean setRequestMethod(String method) throws ProtocolException; method execute (line 126) | void execute() throws IOException; method getResponseCode (line 139) | int getResponseCode() throws IOException; method ending (line 144) | void ending(); FILE: library/src/main/java/com/liulishuo/filedownloader/connection/FileDownloadUrlConnection.java class FileDownloadUrlConnection (line 35) | public class FileDownloadUrlConnection implements FileDownloadConnection { method FileDownloadUrlConnection (line 38) | public FileDownloadUrlConnection(String originUrl, Configuration confi... method FileDownloadUrlConnection (line 43) | public FileDownloadUrlConnection(URL url, Configuration configuration)... method FileDownloadUrlConnection (line 64) | public FileDownloadUrlConnection(String originUrl) throws IOException { method addHeader (line 68) | @Override method dispatchAddResumeOffset (line 73) | @Override method getInputStream (line 78) | @Override method getRequestHeaderFields (line 83) | @Override method getResponseHeaderFields (line 88) | @Override method getResponseHeaderField (line 93) | @Override method setRequestMethod (line 98) | @Override public boolean setRequestMethod(String method) throws Protoc... method execute (line 107) | @Override method getResponseCode (line 112) | @Override method ending (line 121) | @Override class Creator (line 130) | public static class Creator implements FileDownloadHelper.ConnectionCr... method Creator (line 133) | public Creator() { method Creator (line 137) | public Creator(Configuration configuration) { method create (line 141) | FileDownloadConnection create(URL url) throws IOException { method create (line 145) | @Override class Configuration (line 154) | public static class Configuration { method proxy (line 166) | public Configuration proxy(Proxy proxy) { method readTimeout (line 185) | public Configuration readTimeout(int readTimeout) { method connectTimeout (line 202) | public Configuration connectTimeout(int connectTimeout) { FILE: library/src/main/java/com/liulishuo/filedownloader/connection/RedirectHandler.java class RedirectHandler (line 33) | public class RedirectHandler { method process (line 49) | public static FileDownloadConnection process( method isRedirect (line 98) | private static boolean isRedirect(int code) { method buildRedirectConnection (line 107) | private static FileDownloadConnection buildRedirectConnection( FILE: library/src/main/java/com/liulishuo/filedownloader/database/FileDownloadDatabase.java type FileDownloadDatabase (line 39) | @SuppressWarnings("UnusedParameters") method onTaskStart (line 47) | void onTaskStart(final int id); method find (line 54) | FileDownloadModel find(final int id); method findConnectionModel (line 61) | List findConnectionModel(int id); method removeConnections (line 68) | void removeConnections(int id); method insertConnectionModel (line 75) | void insertConnectionModel(ConnectionModel model); method updateConnectionModel (line 85) | void updateConnectionModel(int id, int index, long currentOffset); method updateConnectionCount (line 92) | void updateConnectionCount(int id, int count); method insert (line 99) | void insert(final FileDownloadModel downloadModel); method update (line 106) | void update(final FileDownloadModel downloadModel); method remove (line 114) | boolean remove(final int id); method clear (line 119) | void clear(); method updateOldEtagOverdue (line 125) | void updateOldEtagOverdue(int id, String newEtag, long sofar, long tot... method updateConnected (line 137) | void updateConnected(int id, long total, String etag, String filename); method updateProgress (line 145) | void updateProgress(int id, long sofarBytes); method updateError (line 155) | void updateError(int id, Throwable throwable, long sofar); method updateRetry (line 164) | void updateRetry(int id, Throwable throwable); method updateCompleted (line 174) | void updateCompleted(int id, final long total); method updatePause (line 183) | void updatePause(int id, final long sofar); method updatePending (line 191) | void updatePending(int id); method maintainer (line 203) | Maintainer maintainer(); type Maintainer (line 209) | @SuppressWarnings("EmptyMethod") method onFinishMaintain (line 214) | void onFinishMaintain(); method onRemovedInvalidData (line 221) | void onRemovedInvalidData(FileDownloadModel model); method onRefreshedValidData (line 228) | void onRefreshedValidData(FileDownloadModel model); method changeFileDownloadModelId (line 240) | void changeFileDownloadModelId(int oldId, FileDownloadModel modelWit... FILE: library/src/main/java/com/liulishuo/filedownloader/database/NoDatabaseImpl.java class NoDatabaseImpl (line 57) | public class NoDatabaseImpl implements FileDownloadDatabase { method NoDatabaseImpl (line 62) | public NoDatabaseImpl() { method createMaker (line 65) | public static Maker createMaker() { method onTaskStart (line 69) | @Override method find (line 73) | @Override method findConnectionModel (line 80) | @Override method removeConnections (line 91) | @Override method insertConnectionModel (line 98) | @Override method updateConnectionModel (line 111) | @Override method updateConnectionCount (line 126) | @Override method insert (line 130) | @Override method update (line 137) | @Override method remove (line 155) | @Override method clear (line 163) | @Override method updateOldEtagOverdue (line 170) | @Override method updateConnected (line 175) | @Override method updateProgress (line 179) | @Override method updateError (line 183) | @Override method updateRetry (line 187) | @Override method updateCompleted (line 191) | @Override method updatePause (line 196) | @Override method updatePending (line 200) | @Override method maintainer (line 204) | @Override class Maintainer (line 209) | class Maintainer implements FileDownloadDatabase.Maintainer { method iterator (line 211) | @Override method onFinishMaintain (line 216) | @Override method onRemovedInvalidData (line 220) | @Override method onRefreshedValidData (line 224) | @Override method changeFileDownloadModelId (line 228) | @Override class MaintainerIterator (line 234) | class MaintainerIterator implements Iterator { method MaintainerIterator (line 236) | MaintainerIterator() { method hasNext (line 239) | @Override method next (line 244) | @Override method remove (line 249) | @Override class Maker (line 254) | public static class Maker implements FileDownloadHelper.DatabaseCustom... method customMake (line 256) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/database/RemitDatabase.java class RemitDatabase (line 39) | public class RemitDatabase implements FileDownloadDatabase { method RemitDatabase (line 54) | public RemitDatabase() { method syncCacheToDB (line 91) | private void syncCacheToDB(int id) { method isNoNeedUpdateToRealDB (line 108) | private boolean isNoNeedUpdateToRealDB(int id) { method onTaskStart (line 112) | @Override public void onTaskStart(int id) { method find (line 116) | @Override public FileDownloadModel find(int id) { method findConnectionModel (line 120) | @Override public List findConnectionModel(int id) { method removeConnections (line 124) | @Override public void removeConnections(int id) { method insertConnectionModel (line 131) | @Override public void insertConnectionModel(ConnectionModel model) { method updateConnectionModel (line 138) | @Override public void updateConnectionModel(int id, int index, long cu... method updateProgress (line 145) | @Override public void updateProgress(int id, long sofarBytes) { method updateConnectionCount (line 151) | @Override public void updateConnectionCount(int id, int count) { method insert (line 158) | @Override public void insert(FileDownloadModel downloadModel) { method update (line 164) | @Override public void update(FileDownloadModel downloadModel) { method remove (line 170) | @Override public boolean remove(int id) { method clear (line 175) | @Override public void clear() { method updateOldEtagOverdue (line 180) | @Override public void updateOldEtagOverdue(int id, String newEtag, lon... method updateConnected (line 187) | @Override public void updateConnected(int id, long total, String etag,... method updatePending (line 193) | @Override public void updatePending(int id) { method updateRetry (line 199) | @Override public void updateRetry(int id, Throwable throwable) { method ensureCacheToDB (line 205) | private void ensureCacheToDB(int id) { method updateError (line 216) | @Override public void updateError(int id, Throwable throwable, long so... method updateCompleted (line 225) | @Override public void updateCompleted(int id, long total) { method updatePause (line 241) | @Override public void updatePause(int id, long sofar) { method maintainer (line 251) | @Override public Maintainer maintainer() { class Maker (line 256) | public static class Maker implements FileDownloadHelper.DatabaseCustom... method customMake (line 258) | @Override public FileDownloadDatabase customMake() { FILE: library/src/main/java/com/liulishuo/filedownloader/database/SqliteDatabaseImpl.java class SqliteDatabaseImpl (line 55) | public class SqliteDatabaseImpl implements FileDownloadDatabase { method createMaker (line 62) | public static Maker createMaker() { method SqliteDatabaseImpl (line 66) | public SqliteDatabaseImpl() { method onTaskStart (line 73) | @Override public void onTaskStart(int id) { method find (line 76) | @Override method findConnectionModel (line 92) | @Override method removeConnections (line 118) | @Override method insertConnectionModel (line 124) | @Override method updateConnectionModel (line 129) | @Override method updateConnectionCount (line 138) | @Override method insert (line 146) | @Override method update (line 151) | @Override method remove (line 168) | @Override method clear (line 175) | @Override method updateOldEtagOverdue (line 181) | @Override method updateConnected (line 194) | @Override method updateProgress (line 205) | @Override method updateError (line 214) | @Override method updateRetry (line 224) | @Override method updateCompleted (line 233) | @Override method updatePause (line 238) | @Override method updatePending (line 247) | @Override method maintainer (line 252) | @Override method maintainer (line 257) | public FileDownloadDatabase.Maintainer maintainer( method update (line 263) | private void update(final int id, final ContentValues cv) { class Maintainer (line 267) | public class Maintainer implements FileDownloadDatabase.Maintainer { method Maintainer (line 275) | Maintainer() { method Maintainer (line 279) | Maintainer(SparseArray downloaderModelMap, method iterator (line 285) | @Override method onFinishMaintain (line 290) | @Override method onRemovedInvalidData (line 340) | @Override method onRefreshedValidData (line 344) | @Override method changeFileDownloadModelId (line 349) | @Override class MaintainerIterator (line 356) | class MaintainerIterator implements Iterator { method MaintainerIterator (line 362) | MaintainerIterator() { method hasNext (line 366) | @Override method next (line 371) | @Override method remove (line 380) | @Override method onFinishMaintain (line 385) | void onFinishMaintain() { method createFromCursor (line 403) | private static FileDownloadModel createFromCursor(Cursor c) { class Maker (line 421) | public static class Maker implements FileDownloadHelper.DatabaseCustom... method customMake (line 423) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/database/SqliteDatabaseOpenHelper.java class SqliteDatabaseOpenHelper (line 32) | public class SqliteDatabaseOpenHelper extends SQLiteOpenHelper { method SqliteDatabaseOpenHelper (line 36) | public SqliteDatabaseOpenHelper(final Context context) { method onOpen (line 40) | @Override method onCreate (line 51) | @Override method onUpgrade (line 78) | @Override method onDowngrade (line 120) | @Override public void onDowngrade(SQLiteDatabase db, int oldVersion, i... FILE: library/src/main/java/com/liulishuo/filedownloader/download/ConnectTask.java class ConnectTask (line 38) | public class ConnectTask { method ConnectTask (line 51) | private ConnectTask(ConnectionProfile profile, method updateConnectionProfile (line 60) | void updateConnectionProfile(long downloadedOffset) { method connect (line 77) | FileDownloadConnection connect() throws IOException, IllegalAccessExce... method addUserRequiredHeader (line 105) | private void addUserRequiredHeader(FileDownloadConnection connection) { method addRangeHeader (line 135) | private void addRangeHeader(FileDownloadConnection connection) throws ... method fixNeededHeader (line 146) | private void fixNeededHeader(FileDownloadConnection connection) { method isRangeNotFromBeginning (line 152) | boolean isRangeNotFromBeginning() { method getFinalRedirectedUrl (line 156) | String getFinalRedirectedUrl() { method getRequestHeader (line 164) | public Map> getRequestHeader() { method getProfile (line 168) | public ConnectionProfile getProfile() { method retryOnConnectedWithNewParam (line 172) | public void retryOnConnectedWithNewParam(ConnectionProfile profile, St... class Reconnect (line 180) | class Reconnect extends Throwable { class Builder (line 185) | static class Builder { method setDownloadId (line 193) | public Builder setDownloadId(int downloadId) { method setUrl (line 198) | public Builder setUrl(String url) { method setEtag (line 203) | public Builder setEtag(String etag) { method setHeader (line 208) | public Builder setHeader(FileDownloadHeader header) { method setConnectionProfile (line 213) | public Builder setConnectionProfile(ConnectionProfile model) { method build (line 218) | ConnectTask build() { FILE: library/src/main/java/com/liulishuo/filedownloader/download/ConnectionProfile.java class ConnectionProfile (line 28) | public class ConnectionProfile { method ConnectionProfile (line 44) | private ConnectionProfile() { method ConnectionProfile (line 54) | private ConnectionProfile(long startOffset, long currentOffset, long e... method ConnectionProfile (line 59) | private ConnectionProfile(long startOffset, long currentOffset, long e... method processProfile (line 74) | public void processProfile(FileDownloadConnection connection) throws P... method toString (line 91) | @Override class ConnectionProfileBuild (line 97) | public static class ConnectionProfileBuild { method buildTrialConnectionProfile (line 98) | public static ConnectionProfile buildTrialConnectionProfile() { method buildTrialConnectionProfileNoRange (line 102) | public static ConnectionProfile buildTrialConnectionProfileNoRange() { method buildBeginToEndConnectionProfile (line 106) | public static ConnectionProfile buildBeginToEndConnectionProfile(lon... method buildToEndConnectionProfile (line 110) | public static ConnectionProfile buildToEndConnectionProfile(long sta... method buildConnectionProfile (line 116) | public static ConnectionProfile buildConnectionProfile(long startOff... FILE: library/src/main/java/com/liulishuo/filedownloader/download/CustomComponentHolder.java class CustomComponentHolder (line 37) | public class CustomComponentHolder { class LazyLoader (line 47) | private static final class LazyLoader { method getImpl (line 51) | public static CustomComponentHolder getImpl() { method setInitCustomMaker (line 55) | public void setInitCustomMaker(DownloadMgrInitialParams.InitCustomMake... method createConnection (line 65) | public FileDownloadConnection createConnection(String url) throws IOEx... method createOutputStream (line 69) | public FileDownloadOutputStream createOutputStream(File file) throws I... method getIdGeneratorInstance (line 73) | public FileDownloadHelper.IdGenerator getIdGeneratorInstance() { method getDatabaseInstance (line 85) | public FileDownloadDatabase getDatabaseInstance() { method getForegroundConfigInstance (line 98) | public ForegroundServiceConfig getForegroundConfigInstance() { method getMaxNetworkThreadCount (line 111) | public int getMaxNetworkThreadCount() { method isSupportSeek (line 115) | public boolean isSupportSeek() { method determineConnectionCount (line 119) | public int determineConnectionCount(int downloadId, String url, String... method getConnectionCountAdapter (line 124) | private FileDownloadHelper.ConnectionCountAdapter getConnectionCountAd... method getConnectionCreator (line 137) | private FileDownloadHelper.ConnectionCreator getConnectionCreator() { method getOutputStreamCreator (line 149) | private FileDownloadHelper.OutputStreamCreator getOutputStreamCreator() { method getDownloadMgrInitialParams (line 161) | private DownloadMgrInitialParams getDownloadMgrInitialParams() { method maintainDatabase (line 171) | private static void maintainDatabase(FileDownloadDatabase.Maintainer m... FILE: library/src/main/java/com/liulishuo/filedownloader/download/DownloadLaunchRunnable.java class DownloadLaunchRunnable (line 75) | public class DownloadLaunchRunnable implements Runnable, ProcessCallback { method DownloadLaunchRunnable (line 122) | private DownloadLaunchRunnable(FileDownloadModel model, FileDownloadHe... method DownloadLaunchRunnable (line 144) | private DownloadLaunchRunnable(DownloadStatusCallback callback, FileDo... method createForTest (line 166) | static DownloadLaunchRunnable createForTest(DownloadStatusCallback cal... method pause (line 178) | public void pause() { method pending (line 192) | public void pending() { method run (line 200) | @Override method calcConnectionCount (line 346) | private int calcConnectionCount(long totalLength) { method trialConnect (line 361) | private void trialConnect() throws IOException, RetryDirectly, Illegal... method isMultiConnectionAvailable (line 389) | private boolean isMultiConnectionAvailable() { method determineConnectionCount (line 398) | private int determineConnectionCount() { method inspectTaskModelResumeAvailableOnDB (line 402) | void inspectTaskModelResumeAvailableOnDB(List connect... method handleTrialConnectResult (line 447) | private void handleTrialConnectResult(Map> reques... method realDownloadWithSingleConnection (line 576) | private void realDownloadWithSingleConnection(final long totalLength) method realDownloadWithMultiConnectionFromResume (line 613) | private void realDownloadWithMultiConnectionFromResume(final int conne... method realDownloadWithMultiConnectionFromBeginning (line 623) | private void realDownloadWithMultiConnectionFromBeginning(final long t... method fetchWithMultipleConnection (line 662) | private void fetchWithMultipleConnection(final List c... method handlePreAllocate (line 760) | private void handlePreAllocate(long totalLength, String path) method onProgress (line 793) | @Override method onCompleted (line 800) | @Override method isRetry (line 828) | @Override method onError (line 848) | @Override method onRetry (line 872) | @Override method syncProgressFromCache (line 890) | @Override method checkupBeforeConnect (line 895) | private void checkupBeforeConnect() method checkupAfterGetFilename (line 915) | private void checkupAfterGetFilename() throws RetryDirectly, DiscardSa... method getId (line 992) | public int getId() { method isAlive (line 996) | public boolean isAlive() { method getTempFilePath (line 1000) | public String getTempFilePath() { class RetryDirectly (line 1004) | class RetryDirectly extends Throwable { class DiscardSafely (line 1007) | class DiscardSafely extends Throwable { class Builder (line 1010) | public static class Builder { method setModel (line 1020) | public Builder setModel(FileDownloadModel model) { method setHeader (line 1025) | public Builder setHeader(FileDownloadHeader header) { method setThreadPoolMonitor (line 1030) | public Builder setThreadPoolMonitor(IThreadPoolMonitor threadPoolMon... method setMinIntervalMillis (line 1035) | public Builder setMinIntervalMillis(Integer minIntervalMillis) { method setCallbackProgressMaxCount (line 1040) | public Builder setCallbackProgressMaxCount(Integer callbackProgressM... method setForceReDownload (line 1045) | public Builder setForceReDownload(Boolean forceReDownload) { method setWifiRequired (line 1050) | public Builder setWifiRequired(Boolean wifiRequired) { method setMaxRetryTimes (line 1055) | public Builder setMaxRetryTimes(Integer maxRetryTimes) { method build (line 1060) | public DownloadLaunchRunnable build() { FILE: library/src/main/java/com/liulishuo/filedownloader/download/DownloadRunnable.java class DownloadRunnable (line 38) | public class DownloadRunnable implements Runnable { method DownloadRunnable (line 51) | private DownloadRunnable(int id, int connectionIndex, ConnectTask conn... method pause (line 62) | public void pause() { method discard (line 67) | public void discard() { method run (line 71) | @Override method getDownloadedOffset (line 157) | private long getDownloadedOffset() { class Builder (line 175) | public static class Builder { method setCallback (line 183) | public Builder setCallback(ProcessCallback callback) { method setId (line 188) | public Builder setId(int id) { method setUrl (line 193) | public Builder setUrl(String url) { method setEtag (line 198) | public Builder setEtag(String etag) { method setHeader (line 203) | public Builder setHeader(FileDownloadHeader header) { method setConnectionModel (line 208) | public Builder setConnectionModel(ConnectionProfile model) { method setPath (line 213) | public Builder setPath(String path) { method setWifiRequired (line 218) | public Builder setWifiRequired(boolean wifiRequired) { method setConnectionIndex (line 223) | public Builder setConnectionIndex(Integer connectionIndex) { method build (line 228) | public DownloadRunnable build() { method buildForTest (line 240) | DownloadRunnable buildForTest(ConnectTask connectTask) { FILE: library/src/main/java/com/liulishuo/filedownloader/download/DownloadStatusCallback.java class DownloadStatusCallback (line 51) | public class DownloadStatusCallback implements Handler.Callback { method DownloadStatusCallback (line 70) | DownloadStatusCallback(FileDownloadModel model, method isAlive (line 82) | public boolean isAlive() { method discardAllMessage (line 89) | void discardAllMessage() { method onPending (line 102) | public void onPending() { method onStartThread (line 110) | void onStartThread() { method onConnected (line 117) | void onConnected(boolean isResume, long totalLength, String etag, Stri... method onMultiConnection (line 142) | void onMultiConnection() { method onProgress (line 153) | void onProgress(long increaseBytes) { method onRetry (line 170) | void onRetry(Exception exception, int remainRetryTimes) { method onPausedDirectly (line 184) | void onPausedDirectly() { method onErrorDirectly (line 188) | void onErrorDirectly(Exception exception) { method onCompletedDirectly (line 192) | void onCompletedDirectly() throws IOException { method sendMessage (line 204) | private synchronized void sendMessage(Message message) { method calculateCallbackMinIntervalBytes (line 227) | private static long calculateCallbackMinIntervalBytes(final long conte... method exFiltrate (line 239) | private Exception exFiltrate(Exception ex) { method handleSQLiteFullException (line 275) | private void handleSQLiteFullException(final SQLiteFullException sqLit... method renameTempFile (line 290) | private void renameTempFile() throws IOException { method handleMessage (line 332) | @Override method handleProgress (line 359) | private void handleProgress() { method handleCompleted (line 380) | private void handleCompleted() throws IOException { method interceptBeforeCompleted (line 395) | private boolean interceptBeforeCompleted() { method handleRetry (line 408) | private void handleRetry(final Exception exception, final int remainRe... method handlePaused (line 420) | private void handlePaused() { method handleError (line 427) | private void handleError(Exception exception) { method inspectNeedCallbackToUser (line 454) | private void inspectNeedCallbackToUser(final long now) { method onStatusChanged (line 473) | private void onStatusChanged(final byte status) { class ProcessParams (line 499) | public static class ProcessParams { method setResuming (line 504) | void setResuming(boolean isResuming) { method isResuming (line 508) | public boolean isResuming() { method setException (line 512) | void setException(Exception exception) { method setRetryingTimes (line 516) | void setRetryingTimes(int retryingTimes) { method getException (line 520) | public Exception getException() { method getRetryingTimes (line 524) | public int getRetryingTimes() { FILE: library/src/main/java/com/liulishuo/filedownloader/download/FetchDataTask.java class FetchDataTask (line 37) | public class FetchDataTask { method pause (line 58) | public void pause() { method FetchDataTask (line 62) | private FetchDataTask(FileDownloadConnection connection, ConnectionPro... method run (line 80) | public void run() throws IOException, IllegalAccessException, IllegalA... method checkAndSync (line 205) | private void checkAndSync() { method sync (line 218) | private void sync() { class Builder (line 253) | public static class Builder { method setConnection (line 263) | public Builder setConnection(FileDownloadConnection connection) { method setConnectionProfile (line 268) | public Builder setConnectionProfile(ConnectionProfile connectionProf... method setCallback (line 273) | public Builder setCallback(ProcessCallback callback) { method setPath (line 278) | public Builder setPath(String path) { method setWifiRequired (line 283) | public Builder setWifiRequired(boolean wifiRequired) { method setHost (line 288) | public Builder setHost(DownloadRunnable downloadRunnable) { method setConnectionIndex (line 293) | public Builder setConnectionIndex(int connectionIndex) { method setDownloadId (line 298) | public Builder setDownloadId(int downloadId) { method build (line 303) | public FetchDataTask build() throws IllegalArgumentException { FILE: library/src/main/java/com/liulishuo/filedownloader/download/ProcessCallback.java type ProcessCallback (line 22) | public interface ProcessCallback { method onProgress (line 24) | void onProgress(long increaseBytes); method onCompleted (line 26) | void onCompleted(DownloadRunnable doneRunnable, long startOffset, long... method isRetry (line 28) | boolean isRetry(Exception exception); method onError (line 30) | void onError(Exception exception); method onRetry (line 32) | void onRetry(Exception exception); method syncProgressFromCache (line 34) | void syncProgressFromCache(); FILE: library/src/main/java/com/liulishuo/filedownloader/event/DownloadEventPoolImpl.java class DownloadEventPoolImpl (line 29) | public class DownloadEventPoolImpl implements IDownloadEventPool { method addListener (line 35) | @Override method removeListener (line 59) | @Override method publish (line 85) | @Override method asyncPublishInNewThread (line 109) | @Override method trigger (line 124) | private void trigger(final LinkedList listeners, FILE: library/src/main/java/com/liulishuo/filedownloader/event/DownloadEventSampleListener.java class DownloadEventSampleListener (line 22) | public class DownloadEventSampleListener extends IDownloadListener { method DownloadEventSampleListener (line 25) | public DownloadEventSampleListener(IEventListener i) { method callback (line 34) | @Override type IEventListener (line 39) | public interface IEventListener { method callback (line 40) | boolean callback(IDownloadEvent event); FILE: library/src/main/java/com/liulishuo/filedownloader/event/DownloadServiceConnectChangedEvent.java class DownloadServiceConnectChangedEvent (line 23) | public class DownloadServiceConnectChangedEvent extends IDownloadEvent { method DownloadServiceConnectChangedEvent (line 26) | public DownloadServiceConnectChangedEvent(final ConnectStatus status, type ConnectStatus (line 36) | public enum ConnectStatus { method getStatus (line 42) | public ConnectStatus getStatus() { method isSuchService (line 48) | public boolean isSuchService(final Class serviceClass) { FILE: library/src/main/java/com/liulishuo/filedownloader/event/IDownloadEvent.java class IDownloadEvent (line 24) | @SuppressWarnings({"WeakerAccess", "CanBeFinal"}) method IDownloadEvent (line 28) | public IDownloadEvent(final String id) { method IDownloadEvent (line 36) | public IDownloadEvent(final String id, boolean order) { method getId (line 46) | public final String getId() { FILE: library/src/main/java/com/liulishuo/filedownloader/event/IDownloadEventPool.java type IDownloadEventPool (line 25) | interface IDownloadEventPool { method addListener (line 27) | boolean addListener(final String eventId, final IDownloadListener list... method removeListener (line 29) | boolean removeListener(final String eventId, final IDownloadListener l... method publish (line 31) | boolean publish(final IDownloadEvent event); method asyncPublishInNewThread (line 33) | void asyncPublishInNewThread(final IDownloadEvent event); FILE: library/src/main/java/com/liulishuo/filedownloader/event/IDownloadListener.java class IDownloadListener (line 25) | public abstract class IDownloadListener { method callback (line 37) | public abstract boolean callback(IDownloadEvent event); FILE: library/src/main/java/com/liulishuo/filedownloader/exception/FileDownloadGiveUpRetryException.java class FileDownloadGiveUpRetryException (line 24) | public class FileDownloadGiveUpRetryException extends RuntimeException { method FileDownloadGiveUpRetryException (line 25) | public FileDownloadGiveUpRetryException(final String detailMessage) { FILE: library/src/main/java/com/liulishuo/filedownloader/exception/FileDownloadHttpException.java class FileDownloadHttpException (line 30) | public class FileDownloadHttpException extends IOException { method FileDownloadHttpException (line 35) | public FileDownloadHttpException(final int code, method getRequestHeader (line 49) | public Map> getRequestHeader() { method getResponseHeader (line 56) | public Map> getResponseHeader() { method getCode (line 63) | public int getCode() { method cloneSerializableMap (line 67) | private static Map> cloneSerializableMap( FILE: library/src/main/java/com/liulishuo/filedownloader/exception/FileDownloadNetworkPolicyException.java class FileDownloadNetworkPolicyException (line 27) | public class FileDownloadNetworkPolicyException extends FileDownloadGive... method FileDownloadNetworkPolicyException (line 28) | public FileDownloadNetworkPolicyException() { FILE: library/src/main/java/com/liulishuo/filedownloader/exception/FileDownloadOutOfSpaceException.java class FileDownloadOutOfSpaceException (line 37) | @SuppressWarnings("SameParameterValue") method FileDownloadOutOfSpaceException (line 42) | @TargetApi(Build.VERSION_CODES.GINGERBREAD) method FileDownloadOutOfSpaceException (line 52) | public FileDownloadOutOfSpaceException(long freeSpaceBytes, long requi... method init (line 62) | private void init(long freeSpaceBytes, long requiredSpaceBytes, long b... method getFreeSpaceBytes (line 71) | public long getFreeSpaceBytes() { method getRequiredSpaceBytes (line 78) | public long getRequiredSpaceBytes() { method getBreakpointBytes (line 88) | public long getBreakpointBytes() { FILE: library/src/main/java/com/liulishuo/filedownloader/exception/FileDownloadSecurityException.java class FileDownloadSecurityException (line 22) | public class FileDownloadSecurityException extends Exception { method FileDownloadSecurityException (line 23) | public FileDownloadSecurityException(String msg) { FILE: library/src/main/java/com/liulishuo/filedownloader/exception/PathConflictException.java class PathConflictException (line 27) | public class PathConflictException extends IllegalAccessException { method PathConflictException (line 33) | public PathConflictException(final int anotherSamePathTaskId, final St... method getDownloadingConflictPath (line 54) | public String getDownloadingConflictPath() { method getTargetFilePath (line 64) | public String getTargetFilePath() { method getAnotherSamePathTaskId (line 75) | public int getAnotherSamePathTaskId() { FILE: library/src/main/java/com/liulishuo/filedownloader/message/BlockCompleteMessage.java type BlockCompleteMessage (line 29) | public interface BlockCompleteMessage { method transmitToCompleted (line 31) | MessageSnapshot transmitToCompleted(); class BlockCompleteMessageImpl (line 33) | class BlockCompleteMessageImpl extends MessageSnapshot implements Bloc... method BlockCompleteMessageImpl (line 36) | public BlockCompleteMessageImpl(MessageSnapshot snapshot) { method transmitToCompleted (line 46) | @Override method getStatus (line 51) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/message/IFlowDirectly.java type IFlowDirectly (line 23) | public interface IFlowDirectly { FILE: library/src/main/java/com/liulishuo/filedownloader/message/IMessageSnapshot.java type IMessageSnapshot (line 22) | interface IMessageSnapshot { method getId (line 26) | int getId(); method getStatus (line 32) | byte getStatus(); method getThrowable (line 37) | Throwable getThrowable(); method getRetryingTimes (line 42) | int getRetryingTimes(); method isResuming (line 48) | boolean isResuming(); method getEtag (line 53) | String getEtag(); method getLargeSofarBytes (line 61) | long getLargeSofarBytes(); method getLargeTotalBytes (line 69) | long getLargeTotalBytes(); method getSmallSofarBytes (line 77) | int getSmallSofarBytes(); method getSmallTotalBytes (line 85) | int getSmallTotalBytes(); method isReusedDownloadedFile (line 91) | boolean isReusedDownloadedFile(); method isLargeFile (line 96) | boolean isLargeFile(); method getFileName (line 101) | String getFileName(); FILE: library/src/main/java/com/liulishuo/filedownloader/message/LargeMessageSnapshot.java class LargeMessageSnapshot (line 29) | public abstract class LargeMessageSnapshot extends MessageSnapshot { method LargeMessageSnapshot (line 31) | LargeMessageSnapshot(int id) { method LargeMessageSnapshot (line 36) | LargeMessageSnapshot(Parcel in) { method getSmallSofarBytes (line 40) | @Override method getSmallTotalBytes (line 49) | @Override class PendingMessageSnapshot (line 59) | public static class PendingMessageSnapshot extends LargeMessageSnapshot { method PendingMessageSnapshot (line 63) | PendingMessageSnapshot(PendingMessageSnapshot snapshot) { method PendingMessageSnapshot (line 67) | PendingMessageSnapshot(int id, long sofarBytes, long totalBytes) { method getStatus (line 73) | @Override method getLargeSofarBytes (line 78) | @Override method getLargeTotalBytes (line 83) | @Override method describeContents (line 88) | @Override method writeToParcel (line 93) | @Override method PendingMessageSnapshot (line 100) | PendingMessageSnapshot(Parcel in) { class ConnectedMessageSnapshot (line 108) | public static class ConnectedMessageSnapshot extends LargeMessageSnaps... method ConnectedMessageSnapshot (line 114) | ConnectedMessageSnapshot(int id, boolean resuming, long totalBytes, method describeContents (line 123) | @Override method writeToParcel (line 128) | @Override method ConnectedMessageSnapshot (line 137) | ConnectedMessageSnapshot(Parcel in) { method getFileName (line 145) | @Override method getStatus (line 150) | @Override method isResuming (line 155) | @Override method getLargeTotalBytes (line 160) | @Override method getEtag (line 165) | @Override class ProgressMessageSnapshot (line 172) | public static class ProgressMessageSnapshot extends LargeMessageSnapsh... method ProgressMessageSnapshot (line 175) | ProgressMessageSnapshot(int id, long sofarBytes) { method getStatus (line 180) | @Override method getLargeSofarBytes (line 185) | @Override method describeContents (line 190) | @Override method writeToParcel (line 195) | @Override method ProgressMessageSnapshot (line 201) | ProgressMessageSnapshot(Parcel in) { class CompletedFlowDirectlySnapshot (line 208) | public static class CompletedFlowDirectlySnapshot extends CompletedSna... method CompletedFlowDirectlySnapshot (line 211) | CompletedFlowDirectlySnapshot(int id, boolean reusedDownloadedFile, method CompletedFlowDirectlySnapshot (line 216) | CompletedFlowDirectlySnapshot(Parcel in) { class CompletedSnapshot (line 221) | public static class CompletedSnapshot extends LargeMessageSnapshot { method CompletedSnapshot (line 225) | CompletedSnapshot(int id, boolean reusedDownloadedFile, method describeContents (line 232) | @Override method writeToParcel (line 237) | @Override method CompletedSnapshot (line 244) | CompletedSnapshot(Parcel in) { method getStatus (line 250) | @Override method getLargeTotalBytes (line 255) | @Override method isReusedDownloadedFile (line 260) | @Override class ErrorMessageSnapshot (line 267) | public static class ErrorMessageSnapshot extends LargeMessageSnapshot { method ErrorMessageSnapshot (line 271) | ErrorMessageSnapshot(int id, long sofarBytes, Throwable throwable) { method getLargeSofarBytes (line 277) | @Override method getStatus (line 282) | @Override method getThrowable (line 287) | @Override method describeContents (line 292) | @Override method writeToParcel (line 297) | @Override method ErrorMessageSnapshot (line 304) | ErrorMessageSnapshot(Parcel in) { class RetryMessageSnapshot (line 312) | public static class RetryMessageSnapshot extends ErrorMessageSnapshot { method RetryMessageSnapshot (line 315) | RetryMessageSnapshot(int id, long sofarBytes, Throwable throwable, method getRetryingTimes (line 321) | @Override method describeContents (line 326) | @Override method writeToParcel (line 331) | @Override method RetryMessageSnapshot (line 337) | RetryMessageSnapshot(Parcel in) { method getStatus (line 342) | @Override class WarnFlowDirectlySnapshot (line 349) | public static class WarnFlowDirectlySnapshot extends WarnMessageSnapsh... method WarnFlowDirectlySnapshot (line 352) | WarnFlowDirectlySnapshot(int id, long sofarBytes, long totalBytes) { method WarnFlowDirectlySnapshot (line 356) | WarnFlowDirectlySnapshot(Parcel in) { class WarnMessageSnapshot (line 361) | public static class WarnMessageSnapshot extends PendingMessageSnapshot... method WarnMessageSnapshot (line 364) | WarnMessageSnapshot(int id, long sofarBytes, long totalBytes) { method WarnMessageSnapshot (line 368) | WarnMessageSnapshot(Parcel in) { method turnToPending (line 372) | @Override method getStatus (line 377) | @Override class PausedSnapshot (line 384) | public static class PausedSnapshot extends PendingMessageSnapshot { method PausedSnapshot (line 385) | PausedSnapshot(int id, long sofarBytes, long totalBytes) { method getStatus (line 389) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/message/MessageSnapshot.java class MessageSnapshot (line 28) | public abstract class MessageSnapshot implements IMessageSnapshot, Parce... method MessageSnapshot (line 32) | MessageSnapshot(int id) { method getId (line 36) | @Override method getThrowable (line 41) | @Override method getRetryingTimes (line 46) | @Override method isResuming (line 51) | @Override method getEtag (line 56) | @Override method getLargeSofarBytes (line 61) | @Override method getLargeTotalBytes (line 66) | @Override method getSmallSofarBytes (line 71) | @Override method getSmallTotalBytes (line 76) | @Override method isReusedDownloadedFile (line 81) | @Override method getFileName (line 86) | @Override method isLargeFile (line 91) | @Override type IWarnMessageSnapshot (line 97) | public interface IWarnMessageSnapshot { method turnToPending (line 98) | MessageSnapshot turnToPending(); method describeContents (line 102) | @Override method writeToParcel (line 107) | @Override method MessageSnapshot (line 115) | MessageSnapshot(Parcel in) { method createFromParcel (line 120) | @Override method newArray (line 192) | @Override class NoFieldException (line 198) | public static class NoFieldException extends IllegalStateException { method NoFieldException (line 199) | NoFieldException(String methodName, MessageSnapshot snapshot) { class StartedMessageSnapshot (line 208) | public static class StartedMessageSnapshot extends MessageSnapshot { method StartedMessageSnapshot (line 210) | StartedMessageSnapshot(int id) { method StartedMessageSnapshot (line 214) | StartedMessageSnapshot(Parcel in) { method getStatus (line 218) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/message/MessageSnapshotFlow.java class MessageSnapshotFlow (line 24) | public class MessageSnapshotFlow { class HolderClass (line 29) | public static final class HolderClass { method getImpl (line 33) | public static MessageSnapshotFlow getImpl() { method setReceiver (line 37) | public void setReceiver(MessageReceiver receiver) { method inflow (line 46) | public void inflow(final MessageSnapshot snapshot) { type MessageReceiver (line 60) | public interface MessageReceiver { method receive (line 61) | void receive(MessageSnapshot snapshot); FILE: library/src/main/java/com/liulishuo/filedownloader/message/MessageSnapshotTaker.java class MessageSnapshotTaker (line 31) | public class MessageSnapshotTaker { method take (line 33) | public static MessageSnapshot take(byte status, FileDownloadModel mode... method catchCanReusedOldFile (line 37) | public static MessageSnapshot catchCanReusedOldFile(int id, File oldFile, method catchWarn (line 56) | public static MessageSnapshot catchWarn(int id, long sofar, long total... method catchException (line 73) | public static MessageSnapshot catchException(int id, long sofar, Throw... method catchPause (line 81) | public static MessageSnapshot catchPause(BaseDownloadTask task) { method takeBlockCompleted (line 91) | public static MessageSnapshot takeBlockCompleted(MessageSnapshot snaps... method take (line 102) | public static MessageSnapshot take(byte status, FileDownloadModel model, FILE: library/src/main/java/com/liulishuo/filedownloader/message/MessageSnapshotThreadPool.java class MessageSnapshotThreadPool (line 28) | public class MessageSnapshotThreadPool { method MessageSnapshotThreadPool (line 34) | MessageSnapshotThreadPool(@SuppressWarnings("SameParameterValue") fina... method execute (line 43) | public void execute(final MessageSnapshot snapshot) { class FlowSingleExecutor (line 84) | public class FlowSingleExecutor { method FlowSingleExecutor (line 88) | public FlowSingleExecutor(int index) { method enqueue (line 92) | public void enqueue(final int id) { method execute (line 96) | public void execute(final MessageSnapshot snapshot) { FILE: library/src/main/java/com/liulishuo/filedownloader/message/SmallMessageSnapshot.java class SmallMessageSnapshot (line 29) | public abstract class SmallMessageSnapshot extends MessageSnapshot { method SmallMessageSnapshot (line 31) | SmallMessageSnapshot(int id) { method SmallMessageSnapshot (line 36) | SmallMessageSnapshot(Parcel in) { method getLargeTotalBytes (line 40) | @Override method getLargeSofarBytes (line 45) | @Override class PendingMessageSnapshot (line 51) | public static class PendingMessageSnapshot extends SmallMessageSnapshot { method PendingMessageSnapshot (line 55) | PendingMessageSnapshot(PendingMessageSnapshot snapshot) { method PendingMessageSnapshot (line 59) | PendingMessageSnapshot(int id, int sofarBytes, int totalBytes) { method PendingMessageSnapshot (line 65) | PendingMessageSnapshot(Parcel in) { method writeToParcel (line 71) | @Override method getStatus (line 78) | @Override method getSmallSofarBytes (line 83) | @Override method getSmallTotalBytes (line 88) | @Override class ConnectedMessageSnapshot (line 96) | public static class ConnectedMessageSnapshot extends SmallMessageSnaps... method ConnectedMessageSnapshot (line 102) | ConnectedMessageSnapshot(int id, boolean resuming, int totalBytes, method describeContents (line 111) | @Override method writeToParcel (line 116) | @Override method ConnectedMessageSnapshot (line 125) | ConnectedMessageSnapshot(Parcel in) { method getFileName (line 133) | @Override method getStatus (line 138) | @Override method isResuming (line 143) | @Override method getSmallTotalBytes (line 148) | @Override method getEtag (line 153) | @Override class ProgressMessageSnapshot (line 160) | public static class ProgressMessageSnapshot extends SmallMessageSnapsh... method ProgressMessageSnapshot (line 163) | ProgressMessageSnapshot(int id, int sofarBytes) { method getStatus (line 168) | @Override method getSmallSofarBytes (line 173) | @Override method describeContents (line 178) | @Override method writeToParcel (line 183) | @Override method ProgressMessageSnapshot (line 189) | ProgressMessageSnapshot(Parcel in) { class CompletedFlowDirectlySnapshot (line 196) | public static class CompletedFlowDirectlySnapshot extends CompletedSna... method CompletedFlowDirectlySnapshot (line 199) | CompletedFlowDirectlySnapshot(int id, boolean reusedDownloadedFile, method CompletedFlowDirectlySnapshot (line 204) | CompletedFlowDirectlySnapshot(Parcel in) { class CompletedSnapshot (line 209) | public static class CompletedSnapshot extends SmallMessageSnapshot { method CompletedSnapshot (line 213) | CompletedSnapshot(int id, boolean reusedDownloadedFile, method describeContents (line 220) | @Override method writeToParcel (line 225) | @Override method CompletedSnapshot (line 232) | CompletedSnapshot(Parcel in) { method getStatus (line 238) | @Override method getSmallTotalBytes (line 243) | @Override method isReusedDownloadedFile (line 248) | @Override class ErrorMessageSnapshot (line 255) | public static class ErrorMessageSnapshot extends SmallMessageSnapshot { method ErrorMessageSnapshot (line 259) | ErrorMessageSnapshot(int id, int sofarBytes, Throwable throwable) { method getSmallSofarBytes (line 265) | @Override method getStatus (line 270) | @Override method getThrowable (line 275) | @Override method describeContents (line 280) | @Override method writeToParcel (line 285) | @Override method ErrorMessageSnapshot (line 292) | ErrorMessageSnapshot(Parcel in) { class RetryMessageSnapshot (line 300) | public static class RetryMessageSnapshot extends ErrorMessageSnapshot { method RetryMessageSnapshot (line 303) | RetryMessageSnapshot(int id, int sofarBytes, Throwable throwable, method getRetryingTimes (line 309) | @Override method describeContents (line 314) | @Override method writeToParcel (line 319) | @Override method RetryMessageSnapshot (line 325) | RetryMessageSnapshot(Parcel in) { method getStatus (line 330) | @Override class WarnFlowDirectlySnapshot (line 338) | public static class WarnFlowDirectlySnapshot extends WarnMessageSnapsh... method WarnFlowDirectlySnapshot (line 340) | WarnFlowDirectlySnapshot(int id, int sofarBytes, int totalBytes) { method WarnFlowDirectlySnapshot (line 344) | WarnFlowDirectlySnapshot(Parcel in) { class WarnMessageSnapshot (line 349) | public static class WarnMessageSnapshot extends PendingMessageSnapshot... method WarnMessageSnapshot (line 352) | WarnMessageSnapshot(int id, int sofarBytes, int totalBytes) { method WarnMessageSnapshot (line 356) | WarnMessageSnapshot(Parcel in) { method turnToPending (line 360) | @Override method getStatus (line 365) | @Override class PausedSnapshot (line 372) | public static class PausedSnapshot extends PendingMessageSnapshot { method PausedSnapshot (line 373) | PausedSnapshot(int id, int sofarBytes, int totalBytes) { method getStatus (line 377) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/model/ConnectionModel.java class ConnectionModel (line 29) | public class ConnectionModel { method getId (line 45) | public int getId() { method setId (line 49) | public void setId(int id) { method getIndex (line 53) | public int getIndex() { method setIndex (line 57) | public void setIndex(int index) { method getStartOffset (line 61) | public long getStartOffset() { method setStartOffset (line 65) | public void setStartOffset(long startOffset) { method getCurrentOffset (line 69) | public long getCurrentOffset() { method setCurrentOffset (line 73) | public void setCurrentOffset(long currentOffset) { method getEndOffset (line 77) | public long getEndOffset() { method setEndOffset (line 81) | public void setEndOffset(long endOffset) { method toContentValues (line 85) | public ContentValues toContentValues() { method getTotalOffset (line 95) | public static long getTotalOffset(List modelList) { method toString (line 103) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/model/FileDownloadHeader.java class FileDownloadHeader (line 31) | public class FileDownloadHeader implements Parcelable { method add (line 40) | public void add(String name, String value) { method add (line 65) | public void add(String line) { method removeAll (line 76) | public void removeAll(String name) { method describeContents (line 84) | @Override method writeToParcel (line 89) | @Override method getHeaders (line 94) | public HashMap> getHeaders() { method FileDownloadHeader (line 98) | public FileDownloadHeader() { method FileDownloadHeader (line 101) | protected FileDownloadHeader(Parcel in) { method createFromParcel (line 107) | public FileDownloadHeader createFromParcel(Parcel source) { method newArray (line 111) | public FileDownloadHeader[] newArray(int size) { method toString (line 116) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/model/FileDownloadModel.java class FileDownloadModel (line 36) | @SuppressWarnings("WeakerAccess") method setId (line 80) | public void setId(int id) { method setUrl (line 84) | public void setUrl(String url) { method setPath (line 88) | public void setPath(String path, boolean pathAsDirectory) { method setStatus (line 93) | public void setStatus(byte status) { method setSoFar (line 97) | public void setSoFar(long soFar) { method increaseSoFar (line 101) | public void increaseSoFar(long increaseBytes) { method setTotal (line 105) | public void setTotal(long total) { method getId (line 110) | public int getId() { method getUrl (line 114) | public String getUrl() { method getPath (line 124) | public String getPath() { method getTargetFilePath (line 139) | public String getTargetFilePath() { method getTempFilePath (line 143) | public String getTempFilePath() { method getStatus (line 150) | public byte getStatus() { method getSoFar (line 154) | public long getSoFar() { method getTotal (line 158) | public long getTotal() { method isChunked (line 162) | public boolean isChunked() { method getETag (line 166) | public String getETag() { method setETag (line 170) | public void setETag(String eTag) { method getErrMsg (line 174) | public String getErrMsg() { method setErrMsg (line 178) | public void setErrMsg(String errMsg) { method setFilename (line 182) | public void setFilename(String filename) { method isPathAsDirectory (line 186) | public boolean isPathAsDirectory() { method getFilename (line 190) | public String getFilename() { method setConnectionCount (line 194) | public void setConnectionCount(int connectionCount) { method getConnectionCount (line 198) | public int getConnectionCount() { method resetConnectionCount (line 205) | public void resetConnectionCount() { method toContentValues (line 209) | public ContentValues toContentValues() { method isLargeFile (line 231) | public boolean isLargeFile() { method deleteTaskFiles (line 235) | public void deleteTaskFiles() { method deleteTempFile (line 240) | public void deleteTempFile() { method deleteTargetFile (line 252) | public void deleteTargetFile() { method toString (line 263) | @Override method describeContents (line 272) | @Override method writeToParcel (line 277) | @Override method FileDownloadModel (line 293) | public FileDownloadModel() { method FileDownloadModel (line 298) | protected FileDownloadModel(Parcel in) { method createFromParcel (line 315) | @Override method newArray (line 320) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/model/FileDownloadStatus.java class FileDownloadStatus (line 21) | @SuppressWarnings({"checkstyle:linelength", "checkstyle:constantname"}) method isOver (line 128) | public static boolean isOver(final int status) { method isIng (line 132) | public static boolean isIng(final int status) { method isKeepAhead (line 136) | public static boolean isKeepAhead(final int status, final int nextStat... method isKeepFlow (line 202) | @SuppressWarnings("checkstyle:avoidnestedblocks") method isMoreLikelyCompleted (line 277) | public static boolean isMoreLikelyCompleted(BaseDownloadTask task) { FILE: library/src/main/java/com/liulishuo/filedownloader/model/FileDownloadTaskAtom.java class FileDownloadTaskAtom (line 32) | @SuppressWarnings({"WeakerAccess", "deprecation", "DeprecatedIsStillUsed"}) method FileDownloadTaskAtom (line 38) | public FileDownloadTaskAtom(String url, String path, long totalBytes) { method getId (line 46) | public int getId() { method getUrl (line 54) | public String getUrl() { method setUrl (line 58) | public void setUrl(String url) { method getPath (line 62) | public String getPath() { method setPath (line 66) | public void setPath(String path) { method getTotalBytes (line 70) | public long getTotalBytes() { method setTotalBytes (line 74) | public void setTotalBytes(long totalBytes) { method describeContents (line 78) | @Override method writeToParcel (line 83) | @Override method FileDownloadTaskAtom (line 90) | protected FileDownloadTaskAtom(Parcel in) { method createFromParcel (line 98) | @Override method newArray (line 103) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/notification/BaseNotificationItem.java class BaseNotificationItem (line 32) | @SuppressWarnings("WeakerAccess") method BaseNotificationItem (line 41) | public BaseNotificationItem(final int id, final String title, final St... method show (line 48) | public void show(boolean isShowProgress) { method show (line 55) | public abstract void show(boolean statusChanged, int status, boolean i... method update (line 57) | public void update(final int sofar, final int total) { method updateStatus (line 63) | public void updateStatus(final int status) { method cancel (line 67) | public void cancel() { method getManager (line 73) | protected NotificationManager getManager() { method getId (line 81) | public int getId() { method setId (line 85) | public void setId(int id) { method getSofar (line 89) | public int getSofar() { method setSofar (line 93) | public void setSofar(int sofar) { method getTotal (line 97) | public int getTotal() { method setTotal (line 101) | public void setTotal(int total) { method getTitle (line 105) | public String getTitle() { method setTitle (line 109) | public void setTitle(String title) { method getDesc (line 113) | public String getDesc() { method setDesc (line 117) | public void setDesc(String desc) { method getStatus (line 121) | public int getStatus() { method setStatus (line 126) | public void setStatus(int status) { method getLastStatus (line 130) | public int getLastStatus() { method isChanged (line 134) | public boolean isChanged() { FILE: library/src/main/java/com/liulishuo/filedownloader/notification/FileDownloadNotificationHelper.java class FileDownloadNotificationHelper (line 30) | @SuppressWarnings("WeakerAccess") method get (line 40) | public T get(final int id) { method contains (line 44) | public boolean contains(final int id) { method remove (line 54) | public T remove(final int id) { method add (line 67) | public void add(T notification) { method showProgress (line 79) | public void showProgress(final int id, final int sofar, final int tota... method showIndeterminate (line 96) | public void showIndeterminate(final int id, int status) { method cancel (line 112) | public void cancel(final int id) { method clear (line 125) | public void clear() { FILE: library/src/main/java/com/liulishuo/filedownloader/notification/FileDownloadNotificationListener.java class FileDownloadNotificationListener (line 29) | @SuppressWarnings({"WeakerAccess", "UnusedParameters"}) method FileDownloadNotificationListener (line 33) | public FileDownloadNotificationListener(FileDownloadNotificationHelper... method getHelper (line 38) | public FileDownloadNotificationHelper getHelper() { method addNotificationItem (line 43) | public void addNotificationItem(int downloadId) { method addNotificationItem (line 54) | public void addNotificationItem(BaseDownloadTask task) { method destroyNotification (line 71) | public void destroyNotification(BaseDownloadTask task) { method showIndeterminate (line 85) | public void showIndeterminate(BaseDownloadTask task) { method showProgress (line 93) | public void showProgress(BaseDownloadTask task, int soFarBytes, method create (line 107) | protected abstract BaseNotificationItem create(BaseDownloadTask task); method interceptCancel (line 119) | protected boolean interceptCancel(BaseDownloadTask task, method disableNotification (line 131) | protected boolean disableNotification(final BaseDownloadTask task) { method pending (line 135) | @Override method started (line 141) | @Override method progress (line 147) | @Override method retry (line 152) | @Override method blockComplete (line 158) | @Override method completed (line 162) | @Override method paused (line 167) | @Override method error (line 172) | @Override method warn (line 177) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/services/BaseFileServiceUIGuard.java class BaseFileServiceUIGuard (line 44) | public abstract class BaseFileServiceUIGuard serviceClass) { method createCallback (line 67) | protected abstract CALLBACK createCallback(); method onServiceConnected (line 69) | @Override method onServiceDisconnected (line 96) | @Override method releaseConnect (line 104) | private void releaseConnect(final boolean isLost) { method bindStartByContext (line 127) | @Override method bindStartByContext (line 132) | @Override method unbindByContext (line 171) | @Override method isRunServiceForeground (line 193) | @Override method asInterface (line 198) | protected abstract INTERFACE asInterface(IBinder service); method registerCallback (line 200) | protected abstract void registerCallback(final INTERFACE service, fina... method unregisterCallback (line 203) | protected abstract void unregisterCallback(final INTERFACE service, fi... method popCache (line 207) | protected Object popCache(final String key) { method putCache (line 211) | protected String putCache(final Object object) { method isConnected (line 220) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/services/DefaultIdGenerator.java class DefaultIdGenerator (line 28) | public class DefaultIdGenerator implements FileDownloadHelper.IdGenerator { method transOldId (line 30) | @Override method generateId (line 35) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/services/DownloadMgrInitialParams.java class DownloadMgrInitialParams (line 35) | public class DownloadMgrInitialParams { method DownloadMgrInitialParams (line 39) | public DownloadMgrInitialParams() { method DownloadMgrInitialParams (line 43) | public DownloadMgrInitialParams(InitCustomMaker maker) { method getMaxNetworkThreadCount (line 47) | public int getMaxNetworkThreadCount() { method createDatabase (line 68) | public FileDownloadDatabase createDatabase() { method createOutputStreamCreator (line 86) | public FileDownloadHelper.OutputStreamCreator createOutputStreamCreato... method createConnectionCreator (line 104) | public FileDownloadHelper.ConnectionCreator createConnectionCreator() { method createConnectionCountAdapter (line 122) | public FileDownloadHelper.ConnectionCountAdapter createConnectionCount... method createIdGenerator (line 139) | public FileDownloadHelper.IdGenerator createIdGenerator() { method createForegroundServiceConfig (line 157) | public ForegroundServiceConfig createForegroundServiceConfig() { method createDefaultForegroundServiceConfig (line 174) | private ForegroundServiceConfig createDefaultForegroundServiceConfig() { method createDefaultIdGenerator (line 178) | private FileDownloadHelper.IdGenerator createDefaultIdGenerator() { method getDefaultMaxNetworkThreadCount (line 182) | private int getDefaultMaxNetworkThreadCount() { method createDefaultDatabase (line 186) | private FileDownloadDatabase createDefaultDatabase() { method createDefaultOutputStreamCreator (line 190) | private FileDownloadHelper.OutputStreamCreator createDefaultOutputStre... method createDefaultConnectionCreator (line 194) | private FileDownloadHelper.ConnectionCreator createDefaultConnectionCr... method createDefaultConnectionCountAdapter (line 198) | private FileDownloadHelper.ConnectionCountAdapter createDefaultConnect... class InitCustomMaker (line 202) | public static class InitCustomMaker { method idGenerator (line 216) | public InitCustomMaker idGenerator(FileDownloadHelper.IdGenerator id... method connectionCountAdapter (line 228) | public InitCustomMaker connectionCountAdapter( method database (line 250) | public InitCustomMaker database(FileDownloadHelper.DatabaseCustomMak... method maxNetworkThreadCount (line 269) | public InitCustomMaker maxNetworkThreadCount(int maxNetworkThreadCou... method outputStreamCreator (line 286) | public InitCustomMaker outputStreamCreator(FileDownloadHelper.Output... method connectionCreator (line 314) | public InitCustomMaker connectionCreator(FileDownloadHelper.Connecti... method foregroundServiceConfig (line 323) | public InitCustomMaker foregroundServiceConfig(ForegroundServiceConf... method commit (line 328) | @SuppressWarnings("EmptyMethod") method toString (line 333) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/services/FDServiceSeparateHandler.java class FDServiceSeparateHandler (line 36) | public class FDServiceSeparateHandler extends IFileDownloadIPCService.Stub method callback (line 44) | @SuppressWarnings("UnusedReturnValue") method FDServiceSeparateHandler (line 60) | FDServiceSeparateHandler(WeakReference wService, method registerCallback (line 68) | @Override method unregisterCallback (line 73) | @Override method checkDownloading (line 78) | @Override method start (line 83) | @Override method pause (line 93) | @Override method pauseAllTasks (line 98) | @Override method setMaxNetworkThreadCount (line 103) | @Override method getSofar (line 108) | @Override method getTotal (line 113) | @Override method getStatus (line 118) | @Override method isIdle (line 123) | @Override method startForeground (line 128) | @Override method stopForeground (line 135) | @Override method clearTaskData (line 142) | @Override method clearAllTaskData (line 147) | @Override method onStartCommand (line 152) | @Override method onBind (line 156) | @Override method onDestroy (line 161) | @Override method receive (line 166) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/services/FDServiceSharedHandler.java class FDServiceSharedHandler (line 32) | public class FDServiceSharedHandler extends IFileDownloadIPCService.Stub method FDServiceSharedHandler (line 37) | FDServiceSharedHandler(WeakReference wService, method registerCallback (line 43) | @Override method unregisterCallback (line 47) | @Override method checkDownloading (line 51) | @Override method start (line 56) | @Override method pause (line 66) | @Override method pauseAllTasks (line 71) | @Override method setMaxNetworkThreadCount (line 76) | @Override method getSofar (line 81) | @Override method getTotal (line 86) | @Override method getStatus (line 91) | @Override method isIdle (line 96) | @Override method startForeground (line 101) | @Override method stopForeground (line 108) | @Override method clearTaskData (line 115) | @Override method clearAllTaskData (line 120) | @Override method onStartCommand (line 125) | @Override method onBind (line 131) | @Override method onDestroy (line 136) | @Override type FileDownloadServiceSharedConnection (line 142) | public interface FileDownloadServiceSharedConnection { method onConnected (line 143) | void onConnected(FDServiceSharedHandler handler); method onDisconnected (line 145) | void onDisconnected(); FILE: library/src/main/java/com/liulishuo/filedownloader/services/FileDownloadBroadcastHandler.java class FileDownloadBroadcastHandler (line 29) | public class FileDownloadBroadcastHandler { method parseIntent (line 39) | public static FileDownloadModel parseIntent(Intent intent) { method sendCompletedBroadcast (line 50) | public static void sendCompletedBroadcast(FileDownloadModel model) { FILE: library/src/main/java/com/liulishuo/filedownloader/services/FileDownloadManager.java class FileDownloadManager (line 48) | class FileDownloadManager implements IThreadPoolMonitor { method FileDownloadManager (line 52) | FileDownloadManager() { method start (line 59) | public synchronized void start(final String url, final String path, method isDownloading (line 204) | public boolean isDownloading(String url, String path) { method isDownloading (line 208) | public boolean isDownloading(int id) { method pause (line 212) | public boolean pause(final int id) { method pauseAll (line 230) | public void pauseAll() { method getSoFar (line 242) | public long getSoFar(final int id) { method getTotal (line 261) | public long getTotal(final int id) { method getStatus (line 270) | public byte getStatus(final int id) { method isIdle (line 279) | public boolean isIdle() { method setMaxNetworkThreadCount (line 283) | public synchronized boolean setMaxNetworkThreadCount(int count) { method isDownloading (line 287) | @Override method findRunningTaskIdBySameTempPath (line 330) | @Override method clearTaskData (line 335) | public boolean clearTaskData(int id) { method clearAllTaskData (line 351) | public void clearAllTaskData() { FILE: library/src/main/java/com/liulishuo/filedownloader/services/FileDownloadService.java class FileDownloadService (line 46) | @SuppressLint("Registered") method onCreate (line 52) | @Override method onStartCommand (line 79) | @Override method inspectRunServiceForeground (line 86) | private void inspectRunServiceForeground(Intent intent) { method onDestroy (line 111) | @Override method onBind (line 118) | @Override class SharedMainProcessService (line 123) | public static class SharedMainProcessService extends FileDownloadServi... class SeparateProcessService (line 126) | public static class SeparateProcessService extends FileDownloadService { FILE: library/src/main/java/com/liulishuo/filedownloader/services/FileDownloadThreadPool.java class FileDownloadThreadPool (line 33) | class FileDownloadThreadPool { method FileDownloadThreadPool (line 42) | FileDownloadThreadPool(final int maxNetworkThreadCount) { method setMaxNetworkThreadCount (line 48) | public synchronized boolean setMaxNetworkThreadCount(int count) { method execute (line 75) | public void execute(DownloadLaunchRunnable launchRunnable) { method cancel (line 91) | public void cancel(final int id) { method filterOutNoExist (line 111) | private synchronized void filterOutNoExist() { method isInThreadPool (line 124) | public synchronized boolean isInThreadPool(final int downloadId) { method findRunningTaskIdBySameTempPath (line 129) | public synchronized int findRunningTaskIdBySameTempPath(String tempFil... method exactSize (line 161) | public synchronized int exactSize() { method getAllExactRunningDownloadIds (line 166) | public synchronized List getAllExactRunningDownloadIds() { FILE: library/src/main/java/com/liulishuo/filedownloader/services/ForegroundServiceConfig.java class ForegroundServiceConfig (line 26) | @TargetApi(26) method ForegroundServiceConfig (line 34) | private ForegroundServiceConfig() { method getNotificationId (line 41) | public int getNotificationId() { method getNotificationChannelId (line 45) | public String getNotificationChannelId() { method getNotificationChannelName (line 49) | public String getNotificationChannelName() { method getNotification (line 53) | public Notification getNotification(Context context) { method isNeedRecreateChannelId (line 63) | public boolean isNeedRecreateChannelId() { method setNotificationId (line 67) | public void setNotificationId(int notificationId) { method setNotificationChannelId (line 71) | public void setNotificationChannelId(String notificationChannelId) { method setNotificationChannelName (line 75) | public void setNotificationChannelName(String notificationChannelName) { method setNotification (line 79) | public void setNotification(Notification notification) { method setNeedRecreateChannelId (line 83) | public void setNeedRecreateChannelId(boolean needRecreateChannelId) { method buildDefaultNotification (line 87) | private Notification buildDefaultNotification(Context context) { method toString (line 97) | @Override class Builder (line 110) | public static class Builder { method notificationId (line 117) | public Builder notificationId(int notificationId) { method notificationChannelId (line 122) | public Builder notificationChannelId(String notificationChannelId) { method notificationChannelName (line 127) | public Builder notificationChannelName(String notificationChannelNam... method notification (line 132) | public Builder notification(Notification notification) { method needRecreateChannelId (line 137) | public Builder needRecreateChannelId(boolean needRecreateChannelId) { method build (line 142) | public ForegroundServiceConfig build() { FILE: library/src/main/java/com/liulishuo/filedownloader/services/IFileDownloadServiceHandler.java type IFileDownloadServiceHandler (line 28) | @SuppressWarnings("UnusedParameters") method onStartCommand (line 36) | void onStartCommand(Intent intent, int flags, int startId); method onBind (line 43) | IBinder onBind(Intent intent); method onDestroy (line 51) | void onDestroy(); FILE: library/src/main/java/com/liulishuo/filedownloader/stream/FileDownloadOutputStream.java type FileDownloadOutputStream (line 30) | public interface FileDownloadOutputStream { method write (line 41) | void write(byte b[], int off, int len) throws IOException; method flushAndSync (line 57) | void flushAndSync() throws IOException; method close (line 68) | void close() throws IOException; method seek (line 89) | void seek(long offset) throws IOException, IllegalAccessException; method setLength (line 109) | void setLength(final long newLength) throws IOException, IllegalAccess... FILE: library/src/main/java/com/liulishuo/filedownloader/stream/FileDownloadRandomAccessFile.java class FileDownloadRandomAccessFile (line 32) | public class FileDownloadRandomAccessFile implements FileDownloadOutputS... method FileDownloadRandomAccessFile (line 37) | FileDownloadRandomAccessFile(File file) throws IOException { method write (line 43) | @Override method flushAndSync (line 48) | @Override method close (line 54) | @Override method seek (line 60) | @Override method setLength (line 65) | @Override class Creator (line 70) | public static class Creator implements FileDownloadHelper.OutputStream... method create (line 72) | @Override method supportSeek (line 77) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/util/DownloadServiceNotConnectedHelper.java class DownloadServiceNotConnectedHelper (line 30) | public class DownloadServiceNotConnectedHelper { method start (line 40) | public static boolean start(final String url, final String path, method pause (line 47) | public static boolean pause(final int id) { method isDownloading (line 52) | public static boolean isDownloading(final String url, final String pat... method getSofar (line 57) | public static long getSofar(final int id) { method getTotal (line 62) | public static long getTotal(final int id) { method getStatus (line 67) | public static byte getStatus(final int id) { method pauseAllTasks (line 72) | public static void pauseAllTasks() { method isIdle (line 76) | public static boolean isIdle() { method startForeground (line 81) | public static void startForeground(int notificationId, Notification no... method stopForeground (line 86) | public static void stopForeground(boolean removeNotification) { method setMaxNetworkThreadCount (line 91) | public static boolean setMaxNetworkThreadCount(int count) { method clearTaskData (line 96) | public static boolean clearTaskData(int id) { method clearAllTaskData (line 101) | public static boolean clearAllTaskData() { method log (line 106) | private static void log(String message, Object... args) { FILE: library/src/main/java/com/liulishuo/filedownloader/util/ExtraKeys.java class ExtraKeys (line 19) | public class ExtraKeys { FILE: library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadExecutors.java class FileDownloadExecutors (line 36) | public class FileDownloadExecutors { method newFixedThreadPool (line 39) | public static ThreadPoolExecutor newFixedThreadPool(String prefix) { method newDefaultThreadPool (line 45) | public static ThreadPoolExecutor newDefaultThreadPool(int nThreads, St... method newDefaultThreadPool (line 49) | public static ThreadPoolExecutor newDefaultThreadPool(int nThreads, class FileDownloadThreadFactory (line 59) | static class FileDownloadThreadFactory implements ThreadFactory { method FileDownloadThreadFactory (line 65) | FileDownloadThreadFactory(String prefix) { method newThread (line 70) | @Override FILE: library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadHelper.java class FileDownloadHelper (line 41) | public class FileDownloadHelper { method holdContext (line 46) | public static void holdContext(final Context context) { method getAppContext (line 50) | public static Context getAppContext() { type IdGenerator (line 54) | @SuppressWarnings("UnusedParameters") method transOldId (line 72) | int transOldId(final int oldId, final String url, final String path, method generateId (line 100) | int generateId(final String url, final String path, final boolean pa... type ConnectionCountAdapter (line 103) | @SuppressWarnings("UnusedParameters") method determineConnectionCount (line 128) | int determineConnectionCount(int downloadId, String url, String path... type DatabaseCustomMaker (line 131) | public interface DatabaseCustomMaker { method customMake (line 146) | FileDownloadDatabase customMake(); type OutputStreamCreator (line 149) | public interface OutputStreamCreator { method create (line 165) | FileDownloadOutputStream create(File file) throws IOException; method supportSeek (line 174) | boolean supportSeek(); type ConnectionCreator (line 177) | public interface ConnectionCreator { method create (line 186) | FileDownloadConnection create(String url) throws IOException; method inspectAndInflowDownloaded (line 200) | public static boolean inspectAndInflowDownloaded(int id, String path, ... method inspectAndInflowDownloading (line 227) | public static boolean inspectAndInflowDownloading(int id, FileDownload... method inspectAndInflowConflictPath (line 251) | public static boolean inspectAndInflowConflictPath(int id, long sofar, FILE: library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadLog.java class FileDownloadLog (line 27) | public class FileDownloadLog { method e (line 33) | public static void e(Object o, Throwable e, String msg, Object... args) { method e (line 37) | public static void e(Object o, String msg, Object... args) { method i (line 41) | public static void i(Object o, String msg, Object... args) { method d (line 45) | public static void d(Object o, String msg, Object... args) { method w (line 49) | public static void w(Object o, String msg, Object... args) { method v (line 53) | public static void v(Object o, String msg, Object... args) { method log (line 57) | private static void log(int priority, Object o, String message, Object... method log (line 61) | private static void log(int priority, Object o, Throwable throwable, S... method getTag (line 74) | private static String getTag(final Object o) { FILE: library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadProperties.java class FileDownloadProperties (line 126) | public class FileDownloadProperties { class HolderClass (line 148) | public static class HolderClass { method getImpl (line 152) | public static FileDownloadProperties getImpl() { method FileDownloadProperties (line 160) | private FileDownloadProperties() { method getValidNetworkThreadCount (line 322) | public static int getValidNetworkThreadCount(int requireCount) { FILE: library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadSerialQueue.java class FileDownloadSerialQueue (line 36) | public class FileDownloadSerialQueue { method FileDownloadSerialQueue (line 51) | public FileDownloadSerialQueue() { method enqueue (line 64) | public void enqueue(BaseDownloadTask task) { method pause (line 84) | public void pause() { method resume (line 107) | public void resume() { method getWorkingTaskId (line 134) | public int getWorkingTaskId() { method getWaitingTaskCount (line 143) | public int getWaitingTaskCount() { method shutdown (line 152) | public List shutdown() { class SerialLoop (line 169) | private class SerialLoop implements Handler.Callback { method handleMessage (line 171) | @Override class SerialFinishCallback (line 189) | private static class SerialFinishCallback implements BaseDownloadTask.... method SerialFinishCallback (line 192) | SerialFinishCallback(WeakReference queueWea... method over (line 196) | @Override method sendNext (line 217) | private void sendNext() { FILE: library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadUtils.java class FileDownloadUtils (line 58) | @SuppressWarnings({"SameParameterValue", "WeakerAccess"}) method setMinProgressStep (line 79) | public static void setMinProgressStep(int minProgressStep) throws Ille... method setMinProgressTime (line 106) | public static void setMinProgressTime(long minProgressTime) throws Ill... method getMinProgressStep (line 118) | public static int getMinProgressStep() { method getMinProgressTime (line 122) | public static long getMinProgressTime() { method isFilenameValid (line 129) | @SuppressWarnings({"SameReturnValue", "UnusedParameters"}) method getDefaultSaveRootPath (line 142) | public static String getDefaultSaveRootPath() { method getDefaultSaveFilePath (line 163) | public static String getDefaultSaveFilePath(final String url) { method generateFileName (line 167) | public static String generateFileName(final String url) { method generateFilePath (line 174) | public static String generateFilePath(String directory, String filenam... method setDefaultSaveRootPath (line 192) | public static void setDefaultSaveRootPath(final String path) { method getTempPath (line 201) | public static String getTempPath(final String targetPath) { method generateId (line 210) | public static int generateId(final String url, final String path) { method generateId (line 223) | public static int generateId(final String url, final String path, method md5 (line 229) | public static String md5(String string) { method getStack (line 248) | public static String getStack() { method getStack (line 252) | public static String getStack(final boolean printLine) { method getStack (line 257) | public static String getStack(final StackTraceElement[] stackTrace, fi... method isDownloaderProcess (line 289) | public static boolean isDownloaderProcess(final Context context) { method convertHeaderString (line 334) | public static String[] convertHeaderString(final String nameAndValuesS... method getFreeSpaceBytes (line 352) | public static long getFreeSpaceBytes(final String path) { method formatString (line 365) | public static String formatString(final String msg, Object... args) { method markConverted (line 372) | @SuppressWarnings("ResultOfMethodCallIgnored") method isFilenameConverted (line 395) | public static boolean isFilenameConverted(final Context context) { method getConvertedMarkedFile (line 403) | public static File getConvertedMarkedFile(final Context context) { method parseContentRangeFoInstanceLength (line 415) | public static long parseContentRangeFoInstanceLength(String contentRan... method parseContentDisposition (line 439) | public static String parseContentDisposition(String contentDisposition) { method getTargetFilePath (line 471) | public static String getTargetFilePath(String path, boolean pathAsDire... method getParent (line 492) | public static String getParent(final String path) { method getThreadPoolName (line 513) | public static String getThreadPoolName(String name) { method isNetworkNotOnWifiType (line 517) | public static boolean isNetworkNotOnWifiType() { method checkPermission (line 533) | public static boolean checkPermission(String permission) { method convertContentLengthString (line 539) | public static long convertContentLengthString(String s) { method findEtag (line 548) | public static String findEtag(final int id, FileDownloadConnection con... method isAcceptRange (line 563) | public static boolean isAcceptRange(int responseCode, FileDownloadConn... method findInstanceLengthForTrial (line 574) | public static long findInstanceLengthForTrial(FileDownloadConnection c... method findInstanceLengthFromContentRange (line 592) | public static long findInstanceLengthFromContentRange(FileDownloadConn... method getContentRangeHeader (line 596) | private static String getContentRangeHeader(FileDownloadConnection con... method findContentLength (line 600) | public static long findContentLength(final int id, FileDownloadConnect... method findContentLengthFromContentRange (line 634) | public static long findContentLengthFromContentRange(FileDownloadConne... method parseContentLengthFromContentRange (line 641) | public static long parseContentLengthFromContentRange(String contentRa... method findFilename (line 659) | public static String findFilename(FileDownloadConnection connection, S... method createOutputStream (line 680) | public static FileDownloadOutputStream createOutputStream(final String... method isBreakpointAvailable (line 712) | public static boolean isBreakpointAvailable(final int id, final FileDo... method isBreakpointAvailable (line 719) | public static boolean isBreakpointAvailable(final int id, final FileDo... method isBreakpointAvailable (line 739) | public static boolean isBreakpointAvailable(final int id, final FileDo... method deleteTaskFiles (line 811) | public static void deleteTaskFiles(String targetFilepath, String tempF... method deleteTempFile (line 816) | public static void deleteTempFile(String tempFilePath) { method deleteTargetFile (line 826) | public static void deleteTargetFile(String targetFilePath) { method isNeedSync (line 836) | public static boolean isNeedSync(long bytesDelta, long timestampDelta) { method defaultUserAgent (line 841) | public static String defaultUserAgent() { method isAppOnForeground (line 845) | private static boolean isAppOnForeground(Context context) { method needMakeServiceForeground (line 874) | public static boolean needMakeServiceForeground(Context context) { method findFileNameFromUrl (line 878) | static String findFileNameFromUrl(String url) { FILE: library/src/test/java/com/liulishuo/filedownloader/FileDownloaderTest.java class FileDownloaderTest (line 30) | @RunWith(RobolectricTestRunner.class) method setup_withContext_hold (line 33) | @Test method setupOnApplicationOnCreate_withContext_hold (line 41) | @Test method setupOnApplicationOnCreate_InitCustomMaker_valid (line 49) | @Test FILE: library/src/test/java/com/liulishuo/filedownloader/connection/FileDownloadUrlConnectionTest.java class FileDownloadUrlConnectionTest (line 34) | @SuppressWarnings("CanBeFinal") method setUp (line 46) | @Before method construct_noConfiguration_noAssigned (line 54) | @Test method construct_validConfiguration_Assigned (line 64) | @Test FILE: library/src/test/java/com/liulishuo/filedownloader/download/DownloadLaunchRunnableTest.java class DownloadLaunchRunnableTest (line 49) | @RunWith(RobolectricTestRunner.class) method onRetry_validRetryTimesDecrease_only1 (line 53) | @Test method run_noWifiButRequired_callbackNetworkError (line 69) | @Test method mockContextNoWifiState (line 100) | private static void mockContextNoWifiState(Context context) { method getMockNonOptDatabaseMaker (line 111) | private static FileDownloadHelper.DatabaseCustomMaker getMockNonOptDat... FILE: library/src/test/java/com/liulishuo/filedownloader/download/DownloadRunnableTest.java class DownloadRunnableTest (line 37) | @SuppressWarnings("ALL") method setUp (line 51) | @Before method run_withConnectFailed_retry (line 63) | @Test method run_responseCodeNotMet_error (line 72) | @Test class MockProcessCallback (line 87) | private static class MockProcessCallback implements ProcessCallback { method onProgress (line 89) | @Override method onCompleted (line 93) | @Override method isRetry (line 99) | @Override method onError (line 109) | @Override method onRetry (line 114) | @Override method syncProgressFromCache (line 118) | @Override FILE: library/src/test/java/com/liulishuo/filedownloader/util/FileDownloadUtilsTest.java class FileDownloadUtilsTest (line 33) | @RunWith(RobolectricTestRunner.class) method parseContentDisposition (line 37) | @Test method parseContentLengthFromContentRange_withNullContentRange (line 64) | @Test method parseContentLengthFromContentRange_withEmptyContentRange (line 70) | @Test method parseContentLengthFromContentRange_withStartToEndRange (line 76) | @Test method parseContentLengthFromContentRange_withUnavailableContentRange (line 83) | @Test method findFilename_securityIssue (line 92) | @Test method getFileNameFromUrl (line 111) | @Test