Home
last modified time | relevance | path

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

1234567

/frameworks/libs/modules-utils/java/com/android/modules/utils/build/
DSdkLevel.java20 import static android.os.Build.VERSION.SDK_INT;
39 return SDK_INT >= 30; in isAtLeastR()
45 return SDK_INT >= 31; in isAtLeastS()
51 return SDK_INT >= 32; in isAtLeastSv2()
57 return SDK_INT >= 33; in isAtLeastT()
DUnboundedSdkLevel.java61 Build.VERSION.SDK_INT,
65 : PREVIOUS_CODENAMES.get(Build.VERSION.SDK_INT));
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DSystemBarHelperTest.java69 if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB) { in testAddVisibilityFlagView()
80 if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB) { in testRemoveVisibilityFlagView()
91 if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB) { in testAddVisibilityFlagWindow()
103 if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB) { in testRemoveVisibilityFlagWindow()
115 if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in testHideSystemBarsWindow()
136 if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in testShowSystemBarsWindow()
168 if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in testHideSystemBarsNoInfiniteLoop()
177 if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in testHideSystemBarsDialog()
184 if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in testHideSystemBarsDialog()
197 if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB) { in testSetBackButtonVisibleTrue()
[all …]
DDrawableLayoutDirectionHelperTest.java56 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { in testCreateRelativeInsetDrawableLtr()
79 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { in testCreateRelativeInsetDrawableRtl()
97 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { in testCreateRelativeInsetDrawableViewRtl()
105 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { in testCreateRelativeInsetDrawableViewRtl()
116 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { in testCreateRelativeInsetDrawableContextRtl()
124 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { in testCreateRelativeInsetDrawableContextRtl()
132 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { in testCreateRelativeInsetDrawableContextRtl()
DGlifLayoutTest.java88 if (VERSION.SDK_INT >= VERSION_CODES.M) { in testGlifTheme()
100 if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1) { in testGlifV2Theme()
108 if (VERSION.SDK_INT >= VERSION_CODES.N) { in testGlifV2Theme()
125 if (VERSION.SDK_INT >= VERSION_CODES.M) { in testGlifV2Theme()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DSystemBarHelper.java75 if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in hideSystemBars()
98 if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in hideSystemBars()
124 if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in showSystemBars()
144 if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB) { in addVisibilityFlag()
152 if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB) { in addVisibilityFlag()
164 if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB) { in removeVisibilityFlag()
175 if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB) { in removeVisibilityFlag()
194 if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB) { in setBackButtonVisible()
219 if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in setImeInsetView()
DDrawableLayoutDirectionHelper.java37 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 in createRelativeInsetDrawable()
56 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { in createRelativeInsetDrawable()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DInteractionJankMonitorWrapper.java88 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return; in begin()
100 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return; in begin()
115 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return; in begin()
130 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return; in end()
138 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return; in cancel()
/frameworks/base/packages/SettingsLib/Utils/src/com/android/settingslib/utils/
DBuildCompatUtils.java37 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.S; in isAtLeastS()
47 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.S_V2; in isAtLeastSV2()
57 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU; in isAtLeastT()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIllustration.java142 if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in onMeasure()
191 if (VERSION.SDK_INT > VERSION_CODES.JELLY_BEAN_MR1 in onDraw()
202 if (VERSION.SDK_INT > VERSION_CODES.JELLY_BEAN_MR1 in onDraw()
217 if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) { in shouldMirrorDrawable()
219 } else if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1) { in shouldMirrorDrawable()
DStatusBarBackgroundLayout.java74 if (Build.VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in onAttachedToWindow()
84 if (Build.VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in onDraw()
97 if (Build.VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in setStatusBarBackground()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DUtil.java13 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { in isTouchExplorationEnabled()
32 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in announceForAccessibility()
61 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { in announceForAccessibility()
DTrace.java34 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { in beginSection()
46 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { in endSection()
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsHelperRestoreTest.java76 Build.VERSION.SDK_INT); in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
99 Build.VERSION.SDK_INT); in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue()
142 Build.VERSION.SDK_INT); in testRestoreAccessibilityDisplayMagnificationNavbarEnabled_alreadyConfigured_doesNotRestoreValue()
164 Build.VERSION.SDK_INT); in testRestoreAccessibilityDisplayMagnificationNavbarEnabled_notAlreadyConfigured_restoresValue()
/frameworks/opt/bitmap/src/com/android/bitmap/util/
DTrace.java34 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { in beginSection()
46 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { in endSection()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiEnterpriseRestrictionUtilsTest.java48 static final String SDK_INT = "SDK_INT"; field in WifiEnterpriseRestrictionUtilsTest
62 ReflectionHelpers.setStaticField(Build.VERSION.class, SDK_INT, VERSION_CODES_T); in setUp()
123 ReflectionHelpers.setStaticField(Build.VERSION.class, SDK_INT, VERSION_CODES_S); in hasUserRestrictionFromT_setSDKForS_shouldReturnTrue()
131 ReflectionHelpers.setStaticField(Build.VERSION.class, SDK_INT, VERSION_CODES_T); in hasUserRestrictionFromT_setSDKForT_shouldReturnHasUserRestriction()
/frameworks/opt/chips/src/com/android/ex/chips/
DChipsUtil.java45 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH; in supportsChipsUi()
55 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.M; in isRunningMOrLater()
/frameworks/base/packages/SettingsLib/SettingsSpinner/src/com/android/settingslib/widget/
DSettingsSpinnerAdapter.java66 return (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) in getDefaultResource()
70 return (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) in getDropdownResource()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDex.java100 if (Build.VERSION.SDK_INT < MIN_SDK_VERSION) { in install()
101 throw new RuntimeException("MultiDex installation failed. SDK " + Build.VERSION.SDK_INT in install()
150 if (Build.VERSION.SDK_INT < MIN_SDK_VERSION) { in installInstrumentation()
151 throw new RuntimeException("MultiDex installation failed. SDK " + Build.VERSION.SDK_INT in installInstrumentation()
219 if (Build.VERSION.SDK_INT > MAX_SUPPORTED_SDK_VERSION) { in doInstallation()
221 + Build.VERSION.SDK_INT + ": SDK version higher than " in doInstallation()
298 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { in getDexClassloader()
370 if (Build.VERSION.SDK_INT >= 19) { in installSecondaryDexes()
372 } else if (Build.VERSION.SDK_INT >= 14) { in installSecondaryDexes()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
DProgressBarMixinTest.java108 if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in testSetColorBeforeSetShown()
125 if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in testSetColorAfterSetShown()
143 if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in testDeterminateProgressBarNullTint()
/frameworks/libs/systemui/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()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DGlifV3StyleTest.java44 if (VERSION.SDK_INT >= VERSION_CODES.O_MR1) { in activityWithGlifV3Theme_shouldUseLightNavBarOnV27OrAbove()
48 } else if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in activityWithGlifV3Theme_shouldUseLightNavBarOnV27OrAbove()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
DProgressBarMixin.java102 if (Build.VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { in setColor()
106 if (Build.VERSION.SDK_INT >= VERSION_CODES.M || color != null) { in setColor()
/frameworks/ex/camera2/extensions/sample/src/java/androidx/camera/extensions/impl/
DNightImageCaptureExtenderImpl.java78 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { in isExtensionAvailableOriginal()
113 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { in getCaptureProcessor()
136 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { in getCaptureProcessor()
DAutoImageCaptureExtenderImpl.java78 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { in isExtensionAvailableOriginal()
113 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { in getCaptureProcessor()
136 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { in getCaptureProcessor()

1234567