Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceTest.java1794 AndroidVersion.ALLOW_SPLIT_APK_INSTALLATION.getApiLevel() - 1)); in testInstallPackages_splitApkNotSupported()
1820 AndroidVersion.ALLOW_SPLIT_APK_INSTALLATION.getApiLevel())); in testInstallPackages_splitApkSupported()
2834 public int getApiLevel() throws DeviceNotAvailableException { in testStartUser_wait()
2854 public int getApiLevel() throws DeviceNotAvailableException { in testStartUser_wait_api27()
3039 public int getApiLevel() throws DeviceNotAvailableException { in testGetCurrentUser()
3064 public int getApiLevel() throws DeviceNotAvailableException { in testGetCurrentUser_invalid()
3083 public int getApiLevel() throws DeviceNotAvailableException { in testGetCurrentUser_lowApi()
3110 public int getApiLevel() throws DeviceNotAvailableException { in testGetUserFlag()
3130 public int getApiLevel() throws DeviceNotAvailableException { in testGetUserFlag_emptyReturn()
3150 public int getApiLevel() throws DeviceNotAvailableException { in testGetUserFlag_multiUser()
[all …]
DNativeDeviceTest.java981 public int getApiLevel() throws DeviceNotAvailableException { in testTestLogBugreport()
1011 public int getApiLevel() throws DeviceNotAvailableException { in testTestLogBugreport_oldDevice()
1039 public int getApiLevel() throws DeviceNotAvailableException { in testTestLogBugreport_fail()
1055 public int getApiLevel() throws DeviceNotAvailableException { in testTakeBugreport_apiLevelFail()
1068 public int getApiLevel() throws DeviceNotAvailableException { in testTakeBugreport_oldDevice()
1087 public int getApiLevel() throws DeviceNotAvailableException { in testTakeBugreport()
1133 public int getApiLevel() throws DeviceNotAvailableException { in testGetBugreport_deviceUnavail()
1162 public int getApiLevel() throws DeviceNotAvailableException { in testGetBugreport_compatibility_deviceUnavail()
1193 public int getApiLevel() throws DeviceNotAvailableException { in testGetBugreport_deviceUnavail_fallback()
1263 public int getApiLevel() throws DeviceNotAvailableException { in testGetBugreportz()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DGsiDeviceFlashPreparerTest.java210 EasyMock.expect(mMockDevice.getApiLevel()).andReturn(29); in testSetup_Success()
255 EasyMock.expect(mMockDevice.getApiLevel()).andReturn(29); in testSetup_Success_FromZipFile()
301 EasyMock.expect(mMockDevice.getApiLevel()).andReturn(29); in testSetup_Success_WithGkiBootImg()
356 EasyMock.expect(mMockDevice.getApiLevel()).andReturn(29); in testSetup_Success_WithGkiBootImgInZip()
406 EasyMock.expect(mMockDevice.getApiLevel()).andReturn(28); in testSetup_Success_Api28()
444 EasyMock.expect(mMockDevice.getApiLevel()).andReturn(29); in testSetup_GsiFlashFailure()
490 EasyMock.expect(mMockDevice.getApiLevel()).andReturn(29); in testSetUp_BootFailure()
DDeviceSetupTest.java1139 EasyMock.expect(mMockDevice.getApiLevel()).andStubReturn(23); in test_restore_settings()
1323 EasyMock.expect(mMockDevice.getApiLevel()).andReturn(apiLevel); in doSetupExpectations()
1373 EasyMock.expect(mMockDevice.getApiLevel()).andReturn(22); in doSettingExpectations()
DAppSetupTest.java241 EasyMock.expect(mMockDevice.getApiLevel()).andReturn(21).times(2); in testSetup_checkMinSdk_apiLow()
271 EasyMock.expect(mMockDevice.getApiLevel()).andReturn(23); in testSetup_checkMinSdk_apiOk()
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java1009 int apiLevel = getApiLevel(); in isRuntimePermissionSupported()
2277 if (getApiLevel() <= 22) { in getLogcatSince()
3932 public int getApiLevel() throws DeviceNotAvailableException { in getApiLevel() method in NativeDevice
3960 int apiLevel = getApiLevel() + ("REL".equals(codeName) ? 0 : 1); in checkApiLevelAgainstNextRelease()
3969 return getApiLevel(); in getApiLevelSafe()
3989 return getApiLevel(); in getLaunchApiLevel()
4073 if (getApiLevel() < 23) { in setDate()
4486 if (getApiLevel() < strictMinLevel){ in checkApiLevelAgainst()
4986 if (getApiLevel() < 28) { in getContentProvider()
DTestDevice.java872 if (getApiLevel() >= 23) { in disableKeyguard()
947 if (getApiLevel() >= 18 && isAdbRoot()) { in doAdbFrameworkReboot()
1345 final int apiLevel = getApiLevel(); in stopUser()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DSl4aBluetoothUtilTest.java342 when(mPrimary.getApiLevel()).thenReturn(29); in testEnableBluetoothSnoopLog_AndroidQAndAbove()
363 when(mPrimary.getApiLevel()).thenReturn(28); in testEnableBluetoothSnoopLog_AndroidPAndBelow()
384 when(mPrimary.getApiLevel()).thenReturn(29); in testDisableBluetoothSnoopLog_AndroidQAndAbove()
401 when(mPrimary.getApiLevel()).thenReturn(28); in testDisableBluetoothSnoopLog_AndroidPAndBelow()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DLogcatOnFailureCollectorTest.java106 EasyMock.expect(mMockDevice.getApiLevel()).andReturn(20); in testCollect()
150 EasyMock.expect(mMockDevice.getApiLevel()).andReturn(18); in testCollect_legacy()
192 EasyMock.expect(mMockDevice.getApiLevel()).andStubReturn(20); in testCollect_multiRun()
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DAndroidJarReader.java70 max = mCodebase.getApiLevel(); in getApi()
79 int apiLevel = mCodebase.getApiLevel(); in getApi()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DAppSetup.java125 if (device.getApiLevel() < aaptParser.getSdkVersion()) { in setUp()
129 aaptParser.getSdkVersion(), device.getApiLevel()); in setUp()
DCrashCollector.java65 CLog.i("API Level too low: %s.", device.getApiLevel()); in shouldDisable()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDeviceSetup.java637 if (device.getApiLevel() < 22) { in processOptions()
803 if (device.getApiLevel() < 22) { in changeSettings()
DGsiDeviceFlashPreparer.java170 if (device.getApiLevel() < DYNAMIC_PARTITION_API_LEVEL) { in flashGsi()
DTestAppInstallSetup.java296 if (abiName != null && testInfo.getDevice().getApiLevel() > 20) { in setUp()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DInstrumentationTest.java690 int apiLevel = !mHiddenApiChecks || !mWindowAnimation ? getDevice().getApiLevel() : 0; in createRemoteAndroidTestRunner()
711 if (abiName != null && getDevice().getApiLevel() > 20) { in createRemoteAndroidTestRunner()
DUiAutomatorTest.java258 int apiLevel = !mHiddenApiChecks || !mWindowAnimation ? getDevice().getApiLevel() : 0; in createTestRunner()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DInstrumentationTestTest.java219 doReturn(28).when(mMockTestDevice).getApiLevel(); in testRun_hiddenApiCheck()
256 doReturn(14).when(mMockTestDevice).getApiLevel(); in testRun_windowAnimation()
DInstrumentationTestFuncTest.java154 if (getDevice().getApiLevel() <= 23) { in testRun_testCrash()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DSystemServerStatusChecker.java52 if (device.getApiLevel() < 29) { in preExecutionCheck()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DNestedRemoteDeviceTest.java74 public int getApiLevel() throws DeviceNotAvailableException { in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/
DSystemServerStatusCheckerTest.java44 EasyMock.expect(mMockDevice.getApiLevel()).andStubReturn(29); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DLogcatOnFailureCollector.java147 return device.getApiLevel(); in getApiLevelNoThrow()
/tools/tradefederation/core/src/com/android/tradefed/util/
DBluetoothUtils.java178 int apiLevel = device.getApiLevel(); in isGoldAndAbove()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DINativeDevice.java1284 public int getApiLevel() throws DeviceNotAvailableException; in getApiLevel() method

12