/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | ApiHelper.java | 30 public static interface VERSION_CODES { interface in ApiHelper 46 Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN; 49 Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH; 61 Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN; 64 Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB; 67 Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN; 77 Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB; 80 Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB_MR1; 83 Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN; 86 Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB; [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
D | KeyboardThemeTests.java | 32 import android.os.Build.VERSION_CODES; 131 assertKeyboardThemePreferenceOnKlp(VERSION_CODES.ICE_CREAM_SANDWICH); in testKeyboardThemePreferenceOnKlp() 132 assertKeyboardThemePreferenceOnKlp(VERSION_CODES.ICE_CREAM_SANDWICH_MR1); in testKeyboardThemePreferenceOnKlp() 133 assertKeyboardThemePreferenceOnKlp(VERSION_CODES.JELLY_BEAN); in testKeyboardThemePreferenceOnKlp() 134 assertKeyboardThemePreferenceOnKlp(VERSION_CODES.JELLY_BEAN_MR1); in testKeyboardThemePreferenceOnKlp() 135 assertKeyboardThemePreferenceOnKlp(VERSION_CODES.JELLY_BEAN_MR2); in testKeyboardThemePreferenceOnKlp() 136 assertKeyboardThemePreferenceOnKlp(VERSION_CODES.KITKAT); in testKeyboardThemePreferenceOnKlp() 152 assertKeyboardThemePreferenceOnLxx(Build.VERSION_CODES.LOLLIPOP); in testKeyboardThemePreferenceOnLxx() 169 if (sdkVersion <= VERSION_CODES.KITKAT) { in assertDefaultKeyboardTheme() 188 assertDefaultKeyboardThemeOnKlp(VERSION_CODES.ICE_CREAM_SANDWICH); in testDefaultKeyboardThemeOnKlp() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
D | CompatUtils.java | 47 if (SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.M) >= Build.VERSION_CODES.M) { in isInsertCompat() 57 if (SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.M) >= Build.VERSION_CODES.M) { in isUpdateCompat() 67 if (SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.M) >= Build.VERSION_CODES.M) { in isDeleteCompat() 76 if (SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.M) >= Build.VERSION_CODES.M) { in isAssertQueryCompat() 86 return SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.M) in hasPrioritizedMimeType() 87 >= Build.VERSION_CODES.M; in hasPrioritizedMimeType() 97 return SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.LOLLIPOP) in isMSIMCompatible() 98 >= Build.VERSION_CODES.LOLLIPOP_MR1; in isMSIMCompatible() 108 return SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.LOLLIPOP) in isVideoCompatible() 109 >= Build.VERSION_CODES.M; in isVideoCompatible() [all …]
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | ApiHelper.java | 30 Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1; 33 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN; 35 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN; 37 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN; 39 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN; 41 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN; 43 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN; 45 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN; 50 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1; 52 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1; [all …]
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | LocationAccessPolicyTest.java | 240 .setAppSdkLevel(Build.VERSION_CODES.P) in getScenarios() 243 .setMinSdkVersionForFine(Build.VERSION_CODES.N) in getScenarios() 244 .setMinSdkVersionForCoarse(Build.VERSION_CODES.N).build()) in getScenarios() 252 .setAppSdkLevel(Build.VERSION_CODES.P) in getScenarios() 255 .setMinSdkVersionForFine(Build.VERSION_CODES.N) in getScenarios() 256 .setMinSdkVersionForCoarse(Build.VERSION_CODES.N).build()) in getScenarios() 264 .setAppSdkLevel(Build.VERSION_CODES.JELLY_BEAN) in getScenarios() 267 .setMinSdkVersionForFine(Build.VERSION_CODES.M) in getScenarios() 268 .setMinSdkVersionForCoarse(Build.VERSION_CODES.JELLY_BEAN).build()) in getScenarios() 276 .setAppSdkLevel(Build.VERSION_CODES.P) in getScenarios() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/compat/ |
D | BuildCompat.java | 20 import android.os.Build.VERSION_CODES; 26 public static final int JB_MR2_SDK_VERSION = VERSION_CODES.JELLY_BEAN_MR2; 27 public static final int L_SDK_VERSION = VERSION_CODES.LOLLIPOP; 28 public static final int N_SDK_VERSION = Build.VERSION_CODES.N; 29 public static final int N_MR1_SDK_VERSION = Build.VERSION_CODES.N_MR1; 80 return sSdk >= Build.VERSION_CODES.O; in isAtLeastO() 87 return sSdk >= VERSION_CODES.O_MR1; in isAtLeastOMR1() 99 return sSdk >= VERSION_CODES.Q; in isAtLeastQ()
|
/packages/apps/TV/common/src/com/android/tv/common/support/tis/ |
D | TifSession.java | 26 import android.os.Build.VERSION_CODES; 84 @TargetApi(Build.VERSION_CODES.M) 90 @TargetApi(Build.VERSION_CODES.M) 96 @TargetApi(Build.VERSION_CODES.M) 100 @TargetApi(Build.VERSION_CODES.M) 104 @TargetApi(Build.VERSION_CODES.M) 108 @TargetApi(Build.VERSION_CODES.M) 149 @TargetApi(VERSION_CODES.M) 188 @TargetApi(VERSION_CODES.M)
|
D | WrappedSession.java | 88 @TargetApi(Build.VERSION_CODES.M) 94 @TargetApi(Build.VERSION_CODES.M) 100 @TargetApi(Build.VERSION_CODES.M) 106 @TargetApi(Build.VERSION_CODES.M) 112 @TargetApi(Build.VERSION_CODES.M) 118 @TargetApi(Build.VERSION_CODES.M) 128 @TargetApi(Build.VERSION_CODES.M)
|
/packages/apps/Dialer/java/com/android/dialer/voicemailstatus/ |
D | VoicemailStatusQuery.java | 20 import android.os.Build.VERSION_CODES; 40 @RequiresApi(VERSION_CODES.N_MR1) 44 @RequiresApi(VERSION_CODES.N_MR1) 47 @RequiresApi(VERSION_CODES.N_MR1) 50 @RequiresApi(VERSION_CODES.N) 63 @RequiresApi(VERSION_CODES.N_MR1) 75 return VERSION.SDK_INT >= VERSION_CODES.N_MR1 ? PROJECTION_NMR1 : PROJECTION_N; in getProjection()
|
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/support/tis/ |
D | WrappedSessionTest.java | 26 @Config(minSdk = Build.VERSION_CODES.M, maxSdk = Build.VERSION_CODES.P) 98 @Config(minSdk = Build.VERSION_CODES.M) 107 @Config(minSdk = Build.VERSION_CODES.M) 116 @Config(minSdk = Build.VERSION_CODES.M) 124 @Config(minSdk = Build.VERSION_CODES.M) 132 @Config(minSdk = Build.VERSION_CODES.M) 140 @Config(minSdk = Build.VERSION_CODES.M) 149 @Config(minSdk = Build.VERSION_CODES.M)
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | OsUtil.java | 51 sIsAtLeastICS_MR1 = v >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1; 52 sIsAtLeastJB = v >= android.os.Build.VERSION_CODES.JELLY_BEAN; 53 sIsAtLeastJB_MR1 = v >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR1; 54 sIsAtLeastJB_MR2 = v >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR2; 55 sIsAtLeastKLP = v >= android.os.Build.VERSION_CODES.KITKAT; 56 sIsAtLeastL = v >= android.os.Build.VERSION_CODES.LOLLIPOP; 57 sIsAtLeastL_MR1 = v >= android.os.Build.VERSION_CODES.LOLLIPOP_MR1; 58 sIsAtLeastM = v >= android.os.Build.VERSION_CODES.M;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardTheme.java | 22 import android.os.Build.VERSION_CODES; 52 VERSION_CODES.BASE), 55 VERSION_CODES.ICE_CREAM_SANDWICH), 58 Build.VERSION_CODES.LOLLIPOP), 61 VERSION_CODES.BASE), 119 if (sdkVersion <= VERSION_CODES.KITKAT) { in getDefaultKeyboardTheme() 156 if (sdkVersion <= VERSION_CODES.KITKAT) { in getPreferenceKey()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Utils.java | 112 return Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP; in isPreL() 121 return sdkInt == Build.VERSION_CODES.LOLLIPOP || sdkInt == Build.VERSION_CODES.LOLLIPOP_MR1; in isLOrLMR1() 128 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP; in isLOrLater() 135 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1; in isLMR1OrLater() 142 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.M; in isMOrLater() 163 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.O; in isOOrLater() 298 @TargetApi(Build.VERSION_CODES.KITKAT) 304 @TargetApi(Build.VERSION_CODES.LOLLIPOP) 318 @TargetApi(Build.VERSION_CODES.LOLLIPOP) 323 @TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
/packages/modules/SdkExtensions/framework/java/android/os/ext/ |
D | SdkExtensions.java | 21 import android.os.Build.VERSION_CODES; 48 @IntDef(value = { VERSION_CODES.R }) 62 if (sdk < VERSION_CODES.R) { in getExtensionVersion() 66 if (sdk == VERSION_CODES.R) { in getExtensionVersion()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | AdditionalSubtypeUtilsTests.java | 120 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { in assertEnUsDvorak() 122 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in assertEnUsDvorak() 124 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { in assertEnUsDvorak() 143 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { in assertAzerty() 145 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { in assertAzerty()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppWithAdminGrantedPermissionsListerTest.java | 114 buildInfo(APP_1_UID, APP_1, 0 /* flags */, Build.VERSION_CODES.M), in verifyListInstalledApps() 115 buildInfo(APP_2_UID, APP_2, 0 /* flags */, Build.VERSION_CODES.M), in verifyListInstalledApps() 116 buildInfo(APP_3_UID, APP_3, 0 /* flags */, Build.VERSION_CODES.LOLLIPOP), in verifyListInstalledApps() 117 buildInfo(APP_4_UID, APP_4, 0 /* flags */, Build.VERSION_CODES.LOLLIPOP), in verifyListInstalledApps() 118 buildInfo(APP_5_UID, APP_5, 0 /* flags */, Build.VERSION_CODES.LOLLIPOP))); in verifyListInstalledApps() 168 buildInfo(APP_6_UID, APP_6, 0 /* flags */, Build.VERSION_CODES.M))); in verifyListInstalledApps()
|
D | AppWithAdminGrantedPermissionsCounterTest.java | 102 mApp1 = buildInfo(APP_1_UID, APP_1, 0 /* flags */, Build.VERSION_CODES.M); in setUp() 103 mApp2 = buildInfo(APP_2_UID, APP_2, 0 /* flags */, Build.VERSION_CODES.M); in setUp() 104 mApp3 = buildInfo(APP_3_UID, APP_3, 0 /* flags */, Build.VERSION_CODES.LOLLIPOP); in setUp() 105 mApp4 = buildInfo(APP_4_UID, APP_4, 0 /* flags */, Build.VERSION_CODES.LOLLIPOP); in setUp() 106 mApp5 = buildInfo(APP_5_UID, APP_5, 0 /* flags */, Build.VERSION_CODES.LOLLIPOP); in setUp() 107 mApp6 = buildInfo(APP_6_UID, APP_6, 0 /* flags */, Build.VERSION_CODES.M); in setUp()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmNotifications.kt | 161 if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) { in showLowPriorityNotification() 216 if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) { in showHighPriorityNotification() 228 @TargetApi(Build.VERSION_CODES.N) 246 @TargetApi(Build.VERSION_CODES.N) 270 @TargetApi(Build.VERSION_CODES.N) 294 if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) { in updateUpcomingAlarmGroupNotification() 338 if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) { in updateMissedAlarmGroupNotification() 356 if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) { in updateMissedAlarmGroupNotification() 421 if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) { in showSnoozeNotification() 481 if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) { in showMissedNotification()
|
/packages/apps/Dialer/java/com/android/dialer/shortcuts/ |
D | PeriodicJobService.java | 27 import android.os.Build.VERSION_CODES; 41 @TargetApi(VERSION_CODES.N_MR1) // Shortcuts introduced in N MR1 60 if (VERSION.SDK_INT >= VERSION_CODES.N_MR1 && UserManagerCompat.isUserUnlocked(context)) { in schedulePeriodicJob() 94 if (VERSION.SDK_INT >= VERSION_CODES.N_MR1) { in onStartJob()
|
/packages/apps/TV/src/com/android/tv/audio/ |
D | AudioManagerHelper.java | 45 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { in AudioManagerHelper() 86 && Build.VERSION.SDK_INT >= Build.VERSION_CODES.N in setVolumeByAudioFocusStatus() 116 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { in requestAudioFocus() 133 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { in abandonAudioFocus()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | WallpaperPreferences.java | 148 @TargetApi(Build.VERSION_CODES.N) 154 @TargetApi(Build.VERSION_CODES.N) 250 @TargetApi(Build.VERSION_CODES.N) 256 @TargetApi(Build.VERSION_CODES.N)
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
D | AccountsTestHelper.java | 88 @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP_MR1) 95 @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP_MR1) 112 @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP_MR1) 126 @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP_MR1)
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/constants/ |
D | ConfigConstants.java | 25 public static final int SDK = Build.VERSION_CODES.M; 26 public static final int MIN_SDK = Build.VERSION_CODES.M; 27 public static final int MAX_SDK = Build.VERSION_CODES.P;
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
D | WallpaperUtils.java | 44 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { in saveWallpaperDimensions() 130 @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1) 153 @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1) 155 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 && in isRtl()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/financialapps/ |
D | FinancialAppsController.java | 87 if ((targetSdk >= Build.VERSION_CODES.Q in updateList() 90 || (targetSdk < Build.VERSION_CODES.Q in updateList() 99 targetSdk >= Build.VERSION_CODES.Q in updateList() 117 targetSdk >= Build.VERSION_CODES.Q in updateList()
|