Home
last modified time | relevance | path

Searched refs:SDK_INT (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DApiHelper.java46 public static final boolean AT_LEAST_16 = Build.VERSION.SDK_INT >= 16;
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 …]
DAsyncTaskUtil.java33 if (Build.VERSION.SDK_INT >= 11) {
50 if (Build.VERSION.SDK_INT < 11) { in executeInParallel()
/packages/apps/Camera2/src/com/android/camera/util/
DApiHelper.java27 public static final boolean AT_LEAST_16 = Build.VERSION.SDK_INT >= 16;
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;
[all …]
/packages/modules/Virtualization/libs/apkverify/tests/
Dapkverify_test.rs33 const SDK_INT: u32 = 31; constant
71 let res = verify("tests/data/v2-only-truncated-cd.apk", SDK_INT); in test_verify_truncated_cd()
89 let res = verify(format!("tests/data/v3-only-with-dsa-sha256-{}.apk", key_name), SDK_INT); in apks_signed_with_v3_dsa_sha256_are_not_supported()
168 let res = verify(path, SDK_INT); in test_verify_v3_sig_does_not_verify()
177 let res = verify("tests/data/v3-only-with-rsa-pkcs1-sha512-8192-digest-mismatch.apk", SDK_INT); in test_verify_v3_digest_mismatch()
186 verify("tests/data/v3-only-with-ecdsa-sha512-p384-wrong-apk-sig-block-magic.apk", SDK_INT); in test_verify_v3_wrong_apk_sig_block_magic()
196 SDK_INT, in test_verify_v3_apk_sig_block_size_mismatch()
208 let res = verify("tests/data/v3-only-cert-and-public-key-mismatch.apk", SDK_INT); in test_verify_v3_cert_and_public_key_mismatch()
216 let res = verify("tests/data/v3-only-empty.apk", SDK_INT); in test_verify_v3_empty()
224 let res = verify("tests/data/v3-only-no-certs-in-sig.apk", SDK_INT); in test_verify_v3_no_certs_in_sig()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DAdditionalSubtypeUtilsTests.java120 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/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarTest.java135 expectThat(Car.isApiAndPlatformVersionAtLeast(apiVersionMajorInt, Build.VERSION.SDK_INT)) in testApiVersion_deprecated()
138 apiVersionMinorInt, Build.VERSION.SDK_INT)).isTrue(); in testApiVersion_deprecated()
143 Build.VERSION.SDK_INT + 1)).isFalse(); in testApiVersion_deprecated()
145 apiVersionMinorInt, Build.VERSION.SDK_INT + 1)).isFalse(); in testApiVersion_deprecated()
154 assertThat(carVersion.getMajorVersion()).isAtLeast(Build.VERSION.SDK_INT); in testApiVersion_car()
165 CODENAME_REL.equals(Build.VERSION.CODENAME) ? Build.VERSION.SDK_INT in testApiVersion_platform()
/packages/apps/TV/src/com/android/tv/audio/
DAudioManagerHelper.java45 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/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DMeasurementHttpClientTest.java100 Assume.assumeTrue(Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU); in testOpenAndSetupConnectionDefaultTimeoutValues_success()
112 Assume.assumeTrue(Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU); in testSetup_ForComputeFromMappingsFlagTrue_SetsCorrectHeader()
136 Assume.assumeTrue(Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU); in testSetup_ForComputeFromMappingsFlagTrueAndExtServices_SetsCorrectHeader()
160 Assume.assumeTrue(Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU);
184 Assume.assumeTrue(Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU); in testSetup_ForComputeFromMappingsAndVersionAsStartRangeExtS_SetsCorrectHeader()
209 Assume.assumeTrue(Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU);
233 Assume.assumeTrue(Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU); in testSetup_ForComputeFromMappingsAndVersionAsEndRangeExtS_SetsCorrectHeader()
257 Assume.assumeTrue(Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU);
281 Assume.assumeTrue(Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU); in testSetup_ForComputeFromMappingsAndVersionNotInRangeExtS_SetsHeaderAsNotFound()
305 Assume.assumeTrue(Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU);
/packages/modules/AppSearch/framework/java/android/app/appsearch/aidl/
DAppSearchAttributionSource.java89 if (VERSION.SDK_INT >= Build.VERSION_CODES.S && mAttributionSource != null) { in AppSearchAttributionSource()
133 if (VERSION.SDK_INT >= Build.VERSION_CODES.S) { in AppSearchAttributionSource()
138 if (VERSION.SDK_INT >= VERSION_CODES.UPSIDE_DOWN_CAKE) { in AppSearchAttributionSource()
187 if (VERSION.SDK_INT >= Build.VERSION_CODES.S) { in createAttributionSource()
215 if (VERSION.SDK_INT >= Build.VERSION_CODES.S) { in hashCode()
231 if (VERSION.SDK_INT >= Build.VERSION_CODES.S) { in equals()
/packages/modules/AdServices/adservices/clients/java/android/adservices/clients/measurement/
DMeasurementClient.java48 (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) in MeasurementClient()
62 return Build.VERSION.SDK_INT > Build.VERSION_CODES.R in registerSource()
75 return Build.VERSION.SDK_INT > Build.VERSION_CODES.R in registerTrigger()
88 return Build.VERSION.SDK_INT > Build.VERSION_CODES.R in registerWebSource()
102 return Build.VERSION.SDK_INT > Build.VERSION_CODES.R in registerWebTrigger()
115 return Build.VERSION.SDK_INT > Build.VERSION_CODES.R in deleteRegistrations()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/networkstack/
DModuleNetworkStackClient.java19 import static android.os.Build.VERSION.SDK_INT;
47 if (SDK_INT < Build.VERSION_CODES.R) { in getInstance()
50 "ModuleNetworkStackClient is not supported on API " + SDK_INT); in getInstance()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DInputMethodSubtypeCompatUtils.java44 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
66 || Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR1) { in newInputMethodSubtype()
90 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in getLocaleObject()
DBuildCompatUtils.java34 ? Build.VERSION.SDK_INT
35 : Build.VERSION.SDK_INT + 1;
/packages/apps/Messaging/src/android/support/v7/mms/
DUtils.java42 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP; in hasMmsApi()
51 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1; in supportMSim()
60 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT; in hasUserAgentApi()
/packages/services/Car/tests/carservice_unit_test/src/android/car/oem/
DOemFocusUtils.java19 import static android.os.Build.VERSION.SDK_INT;
40 MEDIA_EMPTY_FLAG, SDK_INT); in getAudioFocusEntry()
/packages/apps/DeskClock/src/com/android/deskclock/
DUtils.kt108 get() = Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP
116 val sdkInt = Build.VERSION.SDK_INT
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
161 get() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.P
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DForegroundCtsTestCase.java56 Log.d(TAG, "Not starting activity on device running " + Build.VERSION.SDK_INT); in makeTestProcessForeground()
66 Log.d(TAG, "Not stopping activity on device running " + Build.VERSION.SDK_INT); in shutdownForegroundActivity()
DProtectedSignalsManagerTest.java48 Assume.assumeTrue(Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU); in testAdSelectionManagerCtor_TPlus()
56 Assume.assumeTrue(Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU); in testAdSelectionManagerCtor_SMinus()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionDbHelper.java66 Assert.checkState(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O); in getTranscriptionAndState()
86 Assert.checkState(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O); in getUntranscribedVoicemails()
113 Assert.checkState(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O); in getTranscribingVoicemails()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DDvrRecordingService.java78 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { in startForegroundService()
193 Build.VERSION.SDK_INT >= Build.VERSION_CODES.O in startForegroundInternal()
205 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { in createNotificationChannel()
/packages/apps/Contacts/src/com/android/contacts/list/
DAutoScrollListView.java124 if (android.os.Build.VERSION.SDK_INT == Build.VERSION_CODES.N in onLayout()
125 || android.os.Build.VERSION.SDK_INT == Build.VERSION_CODES.N_MR1) { in onLayout()
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/
DUwbService.java38 .setSkipRangingCapabilitiesCheck(Build.VERSION.SDK_INT <= Build.VERSION_CODES.S_V2) in onCreate()
40 Build.VERSION.SDK_INT <= Build.VERSION_CODES.TIRAMISU) in onCreate()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DBitmapRenderer.java33 boolean USE_HARDWARE_BITMAP = Build.VERSION.SDK_INT >= Build.VERSION_CODES.P;
60 if (Build.VERSION.SDK_INT >= VERSION_CODES.O && source.getConfig() == Config.HARDWARE) { in createBitmap()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmNotifications.kt161 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()
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/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java153 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in DotsPageIndicator()
322 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in clearAnimation()
356 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in drawUnselected()
370 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in drawUnselected()
439 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in getUnselectedPath()
470 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in getUnselectedPath()
566 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in setSelectedPage()

12345678910>>...12