@Override
  protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
    if (checkCallingOrSelfPermission(android.Manifest.permission.DUMP)
        != PackageManager.PERMISSION_GRANTED) {
      pw.println(
          "Permission Denial: can't dump StatusBar from from pid="
              + Binder.getCallingPid()
              + ", uid="
              + Binder.getCallingUid());
      return;
    }

    if (args == null || args.length == 0) {
      for (SystemUI ui : mServices) {
        pw.println("dumping service: " + ui.getClass().getName());
        ui.dump(fd, pw, args);
      }
    } else {
      String svc = args[0];
      for (SystemUI ui : mServices) {
        String name = ui.getClass().getName();
        if (name.endsWith(svc)) {
          ui.dump(fd, pw, args);
        }
      }
    }
  }
 @Override
 public void onConfigurationChanged(Configuration newConfig) {
   for (SystemUI ui : mServices) {
     ui.onConfigurationChanged(newConfig);
   }
 }