public void testRunAllActivities() throws Exception {
  final Set<ProcessError> errSet=new LinkedHashSet<ProcessError>();
  for (  ResolveInfo app : getLauncherActivities(mPackageManager)) {
    final Collection<ProcessError> errProcs=runOneActivity(app);
    if (errProcs != null) {
      errSet.addAll(errProcs);
    }
  }
  if (!errSet.isEmpty()) {
    fail(String.format("Got %d errors:\n%s",errSet.size(),reportWrappedListContents(errSet)));
  }
}

public void testRunAllActivities ( ) throws Exception { final Set < ProcessError > errSet = new LinkedHashSet < ProcessError > ( ) ; for ( ResolveInfo app : getLauncherActivities ( mPackageManager ) ) { final Collection < ProcessError > errProcs = runOneActivity ( app ) ; if ( errProcs != null ) { errSet . addAll ( errProcs ) ; } } if ( ! errSet . isEmpty ( ) ) { fail ( String . format ( "Got %d errors:\n%s" , errSet . size ( ) , reportWrappedListContents ( errSet ) ) ) ; } }
a test that runs all launcher - launchable activities and verifies that no anrs or crashes happened while doing so .
