/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/services/Telephony/tests/src/com/android/phone/ |
D | LocationAccessPolicyTest.java | 242 .setAppSdkLevel(Build.VERSION_CODES.P) in getScenarios() 245 .setMinSdkVersionForEnforcement(Build.VERSION_CODES.N) in getScenarios() 246 .setMinSdkVersionForFine(Build.VERSION_CODES.N) in getScenarios() 247 .setMinSdkVersionForCoarse(Build.VERSION_CODES.N).build()) in getScenarios() 255 .setAppSdkLevel(Build.VERSION_CODES.P) in getScenarios() 258 .setMinSdkVersionForEnforcement(Build.VERSION_CODES.N) in getScenarios() 259 .setMinSdkVersionForFine(Build.VERSION_CODES.N) in getScenarios() 260 .setMinSdkVersionForCoarse(Build.VERSION_CODES.N).build()) in getScenarios() 268 .setAppSdkLevel(Build.VERSION_CODES.JELLY_BEAN) in getScenarios() 271 .setMinSdkVersionForEnforcement(Build.VERSION_CODES.JELLY_BEAN) in getScenarios() [all …]
|
D | LocationAccessPolicyBuilderTest.java | 40 .setMinSdkVersionForFine(Build.VERSION_CODES.N) in testBuilderMissingMinCoarse() 57 .setMinSdkVersionForCoarse(Build.VERSION_CODES.N) in testBuilderMissingMinFine() 74 .setMinSdkVersionForFine(Build.VERSION_CODES.N) in testBuilderMissingMinEnforcement() 75 .setMinSdkVersionForCoarse(Build.VERSION_CODES.N) in testBuilderMissingMinEnforcement()
|
/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/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() 106 return sSdk >= VERSION_CODES.S in isAtLeastS()
|
/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/modules/SdkExtensions/framework/java/android/os/ext/ |
D | SdkExtensions.java | 22 import android.os.Build.VERSION_CODES; 46 private static final int VERSION_CODE_S = VERSION_CODES.S; 57 extensions.put(VERSION_CODES.R, R_EXTENSION_INT); in extensions.put() 68 @IntDef(value = { VERSION_CODES.R, VERSION_CODE_S }) 81 if (extension < VERSION_CODES.R) { in getExtensionVersion() 85 if (extension == VERSION_CODES.R) { in getExtensionVersion()
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | KeepalivePacketDataTest.kt | 61 @IgnoreUpTo(Build.VERSION_CODES.Q) in address() 102 @IgnoreUpTo(Build.VERSION_CODES.Q) 106 @IgnoreUpTo(Build.VERSION_CODES.Q) 110 @IgnoreUpTo(Build.VERSION_CODES.Q) 114 @IgnoreUpTo(Build.VERSION_CODES.Q) 118 @IgnoreUpTo(Build.VERSION_CODES.Q)
|
/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/modules/Wifi/framework/java/android/net/wifi/ |
D | ScanResult.java | 458 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) 902 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) 905 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) 908 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) 911 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) 914 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) 919 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) 922 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) 925 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) 928 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) [all …]
|
D | SoftApConfiguration.java | 602 @RequiresApi(Build.VERSION_CODES.S) 702 @RequiresApi(Build.VERSION_CODES.S) 726 @RequiresApi(Build.VERSION_CODES.S) 758 @RequiresApi(Build.VERSION_CODES.S) 777 @RequiresApi(Build.VERSION_CODES.S) 1106 @RequiresApi(Build.VERSION_CODES.S) 1213 @RequiresApi(Build.VERSION_CODES.S) 1434 @RequiresApi(Build.VERSION_CODES.S) 1476 @RequiresApi(Build.VERSION_CODES.S) 1504 @RequiresApi(Build.VERSION_CODES.S)
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Utils.kt | 108 get() = Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP 117 return sdkInt == Build.VERSION_CODES.LOLLIPOP || 118 sdkInt == Build.VERSION_CODES.LOLLIPOP_MR1 125 get() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP 131 get() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1 137 get() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.M 155 get() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.O 286 @TargetApi(Build.VERSION_CODES.KITKAT) 292 @TargetApi(Build.VERSION_CODES.LOLLIPOP) 306 @TargetApi(Build.VERSION_CODES.LOLLIPOP) [all …]
|
/packages/modules/SdkExtensions/tests/cts/Extensions/src/android/os/ext/cts/ |
D | SdkExtensionsTest.java | 31 for (int sdk = -1_000_000; sdk < Build.VERSION_CODES.R; sdk++) { in testBadArgument() 41 int firstUnassigned = Build.VERSION_CODES.S + 1; in testValidValues() 58 assertEquals(1, (int) versions.get(Build.VERSION_CODES.R)); in testExtensionVersions() 61 assertEquals(1, (int) versions.get(Build.VERSION_CODES.S)); in testExtensionVersions()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | ConnectivityManager.java | 52 import android.os.Build.VERSION_CODES; 366 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) 375 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) 390 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) 399 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) 663 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 130143562) 681 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 130143562) 710 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 130143562) 926 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 130143562) 973 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) [all …]
|
/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/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()
|