Home
last modified time | relevance | path

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

12345

/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DApiLevelUtilTest.java39 assertFalse(ApiLevelUtil.isBefore(version - 1)); in testComparisonByInt()
40 assertFalse(ApiLevelUtil.isBefore(version)); in testComparisonByInt()
41 assertTrue(ApiLevelUtil.isBefore(version + 1)); in testComparisonByInt()
43 assertTrue(ApiLevelUtil.isAfter(version - 1)); in testComparisonByInt()
44 assertFalse(ApiLevelUtil.isAfter(version)); in testComparisonByInt()
45 assertFalse(ApiLevelUtil.isAfter(version + 1)); in testComparisonByInt()
47 assertTrue(ApiLevelUtil.isAtLeast(version - 1)); in testComparisonByInt()
48 assertTrue(ApiLevelUtil.isAtLeast(version)); in testComparisonByInt()
49 assertFalse(ApiLevelUtil.isAtLeast(version + 1)); in testComparisonByInt()
51 assertFalse(ApiLevelUtil.isAtMost(version - 1)); in testComparisonByInt()
[all …]
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DMediaDeviceInfo.java28 import com.android.compatibility.common.util.ApiLevelUtil;
47 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.Q)) { in collectDeviceInfo()
51 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.Q)) { in collectDeviceInfo()
143 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.Q)) { in collectDeviceInfo()
161 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S)) { in collectDeviceInfo()
DGenericDeviceInfo.java32 import com.android.compatibility.common.util.ApiLevelUtil;
78 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.Q)) { in collectDeviceInfo()
81 } else if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.O)) { in collectDeviceInfo()
86 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.R)) { in collectDeviceInfo()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiBuildCompat.java26 import com.android.compatibility.common.util.ApiLevelUtil;
75 return ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S) in isPlatformOrWifiModuleAtLeastS()
/cts/tests/tests/os/UffdGc/src/android/os/cts/uffdgc/
DUserfaultfdTest.java26 import com.android.compatibility.common.util.ApiLevelUtil;
45 && ApiLevelUtil.isAtMost(VERSION_CODES.S_V2)); in setUp()
/cts/tests/sensor/src/android/hardware/cts/
DSensorParameterRangeTest.java28 import com.android.compatibility.common.util.ApiLevelUtil;
100 double hifiMaxFrequency = ApiLevelUtil.isAtLeast(Build.VERSION_CODES.N) ? in testAccelerometerRange()
119 double hifiMaxFrequency = ApiLevelUtil.isAtLeast(Build.VERSION_CODES.N) ? in testGyroscopeRange()
124 ApiLevelUtil.isAtLeast(Build.VERSION_CODES.Q) ? in testGyroscopeRange()
/cts/hostsidetests/dexmetadata/app/src/com/android/cts/dexmetadata/
DInstallDexMetadataTest.java33 import com.android.compatibility.common.util.ApiLevelUtil;
68 mShouldRunTest = (ApiLevelUtil.isAtLeast(VERSION_CODES.P) in setUp()
69 || ApiLevelUtil.codenameEquals("P")); in setUp()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DLeL2capSocketTest.java36 import com.android.compatibility.common.util.ApiLevelUtil;
52 assumeTrue(ApiLevelUtil.isAtLeast(Build.VERSION_CODES.TIRAMISU)); in setUp()
DBluetoothHapPresetInfoTest.java34 import com.android.compatibility.common.util.ApiLevelUtil;
57 assumeTrue(ApiLevelUtil.isAtLeast(Build.VERSION_CODES.TIRAMISU)); in setUp()
DDistanceMeasurementSessionTest.java37 import com.android.compatibility.common.util.ApiLevelUtil;
65 Assume.assumeTrue(ApiLevelUtil.isAtLeast(Build.VERSION_CODES.TIRAMISU)); in setUp()
DDistanceMeasurementMethodTest.java36 import com.android.compatibility.common.util.ApiLevelUtil;
55 Assume.assumeTrue(ApiLevelUtil.isAtLeast(Build.VERSION_CODES.TIRAMISU)); in setUp()
DBluetoothLeAudioContentMetadataTest.java37 import com.android.compatibility.common.util.ApiLevelUtil;
72 Assume.assumeTrue(ApiLevelUtil.isAtLeast(Build.VERSION_CODES.TIRAMISU)); in setUp()
DBluetoothLeAudioCodecConfigMetadataTest.java37 import com.android.compatibility.common.util.ApiLevelUtil;
75 Assume.assumeTrue(ApiLevelUtil.isAtLeast(Build.VERSION_CODES.TIRAMISU)); in setUp()
DBluetoothLeBroadcastChannelTest.java37 import com.android.compatibility.common.util.ApiLevelUtil;
64 Assume.assumeTrue(ApiLevelUtil.isAtLeast(Build.VERSION_CODES.TIRAMISU)); in setUp()
DDistanceMeasurementManagerTest.java45 import com.android.compatibility.common.util.ApiLevelUtil;
82 Assume.assumeTrue(ApiLevelUtil.isAtLeast(Build.VERSION_CODES.TIRAMISU)); in setUp()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DStatsdCtsForegroundService.java34 import com.android.compatibility.common.util.ApiLevelUtil;
83 if (ApiLevelUtil.isBefore(Build.VERSION_CODES.O_MR1)) { in onCreate()
/cts/tests/tests/os/src/android/os/cts/
DSecurityPatchTest.java17 import com.android.compatibility.common.util.ApiLevelUtil;
38 mSkipTests = (ApiLevelUtil.isBefore(Build.VERSION_CODES.M)); in setUp()
/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaDrmExtractorTest.java31 import com.android.compatibility.common.util.ApiLevelUtil;
44 private static boolean mIsAtLeastR = ApiLevelUtil.isAtLeast(Build.VERSION_CODES.R);
/cts/tests/tests/car/src/android/car/cts/
DCarInputManagerSystemTest.java41 import com.android.compatibility.common.util.ApiLevelUtil;
82 ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S)); in testCarInputService_injectKeyEvent()
/cts/tests/tests/wifi/src/android/net/wifi/p2p/cts/
DWifiP2pConfigTest.java36 import com.android.compatibility.common.util.ApiLevelUtil;
56 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.TIRAMISU)) { in testWifiP2pConfigCopyConstructor()
65 ApiLevelUtil.isAtLeast(Build.VERSION_CODES.TIRAMISU) in testWifiP2pConfigCopyConstructor()
/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/tests/tests/media/misc/src/android/media/misc/cts/
DResourceManagerMultiTest.java37 import com.android.compatibility.common.util.ApiLevelUtil;
66 ApiLevelUtil.isFirstApiAfter(Build.VERSION_CODES.TIRAMISU);
68 ApiLevelUtil.isAfter(Build.VERSION_CODES.TIRAMISU);
DResourceManagerTest.java33 import com.android.compatibility.common.util.ApiLevelUtil;
50 ApiLevelUtil.isFirstApiAfter(Build.VERSION_CODES.TIRAMISU);
52 ApiLevelUtil.isAfter(Build.VERSION_CODES.TIRAMISU);
/cts/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/
DInstallDexMetadataHostTest.java25 import com.android.compatibility.common.util.ApiLevelUtil;
94 mShouldRunTests = ApiLevelUtil.isAtLeast(getDevice(), 28) in setUp()
95 || ApiLevelUtil.isAtLeast(getDevice(), "P") in setUp()
96 || ApiLevelUtil.codenameEquals(getDevice(), "P"); in setUp()
334 boolean useProfileForS = ApiLevelUtil.isAtLeast(getDevice(), "S"); in testProfileSnapshotAfterInstall()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaStubActivity.java35 import com.android.compatibility.common.util.ApiLevelUtil;
57 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.R)) { in onCreate()

12345