code: public boolean areAllPermissionsGranted(@NonNull Activity activity, @NonNull String[] permissions) {
          for (String p : permissions) {
              if (!isPermissionGranted(activity, p)) {
                  return false;
              }
          }
          return true;
      }
docs: Checks if the given Android Manifest Permissions have been granted by the user to this application before.
  
  @param activity    the caller activity
  @param permissions to check availability for
  @return true if all the Android Manifest Permissions are currently granted, false otherwise.