/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/ |
D | ApiLevelUtilTest.java | 38 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/ |
D | InstallDexMetadataTest.java | 32 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/ |
D | StatsdCtsForegroundService.java | 34 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/ |
D | SimpleForegroundService.java | 34 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/ |
D | Utils.java | 19 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/ |
D | InstallDexMetadataHostTest.java | 23 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/ |
D | NetworkWatchlistTest.java | 31 import com.android.compatibility.common.util.ApiLevelUtil; 94 return ApiLevelUtil.getCodename().compareToIgnoreCase("P") >= 0; in isAtLeastP()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | SecurityPatchTest.java | 19 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/ |
D | EventBasicVerification.java | 21 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/ |
D | GenericDeviceInfo.java | 32 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/ |
D | FeatureUtil.java | 90 return ApiLevelUtil.isAtLeast(Build.VERSION_CODES.O) && in isLowRam()
|
D | ApiLevelUtil.java | 26 public class ApiLevelUtil { class
|
/cts/tests/tests/media/src/android/media/cts/ |
D | NativeMediaDrmClearkeyTest.java | 25 import com.android.compatibility.common.util.ApiLevelUtil; 118 if (ApiLevelUtil.isAtMost(android.os.Build.VERSION_CODES.KITKAT)) { in deviceHasMediaDrm()
|
D | DecodeAccuracyTestBase.java | 22 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()
|
D | MediaDrmClearkeyTest.java | 31 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()
|
D | MediaCodecCapabilitiesTest.java | 39 import com.android.compatibility.common.util.ApiLevelUtil; 223 if (ApiLevelUtil.isBefore(18)) { in testAvcHigh40()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | ConnectionTest.java | 21 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/ |
D | AlarmManagerTest.java | 19 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/ |
D | TestMeasurementUtil.java | 19 import com.android.compatibility.common.util.ApiLevelUtil; 86 if (ApiLevelUtil.isBefore(Build.VERSION_CODES.N)) { in canTestRunOnCurrentDevice() 89 ApiLevelUtil.getApiLevel()); in canTestRunOnCurrentDevice()
|