Java Code Examples for com.xunlei.downloadlib.android.XLLog#d()

The following examples show how to use com.xunlei.downloadlib.android.XLLog#d() . 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 BtPlayer with Apache License 2.0 5 votes vote down vote up
public int stopDcdn(long j, int i) {
    int i2 = 9900;
    increRefCount();
    if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING && this.mLoader != null) {
        i2 = this.mLoader.stopDcdn(j, i);
    }
    decreRefCount();
    XLLog.d(TAG, String.format("XLDownloadManager::stopDcdn ret=[%d] taskId=[%d] subIndex=[%d]", new Object[]{Integer.valueOf(i2), Long.valueOf(j), Integer.valueOf(i)}));
    return i2;
}
 
Example 2
Source File: XLDownloadManager.java    From MiniThunder with Apache License 2.0 5 votes vote down vote up
public int getMaxDownloadSpeed(MaxDownloadSpeedParam maxDownloadSpeedParam) {
    if (this.mLoader == null) {
        XLLog.e(TAG, "XLDownloadManager::getMaxDownloadSpeed mLoader is null");
        return 9900;
    }
    int maxDownloadSpeed = this.mLoader.getMaxDownloadSpeed(maxDownloadSpeedParam);
    if (9000 != maxDownloadSpeed) {
        XLLog.e(TAG, "XLDownloadManager::getMaxDownloadSpeed end, ret=[" + maxDownloadSpeed + "]");
        return maxDownloadSpeed;
    }
    XLLog.d(TAG, "XLDownloadManager::getMaxDownloadSpeed end, speed=[" + maxDownloadSpeedParam.mSpeed + "] ret=[" + maxDownloadSpeed + "]");
    return maxDownloadSpeed;
}
 
Example 3
Source File: XLDownloadManager.java    From MiniThunder with Apache License 2.0 5 votes vote down vote up
public int setSpeedLimit(long j, long j2) {
    XLLog.d(TAG, "debug: XLDownloadManager::setSpeedLimit beg, maxDownloadSpeed=[" + j + "] maxUploadSpeed=[" + j2 + "]");
    if (this.mLoader == null) {
        XLLog.e(TAG, "error: XLDownloadManager::setSpeedLimit mLoader is null, maxDownloadSpeed=[" + j + "] maxUploadSpeed=[" + j2 + "] ret=[9900]");
        return 9900;
    }
    int speedLimit = this.mLoader.setSpeedLimit(j, j2);
    XLLog.d(TAG, "debug: XLDownloadManager::setSpeedLimit end, maxDownloadSpeed=[" + j + "] maxUploadSpeed=[" + j2 + "] ret=[" + speedLimit + "]");
    return speedLimit;
}
 
Example 4
Source File: XLDownloadManager.java    From MiniThunder with Apache License 2.0 5 votes vote down vote up
public int startDcdn(long j, int i, String str, String str2, String str3) {
    int i2 = 9900;
    increRefCount();
    if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING && this.mLoader != null) {
        i2 = this.mLoader.startDcdn(j, i, str, str2, str3);
    }
    decreRefCount();
    XLLog.d(TAG, String.format("XLDownloadManager::startDcdn ret=[%d] taskId=[%d] subIndex=[%d] sessionId=[%s] productType=[%s] verifyInfo=[%s]", new Object[]{Integer.valueOf(i2), Long.valueOf(j), Integer.valueOf(i), str, str2, str3}));
    return i2;
}
 
Example 5
Source File: XLDownloadManager.java    From AndroidDownload with Apache License 2.0 5 votes vote down vote up
public int stopDcdn(long j, int i) {
    int i2 = 9900;
    increRefCount();
    if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING && this.mLoader != null) {
        i2 = this.mLoader.stopDcdn(j, i);
    }
    decreRefCount();
    XLLog.d(TAG, String.format("XLDownloadManager::stopDcdn ret=[%d] taskId=[%d] subIndex=[%d]", new Object[]{Integer.valueOf(i2), Long.valueOf(j), Integer.valueOf(i)}));
    return i2;
}
 
Example 6
Source File: XLDownloadManager.java    From AndroidDownload with Apache License 2.0 5 votes vote down vote up
public int startDcdn(long j, int i, String str, String str2, String str3) {
    int i2 = 9900;
    increRefCount();
    if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING && this.mLoader != null) {
        i2 = this.mLoader.startDcdn(j, i, str, str2, str3);
    }
    decreRefCount();
    XLLog.d(TAG, String.format("XLDownloadManager::startDcdn ret=[%d] taskId=[%d] subIndex=[%d] sessionId=[%s] productType=[%s] verifyInfo=[%s]", new Object[]{Integer.valueOf(i2), Long.valueOf(j), Integer.valueOf(i), str, str2, str3}));
    return i2;
}
 
Example 7
Source File: XLDownloadManager.java    From AndroidDownload with Apache License 2.0 5 votes vote down vote up
public int getMaxDownloadSpeed(MaxDownloadSpeedParam maxDownloadSpeedParam) {
    if (this.mLoader == null) {
        XLLog.e(TAG, "XLDownloadManager::getMaxDownloadSpeed mLoader is null");
        return 9900;
    }
    int maxDownloadSpeed = this.mLoader.getMaxDownloadSpeed(maxDownloadSpeedParam);
    if (9000 != maxDownloadSpeed) {
        XLLog.e(TAG, "XLDownloadManager::getMaxDownloadSpeed end, ret=[" + maxDownloadSpeed + "]");
        return maxDownloadSpeed;
    }
    XLLog.d(TAG, "XLDownloadManager::getMaxDownloadSpeed end, speed=[" + maxDownloadSpeedParam.mSpeed + "] ret=[" + maxDownloadSpeed + "]");
    return maxDownloadSpeed;
}
 
Example 8
Source File: XLDownloadManager.java    From AndroidDownload with Apache License 2.0 5 votes vote down vote up
public int setBtPriorSubTask(long j, int i) {
    XLLog.d(TAG, "XLDownloadManager::setBtPriorSubTask beg, taskId=[" + j + "] fileIndex=[" + i + "]");
    if (this.mLoader == null) {
        XLLog.e(TAG, "XLDownloadManager::setBtPriorSubTask mLoader is null, taskId=[" + j + "] fileIndex=[" + i + "]");
        return 9900;
    }
    int btPriorSubTask = this.mLoader.setBtPriorSubTask(j, i);
    if (9000 != btPriorSubTask) {
        XLLog.e(TAG, "XLDownloadManager::setBtPriorSubTask end, taskId=[" + j + "] fileIndex=[" + i + "] ret=[" + btPriorSubTask + "]");
        return btPriorSubTask;
    }
    XLLog.d(TAG, " XLDownloadManager::setBtPriorSubTask end, taskId=[" + j + "] fileIndex=[" + i + "]");
    return 9000;
}
 
Example 9
Source File: XLDownloadManager.java    From AndroidDownload with Apache License 2.0 5 votes vote down vote up
public int setSpeedLimit(long j, long j2) {
    XLLog.d(TAG, "debug: XLDownloadManager::setSpeedLimit beg, maxDownloadSpeed=[" + j + "] maxUploadSpeed=[" + j2 + "]");
    if (this.mLoader == null) {
        XLLog.e(TAG, "error: XLDownloadManager::setSpeedLimit mLoader is null, maxDownloadSpeed=[" + j + "] maxUploadSpeed=[" + j2 + "] ret=[9900]");
        return 9900;
    }
    int speedLimit = this.mLoader.setSpeedLimit(j, j2);
    XLLog.d(TAG, "debug: XLDownloadManager::setSpeedLimit end, maxDownloadSpeed=[" + j + "] maxUploadSpeed=[" + j2 + "] ret=[" + speedLimit + "]");
    return speedLimit;
}
 
Example 10
Source File: XLDownloadManager.java    From BtPlayer with Apache License 2.0 5 votes vote down vote up
public void run() {
    if (this.m_allow_execution) {
        int networkTypeComplete = XLUtil.getNetworkTypeComplete(this.m_context);
        XLLog.d("XLDownloadManager", "NetworkChangeHandlerThread nettype=" + networkTypeComplete);
        this.this$0.notifyNetWorkType(networkTypeComplete, this.m_loader);
        String bssid = XLUtil.getBSSID(this.m_context);
        XLLog.d("XLDownloadManager", "NetworkChangeHandlerThread bssid=" + bssid);
        this.this$0.notifyWifiBSSID(bssid, this.m_loader);
        XLUtil.NetWorkCarrier netWorkCarrier = XLUtil.getNetWorkCarrier(this.m_context);
        XLLog.d("XLDownloadManager", "NetworkChangeHandlerThread NetWorkCarrier=" + netWorkCarrier);
        this.this$0.notifyNetWorkCarrier(netWorkCarrier.ordinal());
    }
}
 
Example 11
Source File: XLDownloadManager.java    From TVRemoteIME with GNU General Public License v2.0 5 votes vote down vote up
public int setSpeedLimit(long j, long j2) {
    XLLog.d(TAG, "debug: XLDownloadManager::setSpeedLimit beg, maxDownloadSpeed=[" + j + "] maxUploadSpeed=[" + j2 + "]");
    if (this.mLoader == null) {
        XLLog.e(TAG, "error: XLDownloadManager::setSpeedLimit mLoader is null, maxDownloadSpeed=[" + j + "] maxUploadSpeed=[" + j2 + "] ret=[9900]");
        return 9900;
    }
    int speedLimit = this.mLoader.setSpeedLimit(j, j2);
    XLLog.d(TAG, "debug: XLDownloadManager::setSpeedLimit end, maxDownloadSpeed=[" + j + "] maxUploadSpeed=[" + j2 + "] ret=[" + speedLimit + "]");
    return speedLimit;
}
 
Example 12
Source File: XLDownloadManager.java    From BtPlayer with Apache License 2.0 5 votes vote down vote up
public int startDcdn(long j, int i, String str, String str2, String str3) {
    int i2 = 9900;
    increRefCount();
    if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING && this.mLoader != null) {
        i2 = this.mLoader.startDcdn(j, i, str, str2, str3);
    }
    decreRefCount();
    XLLog.d(TAG, String.format("XLDownloadManager::startDcdn ret=[%d] taskId=[%d] subIndex=[%d] sessionId=[%s] productType=[%s] verifyInfo=[%s]", new Object[]{Integer.valueOf(i2), Long.valueOf(j), Integer.valueOf(i), str, str2, str3}));
    return i2;
}
 
Example 13
Source File: XLDownloadManager.java    From BtPlayer with Apache License 2.0 5 votes vote down vote up
public int getMaxDownloadSpeed(MaxDownloadSpeedParam maxDownloadSpeedParam) {
    if (this.mLoader == null) {
        XLLog.e(TAG, "XLDownloadManager::getMaxDownloadSpeed mLoader is null");
        return 9900;
    }
    int maxDownloadSpeed = this.mLoader.getMaxDownloadSpeed(maxDownloadSpeedParam);
    if (9000 != maxDownloadSpeed) {
        XLLog.e(TAG, "XLDownloadManager::getMaxDownloadSpeed end, ret=[" + maxDownloadSpeed + "]");
        return maxDownloadSpeed;
    }
    XLLog.d(TAG, "XLDownloadManager::getMaxDownloadSpeed end, speed=[" + maxDownloadSpeedParam.mSpeed + "] ret=[" + maxDownloadSpeed + "]");
    return maxDownloadSpeed;
}
 
Example 14
Source File: XLDownloadManager.java    From BtPlayer with Apache License 2.0 5 votes vote down vote up
public int setBtPriorSubTask(long j, int i) {
    XLLog.d(TAG, "XLDownloadManager::setBtPriorSubTask beg, taskId=[" + j + "] fileIndex=[" + i + "]");
    if (this.mLoader == null) {
        XLLog.e(TAG, "XLDownloadManager::setBtPriorSubTask mLoader is null, taskId=[" + j + "] fileIndex=[" + i + "]");
        return 9900;
    }
    int btPriorSubTask = this.mLoader.setBtPriorSubTask(j, i);
    if (9000 != btPriorSubTask) {
        XLLog.e(TAG, "XLDownloadManager::setBtPriorSubTask end, taskId=[" + j + "] fileIndex=[" + i + "] ret=[" + btPriorSubTask + "]");
        return btPriorSubTask;
    }
    XLLog.d(TAG, " XLDownloadManager::setBtPriorSubTask end, taskId=[" + j + "] fileIndex=[" + i + "]");
    return 9000;
}
 
Example 15
Source File: XLDownloadManager.java    From BtPlayer with Apache License 2.0 5 votes vote down vote up
public int setSpeedLimit(long j, long j2) {
    XLLog.d(TAG, "debug: XLDownloadManager::setSpeedLimit beg, maxDownloadSpeed=[" + j + "] maxUploadSpeed=[" + j2 + "]");
    if (this.mLoader == null) {
        XLLog.e(TAG, "error: XLDownloadManager::setSpeedLimit mLoader is null, maxDownloadSpeed=[" + j + "] maxUploadSpeed=[" + j2 + "] ret=[9900]");
        return 9900;
    }
    int speedLimit = this.mLoader.setSpeedLimit(j, j2);
    XLLog.d(TAG, "debug: XLDownloadManager::setSpeedLimit end, maxDownloadSpeed=[" + j + "] maxUploadSpeed=[" + j2 + "] ret=[" + speedLimit + "]");
    return speedLimit;
}
 
Example 16
Source File: XLDownloadManager.java    From TVRemoteIME with GNU General Public License v2.0 5 votes vote down vote up
public void run() {
    if (this.m_allow_execution) {
        int networkTypeComplete = XLUtil.getNetworkTypeComplete(this.m_context);
        XLLog.d("XLDownloadManager", "NetworkChangeHandlerThread nettype=" + networkTypeComplete);
        this.this$0.notifyNetWorkType(networkTypeComplete, this.m_loader);
        String bssid = XLUtil.getBSSID(this.m_context);
        XLLog.d("XLDownloadManager", "NetworkChangeHandlerThread bssid=" + bssid);
        this.this$0.notifyWifiBSSID(bssid, this.m_loader);
        XLUtil.NetWorkCarrier netWorkCarrier = XLUtil.getNetWorkCarrier(this.m_context);
        XLLog.d("XLDownloadManager", "NetworkChangeHandlerThread NetWorkCarrier=" + netWorkCarrier);
        this.this$0.notifyNetWorkCarrier(netWorkCarrier.ordinal());
    }
}
 
Example 17
Source File: XLDownloadManager.java    From TVRemoteIME with GNU General Public License v2.0 5 votes vote down vote up
public int stopDcdn(long j, int i) {
    int i2 = 9900;
    increRefCount();
    if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING && this.mLoader != null) {
        i2 = this.mLoader.stopDcdn(j, i);
    }
    decreRefCount();
    XLLog.d(TAG, String.format("XLDownloadManager::stopDcdn ret=[%d] taskId=[%d] subIndex=[%d]", new Object[]{Integer.valueOf(i2), Long.valueOf(j), Integer.valueOf(i)}));
    return i2;
}
 
Example 18
Source File: XLDownloadManager.java    From TVRemoteIME with GNU General Public License v2.0 5 votes vote down vote up
public int startDcdn(long j, int i, String str, String str2, String str3) {
    int i2 = 9900;
    increRefCount();
    if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING && this.mLoader != null) {
        i2 = this.mLoader.startDcdn(j, i, str, str2, str3);
    }
    decreRefCount();
    XLLog.d(TAG, String.format("XLDownloadManager::startDcdn ret=[%d] taskId=[%d] subIndex=[%d] sessionId=[%s] productType=[%s] verifyInfo=[%s]", new Object[]{Integer.valueOf(i2), Long.valueOf(j), Integer.valueOf(i), str, str2, str3}));
    return i2;
}
 
Example 19
Source File: XLDownloadManager.java    From MiniThunder with Apache License 2.0 5 votes vote down vote up
public void run() {
    if (this.m_allow_execution) {
        int networkTypeComplete = XLUtil.getNetworkTypeComplete(this.m_context);
        XLLog.d("XLDownloadManager", "NetworkChangeHandlerThread nettype=" + networkTypeComplete);
        this.this$0.notifyNetWorkType(networkTypeComplete, this.m_loader);
        String bssid = XLUtil.getBSSID(this.m_context);
        XLLog.d("XLDownloadManager", "NetworkChangeHandlerThread bssid=" + bssid);
        this.this$0.notifyWifiBSSID(bssid, this.m_loader);
        XLUtil.NetWorkCarrier netWorkCarrier = XLUtil.getNetWorkCarrier(this.m_context);
        XLLog.d("XLDownloadManager", "NetworkChangeHandlerThread NetWorkCarrier=" + netWorkCarrier);
        this.this$0.notifyNetWorkCarrier(netWorkCarrier.ordinal());
    }
}
 
Example 20
Source File: XLDownloadManager.java    From TVRemoteIME with GNU General Public License v2.0 5 votes vote down vote up
public int setBtPriorSubTask(long j, int i) {
    XLLog.d(TAG, "XLDownloadManager::setBtPriorSubTask beg, taskId=[" + j + "] fileIndex=[" + i + "]");
    if (this.mLoader == null) {
        XLLog.e(TAG, "XLDownloadManager::setBtPriorSubTask mLoader is null, taskId=[" + j + "] fileIndex=[" + i + "]");
        return 9900;
    }
    int btPriorSubTask = this.mLoader.setBtPriorSubTask(j, i);
    if (9000 != btPriorSubTask) {
        XLLog.e(TAG, "XLDownloadManager::setBtPriorSubTask end, taskId=[" + j + "] fileIndex=[" + i + "] ret=[" + btPriorSubTask + "]");
        return btPriorSubTask;
    }
    XLLog.d(TAG, " XLDownloadManager::setBtPriorSubTask end, taskId=[" + j + "] fileIndex=[" + i + "]");
    return 9000;
}