Java Code Examples for com.xunlei.downloadlib.parameter.XLConstant.XLManagerStatus#MANAGER_UNINIT
The following examples show how to use
com.xunlei.downloadlib.parameter.XLConstant.XLManagerStatus#MANAGER_UNINIT .
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 | 6 votes |
public synchronized int uninit() { int i = 9900; synchronized (this) { if (mRunningRefCount != 0) { XLLog.i(TAG, "some function of XLDownloadManager is running, uninit failed!"); } else if (!(mDownloadManagerState == XLManagerStatus.MANAGER_UNINIT || this.mLoader == null)) { if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING) { undoMonitorNetworkChange(); } stopGetGuidTimer(); i = this.mLoader.unInit(); mDownloadManagerState = XLManagerStatus.MANAGER_UNINIT; this.mContext = null; } } return i; }
Example 2
Source File: XLDownloadManager.java From BtPlayer with Apache License 2.0 | 6 votes |
public synchronized int uninit() { int i = 9900; synchronized (this) { if (mRunningRefCount != 0) { XLLog.i(TAG, "some function of XLDownloadManager is running, uninit failed!"); } else if (!(mDownloadManagerState == XLManagerStatus.MANAGER_UNINIT || this.mLoader == null)) { if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING) { undoMonitorNetworkChange(); } stopGetGuidTimer(); i = this.mLoader.unInit(); mDownloadManagerState = XLManagerStatus.MANAGER_UNINIT; this.mContext = null; } } return i; }
Example 3
Source File: XLDownloadManager.java From AndroidDownload with Apache License 2.0 | 6 votes |
public synchronized int uninit() { int i = 9900; synchronized (this) { if (mRunningRefCount != 0) { XLLog.i(TAG, "some function of XLDownloadManager is running, uninit failed!"); } else if (!(mDownloadManagerState == XLManagerStatus.MANAGER_UNINIT || this.mLoader == null)) { if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING) { undoMonitorNetworkChange(); } stopGetGuidTimer(); i = this.mLoader.unInit(); mDownloadManagerState = XLManagerStatus.MANAGER_UNINIT; this.mContext = null; } } return i; }
Example 4
Source File: XLDownloadManager.java From MiniThunder with Apache License 2.0 | 6 votes |
public synchronized int uninit() { int i = 9900; synchronized (this) { if (mRunningRefCount != 0) { XLLog.i(TAG, "some function of XLDownloadManager is running, uninit failed!"); } else if (!(mDownloadManagerState == XLManagerStatus.MANAGER_UNINIT || this.mLoader == null)) { if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING) { undoMonitorNetworkChange(); } stopGetGuidTimer(); i = this.mLoader.unInit(); mDownloadManagerState = XLManagerStatus.MANAGER_UNINIT; this.mContext = null; } } return i; }