Пример #1
0
 private void parseNTVals(NameValuePairs nvp) {
   mNTLevel = Integer.parseInt(nvp.get(Constants.PR_NT_LOG_LEVEL));
   mSource = nvp.get(Constants.PR_NT_EVENT_SOURCE);
   if (nvp.get(Constants.PR_NT_LOG_ENABLED).equalsIgnoreCase(Constants.TRUE))
     mActivateNTLog.setSelected(true);
   else mActivateNTLog.setSelected(false);
 }
Пример #2
0
 private void parseVals(NameValuePairs nvp) {
   if (nvp.get(Constants.PR_LOG_ENABLED).equalsIgnoreCase(Constants.TRUE))
     activateLog.setSelected(true);
   else activateLog.setSelected(false);
   mLevel = Integer.parseInt(nvp.get(Constants.PR_LOG_LEVEL));
   mlogBufSizTextData = nvp.get(Constants.PR_LOG_BUFFERSIZE);
   mlogMaxSizTextData = nvp.get(Constants.PR_LOG_MAXFILESIZE);
   int val = Integer.parseInt(nvp.get(Constants.PR_LOG_ROLLEROVER_INTERVAL));
   mFrequency = getRollOverIndex(val);
 }