/frameworks/libs/modules-utils/java/com/android/modules/utils/build/ |
D | SdkLevel.java | 20 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() 63 return SDK_INT >= 34 || in isAtLeastU() 64 (SDK_INT == 33 && isAtLeastPreReleaseCodename("UpsideDownCake")); in isAtLeastU() 70 return SDK_INT >= 35 || in isAtLeastV() 71 (SDK_INT == 34 && isAtLeastPreReleaseCodename("VanillaIceCream")); in isAtLeastV()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | SystemBarHelperTest.java | 69 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 …]
|
D | DrawableLayoutDirectionHelperTest.java | 56 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()
|
D | GlifLayoutTest.java | 88 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/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | InteractionJankMonitorWrapper.java | 35 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return; in begin() 47 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return; in begin() 62 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return; in begin() 77 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return; in end() 85 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return; in cancel() 91 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return false; in isInstrumenting()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | SystemBarHelper.java | 75 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()
|
D | DrawableLayoutDirectionHelper.java | 37 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/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsHelperRestoreTest.java | 91 Build.VERSION.SDK_INT); in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue() 114 Build.VERSION.SDK_INT); in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue() 157 Build.VERSION.SDK_INT); in testRestoreAccessibilityDisplayMagnificationNavbarEnabled_alreadyConfigured_doesNotRestoreValue() 179 Build.VERSION.SDK_INT); in testRestoreAccessibilityDisplayMagnificationNavbarEnabled_notAlreadyConfigured_restoresValue() 203 Build.VERSION.SDK_INT); in restoreAccessibilityQsTargets_broadcastSent() 210 .isEqualTo(Build.VERSION.SDK_INT); in restoreAccessibilityQsTargets_broadcastSent() 231 Build.VERSION.SDK_INT); in restoreAccessibilityShortcutTargetService_broadcastSent() 238 .isEqualTo(Build.VERSION.SDK_INT); in restoreAccessibilityShortcutTargetService_broadcastSent()
|
/frameworks/base/packages/SettingsLib/Utils/src/com/android/settingslib/utils/ |
D | BuildCompatUtils.java | 36 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.S; in isAtLeastS() 46 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.S_V2; in isAtLeastSV2() 56 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU; in isAtLeastT()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
D | Util.java | 13 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()
|
D | Trace.java | 34 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/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | Illustration.java | 142 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()
|
D | StatusBarBackgroundLayout.java | 74 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/bitmap/src/com/android/bitmap/util/ |
D | Trace.java | 34 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/ |
D | WifiEnterpriseRestrictionUtilsTest.java | 48 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/base/packages/SettingsLib/DataStore/tests/src/com/android/settingslib/datastore/ |
D | BackupRestoreContextTest.kt | 33 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) return in backupContext_quota() 40 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) return in backupContext_transportFlags()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | MediaDevice.java | 248 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE && mItem != null in getSelectionBehavior() 258 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE in hasSubtext() 270 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE && mItem != null in getSubtext() 280 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE && mItem != null in getSubtextString() 290 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE in hasOngoingSession() 300 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE in isHostForOngoingSession() 310 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE in isSuggestedDevice()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | ChipsUtil.java | 45 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/MainSwitchPreference/src/com/android/settingslib/widget/ |
D | MainSwitchBar.java | 76 if (Build.VERSION.SDK_INT < VERSION_CODES.S) { in MainSwitchBar() 78 if (Build.VERSION.SDK_INT >= VERSION_CODES.M) { in MainSwitchBar() 159 if (mTextView != null && (Build.VERSION.SDK_INT < VERSION_CODES.S)) { in setIconSpaceReserved() 218 if (Build.VERSION.SDK_INT >= VERSION_CODES.S) { in setEnabled() 233 if (Build.VERSION.SDK_INT < VERSION_CODES.S) { in setBackground()
|
/frameworks/base/packages/SettingsLib/SettingsSpinner/src/com/android/settingslib/widget/ |
D | SettingsSpinnerAdapter.java | 66 return (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) in getDefaultResource() 70 return (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) in getDropdownResource()
|
/frameworks/base/packages/SettingsLib/CollapsingToolbarBaseActivity/src/com/android/settingslib/collapsingtoolbar/ |
D | CollapsingToolbarDelegate.java | 104 if (mCollapsingToolbarLayout != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { in onCreateView() 106 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { in onCreateView() 120 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { in onCreateView() 218 if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.TIRAMISU) { in autoSetCollapsingToolbarLayoutScrolling()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
D | ProgressBarMixinTest.java | 108 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/multidex/library/src/androidx/multidex/ |
D | MultiDex.java | 100 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/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | BitmapRenderer.java | 33 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/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/ |
D | ImeOpenCloseStressTest.java | 260 assumeTrue("Is at least Android R", Build.VERSION.SDK_INT >= Build.VERSION_CODES.R); in testShowHideWithWindowInsetsController_waitingVisibilityChange() 280 assumeTrue("Is at least Android R", Build.VERSION.SDK_INT >= Build.VERSION_CODES.R); in testShowHideWithWindowInsetsController_waitingAnimationEnd() 306 assumeTrue("Is at least Android R", Build.VERSION.SDK_INT >= Build.VERSION_CODES.R); in testShowHideWithWindowInsetsController_intervalAfterHide() 330 assumeTrue("Is at least Android R", Build.VERSION.SDK_INT >= Build.VERSION_CODES.R); in testShowHideWithWindowInsetsController_inSameFrame() 368 assumeTrue("Is at least Android R", Build.VERSION.SDK_INT >= Build.VERSION_CODES.R); in testShowWithWindowInsetsController_onCreate_requestFocus() 383 assumeTrue("Is at least Android R", Build.VERSION.SDK_INT >= Build.VERSION_CODES.R); in testShowWithWindowInsetsController_onCreate_notRequestFocus() 398 assumeTrue("Is at least Android R", Build.VERSION.SDK_INT >= Build.VERSION_CODES.R); in testShowWithWindowInsetsController_afterStart_notRequestFocus() 422 assumeTrue("Is at least Android R", Build.VERSION.SDK_INT >= Build.VERSION_CODES.R); in testHideWithWindowInsetsController_onCreate_requestFocus()
|