private void processRunCompletedTag(String identifier){
  Pattern timePattern=Pattern.compile(".*\\((\\d+) ms total\\)");
  Matcher time=timePattern.matcher(identifier);
  if (time.find()) {
    try {
      mTotalRunTime=Long.parseLong(time.group(1));
    }
 catch (    NumberFormatException e) {
      Log.e(LOG_TAG,"Unable to determine the total running time, received: " + time.group(1));
    }
  }
  reportTestRunEnded();
  mTestRunInProgress=false;
}

private void processRunCompletedTag ( String identifier ) { Pattern timePattern = Pattern . compile ( ".*\\((\\d+) ms total\\)" ) ; Matcher time = timePattern . matcher ( identifier ) ; if ( time . find ( ) ) { try { mTotalRunTime = Long . parseLong ( time . group ( 1 ) ) ; } catch ( NumberFormatException e ) { Log . e ( LOG_TAG , "Unable to determine the total running time, received: " + time . group ( 1 ) ) ; } } reportTestRunEnded ( ) ; mTestRunInProgress = false ; }
processes and informs listener when we encounter a tag indicating that a test suite is done .
