Home
last modified time | relevance | path

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

12345678910>>...16

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DApiHelper.java30 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/
DKeyboardThemeTests.java26 import android.os.Build.VERSION_CODES;
114 assertKeyboardThemePreferenceOnKlp(VERSION_CODES.ICE_CREAM_SANDWICH); in testKeyboardThemePreferenceOnKlp()
115 assertKeyboardThemePreferenceOnKlp(VERSION_CODES.ICE_CREAM_SANDWICH_MR1); in testKeyboardThemePreferenceOnKlp()
116 assertKeyboardThemePreferenceOnKlp(VERSION_CODES.JELLY_BEAN); in testKeyboardThemePreferenceOnKlp()
117 assertKeyboardThemePreferenceOnKlp(VERSION_CODES.JELLY_BEAN_MR1); in testKeyboardThemePreferenceOnKlp()
118 assertKeyboardThemePreferenceOnKlp(VERSION_CODES.JELLY_BEAN_MR2); in testKeyboardThemePreferenceOnKlp()
119 assertKeyboardThemePreferenceOnKlp(VERSION_CODES.KITKAT); in testKeyboardThemePreferenceOnKlp()
134 assertKeyboardThemePreferenceOnLxx(Build.VERSION_CODES.LOLLIPOP); in testKeyboardThemePreferenceOnLxx()
151 if (sdkVersion <= VERSION_CODES.KITKAT) { in assertDefaultKeyboardTheme()
169 assertDefaultKeyboardThemeOnKlp(VERSION_CODES.ICE_CREAM_SANDWICH); in testDefaultKeyboardThemeOnKlp()
[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/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/apps/Dialer/java/com/android/dialer/compat/
DCompatUtils.java24 return SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.M) >= Build.VERSION_CODES.M; in hasPrioritizedMimeType()
34 return SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.LOLLIPOP) in isMSIMCompatible()
35 >= Build.VERSION_CODES.LOLLIPOP_MR1; in isMSIMCompatible()
45 return SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.LOLLIPOP) >= Build.VERSION_CODES.M; in isVideoCompatible()
55 return SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.M) > Build.VERSION_CODES.M; in isVideoPresenceCompatible()
65 return SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.LOLLIPOP) >= Build.VERSION_CODES.M; in isCallSubjectCompatible()
/packages/apps/Dialer/java/com/android/dialer/database/
DVoicemailStatusQuery.java20 import android.os.Build.VERSION_CODES;
38 @RequiresApi(VERSION_CODES.N)
41 @RequiresApi(VERSION_CODES.N)
44 @RequiresApi(VERSION_CODES.N_MR1)
48 @RequiresApi(VERSION_CODES.N_MR1)
51 @RequiresApi(VERSION_CODES.N_MR1)
64 @RequiresApi(VERSION_CODES.N)
67 @RequiresApi(VERSION_CODES.N_MR1)
83 if (VERSION.SDK_INT >= VERSION_CODES.N_MR1) { in getProjection()
86 if (VERSION.SDK_INT >= VERSION_CODES.N) { in getProjection()
/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/apps/Dialer/java/com/android/dialer/blocking/
DBlockedNumbersMigrator.java25 import android.os.Build.VERSION_CODES;
38 @TargetApi(VERSION_CODES.M)
51 @RequiresApi(VERSION_CODES.N)
52 @TargetApi(VERSION_CODES.N)
93 @RequiresApi(VERSION_CODES.N)
94 @TargetApi(VERSION_CODES.N)
136 @TargetApi(VERSION_CODES.N)
DFilteredNumberCompat.java27 import android.os.Build.VERSION_CODES;
111 return VERSION.SDK_INT >= VERSION_CODES.N; in canUseNewFiltering()
159 return useNewFiltering(context) && VERSION.SDK_INT >= VERSION_CODES.N in getBaseUri()
248 && VERSION.SDK_INT >= VERSION_CODES.N) { in createManageBlockedNumbersIntent()
267 if (VERSION.SDK_INT < VERSION_CODES.N) { in canAttemptBlockOperations()
291 if (VERSION.SDK_INT < VERSION_CODES.N) { in canCurrentUserOpenBlockSettings()
309 @TargetApi(VERSION_CODES.N)
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardTheme.java22 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/
DUtils.java112 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()
291 @TargetApi(Build.VERSION_CODES.KITKAT)
297 @TargetApi(Build.VERSION_CODES.LOLLIPOP)
311 @TargetApi(Build.VERSION_CODES.LOLLIPOP)
316 @TargetApi(Build.VERSION_CODES.LOLLIPOP)
/packages/apps/Dialer/java/com/android/contacts/common/compat/
DDirectoryCompat.java21 import android.os.Build.VERSION_CODES;
27 if (VERSION.SDK_INT >= VERSION_CODES.N) { in getContentUri()
34 if (VERSION.SDK_INT >= VERSION_CODES.N) { in isInvisibleDirectory()
42 if (VERSION.SDK_INT >= VERSION_CODES.N) { in isRemoteDirectoryId()
49 return VERSION.SDK_INT >= VERSION_CODES.N && Directory.isEnterpriseDirectoryId(directoryId); in isEnterpriseDirectoryId()
DTelephonyManagerCompat.java23 import android.os.Build.VERSION_CODES;
102 if (VERSION.SDK_INT < VERSION_CODES.N) { in getVoicemailRingtoneUri()
118 return VERSION.SDK_INT < VERSION_CODES.N in isVoicemailVibrationEnabled()
128 if (VERSION.SDK_INT < VERSION_CODES.N_MR1) { in setVisualVoicemailEnabled()
146 if (VERSION.SDK_INT < VERSION_CODES.N_MR1) { in isVisualVoicemailEnabled()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DAdditionalSubtypeUtilsTests.java110 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { in assertEnUsDvorak()
112 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in assertEnUsDvorak()
114 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { in assertEnUsDvorak()
133 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { in assertAzerty()
135 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { in assertAzerty()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppWithAdminGrantedPermissionsListerTest.java115 buildInfo(APP_1_UID, APP_1, 0 /* flags */, Build.VERSION_CODES.M), in verifyListInstalledApps()
116 buildInfo(APP_2_UID, APP_2, 0 /* flags */, Build.VERSION_CODES.M), in verifyListInstalledApps()
117 buildInfo(APP_3_UID, APP_3, 0 /* flags */, Build.VERSION_CODES.LOLLIPOP), in verifyListInstalledApps()
118 buildInfo(APP_4_UID, APP_4, 0 /* flags */, Build.VERSION_CODES.LOLLIPOP), in verifyListInstalledApps()
119 buildInfo(APP_5_UID, APP_5, 0 /* flags */, Build.VERSION_CODES.LOLLIPOP))); in verifyListInstalledApps()
169 buildInfo(APP_6_UID, APP_6, 0 /* flags */, Build.VERSION_CODES.M))); in verifyListInstalledApps()
DAppWithAdminGrantedPermissionsCounterTest.java101 mApp1 = buildInfo(APP_1_UID, APP_1, 0 /* flags */, Build.VERSION_CODES.M); in setUp()
102 mApp2 = buildInfo(APP_2_UID, APP_2, 0 /* flags */, Build.VERSION_CODES.M); in setUp()
103 mApp3 = buildInfo(APP_3_UID, APP_3, 0 /* flags */, Build.VERSION_CODES.LOLLIPOP); in setUp()
104 mApp4 = buildInfo(APP_4_UID, APP_4, 0 /* flags */, Build.VERSION_CODES.LOLLIPOP); in setUp()
105 mApp5 = buildInfo(APP_5_UID, APP_5, 0 /* flags */, Build.VERSION_CODES.LOLLIPOP); in setUp()
106 mApp6 = buildInfo(APP_6_UID, APP_6, 0 /* flags */, Build.VERSION_CODES.M); in setUp()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogGroupBuilder.java21 import android.os.Build.VERSION_CODES;
96 (VERSION.SDK_INT >= VERSION_CODES.N) ? cursor.getString(CallLogQuery.POST_DIAL_DIGITS) : ""; in addGroups()
98 (VERSION.SDK_INT >= VERSION_CODES.N) ? cursor.getString(CallLogQuery.VIA_NUMBER) : ""; in addGroups()
115 (VERSION.SDK_INT >= VERSION_CODES.N) in addGroups()
119 (VERSION.SDK_INT >= VERSION_CODES.N) ? cursor.getString(CallLogQuery.VIA_NUMBER) : ""; in addGroups()
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/
DCallLogQuery.java20 import android.os.Build.VERSION_CODES;
57 @RequiresApi(VERSION_CODES.N)
60 @RequiresApi(VERSION_CODES.N)
102 if (VERSION.SDK_INT >= VERSION_CODES.N) { in getProjection()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DPeriodicJobService.java27 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/Contacts/tests/src/com/android/contacts/tests/
DAccountsTestHelper.java88 @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/WallpaperPicker/src/com/android/wallpaperpicker/
DWallpaperCropActivity.java158 @TargetApi(Build.VERSION_CODES.KITKAT)
238 @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
240 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 && isDestroyed(); in isActivityDestroyed()
245 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT in addReusableBitmap()
300 @TargetApi(Build.VERSION_CODES.KITKAT)
352 @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
DWallpaperUtils.java44 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/apps/TV/src/com/android/tv/dvr/recorder/
DDvrRecordingService.java52 @RequiresApi(Build.VERSION_CODES.N)
79 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { in startForegroundService()
187 Notification notification = Build.VERSION.SDK_INT >= Build.VERSION_CODES.O ? in startForegroundInternal()
198 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { in createNotificationChannel()
/packages/apps/Contacts/tests/src/com/android/contacts/editor/
DEditorUiUtilsTest.java141 final int currentVersion = Build.VERSION_CODES.M; in testGetRingtongStrFromUri_lessThanOrEqualsToM()
150 final int currentVersion = Build.VERSION_CODES.M + 1; in testGetRingtongStrFromUri_nOrGreater()
159 final int currentVersion = Build.VERSION_CODES.M; in testGetRingtongUriFromStr_lessThanOrEqualsToM()
168 final int currentVersion = Build.VERSION_CODES.M + 1; in testGetRingtongUriFromStr_nOrGreater()
/packages/apps/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java151 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in DotsPageIndicator()
320 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in clearAnimation()
354 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in drawUnselected()
368 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in drawUnselected()
437 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in getUnselectedPath()
468 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in getUnselectedPath()
564 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in setSelectedPage()

12345678910>>...16