code: private boolean verifyPermissions(@NonNull int[] grantResults) {
          if (grantResults.length < 1) {
              return false;
          }
          for (int result : grantResults) {
              if (result != PackageManager.PERMISSION_GRANTED) {
                  return false;
              }
          }
          return true;
      }
docs: internal usage.