content: package androidx.core.os;
  
  import android.os.Build;
  import java.util.Locale;
  
  public class BuildCompat {
  
      public @interface PrereleaseSdkCheck {
      }
  
      private BuildCompat() {
      }
  
      @Deprecated
      public static boolean isAtLeastN() {
          return Build.VERSION.SDK_INT >= 24;
      }
  
      @Deprecated
      public static boolean isAtLeastNMR1() {
          return Build.VERSION.SDK_INT >= 25;
      }
  
      @Deprecated
      public static boolean isAtLeastO() {
          return Build.VERSION.SDK_INT >= 26;
      }
  
      @Deprecated
      public static boolean isAtLeastOMR1() {
          return Build.VERSION.SDK_INT >= 27;
      }
  
      @Deprecated
      public static boolean isAtLeastP() {
          return Build.VERSION.SDK_INT >= 28;
      }
  
      protected static boolean isAtLeastPreReleaseCodename(String codename, String buildCodename) {
          return !"REL".equals(buildCodename) && buildCodename.toUpperCase(Locale.ROOT).compareTo(codename.toUpperCase(Locale.ROOT)) >= 0;
      }
  
      @Deprecated
      public static boolean isAtLeastQ() {
          return Build.VERSION.SDK_INT >= 29;
      }
  
      @Deprecated
      public static boolean isAtLeastR() {
          return Build.VERSION.SDK_INT >= 30;
      }
  
      @Deprecated
      public static boolean isAtLeastS() {
          return Build.VERSION.SDK_INT >= 31 || (Build.VERSION.SDK_INT >= 30 && isAtLeastPreReleaseCodename("S", Build.VERSION.CODENAME));
      }
  
      @Deprecated
      public static boolean isAtLeastSv2() {
          return Build.VERSION.SDK_INT >= 32 || (Build.VERSION.SDK_INT >= 31 && isAtLeastPreReleaseCodename("Sv2", Build.VERSION.CODENAME));
      }
  
      public static boolean isAtLeastT() {
          return Build.VERSION.SDK_INT >= 33 || (Build.VERSION.SDK_INT >= 32 && isAtLeastPreReleaseCodename("Tiramisu", Build.VERSION.CODENAME));
      }
  
      public static boolean isAtLeastU() {
          return Build.VERSION.SDK_INT >= 33 && isAtLeastPreReleaseCodename("UpsideDownCake", Build.VERSION.CODENAME);
      }
  }
  