com.xunlei.downloadlib.parameter.BtSubTaskDetail Java Examples

The following examples show how to use com.xunlei.downloadlib.parameter.BtSubTaskDetail. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XLDownloadManager.java    From TVRemoteIME with GNU General Public License v2.0 5 votes vote down vote up
public int getBtSubTaskInfo(long j, int i, BtSubTaskDetail btSubTaskDetail) {
    int i2 = 9900;
    increRefCount();
    if (!(mDownloadManagerState != XLManagerStatus.MANAGER_RUNNING || this.mLoader == null || btSubTaskDetail == null)) {
        i2 = this.mLoader.getBtSubTaskInfo(j, i, btSubTaskDetail);
    }
    decreRefCount();
    return i2;
}
 
Example #2
Source File: XLDownloadManager.java    From BtPlayer with Apache License 2.0 5 votes vote down vote up
public int getBtSubTaskInfo(long j, int i, BtSubTaskDetail btSubTaskDetail) {
    int i2 = 9900;
    increRefCount();
    if (!(mDownloadManagerState != XLManagerStatus.MANAGER_RUNNING || this.mLoader == null || btSubTaskDetail == null)) {
        i2 = this.mLoader.getBtSubTaskInfo(j, i, btSubTaskDetail);
    }
    decreRefCount();
    return i2;
}
 
Example #3
Source File: XLDownloadManager.java    From AndroidDownload with Apache License 2.0 5 votes vote down vote up
public int getBtSubTaskInfo(long j, int i, BtSubTaskDetail btSubTaskDetail) {
    int i2 = 9900;
    increRefCount();
    if (!(mDownloadManagerState != XLManagerStatus.MANAGER_RUNNING || this.mLoader == null || btSubTaskDetail == null)) {
        i2 = this.mLoader.getBtSubTaskInfo(j, i, btSubTaskDetail);
    }
    decreRefCount();
    return i2;
}
 
Example #4
Source File: XLDownloadManager.java    From MiniThunder with Apache License 2.0 5 votes vote down vote up
public int getBtSubTaskInfo(long j, int i, BtSubTaskDetail btSubTaskDetail) {
    int i2 = 9900;
    increRefCount();
    if (!(mDownloadManagerState != XLManagerStatus.MANAGER_RUNNING || this.mLoader == null || btSubTaskDetail == null)) {
        i2 = this.mLoader.getBtSubTaskInfo(j, i, btSubTaskDetail);
    }
    decreRefCount();
    return i2;
}
 
Example #5
Source File: XLTaskHelper.java    From TVRemoteIME with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 获取种子文件子任务的详情
 * @param taskId
 * @param fileIndex
 * @return
 */
public synchronized BtSubTaskDetail getBtSubTaskInfo(long taskId,int fileIndex) {
    BtSubTaskDetail subTaskDetail = new BtSubTaskDetail();
    XLDownloadManager.getInstance().getBtSubTaskInfo(taskId,fileIndex,subTaskDetail);
    return subTaskDetail;
}
 
Example #6
Source File: XLTaskHelper.java    From BtPlayer with Apache License 2.0 2 votes vote down vote up
/**
 * 获取种子文件子任务的详情
 * @param taskId
 * @param fileIndex
 * @return
 */
public synchronized BtSubTaskDetail getBtSubTaskInfo(long taskId, int fileIndex) {
    BtSubTaskDetail subTaskDetail = new BtSubTaskDetail();
    XLDownloadManager.getInstance().getBtSubTaskInfo(taskId,fileIndex,subTaskDetail);
    return subTaskDetail;
}
 
Example #7
Source File: XLTaskHelper.java    From AndroidDownload with Apache License 2.0 2 votes vote down vote up
/**
 * 获取种子文件子任务的详情
 * @param taskId
 * @param fileIndex
 * @return
 */
public synchronized BtSubTaskDetail getBtSubTaskInfo(long taskId, int fileIndex) {
    BtSubTaskDetail subTaskDetail = new BtSubTaskDetail();
    XLDownloadManager.getInstance().getBtSubTaskInfo(taskId,fileIndex,subTaskDetail);
    return subTaskDetail;
}
 
Example #8
Source File: XLTaskHelper.java    From MiniThunder with Apache License 2.0 2 votes vote down vote up
/**
 * 获取种子文件子任务的详情
 * @param taskId
 * @param fileIndex
 * @return
 */
public synchronized BtSubTaskDetail getBtSubTaskInfo(long taskId,int fileIndex) {
    BtSubTaskDetail subTaskDetail = new BtSubTaskDetail();
    XLDownloadManager.getInstance().getBtSubTaskInfo(taskId,fileIndex,subTaskDetail);
    return subTaskDetail;
}
 
Example #9
Source File: XLLoader.java    From TVRemoteIME with GNU General Public License v2.0 votes vote down vote up
public native int getBtSubTaskInfo(long j, int i, BtSubTaskDetail btSubTaskDetail); 
Example #10
Source File: XLLoader.java    From BtPlayer with Apache License 2.0 votes vote down vote up
public native int getBtSubTaskInfo(long j, int i, BtSubTaskDetail btSubTaskDetail); 
Example #11
Source File: XLLoader.java    From AndroidDownload with Apache License 2.0 votes vote down vote up
public native int getBtSubTaskInfo(long j, int i, BtSubTaskDetail btSubTaskDetail); 
Example #12
Source File: XLLoader.java    From MiniThunder with Apache License 2.0 votes vote down vote up
public native int getBtSubTaskInfo(long j, int i, BtSubTaskDetail btSubTaskDetail);