Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DDeviceOwnerTargetPreparerTest.java89 if (mTestInfo.getDevice().getApiLevel() < 33) { in testSetUp_headless_switchesToMainUser()
123 if (mTestInfo.getDevice().getApiLevel() < 33) { in testSetUp_headless_removeSecondaryUsers()
156 if (mTestInfo.getDevice().getApiLevel() < 33) { in testSetUp_headless_setsDeviceOwner()
183 if (mTestInfo.getDevice().getApiLevel() < 33) { in testTearDown_headless_removesDeviceOwner()
DGsiDeviceFlashPreparerTest.java193 when(mMockDevice.getApiLevel()).thenReturn(29); in testSetUp_Success_NoVbmetaImage()
228 when(mMockDevice.getApiLevel()).thenReturn(29); in testSetup_Success()
272 when(mMockDevice.getApiLevel()).thenReturn(29); in testSetup_Success_FromZipFile()
317 when(mMockDevice.getApiLevel()).thenReturn(29); in testSetup_Success_WithGkiBootImg()
370 when(mMockDevice.getApiLevel()).thenReturn(29); in testSetup_Success_WithGkiBootImgInZip()
422 when(mMockDevice.getApiLevel()).thenReturn(28); in testSetup_Success_Api28()
459 when(mMockDevice.getApiLevel()).thenReturn(29); in testSetup_GsiFlashFailure()
503 when(mMockDevice.getApiLevel()).thenReturn(29); in testSetUp_BootFailure()
DRunOnCloneProfileTargetPreparerTest.java105 when(mTestInfo.getDevice().getApiLevel()).thenReturn(34); in setUp()
112 when(mTestInfo.getDevice().getApiLevel()).thenReturn(30); in setUp_apiDoesNotSupportCloneUser_doesNotChangeTestUser()
121 when(mTestInfo.getDevice().getApiLevel()).thenReturn(32); in setUp_apiDoesNotSupportCloneUser_setsArgumentToSkipTests()
DAppSetupTest.java268 when(mMockDevice.getApiLevel()).thenReturn(21); in testSetup_checkMinSdk_apiLow()
274 verify(mMockDevice, times(2)).getApiLevel(); in testSetup_checkMinSdk_apiLow()
300 when(mMockDevice.getApiLevel()).thenReturn(23); in testSetup_checkMinSdk_apiOk()
DRunOnPrivateProfileTargetPreparerTest.java100 when(mTestInfo.getDevice().getApiLevel()).thenReturn(34); in setUp()
105 when(mTestInfo.getDevice().getApiLevel()).thenReturn(30); in setUp_doesNotSupportPrivateUser_doesNotChangeTestUser()
DRunOnWorkProfileTargetPreparerTest.java102 when(mTestInfo.getDevice().getApiLevel()).thenReturn(34); // U in setUp()
124 when(mTestInfo.getDevice().getApiLevel()).thenReturn(28); in setUp_oldVersion_createsAndStartsWorkProfileWithoutWait()
DTestAppInstallSetupTest.java279 when(mMockTestDevice.getApiLevel()).thenReturn(25); in testSetup_abi()
851 when(mMockTestDevice.getApiLevel()).thenReturn(21); in testResolveApkFiles_checkMinSdk_apiLow()
858 verify(mMockTestDevice, times(2)).getApiLevel(); in testResolveApkFiles_checkMinSdk_apiLow()
883 when(mMockTestDevice.getApiLevel()).thenReturn(23); in testResolveApkFiles_checkMinSdk_apiOk()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceTest.java1966 AndroidVersion.ALLOW_SPLIT_APK_INSTALLATION.getApiLevel() - 1)); in testInstallPackages_splitApkNotSupported()
1992 AndroidVersion.ALLOW_SPLIT_APK_INSTALLATION.getApiLevel())); in testInstallPackages_splitApkSupported()
3367 public int getApiLevel() throws DeviceNotAvailableException { in testStartUser_wait()
3400 public int getApiLevel() throws DeviceNotAvailableException { in testStartUser_wait_api27()
3702 public int getApiLevel() throws DeviceNotAvailableException { in testGetCurrentUser()
3738 public int getApiLevel() throws DeviceNotAvailableException { in testGetCurrentUser_invalid()
3761 public int getApiLevel() throws DeviceNotAvailableException { in testGetCurrentUser_lowApi()
3880 public int getApiLevel() throws DeviceNotAvailableException { in testGetUserFlag()
3903 public int getApiLevel() throws DeviceNotAvailableException { in testGetUserFlag_emptyReturn()
3926 public int getApiLevel() throws DeviceNotAvailableException { in testGetUserFlag_multiUser()
[all …]
DNativeDeviceTest.java1949 public int getApiLevel() throws DeviceNotAvailableException { in testSetDate()
1980 public int getApiLevel() throws DeviceNotAvailableException { in testSetDate_lowApi()
2351 doReturn(apiLevel).when(spy).getApiLevel(); in runTestGetProcessByName()
2568 doReturn(29).when(spy).getApiLevel(); in testDeviceSoftRestartedSince()
2601 doReturn(29).when(spy).getApiLevel(); in testDeviceSoftRestartedSinceWithAbnormalReboot()
2627 doReturn(29).when(spy).getApiLevel(); in testDeviceSoftRestartedSinceNotAfterNormalReboot()
2647 doReturn(29).when(spy).getApiLevel(); in testDeviceSoftRestartedSinceAfterNormalReboot()
2669 doReturn(29).when(spy).getApiLevel(); in testDeviceSoftRestarted()
2700 doReturn(29).when(spy).getApiLevel(); in testDeviceSoftRestartedWithAbnormalReboot()
2726 doReturn(29).when(spy).getApiLevel(); in testDeviceSoftRestartedNotAfterNormalReboot()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DProfileTargetPreparer.java109 .startUser(profileId, /* waitFlag= */ testInfo.getDevice().getApiLevel() >= 29); in setUp()
140 return testInfo.getDevice().getApiLevel() >= apiLevel; in matchesApiLevel()
208 if (device.getApiLevel() >= 34) { // --for-testing was added in U in createProfile()
DRunOnSecondaryUserTargetPreparer.java105 boolean waitFlag = testInfo.getDevice().getApiLevel() >= 29; in setUp()
DTestAppInstallSetup.java369 if (abiName != null && testInfo.getDevice().getApiLevel() > 20) { in setUp()
615 if (device.getApiLevel() < aaptParser.getSdkVersion()) { in resolveApkFiles()
622 device.getApiLevel()); in resolveApkFiles()
DModuleOemTargetPreparer.java87 final int apiLevel = device.getApiLevel(); in setUp()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DAppSetup.java135 if (device.getApiLevel() < aaptParser.getSdkVersion()) { in setUp()
139 aaptParser.getSdkVersion(), device.getApiLevel()); in setUp()
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/
DLogcatOnFailureCollectorTest.java127 when(mMockDevice.getApiLevel()).thenReturn(20);
175 when(mMockDevice.getApiLevel()).thenReturn(18);
220 when(mMockDevice.getApiLevel()).thenReturn(20);
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DActivityStatusChecker.java44 int apiLevel = device.getApiLevel(); in isFrontActivityLauncher()
DSystemServerStatusChecker.java52 if (device.getApiLevel() < 29) { in preExecutionCheck()
/tools/tradefederation/core/src/com/android/tradefed/device/
DLogcatReceiver.java101 if (SystemUtil.isLocalMode() || device.getApiLevel() >= 24) { in getDefaultLogcatCmd()
DTestDevice.java1179 if (getApiLevel() >= 23) { in disableKeyguard()
1276 if (getApiLevel() >= 18 && isRoot) { in doAdbFrameworkReboot()
1491 if (getApiLevel() > 23) { in doesFileExist()
1530 if (getApiLevel() < 33) { in getUserInfos()
1571 if (getApiLevel() < 33) { // Android-T in tokenizeListUsers()
1788 final int apiLevel = getApiLevel(); in isMultiUserSupported()
1854 + (forTesting && getApiLevel() >= 34 ? "--for-testing " : "") in createUser()
1957 final int apiLevel = getApiLevel(); in stopUser()
3447 if (device.getApiLevel() != 33) { in build()
3461 if (device.getApiLevel() != 33) { in build()
/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/
DManagedRemoteDeviceTest.java64 public int getApiLevel() throws DeviceNotAvailableException { in setUp()
DNestedRemoteDeviceTest.java70 public int getApiLevel() throws DeviceNotAvailableException { in setUp()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DSl4aBluetoothUtilTest.java343 when(mPrimary.getApiLevel()).thenReturn(29); in testEnableBluetoothSnoopLog_AndroidQAndAbove()
364 when(mPrimary.getApiLevel()).thenReturn(28); in testEnableBluetoothSnoopLog_AndroidPAndBelow()
385 when(mPrimary.getApiLevel()).thenReturn(29); in testDisableBluetoothSnoopLog_AndroidQAndAbove()
402 when(mPrimary.getApiLevel()).thenReturn(28); in testDisableBluetoothSnoopLog_AndroidPAndBelow()
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/
DSystemServerStatusCheckerTest.java48 when(mMockDevice.getApiLevel()).thenReturn(29); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DLogcatOnFailureCollector.java172 return device.getApiLevel(); in getApiLevelNoThrow()
/tools/tradefederation/core/src/com/android/tradefed/util/
DBluetoothUtils.java178 int apiLevel = device.getApiLevel(); in isGoldAndAbove()

12