/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/ |
D | ApiLevelUtilTest.java | 39 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/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | DocumentsTest.java | 22 import com.android.compatibility.common.util.ApiLevelUtil; 165 return ApiLevelUtil.isAfter(getDevice(), 29 /* BUILD.VERSION_CODES.Q */); in isAtLeastR() 173 return ApiLevelUtil.isAfter(getDevice(), 30 /* BUILD.VERSION_CODES.R */) in isAtLeastS() 174 || ApiLevelUtil.codenameEquals(getDevice(), "S"); in isAtLeastS()
|
/cts/tests/tests/os/UffdGc/src/android/os/cts/uffdgc/ |
D | UserfaultfdTest.java | 26 import com.android.compatibility.common.util.ApiLevelUtil; 42 && ApiLevelUtil.isAtMost(VERSION_CODES.S)); in setUp()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiBuildCompat.java | 26 import com.android.compatibility.common.util.ApiLevelUtil; 75 return ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S) in isPlatformOrWifiModuleAtLeastS()
|
D | TestHelper.java | 54 import com.android.compatibility.common.util.ApiLevelUtil; 265 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S)) { in createTestNetworkCallback() 275 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S)) { in getWifiInfo() 354 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S)) { in testConnectionFlowWithConnect() 515 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S)) { in testConnectionFlowWithSuggestionInternal() 714 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S)) { in testConnectionFlowWithSpecifierWithShellIdentity() 793 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S)) { in assertWifiInternetConnectionAvailable()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | GenericDeviceInfo.java | 32 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()
|
D | MediaDeviceInfo.java | 32 import com.android.compatibility.common.util.ApiLevelUtil; 50 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.Q)) { in collectDeviceInfo() 54 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.Q)) { in collectDeviceInfo()
|
/cts/hostsidetests/appcompat/strictjavapackages/src/android/compat/sjp/cts/ |
D | StrictJavaPackagesTest.java | 28 import com.android.compatibility.common.util.ApiLevelUtil; 202 assumeTrue(ApiLevelUtil.isAfter(getDevice(), 29)); in testBootclasspath_nonDuplicateClasses() 213 assumeTrue(ApiLevelUtil.isAfter(getDevice(), 29)); in testSystemServerClasspath_nonDuplicateClasses() 225 assumeTrue(ApiLevelUtil.isAfter(getDevice(), 29)); in testBootClasspathAndSystemServerClasspath_nonDuplicateClasses()
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorParameterRangeTest.java | 28 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/ |
D | InstallDexMetadataTest.java | 33 import com.android.compatibility.common.util.ApiLevelUtil; 68 mShouldRunTest = (ApiLevelUtil.isAtLeast(VERSION_CODES.P) in setUp() 69 || ApiLevelUtil.codenameEquals("P")); in setUp()
|
/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/tests/permission2/src/android/permission2/cts/ |
D | IntelligenceRolesPolicyTest.java | 32 import com.android.compatibility.common.util.ApiLevelUtil; 70 assumeTrue(ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S)); in testNoInternetPermissionRequested()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | StatsdCtsForegroundService.java | 34 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/ |
D | SecurityPatchTest.java | 17 import com.android.compatibility.common.util.ApiLevelUtil; 36 mSkipTests = (ApiLevelUtil.isBefore(Build.VERSION_CODES.M)); in setUp()
|
/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/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/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothLeAudioTest.java | 30 import com.android.compatibility.common.util.ApiLevelUtil; 56 if (ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S)) { in setUp()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | SplitPermissionsSystemTest.java | 49 import com.android.compatibility.common.util.ApiLevelUtil; 76 assumeTrue(ApiLevelUtil.isAtLeast(Build.VERSION_CODES.Q)); in validateAndroidSystem()
|
/cts/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/ |
D | InstallDexMetadataHostTest.java | 26 import com.android.compatibility.common.util.ApiLevelUtil; 103 mShouldRunTests = ApiLevelUtil.isAtLeast(getDevice(), 28) in setUp() 104 || ApiLevelUtil.isAtLeast(getDevice(), "P") in setUp() 105 || ApiLevelUtil.codenameEquals(getDevice(), "P"); in setUp() 331 boolean useProfileForS = ApiLevelUtil.isAtLeast(getDevice(), "S"); in testProfileSnapshotAfterInstall()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | SoundPoolTest.java | 32 import com.android.compatibility.common.util.ApiLevelUtil; 168 if (!ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S) && streamCount < 4) { in testSoundPoolOp() 219 if (!ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S) && streamCount < 4) { in testMultiSound() 257 if (!ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S) && streamCount < 4) { in testLoadMore()
|
D | DecoderTestAacFormat.java | 37 import com.android.compatibility.common.util.ApiLevelUtil; 54 ApiLevelUtil.isAtLeast(Build.VERSION_CODES.R);
|
D | RingtoneTest.java | 33 import com.android.compatibility.common.util.ApiLevelUtil; 47 private static boolean sIsAtLeastS = ApiLevelUtil.isAtLeast(Build.VERSION_CODES.S);
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ApiLevelUtil.java | 26 public class ApiLevelUtil { class
|
D | FeatureUtil.java | 111 return ApiLevelUtil.isAtLeast(Build.VERSION_CODES.O_MR1) && in isLowRam()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | EncoderColorAspectsTest.java | 27 import com.android.compatibility.common.util.ApiLevelUtil; 60 private static boolean sIsAtLeastR = ApiLevelUtil.isAtLeast(Build.VERSION_CODES.R);
|