Home
last modified time | relevance | path

Searched refs:ApiLevelUtil (Results 1 – 19 of 19) sorted by relevance

/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DApiLevelUtilTest.java38 assertFalse(ApiLevelUtil.isBefore(version - 1)); in testComparisonByInt()
39 assertFalse(ApiLevelUtil.isBefore(version)); in testComparisonByInt()
40 assertTrue(ApiLevelUtil.isBefore(version + 1)); in testComparisonByInt()
42 assertTrue(ApiLevelUtil.isAfter(version - 1)); in testComparisonByInt()
43 assertFalse(ApiLevelUtil.isAfter(version)); in testComparisonByInt()
44 assertFalse(ApiLevelUtil.isAfter(version + 1)); in testComparisonByInt()
46 assertTrue(ApiLevelUtil.isAtLeast(version - 1)); in testComparisonByInt()
47 assertTrue(ApiLevelUtil.isAtLeast(version)); in testComparisonByInt()
48 assertFalse(ApiLevelUtil.isAtLeast(version + 1)); in testComparisonByInt()
50 assertFalse(ApiLevelUtil.isAtMost(version - 1)); in testComparisonByInt()
[all …]
/cts/hostsidetests/dexmetadata/app/src/com/android/cts/dexmetadata/
DInstallDexMetadataTest.java32 import com.android.compatibility.common.util.ApiLevelUtil;
67 mShouldRunTest = (ApiLevelUtil.isAtLeast(VERSION_CODES.P) in setUp()
68 || ApiLevelUtil.codenameEquals("P")); in setUp()
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdCtsForegroundService.java34 import com.android.compatibility.common.util.ApiLevelUtil;
83 if (ApiLevelUtil.isBefore(Build.VERSION_CODES.O_MR1)) { in onCreate()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DSimpleForegroundService.java34 import com.android.compatibility.common.util.ApiLevelUtil;
79 if (ApiLevelUtil.isBefore(Build.VERSION_CODES.O_MR1)) { in onCreate()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/
DUtils.java19 import com.android.compatibility.common.util.ApiLevelUtil;
107 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.ICE_CREAM_SANDWICH)) { in getDuration()
/cts/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/
DInstallDexMetadataHostTest.java23 import com.android.compatibility.common.util.ApiLevelUtil;
76 mShouldRunTests = ApiLevelUtil.isAtLeast(getDevice(), 28) in setUp()
77 || ApiLevelUtil.isAtLeast(getDevice(), "P") in setUp()
78 || ApiLevelUtil.codenameEquals(getDevice(), "P"); in setUp()
/cts/tests/tests/net/src/android/net/cts/
DNetworkWatchlistTest.java31 import com.android.compatibility.common.util.ApiLevelUtil;
94 return ApiLevelUtil.getCodename().compareToIgnoreCase("P") >= 0; in isAtLeastP()
/cts/tests/tests/os/src/android/os/cts/
DSecurityPatchTest.java19 import com.android.compatibility.common.util.ApiLevelUtil;
45 mSkipTests = (ApiLevelUtil.isBefore(Build.VERSION_CODES.M)); in setUp()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DEventBasicVerification.java21 import com.android.compatibility.common.util.ApiLevelUtil;
71 if (ApiLevelUtil.isAfter(Build.VERSION_CODES.M)) { in EventBasicVerification()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DGenericDeviceInfo.java32 import com.android.compatibility.common.util.ApiLevelUtil;
77 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.O)) { in collectDeviceInfo()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DFeatureUtil.java90 return ApiLevelUtil.isAtLeast(Build.VERSION_CODES.O) && in isLowRam()
DApiLevelUtil.java26 public class ApiLevelUtil { class
/cts/tests/tests/media/src/android/media/cts/
DNativeMediaDrmClearkeyTest.java25 import com.android.compatibility.common.util.ApiLevelUtil;
118 if (ApiLevelUtil.isAtMost(android.os.Build.VERSION_CODES.KITKAT)) { in deviceHasMediaDrm()
DDecodeAccuracyTestBase.java22 import com.android.compatibility.common.util.ApiLevelUtil;
307 if (ApiLevelUtil.isBefore(Build.VERSION_CODES.LOLLIPOP)) { in queueDecoderInputBuffer()
340 if (info.size <= 0 && ApiLevelUtil.isAtLeast(Build.VERSION_CODES.JELLY_BEAN_MR2)) { in dequeueDecoderOutputBuffer()
345 if (ApiLevelUtil.isBefore(Build.VERSION_CODES.LOLLIPOP)) { in dequeueDecoderOutputBuffer()
392 } else if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.LOLLIPOP)) { in createDecoder()
485 if (ApiLevelUtil.isBefore(Build.VERSION_CODES.KITKAT)) { in configureVideoFormat()
DMediaDrmClearkeyTest.java31 import com.android.compatibility.common.util.ApiLevelUtil;
130 if (ApiLevelUtil.isAtMost(android.os.Build.VERSION_CODES.KITKAT)) { in deviceHasMediaDrm()
323 if (ApiLevelUtil.isBefore(android.os.Build.VERSION_CODES.JELLY_BEAN)) { in isResolutionSupported()
DMediaCodecCapabilitiesTest.java39 import com.android.compatibility.common.util.ApiLevelUtil;
223 if (ApiLevelUtil.isBefore(18)) { in testAvcHigh40()
/cts/tests/tests/telecom/src/android/telecom/cts/
DConnectionTest.java21 import com.android.compatibility.common.util.ApiLevelUtil;
93 if (ApiLevelUtil.isBefore(Build.VERSION_CODES.LOLLIPOP_MR1)) { in testFailedState()
112 if (ApiLevelUtil.isBefore(Build.VERSION_CODES.LOLLIPOP_MR1)) { in testCanceledState()
/cts/tests/app/src/android/app/cts/
DAlarmManagerTest.java19 import com.android.compatibility.common.util.ApiLevelUtil;
293 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.LOLLIPOP)) { in testSetAlarmClock()
/cts/tests/tests/location/src/android/location/cts/
DTestMeasurementUtil.java19 import com.android.compatibility.common.util.ApiLevelUtil;
86 if (ApiLevelUtil.isBefore(Build.VERSION_CODES.N)) { in canTestRunOnCurrentDevice()
89 ApiLevelUtil.getApiLevel()); in canTestRunOnCurrentDevice()