1 /* 2 * Copyright (C) 2018 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package dalvik.annotation.compat; 17 18 import libcore.api.IntraCoreApi; 19 20 /** 21 * Version code constants for Android releases. 22 * 23 * <p>Note: The constants are "public static final int" and are intended for use with annotations 24 * so must stay compile-time resolvable and inline-able. They must match the values from 25 * framework's android.os.Build.VERSION_CODES class. 26 * 27 * <p>Only historically fixed API levels should be included or abstract concepts like "CURRENT" 28 * should be added. Do not predict API levels. 29 * 30 * {@hide} 31 */ 32 @IntraCoreApi 33 public class VersionCodes { 34 VersionCodes()35 private VersionCodes() { 36 } 37 38 /** 39 * The version code for current development build, which has not yet turned into an official 40 * release. 41 */ 42 @IntraCoreApi 43 public static final int CUR_DEVELOPMENT = 10000; 44 45 /** 46 * The version code for Android Oreo (API version 26). 47 */ 48 @IntraCoreApi 49 public static final int O = 26; 50 51 /** 52 * The version code for Android Pie (API version 28). 53 */ 54 @IntraCoreApi 55 public static final int P = 28; 56 57 /** 58 * The version code for Android Q (API version 29). 59 */ 60 @IntraCoreApi 61 public static final int Q = 29; 62 63 /** 64 * The version code for Android R (API version 30). 65 */ 66 @IntraCoreApi 67 public static final int R = 30; 68 69 /** 70 * The version code for Android S (API version 31). 71 */ 72 @IntraCoreApi 73 public static final int S = 31; 74 } 75