Tabnine Logo
XLLog.e
Code IndexAdd Tabnine to your IDE (free)

How to use
e
method
in
com.xunlei.downloadlib.android.XLLog

Best Java code snippets using com.xunlei.downloadlib.android.XLLog.e (Showing top 20 results out of 315)

origin: kingthy/TVRemoteIME

public int getSessionInfoByUrl(String str, XLSessionInfo xLSessionInfo) {
  if (this.mLoader == null) {
    XLLog.e(TAG, "XLDownloadManager::getSessionInfoByUrl mLoader is null");
    return 9900;
  }
  int sessionInfoByUrl = this.mLoader.getSessionInfoByUrl(str, xLSessionInfo);
  if (9000 == sessionInfoByUrl) {
    return sessionInfoByUrl;
  }
  XLLog.e(TAG, "XLDownloadManager::getSessionInfoByUrl end, ret=[" + sessionInfoByUrl + "]");
  return sessionInfoByUrl;
}
origin: kingthy/TVRemoteIME

private void loadErrcodeString(Context context) {
  if (context == null) {
    XLLog.e(TAG, "loadErrcodeString, context invalid");
  } else {
    mErrcodeStringMap = XLUtil.parseJSONString("{  \"9000\": \"XL_NO_ERRNO                 \"  ,  \"9101\": \"XL_ALREADY_INIT             \"  ,  \"9102\": \"XL_SDK_NOT_INIT             \"  ,  \"9103\": \"XL_TASK_ALREADY_EXIST       \"  ,  \"9104\": \"XL_TASK_NOT_EXIST           \"  ,  \"9105\": \"XL_TASK_ALREADY_STOPPED     \"  ,  \"9106\": \"XL_TASK_ALREADY_RUNNING     \"  ,  \"9107\": \"XL_TASK_NOT_START           \"  ,  \"9108\": \"XL_TASK_STILL_RUNNING       \"  ,  \"9109\": \"XL_FILE_EXISTED             \"  ,  \"9110\": \"XL_DISK_FULL                \"  ,  \"9111\": \"XL_TOO_MUCH_TASK            \"  ,  \"9112\": \"XL_PARAM_ERROR              \"  ,  \"9113\": \"XL_SCHEMA_NOT_SUPPORT       \"  ,  \"9114\": \"XL_DYNAMIC_PARAM_FAIL       \"  ,  \"9115\": \"XL_CONTINUE_NO_NAME         \"  ,  \"9116\": \"XL_APPNAME_APPKEY_ERROR     \"  ,  \"9117\": \"XL_CREATE_THREAD_ERROR      \"  ,  \"9118\": \"XL_TASK_FINISH              \"  ,  \"9119\": \"XL_TASK_NOT_RUNNING         \"  ,  \"9120\": \"XL_TASK_NOT_IDLE            \"  ,  \"9121\": \"XL_TASK_TYPE_NOT_SUPPORT    \"  ,  \"9122\": \"XL_ADD_RESOURCE_ERROR       \"  ,  \"9123\": \"XL_TASK_LOADING_CFG         \"  ,  \"9301\": \"XL_NO_ENOUGH_BUFFER         \"  ,  \"9302\": \"XL_TORRENT_PARSE_ERROR      \"  ,  \"9303\": \"XL_INDEX_NOT_READY          \"  ,  \"9304\": \"XL_TORRENT_IMCOMPLETE       \"  ,  \"9900\": \"DOWNLOAD_MANAGER_ERROR      \"  ,  \"9901\": \"APPKEY_CHECKER_ERROR        \"  ,  \"111024\": \"COMMON_ERRCODE_BASE                \"  ,  \"111025\": \"TARGET_THREAD_STOPING              \"  ,  \"111026\": \"OUT_OF_MEMORY                      \"  ,  \"111031\": \"TASK_USE_TOO_MUCH_MEM              \"  ,  \"111032\": \"OUT_OF_FIXED_MEMORY                \"  ,  \"111033\": \"QUEUE_NO_ROOM                      \"  ,  \"111035\": \"MAP_UNINIT                         \"  ,  \"111036\": \"MAP_DUPLICATE_KEY                  \"  ,  \"111037\": \"MAP_KEY_NOT_FOUND                  \"  ,  \"111038\": \"INVALID_ITERATOR                   \"  ,  \"111039\": \"BUFFER_OVERFLOW                    \"  ,  \"111041\": \"INVALID_ARGUMENT                   \"  ,  \"111048\": \"INVALID_SOCKET_DESCRIPTOR          \"  ,  \"111050\": \"ERROR_INVALID_INADDR               \"  ,  \"111181\": \"REDIRECT_TOO_MUCH                  \"  ,  \"111057\": \"NOT_IMPLEMENT                      \"  ,  \"111074\": \"INVALID_TIMER_INDEX                \"  ,  \"111078\": \"DNS_INVALID_ADDR                   \"  ,  \"111083\": \"BAD_DIR_PATH                       \"  ,  \"111084\": \"FILE_CANNOT_TRUNCATE               \"  ,  \"111085\": \"INSUFFICIENT_DISK_SPACE            \"  ,  \"111086\": \"FILE_TOO_BIG                       \"  ,  \"111118\": \"DISPATCHER_ERRCODE_BASE            \"  ,  \"111119\": \"DATA_MGR_ERRCODE_BASE              \"  ,  \"111120\": \"ALLOC_INVALID_SIZE                 \"  ,  \"111121\": \"DATA_BUFFER_IS_FULL                \"  ,  \"111122\": \"BLOCK_NO_INVALID                   \"  ,  \"111123\": \"CHECK_DATA_BUFFER_NOT_ENOUG        \"  ,  \"111124\": \"BCID_CHECK_FAIL                    \"  ,  \"111125\": \"BCID_ONCE_CHECT_TOO_MUCH           \"  ,  \"111126\": \"READ_FILE_ERR                      \"  ,  \"111127\": \"WRITE_FILE_ERR                     \"  ,  \"111128\": \"OPEN_FILE_ERR                      \"  ,  \"111129\": \"FILE_PATH_TOO_LONG                 \"  ,  \"111130\": \"SD_INVALID_FILE_SIZE               \"  ,  \"111131\": \"FILE_CFG_MAGIC_ERROR               \"  ,  \"111132\": \"FILE_CFG_READ_ERROR                \"  ,  \"111133\": \"FILE_CFG_WRITE_ERROR               \"  ,  \"111134\": \"FILE_CFG_READ_HEADER_ERROR         \"  ,  \"111135\": \"FILE_CFG_RESOLVE_ERROR             \"  ,  \"111136\": \"TASK_FAILURE_NO_DATA_PIPE          \"  ,  \"111137\": \"NO_FILE_NAME                       \"  ,  \"111138\": \"CANNOT_GET_FILE_NAME               \"  ,  \"111139\": \"CREATE_FILE_FAIL                   \"  ,  \"111140\": \"OPEN_OLD_FILE_FAIL                 \"  ,  \"111141\": \"FILE_SIZE_NOT_BELIEVE              \"  ,  \"111142\": \"FILE_SIZE_TOO_SMALL                \"  ,  \"111143\": \"FILE_NOT_EXIST                     \"  ,  \"111144\": \"FILE_INVALID_PARA                  \"  ,  \"111145\": \"FILE_CREATING                      \"  ,  \"111146\": \"FIL_INFO_INVALID_DATA              \"  ,  \"111147\": \"FIL_INFO_RECVED_DATA               \"  ,  \"111159\": \"CONF_MGR_ERRCODE_BASE              \"  ,  \"111160\": \"SETTINGS_ERR_UNKNOWN               \"  ,  \"111161\": \"SETTINGS_ERR_INVALID_FILE_NAME     \"  ,  \"111162\": \"SETTINGS_ERR_CFG_FILE_NOT_EXIST    \"  ,  \"111163\": \"SETTINGS_ERR_INVALID_LINE          \"  ,  \"111164\": \"SETTINGS_ERR_INVALID_ITEM_NAME     \"  ,  \"111165\": \"SETTINGS_ERR_INVALID_ITEM_VALUE    \"  ,  \"111166\": \"SETTINGS_ERR_LIST_EMPTY            \"  ,  \"111167\": \"SETTINGS_ERR_ITEM_NOT_FOUND        \"  ,  \"111168\": \"NET_REACTOR_ERRCODE_BASE           \"  ,  \"111169\": \"NET_CONNECT_SSL_ERR                \"  ,  \"111170\": \"NET_BROKEN_PIPE                    \"  ,  \"111171\": \"NET_CONNECTION_REFUSED             \"  ,  \"111172\": \"NET_SSL_GET_FD_ERROR               \"  ,  \"111173\": \"NET_OP_CANCEL                      \"  ,  \"111174\": \"NET_UNKNOWN_ERROR                  \"  ,  \"111175\": \"NET_NORMAL_CLOSE                   \"  ,  \"111176\": \"TASK_FAIL_LONG_TIME_NO_RECV_DATA   \"  ,  \"111177\": \"TASK_FILE_SIZE_TOO_LARGE           \"  ,  \"111178\": \"TASK_RETRY_ALWAY_FAIL              \"  ,  \"111300\": \"ASYN_FILE_E_BASE                   \"  ,  \"111301\": \"ASYN_FILE_E_OP_NONE                \"  ,  \"111302\": \"ASYN_FILE_E_OP_BUSY                \"  ,  \"111303\": \"ASYN_FILE_E_FILE_NOT_OPEN          \"  ,  \"111304\": \"ASYN_FILE_E_FILE_REOPEN            \"  ,  \"111305\": \"ASYN_FILE_E_EMPTY_FILE             \"  ,  \"111306\": \"ASYN_FILE_E_FILE_SIZE_LESS         \"  ,  \"111307\": \"ASYN_FILE_E_TOO_MUCH_DATA          \"  ,  \"111308\": \"ASYN_FILE_E_FILE_CLOSING           \"  ,  \"112400\": \"ERR_PTL_PROTOCOL_NOT_SUPPORT       \"  ,  \"112500\": \"ERR_PTL_PEER_OFFLINE               \"  ,  \"112600\": \"ERR_PTL_GET_PEERSN_FAILED          \"  ,  \"11300\": \"P2P_PIPE_ERRCODE_BASE\t\t\t    \"  ,  \"11301\": \"ERR_P2P_VERSION_NOT_SUPPORT\t\t    \"  ,  \"11302\": \"ERR_P2P_WAITING_CLOSE\t\t\t    \"  ,  \"11303\": \"ERR_P2P_HANDSHAKE_RESP_FAIL\t\t    \"  ,  \"11304\": \"ERR_P2P_REQUEST_RESP_FAIL\t\t    \"  ,  \"11305\": \"ERR_P2P_UPLOAD_OVER_MAX\t\t\t    \"  ,  \"11306\": \"ERR_P2P_REMOTE_UNKNOWN_MY_CMD\t    \"  ,  \"11307\": \"ERR_P2P_NOT_SUPPORT_UDT\t\t\t    \"  ,  \"11308\": \"ERR_P2P_BROKER_CONNECT\t\t\t    \"  ,  \"11309\": \"ERR_P2P_INVALID_COMMAND\t\t\t    \"  ,  \"11310\": \"ERR_P2P_INVALID_PARAM\t\t\t    \"  ,  \"11311\": \"ERR_P2P_CONNECT_FAILED\t\t\t    \"  ,  \"11312\": \"ERR_P2P_CONNECT_UPLOAD_SLOW\t        \"  ,  \"11313\": \"ERR_P2P_ALLOC_MEM_ERR               \"  ,  \"11314\": \"ERR_P2P_SEND_HANDSHAKE              \"  ,  \"114001\": \"TASK_FAILURE_QUERY_EMULE_HUB_FAILED\"  ,  \"114101\": \"TASK_FAILURE_EMULE_NO_RECORD       \"  ,  \"114002\": \"TASK_FAILURE_SUBTASK_FAILED        \"  ,  \"114003\": \"TASK_FAILURE_CANNOT_START_SUBTASK  \"  ,  \"114004\": \"TASK_FAILURE_QUERY_BT_HUB_FAILED   \"  ,  \"114005\": \"TASK_FAILURE_PARSE_TORRENT_FAILED  \"  ,  \"114006\": \"TASK_FAILURE_GET_TORRENT_FAILED    \"  ,  \"114007\": \"TASK_FAILURE_SAVE_TORRENT_FAILED   \"  ,  \"115000\": \"RES_QUERY_E_BASE                   \"  ,  \"115100\": \"HTTP_HUB_CLIENT_E_BASE             \"  ,  \"116000\": \"IP6_ERRCODE_BASE                   \"  ,  \"116001\": \"ERR_INVALID_ADDRESS_FAMILY         \"  ,  \"116002\": \"IP6_INVALID_IN6ADDR                \"  ,  \"116003\": \"IP6_NOT_SUPPORT_SSL                \"  ,  \"117000\": \"PAUSE_TASK_WRITE_CFG_ERR           \"  ,  \"117001\": \"PAUSE_TASK_WRITE_DATA_TIMEOUT      \"   }");
  }
}
origin: kingthy/TVRemoteIME

int notifyNetWorkType(int i, XLLoader xLLoader) {
  int i2 = 9900;
  if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING && xLLoader != null) {
    try {
      i2 = xLLoader.notifyNetWorkType(i);
    } catch (Error e) {
      XLLog.e(TAG, "notifyNetWorkType failed," + e.getMessage());
    }
  }
  return i2;
}
origin: kingthy/TVRemoteIME

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;
}
origin: kingthy/TVRemoteIME

int notifyWifiBSSID(String str, XLLoader xLLoader) {
  int i = 9900;
  if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING && xLLoader != null) {
    if (str == null || str.length() == 0 || str == "<unknown ssid>") {
      str = "";
    }
    try {
      i = xLLoader.setNotifyWifiBSSID(str);
    } catch (Error e) {
      XLLog.e(TAG, "setNotifyWifiBSSID failed," + e.getMessage());
    }
  }
  return i;
}
origin: kingthy/TVRemoteIME

public static Map<String, Object> parseJSONString(String str) {
  if (str == null) {
    XLLog.e(TAG, "parseJSONString, JSONString invalid");
    return null;
  }
  Map<String, Object> hashMap = new HashMap();
  try {
    JSONObject jSONObject = new JSONObject(str);
    Iterator keys = jSONObject.keys();
    while (keys.hasNext()) {
      String str2 = (String) keys.next();
      hashMap.put(str2, jSONObject.getString(str2));
    }
  } catch (JSONException e) {
    e.printStackTrace();
  }
  return hashMap;
}
origin: kingthy/TVRemoteIME

public int clearTaskFile(String str) {
  XLLog.d(TAG, "XLDownloadManager::clearTaskFile filePath=[" + str + "]");
  if (TextUtils.isEmpty(str)) {
    return 9900;
  }
  if (this.mLoader == null) {
    XLLog.e(TAG, "XLDownloadManager::clearTaskFile mLoader is null");
    return 9900;
  }
  int clearTaskFile = this.mLoader.clearTaskFile(str);
  if (9000 == clearTaskFile) {
    return 9000;
  }
  XLLog.e(TAG, "XLDownloadManager::clearTaskFile end, ret=[" + clearTaskFile + "]");
  return clearTaskFile;
}
origin: kingthy/TVRemoteIME

public static String getMd5(String str) {
  if (str == null) {
    XLLog.e(TAG, "getMd5, key invalid");
    return null;
  }
  try {
    char[] cArr = new char[]{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
    MessageDigest instance = MessageDigest.getInstance("MD5");
    byte[] bytes = str.getBytes();
    instance.update(bytes, 0, bytes.length);
    byte[] digest = instance.digest();
    StringBuilder stringBuilder = new StringBuilder(32);
    for (byte b : digest) {
      stringBuilder.append(cArr[(b >> 4) & 15]).append(cArr[(b >> 0) & 15]);
    }
    return stringBuilder.toString();
  } catch (NoSuchAlgorithmException e) {
    e.printStackTrace();
    return str;
  }
}
origin: kingthy/TVRemoteIME

public static String generateAppKey(String str, short s, byte b) {
  if (str == null) {
    XLLog.e(TAG, "generateAppKey, appName invalid");
    return null;
  }
  int length = str.length();
  byte[] bArr = new byte[(((length + 1) + 2) + 1)];
  byte[] bytes = str.getBytes();
  for (int i = 0; i < bytes.length; i++) {
    bArr[i] = bytes[i];
  }
  bArr[length] = (byte) 0;
  bArr[length + 1] = (byte) (s & 255);
  bArr[length + 2] = (byte) ((s >> 8) & 255);
  bArr[length + 3] = b;
  return new String(Base64.encode(bArr, 0)).trim();
}
origin: kingthy/TVRemoteIME

private void writeToFile(Context context, String str, String str2) {
  if (context == null || str == null || str2 == null) {
    XLLog.e(XLUtil.TAG, "writeToFile, Parameter invalid, fileName:" + str2);
    return;
  }
  try {
    OutputStream openFileOutput = context.openFileOutput(str2, 0);
    try {
      openFileOutput.write(str.getBytes("utf-8"));
      openFileOutput.close();
    } catch (UnsupportedEncodingException e) {
      e.printStackTrace();
    } catch (IOException e2) {
      e2.printStackTrace();
    }
  } catch (FileNotFoundException e3) {
    e3.printStackTrace();
  }
}
origin: kingthy/TVRemoteIME

private void undoMonitorNetworkChange() {
  XLLog.i(TAG, "undoMonitorNetworkChange()");
  if (this.mContext != null && this.mReceiver != null) {
    try {
      this.mContext.unregisterReceiver(this.mReceiver);
      XLLog.i(TAG, "unregister Receiver");
    } catch (IllegalArgumentException e) {
      XLLog.e(TAG, "Receiver not registered");
    }
    this.mReceiver = null;
  }
}
origin: kingthy/TVRemoteIME

public int statExternalInfo(long j, int i, String str, String str2) {
  XLLog.d(TAG, "XLDownloadManager::statExternalInfo beg, taskId=[" + j + "] fileIndex=[" + i + "] key=[" + str + "] value=[" + str2 + "]");
  if (this.mLoader == null) {
    XLLog.e(TAG, "XLDownloadManager::statExternalInfo mLoader is null, taskId=[" + j + "] fileIndex=[" + i + "]");
    return 9900;
  }
  int statExternalInfo = this.mLoader.statExternalInfo(j, i, str, str2);
  if (9000 != statExternalInfo) {
    XLLog.e(TAG, "XLDownloadManager::statExternalInfo end, taskId=[" + j + "] fileIndex=[" + i + "] ret=[" + statExternalInfo + "]");
    return statExternalInfo;
  }
  XLLog.d(TAG, "XLDownloadManager::statExternalInfo end, taskId=[" + j + "] fileIndex=[" + i + "] ret=[" + statExternalInfo + "]");
  return statExternalInfo;
}
origin: kingthy/TVRemoteIME

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;
}
origin: kingthy/TVRemoteIME

public int playShortVideoBegin(long j) {
  XLLog.d(TAG, "XLDownloadManager::playShortVideoBegin beg, taskId=[" + j + "]");
  if (this.mLoader == null) {
    XLLog.e(TAG, "XLDownloadManager::playShortVideoBegin mLoader is null");
    return 9900;
  }
  int playShortVideoBegin = this.mLoader.playShortVideoBegin(j);
  if (9000 != playShortVideoBegin) {
    XLLog.e(TAG, "XLDownloadManager::playShortVideoBegin end, ret=[" + playShortVideoBegin + "]");
    return playShortVideoBegin;
  }
  XLLog.d(TAG, "XLDownloadManager::playShortVideoBegin end, taskId=[" + j + "] ret=[" + playShortVideoBegin + "]");
  return playShortVideoBegin;
}
origin: kingthy/TVRemoteIME

public static String getSSID(Context context) {
  if (context == null) {
    XLLog.e(TAG, "getSSID, context invalid");
    return null;
  }
  WifiManager wifiManager = (WifiManager) context.getSystemService("wifi");
  if (wifiManager != null) {
    WifiInfo connectionInfo = wifiManager.getConnectionInfo();
    if (connectionInfo != null) {
      return connectionInfo.getSSID();
    }
  }
  return null;
}
origin: kingthy/TVRemoteIME

public static String getBSSID(Context context) {
  if (context == null) {
    XLLog.e(TAG, "getBSSID, context invalid");
    return null;
  }
  WifiManager wifiManager = (WifiManager) context.getSystemService("wifi");
  if (wifiManager != null) {
    try {
      WifiInfo connectionInfo = wifiManager.getConnectionInfo();
      if (connectionInfo != null) {
        return connectionInfo.getBSSID();
      }
    } catch (Exception e) {
    }
  }
  return null;
}
origin: kingthy/TVRemoteIME

  private String readFromFile(Context context, String str) {
    String str2 = null;
    if (context == null || str == null) {
      XLLog.e(XLUtil.TAG, "readFromFile, parameter invalid, fileName:" + str);
    } else {
      try {
        InputStream openFileInput = context.openFileInput(str);
        byte[] bArr = new byte[256];
        try {
          int read = openFileInput.read(bArr);
          if (read > 0) {
            str2 = new String(bArr, 0, read, "utf-8");
          }
          openFileInput.close();
        } catch (IOException e) {
          e.printStackTrace();
        }
      } catch (FileNotFoundException e2) {
        XLLog.i(XLUtil.TAG, str + " File Not Found");
      }
    }
    return str2;
  }
}
origin: kingthy/TVRemoteIME

public int createShortVideoTask(String str, String str2, String str3, String str4, int i, int i2, int i3, GetTaskId getTaskId) {
  XLLog.d(TAG, "XLDownloadManager::createShortVideoTask beg, url=[" + str + "] path=[" + str2 + "] filename=[" + str3 + "] title=[" + str4 + "]");
  if (this.mLoader == null) {
    XLLog.e(TAG, "XLDownloadManager::createShortVideoTask mLoader is null");
    return 9900;
  }
  String str5;
  if (str4 == null) {
    str5 = "default Title";
  } else {
    str5 = str4;
  }
  int createShortVideoTask = this.mLoader.createShortVideoTask(str, str2, str3, str5, i, i2, i3, getTaskId);
  if (9000 != createShortVideoTask) {
    XLLog.e(TAG, "XLDownloadManager::createShortVideoTask end, ret=[" + createShortVideoTask + "]");
    return createShortVideoTask;
  }
  XLLog.d(TAG, "XLDownloadManager::createShortVideoTask end, taskId=[" + getTaskId.getTaskId() + "] ret=[" + createShortVideoTask + "]");
  return createShortVideoTask;
}
origin: kingthy/TVRemoteIME

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;
}
origin: kingthy/TVRemoteIME

private void loadFile(Context context) {
  XLLog.i(XLUtil.TAG, "loadAndParseFile start");
  if (context == null || IDENTIFY_FILE_NAME == null) {
    XLLog.e(XLUtil.TAG, "loadAndParseFile end, parameter invalid, fileName:Identify.txt");
    return;
  }
  String readFromFile = readFromFile(context, IDENTIFY_FILE_NAME);
  if (readFromFile == null) {
    XLLog.i(XLUtil.TAG, "loadAndParseFile end, fileContext is empty");
    return;
  }
  this.configMap.clear();
  String[] split = readFromFile.split("\n");
  for (String split2 : split) {
    String[] split3 = split2.split("=");
    if (split3.length == 2) {
      this.configMap.put(split3[0], split3[1]);
      XLLog.i(XLUtil.TAG, "ConfigFile loadFile key=" + split3[0] + " value=" + split3[1]);
    }
  }
  XLLog.i(XLUtil.TAG, "loadAndParseFile end");
}
com.xunlei.downloadlib.androidXLLoge

Popular methods of XLLog

  • d
  • formatMessage
  • i
  • init
  • log

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • findViewById (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now