/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | DeviceOwnerTargetPreparerTest.java | 89 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()
|
D | GsiDeviceFlashPreparerTest.java | 193 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()
|
D | RunOnCloneProfileTargetPreparerTest.java | 105 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()
|
D | AppSetupTest.java | 268 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()
|
D | RunOnPrivateProfileTargetPreparerTest.java | 100 when(mTestInfo.getDevice().getApiLevel()).thenReturn(34); in setUp() 105 when(mTestInfo.getDevice().getApiLevel()).thenReturn(30); in setUp_doesNotSupportPrivateUser_doesNotChangeTestUser()
|
D | RunOnWorkProfileTargetPreparerTest.java | 102 when(mTestInfo.getDevice().getApiLevel()).thenReturn(34); // U in setUp() 124 when(mTestInfo.getDevice().getApiLevel()).thenReturn(28); in setUp_oldVersion_createsAndStartsWorkProfileWithoutWait()
|
D | TestAppInstallSetupTest.java | 279 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/ |
D | TestDeviceTest.java | 1966 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 …]
|
D | NativeDeviceTest.java | 1949 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/ |
D | ProfileTargetPreparer.java | 109 .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()
|
D | RunOnSecondaryUserTargetPreparer.java | 105 boolean waitFlag = testInfo.getDevice().getApiLevel() >= 29; in setUp()
|
D | TestAppInstallSetup.java | 369 if (abiName != null && testInfo.getDevice().getApiLevel() > 20) { in setUp() 615 if (device.getApiLevel() < aaptParser.getSdkVersion()) { in resolveApkFiles() 622 device.getApiLevel()); in resolveApkFiles()
|
D | ModuleOemTargetPreparer.java | 87 final int apiLevel = device.getApiLevel(); in setUp()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | AppSetup.java | 135 if (device.getApiLevel() < aaptParser.getSdkVersion()) { in setUp() 139 aaptParser.getSdkVersion(), device.getApiLevel()); in setUp()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/ |
D | LogcatOnFailureCollectorTest.java | 127 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/ |
D | ActivityStatusChecker.java | 44 int apiLevel = device.getApiLevel(); in isFrontActivityLauncher()
|
D | SystemServerStatusChecker.java | 52 if (device.getApiLevel() < 29) { in preExecutionCheck()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | LogcatReceiver.java | 101 if (SystemUtil.isLocalMode() || device.getApiLevel() >= 24) { in getDefaultLogcatCmd()
|
D | TestDevice.java | 1179 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/ |
D | ManagedRemoteDeviceTest.java | 64 public int getApiLevel() throws DeviceNotAvailableException { in setUp()
|
D | NestedRemoteDeviceTest.java | 70 public int getApiLevel() throws DeviceNotAvailableException { in setUp()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | Sl4aBluetoothUtilTest.java | 343 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/ |
D | SystemServerStatusCheckerTest.java | 48 when(mMockDevice.getApiLevel()).thenReturn(29); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | LogcatOnFailureCollector.java | 172 return device.getApiLevel(); in getApiLevelNoThrow()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | BluetoothUtils.java | 178 int apiLevel = device.getApiLevel(); in isGoldAndAbove()
|