Home
last modified time | relevance | path

Searched refs:VERSION_CODES (Results 1 – 25 of 1639) sorted by relevance

12345678910>>...66

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DApiHelper.java33 public static interface VERSION_CODES { interface in ApiHelper
49 Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
52 Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH;
64 Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
67 Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
70 Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
80 Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
83 Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB_MR1;
86 Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
89 Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
[all …]
/packages/apps/Contacts/src/com/android/contacts/compat/
DCompatUtils.java47 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/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DKeyboardThemeTests.java32 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/modules/SdkExtensions/java/android/os/ext/
DSdkExtensions.java21 import android.os.Build.VERSION_CODES;
63 extensions.put(VERSION_CODES.R, R_EXTENSION_INT); in extensions.put()
65 extensions.put(VERSION_CODES.S, S_EXTENSION_INT); in extensions.put()
68 extensions.put(VERSION_CODES.TIRAMISU, T_EXTENSION_INT); in extensions.put()
72 extensions.put(VERSION_CODES.UPSIDE_DOWN_CAKE, U_EXTENSION_INT); in extensions.put()
75 extensions.put(VERSION_CODES.VANILLA_ICE_CREAM, V_EXTENSION_INT); in extensions.put()
87 VERSION_CODES.R,
88 VERSION_CODES.S,
89 VERSION_CODES.TIRAMISU,
90 VERSION_CODES.UPSIDE_DOWN_CAKE,
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DApiHelper.java30 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/
DLocationAccessPolicyTest.java249 .setAppSdkLevel(Build.VERSION_CODES.P) in getScenarios()
252 .setMinSdkVersionForEnforcement(Build.VERSION_CODES.N) in getScenarios()
253 .setMinSdkVersionForFine(Build.VERSION_CODES.N) in getScenarios()
254 .setMinSdkVersionForCoarse(Build.VERSION_CODES.N).build()) in getScenarios()
262 .setAppSdkLevel(Build.VERSION_CODES.P) in getScenarios()
265 .setMinSdkVersionForEnforcement(Build.VERSION_CODES.N) in getScenarios()
266 .setMinSdkVersionForFine(Build.VERSION_CODES.N) in getScenarios()
267 .setMinSdkVersionForCoarse(Build.VERSION_CODES.N) in getScenarios()
276 .setAppSdkLevel(Build.VERSION_CODES.P) in getScenarios()
279 .setMinSdkVersionForEnforcement(Build.VERSION_CODES.N) in getScenarios()
[all …]
/packages/services/Car/car-lib/src/android/car/annotation/
DApiRequirements.java76 TIRAMISU_0(android.car.CarVersion.VERSION_CODES.TIRAMISU_0),
77 TIRAMISU_1(android.car.CarVersion.VERSION_CODES.TIRAMISU_1),
78 TIRAMISU_2(android.car.CarVersion.VERSION_CODES.TIRAMISU_2),
79 TIRAMISU_3(android.car.CarVersion.VERSION_CODES.TIRAMISU_3),
80 UPSIDE_DOWN_CAKE_0(android.car.CarVersion.VERSION_CODES.UPSIDE_DOWN_CAKE_0),
81 UPSIDE_DOWN_CAKE_1(android.car.CarVersion.VERSION_CODES.UPSIDE_DOWN_CAKE_1),
82 VANILLA_ICE_CREAM_0(android.car.CarVersion.VERSION_CODES.VANILLA_ICE_CREAM_0);
101 TIRAMISU_0(android.car.PlatformVersion.VERSION_CODES.TIRAMISU_0),
102 TIRAMISU_1(android.car.PlatformVersion.VERSION_CODES.TIRAMISU_1),
103 TIRAMISU_2(android.car.PlatformVersion.VERSION_CODES.TIRAMISU_2),
[all …]
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DSplitPermissionsSystemTest.java67 @SdkSuppress(minSdkVersion = Build.VERSION_CODES.UPSIDE_DOWN_CAKE, codeName = "UpsideDownCake")
70 private static final int NO_TARGET = Build.VERSION_CODES.CUR_DEVELOPMENT + 1;
84 assumeTrue(ApiLevelUtil.isAtLeast(Build.VERSION_CODES.Q)); in validateAndroidSystem()
107 assertSplit(split, Build.VERSION_CODES.Q, ACCESS_BACKGROUND_LOCATION); in validateAndroidSystem()
114 assertSplit(split, Build.VERSION_CODES.Q, ACCESS_MEDIA_LOCATION); in validateAndroidSystem()
116 assertSplit(split, Build.VERSION_CODES.S_V2 + 1, READ_MEDIA_AUDIO); in validateAndroidSystem()
118 assertSplit(split, Build.VERSION_CODES.S_V2 + 1, READ_MEDIA_VIDEO); in validateAndroidSystem()
120 assertSplit(split, Build.VERSION_CODES.S_V2 + 1, READ_MEDIA_IMAGES); in validateAndroidSystem()
124 assertSplit(split, Build.VERSION_CODES.JELLY_BEAN, READ_CALL_LOG); in validateAndroidSystem()
127 assertSplit(split, Build.VERSION_CODES.JELLY_BEAN, WRITE_CALL_LOG); in validateAndroidSystem()
[all …]
/packages/modules/StatsD/framework/java/android/util/
DStatsLog.java165 @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
179 @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
193 @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
207 @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
221 @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
235 @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
249 @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
263 @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
277 @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
291 @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DBpfNetMapsTest.java130 @DevSdkIgnoreRule.IgnoreUpTo(Build.VERSION_CODES.R)
231 @IgnoreUpTo(Build.VERSION_CODES.S_V2)
244 @IgnoreUpTo(Build.VERSION_CODES.S_V2)
258 @IgnoreUpTo(Build.VERSION_CODES.S_V2)
266 @IgnoreAfter(Build.VERSION_CODES.S_V2)
296 @IgnoreUpTo(Build.VERSION_CODES.S_V2)
310 @IgnoreUpTo(Build.VERSION_CODES.S_V2)
325 @IgnoreUpTo(Build.VERSION_CODES.S_V2)
335 @IgnoreAfter(Build.VERSION_CODES.S_V2)
368 @IgnoreUpTo(Build.VERSION_CODES.S_V2)
[all …]
/packages/services/Car/car-lib/src/android/car/
DPlatformVersion.java33 public static class VERSION_CODES { class in PlatformVersion
40 new PlatformVersion("TIRAMISU_0", Build.VERSION_CODES.TIRAMISU, 0);
47 new PlatformVersion("TIRAMISU_1", Build.VERSION_CODES.TIRAMISU, 1);
54 new PlatformVersion("TIRAMISU_2", Build.VERSION_CODES.TIRAMISU, 2);
61 new PlatformVersion("TIRAMISU_3", Build.VERSION_CODES.TIRAMISU, 3);
68 new PlatformVersion("UPSIDE_DOWN_CAKE_0", Build.VERSION_CODES.UPSIDE_DOWN_CAKE, 0);
75 new PlatformVersion("UPSIDE_DOWN_CAKE_1", Build.VERSION_CODES.UPSIDE_DOWN_CAKE, 1);
84 new PlatformVersion("VANILLA_ICE_CREAM_0", Build.VERSION_CODES.VANILLA_ICE_CREAM,
87 private VERSION_CODES() { in VERSION_CODES() method in PlatformVersion.VERSION_CODES
109 : Build.VERSION_CODES.CUR_DEVELOPMENT, minorVersion); in getCurrentPlatformVersionForMinor()
DCarVersion.java31 public static class VERSION_CODES { class in CarVersion
38 new CarVersion("TIRAMISU_0", Build.VERSION_CODES.TIRAMISU, 0);
45 new CarVersion("TIRAMISU_1", Build.VERSION_CODES.TIRAMISU, 1);
52 new CarVersion("TIRAMISU_2", Build.VERSION_CODES.TIRAMISU, 2);
59 new CarVersion("TIRAMISU_3", Build.VERSION_CODES.TIRAMISU, 3);
66 new CarVersion("UPSIDE_DOWN_CAKE_0", Build.VERSION_CODES.UPSIDE_DOWN_CAKE, 0);
73 new CarVersion("UPSIDE_DOWN_CAKE_1", Build.VERSION_CODES.UPSIDE_DOWN_CAKE, 1);
80 new CarVersion("VANILLA_ICE_CREAM_0", Build.VERSION_CODES.VANILLA_ICE_CREAM, 0);
82 private VERSION_CODES() { in VERSION_CODES() method in CarVersion.VERSION_CODES
/packages/modules/Connectivity/framework/src/android/net/connectivity/
DConnectivityCompatChanges.java40 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.S_V2)
61 @EnabledSince(targetSdkVersion = android.os.Build.VERSION_CODES.S)
73 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.TIRAMISU)
85 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.TIRAMISU)
99 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
121 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM)
135 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
/packages/apps/TV/common/src/com/android/tv/common/support/tis/
DTifSession.java26 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)
DWrappedSession.java88 @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/
DVoicemailStatusQuery.java20 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/modules/Connectivity/service/src/com/android/server/
DBpfNetMaps.java189 @RequiresApi(Build.VERSION_CODES.TIRAMISU)
199 @RequiresApi(Build.VERSION_CODES.TIRAMISU)
209 @RequiresApi(Build.VERSION_CODES.TIRAMISU)
219 @RequiresApi(Build.VERSION_CODES.TIRAMISU)
230 @RequiresApi(Build.VERSION_CODES.TIRAMISU)
240 @RequiresApi(Build.VERSION_CODES.TIRAMISU)
250 @RequiresApi(Build.VERSION_CODES.TIRAMISU)
308 @RequiresApi(Build.VERSION_CODES.TIRAMISU)
337 @RequiresApi(Build.VERSION_CODES.TIRAMISU)
358 @RequiresApi(Build.VERSION_CODES.TIRAMISU)
[all …]
/packages/modules/Permission/framework-s/java/android/app/role/
DRoleManager.java154 @RequiresApi(Build.VERSION_CODES.VANILLA_ICE_CREAM)
238 @EnabledSince(targetSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM)
316 @UserHandleAware(enabledSinceTargetSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM)
334 @UserHandleAware(enabledSinceTargetSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM)
363 @UserHandleAware(enabledSinceTargetSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM)
528 @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
559 @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
694 @RequiresApi(Build.VERSION_CODES.S)
716 @RequiresApi(Build.VERSION_CODES.S)
738 @RequiresApi(Build.VERSION_CODES.VANILLA_ICE_CREAM)
[all …]
/packages/modules/SdkExtensions/javatests/com/android/os/ext/
DSdkExtensionsTest.java19 import static android.os.Build.VERSION_CODES;
20 import static android.os.Build.VERSION_CODES.R;
21 import static android.os.Build.VERSION_CODES.S;
22 import static android.os.Build.VERSION_CODES.TIRAMISU;
23 import static android.os.Build.VERSION_CODES.UPSIDE_DOWN_CAKE;
24 import static android.os.Build.VERSION_CODES.VANILLA_ICE_CREAM;
138 int step = (int) ((VERSION_CODES.R - (long) Integer.MIN_VALUE) / 10_000); in testBadArgument()
139 for (int sdk = Integer.MIN_VALUE; sdk < VERSION_CODES.R; sdk += step) { in testBadArgument()
152 for (int sdk = VERSION_CODES.R; sdk <= 1_000_000; sdk++) { in testZeroValues()
165 expectedKeys.add(VERSION_CODES.R); in testGetAllExtensionVersionsKeys()
[all …]
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DThreadNetworkManagerTest.java63 @IgnoreAfter(Build.VERSION_CODES.TIRAMISU)
69 @IgnoreUpTo(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
77 @IgnoreUpTo(Build.VERSION_CODES.TIRAMISU)
78 @IgnoreAfter(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
86 @IgnoreUpTo(Build.VERSION_CODES.TIRAMISU)
87 @IgnoreAfter(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
102 @IgnoreUpTo(Build.VERSION_CODES.TIRAMISU)
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIpSecManagerTunnelTest.java1336 @IgnoreUpTo(Build.VERSION_CODES.TIRAMISU)
1340 if (getVsrApiLevel() > Build.VERSION_CODES.TIRAMISU) {
1353 @IgnoreUpTo(Build.VERSION_CODES.R)
1359 @IgnoreUpTo(Build.VERSION_CODES.R)
1378 @IgnoreUpTo(Build.VERSION_CODES.R)
1384 @IgnoreUpTo(Build.VERSION_CODES.R)
1403 @IgnoreUpTo(Build.VERSION_CODES.R)
1409 @IgnoreUpTo(Build.VERSION_CODES.R)
1428 @IgnoreUpTo(Build.VERSION_CODES.R)
1434 @IgnoreUpTo(Build.VERSION_CODES.R)
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/compat/
DPackageManagerCompatUtils.java76 /* minSdkSupport= */ Build.VERSION_CODES.R),
79 /* minSdkSupport= */ Build.VERSION_CODES.R),
82 /* minSdkSupport= */ Build.VERSION_CODES.R),
85 /* minSdkSupport= */ Build.VERSION_CODES.S),
88 /* minSdkSupport= */ Build.VERSION_CODES.S),
91 /* minSdkSupport= */ Build.VERSION_CODES.S),
94 /* minSdkSupport= */ Build.VERSION_CODES.S),
97 /* minSdkSupport= */ Build.VERSION_CODES.S));
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/support/tis/
DWrappedSessionTest.java26 @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/
DOsUtil.java51 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/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DAppPermissionTest.kt42 @SdkSuppress(minSdkVersion = Build.VERSION_CODES.UPSIDE_DOWN_CAKE, codeName = "UpsideDownCake")
125 @SdkSuppress(minSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM, codeName =
138 @SdkSuppress(minSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM, codeName =
150 @SdkSuppress(minSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM, codeName =
162 @SdkSuppress(minSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM, codeName =
174 @SdkSuppress(minSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM, codeName =
276 @SdkSuppress(minSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM, codeName =
290 @SdkSuppress(minSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM, codeName =
308 @SdkSuppress(minSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM, codeName =

12345678910>>...66