/**
  * Set the default values to show when the dialog is opened.
  *
  * @param filterName name for the filter.
  * @param tag value for filter by tag
  * @param text value for filter by text
  * @param pid value for filter by pid
  * @param appName value for filter by app name
  * @param level value for filter by log level
  */
 public void setDefaults(
     String filterName, String tag, String text, String pid, String appName, LogLevel level) {
   mFilterName = filterName;
   mTag = tag;
   mText = text;
   mPid = pid;
   mAppName = appName;
   mLogLevel = level.getStringValue();
 }
  /**
   * Obtain the string representation of all supported log levels.
   *
   * @return an array of strings, each representing a certain log level.
   */
  public static List<String> getLogLevels() {
    List<String> logLevels = new ArrayList<String>();

    for (LogLevel l : LogLevel.values()) {
      logLevels.add(l.getStringValue());
    }

    return logLevels;
  }