code: public static boolean hasPermissions(Activity activity, String[]... permissions) {
          for (String[] permission : permissions) {
              boolean hasPermission = PERMISSION_CHECKER.hasPermission(activity, permission);
              if (!hasPermission) return false;
          }
          return true;
      }
docs: Judgment already has the target permission.
  
  @param activity {@link Activity}.
  @param permissions one or more permission groups.
  
  @return true, other wise is false.