Home
last modified time | relevance | path

Searched refs:getApiLevel (Results 1 – 25 of 72) sorted by relevance

123

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowNotification.java4 import static org.robolectric.RuntimeEnvironment.getApiLevel;
32 return RuntimeEnvironment.getApiLevel() >= Build.VERSION_CODES.N in getContentTitle()
38 return RuntimeEnvironment.getApiLevel() >= Build.VERSION_CODES.N in getContentText()
44 if (getApiLevel() >= N) { in getContentInfo()
56 if (getApiLevel() >= N) { in getBigText()
64 if (getApiLevel() >= N) { in getBigContentTitle()
72 if (getApiLevel() >= N) { in getBigContentText()
80 if (RuntimeEnvironment.getApiLevel() >= Build.VERSION_CODES.N) { in getBigPicture()
90 return RuntimeEnvironment.getApiLevel() >= Build.VERSION_CODES.N in isWhenShown()
101 return RuntimeEnvironment.getApiLevel() >= Build.VERSION_CODES.N in isIndeterminate()
[all …]
DShadowWifiInfo.java28 if (RuntimeEnvironment.getApiLevel() >= LOLLIPOP) { in setInetAddress()
40 if (RuntimeEnvironment.getApiLevel() >= LOLLIPOP) { in setMacAddress()
49 if (RuntimeEnvironment.getApiLevel() <= JELLY_BEAN) { in setSSID()
52 } else if (RuntimeEnvironment.getApiLevel() <= KITKAT) { in setSSID()
72 if (RuntimeEnvironment.getApiLevel() >= LOLLIPOP) { in setBSSID()
81 if (RuntimeEnvironment.getApiLevel() >= LOLLIPOP) { in setRssi()
90 if (RuntimeEnvironment.getApiLevel() >= LOLLIPOP) { in setLinkSpeed()
103 if (RuntimeEnvironment.getApiLevel() >= LOLLIPOP) { in setNetworkId()
DShadowLocaleData.java8 import static org.robolectric.RuntimeEnvironment.getApiLevel;
44 if (getApiLevel() >= JELLY_BEAN_MR1) { in setEnUsLocaleData()
69 if (getApiLevel() >= M) { in setEnUsLocaleData()
72 } else if (getApiLevel() >= JELLY_BEAN_MR2) { in setEnUsLocaleData()
87 if (getApiLevel() >= LOLLIPOP_MR1) { in setEnUsLocaleData()
95 if (getApiLevel() >= android.os.Build.VERSION_CODES.P) { in setEnUsLocaleData()
105 if (getApiLevel() >= LOLLIPOP) { in setEnUsLocaleData()
DShadowBroadcastPendingResult.java5 import static org.robolectric.RuntimeEnvironment.getApiLevel;
24 if (getApiLevel() <= JELLY_BEAN) { in create()
35 } else if (getApiLevel() <= LOLLIPOP_MR1) { in create()
67 if (getApiLevel() <= JELLY_BEAN) { in createSticky()
85 } else if (getApiLevel() <= LOLLIPOP_MR1) { in createSticky()
DShadowServiceManager.java129 if (RuntimeEnvironment.getApiLevel() >= JELLY_BEAN_MR1) {
132 if (RuntimeEnvironment.getApiLevel() >= JELLY_BEAN_MR2) {
137 if (RuntimeEnvironment.getApiLevel() >= KITKAT) {
143 if (RuntimeEnvironment.getApiLevel() >= LOLLIPOP) {
166 if (RuntimeEnvironment.getApiLevel() >= M) {
172 if (RuntimeEnvironment.getApiLevel() >= N_MR1) {
177 if (RuntimeEnvironment.getApiLevel() >= O) {
184 if (RuntimeEnvironment.getApiLevel() >= P) {
190 if (RuntimeEnvironment.getApiLevel() >= Q) {
DShadowClipboardManager.java5 import static org.robolectric.RuntimeEnvironment.getApiLevel;
28 if (getApiLevel() >= N) { in setPrimaryClip()
32 } else if (getApiLevel() >= JELLY_BEAN_MR2) { in setPrimaryClip()
DShadowRenderNodeAnimator.java5 import static org.robolectric.RuntimeEnvironment.getApiLevel;
51 if (getApiLevel() <= LOLLIPOP) { in doStart()
60 if (getApiLevel() <= LOLLIPOP) { in cancel()
DShadowEnvironment.java184 if (RuntimeEnvironment.getApiLevel() >= JELLY_BEAN_MR1 in addExternalDir()
185 && RuntimeEnvironment.getApiLevel() < KITKAT) { in addExternalDir()
192 } else if (RuntimeEnvironment.getApiLevel() >= KITKAT && RuntimeEnvironment.getApiLevel() < M) { in addExternalDir()
DShadowInputMethodManager.java132 if (RuntimeEnvironment.getApiLevel() <= JELLY_BEAN_MR1) { in peekInstance()
137 } else if (RuntimeEnvironment.getApiLevel() <= LOLLIPOP_MR1) { in peekInstance()
146 RuntimeEnvironment.getApiLevel() <= JELLY_BEAN_MR1 ? "mInstance" : "sInstance"; in reset()
DShadowAccessibilityNodeInfo.java9 import static org.robolectric.RuntimeEnvironment.getApiLevel;
298 if (getApiLevel() >= LOLLIPOP_MR1) { in recycle()
866 if (getApiLevel() >= LOLLIPOP) { in addAction()
922 if (getApiLevel() >= LOLLIPOP) { in getActions()
1107 if (getApiLevel() >= LOLLIPOP) { in getClone()
1128 if (getApiLevel() >= JELLY_BEAN_MR2) { in getClone()
1131 if (getApiLevel() >= KITKAT) { in getClone()
1138 if (getApiLevel() >= LOLLIPOP) { in getClone()
1142 if (getApiLevel() >= LOLLIPOP_MR1) { in getClone()
1146 if ((getApiLevel() >= LOLLIPOP) && (accessibilityWindowInfo != null)) { in getClone()
[all …]
DShadowSettings.java146 && RuntimeEnvironment.getApiLevel() >= LOLLIPOP in putInt()
147 && RuntimeEnvironment.getApiLevel() <= P) { in putInt()
167 && RuntimeEnvironment.getApiLevel() >= LOLLIPOP in getInt()
168 && RuntimeEnvironment.getApiLevel() <= P) { in getInt()
187 && RuntimeEnvironment.getApiLevel() >= LOLLIPOP in getInt()
188 && RuntimeEnvironment.getApiLevel() <= P) { in getInt()
DShadowUsbManager.java148 if (RuntimeEnvironment.getApiLevel() >= Build.VERSION_CODES.Q) { in getPorts()
164 if (RuntimeEnvironment.getApiLevel() >= Build.VERSION_CODES.Q) { in addPort()
231 if (RuntimeEnvironment.getApiLevel() <= P) { in createUsbPortStatus()
259 if (RuntimeEnvironment.getApiLevel() <= P) { in createUsbPort()
DResourceModeShadowPicker.java43 if (RuntimeEnvironment.getApiLevel() >= Build.VERSION_CODES.Q) { in pickShadowClass()
47 if (RuntimeEnvironment.getApiLevel() >= Build.VERSION_CODES.P) { in pickShadowClass()
DShadowSystemServiceRegistry.java24 if (RuntimeEnvironment.getApiLevel() >= Build.VERSION_CODES.N) { in reset()
27 } else if (RuntimeEnvironment.getApiLevel() == Build.VERSION_CODES.M) { in reset()
DShadowContextImpl.java279 RuntimeEnvironment.getApiLevel() >= N ? "sSharedPrefsCache" : "sSharedPrefs"; in reset()
280 Object prefsDefaultValue = RuntimeEnvironment.getApiLevel() >= KITKAT ? null : new HashMap<>(); in reset()
286 if (RuntimeEnvironment.getApiLevel() <= VERSION_CODES.LOLLIPOP_MR1) { in reset()
300 if (RuntimeEnvironment.getApiLevel() >= KITKAT) { in reset()
DShadowMediaRouter.java33 if (RuntimeEnvironment.getApiLevel() <= JELLY_BEAN_MR1) { in addBluetoothRoute()
88 RuntimeEnvironment.getApiLevel() <= JELLY_BEAN in callUpdateAudioRoutes()
DShadowWindow.java4 import static org.robolectric.RuntimeEnvironment.getApiLevel;
28 String className = getApiLevel() >= M in create()
DShadowPackageParser.java26 if (RuntimeEnvironment.getApiLevel() >= Build.VERSION_CODES.O) { in __constructor__()
38 if (RuntimeEnvironment.getApiLevel() >= Build.VERSION_CODES.LOLLIPOP) { in callParsePackage()
DShadowBitmapRegionDecoder.java4 import static org.robolectric.RuntimeEnvironment.getApiLevel;
77 if (getApiLevel() >= LOLLIPOP) { in newInstance()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/internal/
DDisplayConfig.java269 if (RuntimeEnvironment.getApiLevel() >= Q) { in DisplayConfig()
273 if (RuntimeEnvironment.getApiLevel() >= LOLLIPOP_MR1) { in DisplayConfig()
284 if (RuntimeEnvironment.getApiLevel() >= JELLY_BEAN_MR2) { in DisplayConfig()
291 if (RuntimeEnvironment.getApiLevel() >= M) { in DisplayConfig()
296 if (RuntimeEnvironment.getApiLevel() >= N_MR1) { in DisplayConfig()
301 if (RuntimeEnvironment.getApiLevel() >= N) { in DisplayConfig()
307 if (RuntimeEnvironment.getApiLevel() >= LOLLIPOP) { in DisplayConfig()
312 if (RuntimeEnvironment.getApiLevel() >= KITKAT) { in DisplayConfig()
316 if (RuntimeEnvironment.getApiLevel() >= O) { in DisplayConfig()
410 if (RuntimeEnvironment.getApiLevel() >= Q) { in copyTo()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DBootstrapTest.java71 optsForO = RuntimeEnvironment.getApiLevel() >= O in setUp()
169 if (RuntimeEnvironment.getApiLevel() > JELLY_BEAN) { in applyQualifiers_shouldAddDefaults()
182 if (RuntimeEnvironment.getApiLevel() >= O) { in applyQualifiers_shouldAddDefaults()
192 String altOptsForO = RuntimeEnvironment.getApiLevel() >= O in applyQualifiers_shouldHonorSpecifiedQualifiers()
205 if (RuntimeEnvironment.getApiLevel() > JELLY_BEAN) { in applyQualifiers_shouldHonorSpecifiedQualifiers()
219 if (RuntimeEnvironment.getApiLevel() > JELLY_BEAN) { in applyQualifiers_shouldHonorSpecifiedQualifiers()
237 if (RuntimeEnvironment.getApiLevel() > JELLY_BEAN) { in applyQualifiers_shouldHonorSpecifiedQualifiers()
253 RuntimeEnvironment.getApiLevel(), configuration, displayMetrics); in applyQualifiers_longShouldMakeScreenTaller()
264 RuntimeEnvironment.getApiLevel(), configuration, displayMetrics); in whenScreenRationGreatherThan175Percent_applyQualifiers_ShouldSetLong()
275 RuntimeEnvironment.getApiLevel(), configuration, displayMetrics); in applyQualifiers_shouldRejectUnknownQualifiers()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/
DActivityController.java78 if (RuntimeEnvironment.getApiLevel() <= O_MR1) { in restart()
92 if (RuntimeEnvironment.getApiLevel() <= O_MR1) { in start()
112 if (RuntimeEnvironment.getApiLevel() <= O_MR1) { in resume()
189 if (RuntimeEnvironment.getApiLevel() <= M) { in stop()
191 } else if (RuntimeEnvironment.getApiLevel() <= O_MR1) { in stop()
302 if (RuntimeEnvironment.getApiLevel() <= M) { in configurationChange()
304 } else if (RuntimeEnvironment.getApiLevel() <= O_MR1) { in configurationChange()
354 if (RuntimeEnvironment.getApiLevel() <= O_MR1) { in configurationChange()
374 if (RuntimeEnvironment.getApiLevel() <= O_MR1) { in configurationChange()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DSdkPicker.java64 int appMinSdk = Math.max(usesSdk.getMinSdkVersion(), minSupportedSdk.getApiLevel()); in configuredSdks()
65 int appTargetSdk = Math.max(usesSdk.getTargetSdkVersion(), minSupportedSdk.getApiLevel()); in configuredSdks()
68 appMaxSdk = maxSupportedSdk.getApiLevel(); in configuredSdks()
132 int apiLevel = supportedSdk.getApiLevel(); in sdkRange()
133 if (apiLevel >= minSdk && supportedSdk.getApiLevel() <= maxSdk) { in sdkRange()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DParallelUniverse.java77 ReflectionHelpers.setStaticField(RuntimeEnvironment.class, "apiLevel", sdkConfig.getApiLevel()); in setSdkConfig()
88 ReflectionHelpers.setStaticField(RuntimeEnvironment.class, "apiLevel", sdkConfig.getApiLevel()); in setUpApplicationState()
108 Bootstrap.applyQualifiers(config.qualifiers(), sdkConfig.getApiLevel(), configuration, in setUpApplicationState()
111 Locale locale = sdkConfig.getApiLevel() >= VERSION_CODES.N in setUpApplicationState()
157 if (sdkConfig.getApiLevel() < P && applicationInfo.processName == null) { in setUpApplicationState()
338 if (RuntimeEnvironment.getApiLevel() <= VERSION_CODES.JELLY_BEAN_MR1) { in createInstrumentation()
401 if (sdkConfig.getApiLevel() <= VERSION_CODES.KITKAT) { in setUpPackageStorage()
416 if (RuntimeEnvironment.getApiLevel() >= Build.VERSION_CODES.N) { in setUpPackageStorage()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/
DRuntimeEnvironment.java130 Bootstrap.applyQualifiers(newQualifiers, getApiLevel(), configuration, displayMetrics); in setQualifiers()
140 public static int getApiLevel() { in getApiLevel() method in RuntimeEnvironment
146 if (getApiLevel() >= LOLLIPOP) { in castNativePtr()

123