Home
last modified time | relevance | path

Searched refs:DeviceProperties (Results 1 – 14 of 14) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceSelectionOptionsTest.java182 EasyMock.expect(mMockDevice.getProperty(DeviceProperties.VARIANT)).andReturn(null);
183 EasyMock.expect(mMockDevice.getProperty(DeviceProperties.VARIANT_LEGACY_O_MR1))
185 EasyMock.expect(mMockDevice.getProperty(DeviceProperties.VARIANT_LEGACY_LESS_EQUAL_O))
194 EasyMock.expect(mMockDevice.getProperty(DeviceProperties.VARIANT)).andReturn(null);
195 EasyMock.expect(mMockDevice.getProperty(DeviceProperties.VARIANT_LEGACY_O_MR1))
197 EasyMock.expect(mMockDevice.getProperty(DeviceProperties.VARIANT_LEGACY_LESS_EQUAL_O))
206 EasyMock.expect(mMockDevice.getProperty(DeviceProperties.VARIANT)).andReturn("variant");
207 EasyMock.expect(mMockDevice.getProperty(DeviceProperties.VARIANT_LEGACY_O_MR1))
209 EasyMock.expect(mMockDevice.getProperty(DeviceProperties.VARIANT_LEGACY_LESS_EQUAL_O))
220 EasyMock.expect(mMockDevice.getProperty(DeviceProperties.BOARD)).andReturn(DEVICE_TYPE);
[all …]
DNativeDeviceTest.java2458 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testGetBootHistory()
2473 doReturn("").when(spy).getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testGetBootHistoryEmpty()
2483 doReturn("invalid output").when(spy).getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testGetBootHistoryInvalid()
2499 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testGetBootHistorySince()
2513 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testGetBootHistorySince_limit()
2532 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testGetBootHistorySinceInMillisecond()
2554 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testDeviceSoftRestartedSince()
2587 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testDeviceSoftRestartedSinceWithAbnormalReboot()
2612 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testDeviceSoftRestartedSinceNotAfterNormalReboot()
2632 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testDeviceSoftRestartedSinceAfterNormalReboot()
[all …]
DTestDeviceTest.java384 setGetPropertyExpectation(DeviceProperties.BOARD, null); in testGetProductType_adbWithRetry()
385 setGetPropertyExpectation(DeviceProperties.HARDWARE, null); in testGetProductType_adbWithRetry()
388 injectSystemProperty(DeviceProperties.BOARD, expectedOutput); in testGetProductType_adbWithRetry()
398 setGetPropertyExpectation(DeviceProperties.HARDWARE, null).anyTimes(); in testGetProductType_adbFail()
399 injectSystemProperty(DeviceProperties.BOARD, null).times(3); in testGetProductType_adbFail()
417 injectSystemProperty(DeviceProperties.BOARD, ""); in testGetProductType_legacy()
418 injectSystemProperty(DeviceProperties.HARDWARE, expectedOutput); in testGetProductType_legacy()
1343 injectSystemProperty(DeviceProperties.BUILD_CODENAME, "REL"); in testRuntimePermissionSupportedLmpRelease()
1344 injectSystemProperty(DeviceProperties.BUILD_ID, "1642709"); in testRuntimePermissionSupportedLmpRelease()
1356 injectSystemProperty(DeviceProperties.BUILD_CODENAME, "REL"); in testRuntimePermissionSupportedLmpMr1Dev()
[all …]
DTestDeviceFuncTest.java829 assertNotNull(getDevice().getProperty(DeviceProperties.BOARD)); in testGetProperty()
831 assertNotNull(getDevice().getProperty(DeviceProperties.BOARD)); in testGetProperty()
/tools/tradefederation/core/src/com/android/tradefed/build/
DDeviceBuildDescriptor.java19 import com.android.tradefed.device.DeviceProperties;
106 device.getProperty(DeviceProperties.PRODUCT), in injectDeviceAttributes()
107 device.getProperty(DeviceProperties.BUILD_TYPE)); in injectDeviceAttributes()
126 String brand = device.getProperty(DeviceProperties.BRAND); in generateDeviceDesc()
134 device.getProperty(DeviceProperties.RELEASE_VERSION)); in generateDeviceDesc()
DOtaZipfileBuildProvider.java21 import com.android.tradefed.device.DeviceProperties;
54 String bid = buildProp.getProperty(DeviceProperties.BUILD_ID); in getBuild()
/tools/tradefederation/core/src/com/android/tradefed/util/
DBuildInfoUtil.java20 import com.android.tradefed.device.DeviceProperties;
91 device.getProperty(DeviceProperties.BRAND), in bootstrapDeviceBuildAttributes()
92 device.getProperty(DeviceProperties.PRODUCT), in bootstrapDeviceBuildAttributes()
94 device.getProperty(DeviceProperties.RELEASE_VERSION)); in bootstrapDeviceBuildAttributes()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDeviceBuildInfoInjector.java23 import com.android.tradefed.device.DeviceProperties;
75 device.getProperty(DeviceProperties.PRODUCT), in setUp()
76 device.getProperty(DeviceProperties.BUILD_TYPE)); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DSystemServerFileDescriptorChecker.java19 import com.android.tradefed.device.DeviceProperties;
38 mBuildType = device.getProperty(DeviceProperties.BUILD_TYPE); in preExecutionCheck()
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceSelectionOptions.java646 String prop = getProperty(device, DeviceProperties.BOARD); in getDeviceProductType()
649 prop = getProperty(device, DeviceProperties.HARDWARE); in getDeviceProductType()
663 String prop = getProperty(device, DeviceProperties.VARIANT); in getDeviceProductVariant()
665 prop = getProperty(device, DeviceProperties.VARIANT_LEGACY_O_MR1); in getDeviceProductVariant()
668 prop = getProperty(device, DeviceProperties.VARIANT_LEGACY_LESS_EQUAL_O); in getDeviceProductVariant()
698 String prop = getProperty(device, DeviceProperties.SDK_VERSION); in getDeviceSdkLevel()
DDeviceProperties.java21 public class DeviceProperties { class
DNativeDevice.java573 String productType = internalGetProperty(DeviceProperties.BOARD, "product", "Product type"); in internalGetProductType()
576 productType = internalGetProperty(DeviceProperties.HARDWARE, "product", "Product type"); in internalGetProductType()
618 String prop = internalGetProperty(DeviceProperties.VARIANT, "variant", "Product variant"); in getProductVariant()
622 DeviceProperties.VARIANT_LEGACY_O_MR1, "variant", "Product variant"); in getProductVariant()
627 DeviceProperties.VARIANT_LEGACY_LESS_EQUAL_O, in getProductVariant()
675 String alias = getProperty(DeviceProperties.BUILD_ALIAS); in getBuildAlias()
687 String bid = getProperty(DeviceProperties.BUILD_ID); in getBuildId()
700 String buildFlavor = getProperty(DeviceProperties.BUILD_FLAVOR); in getBuildFlavor()
704 String productName = getProperty(DeviceProperties.PRODUCT); in getBuildFlavor()
705 String buildType = getProperty(DeviceProperties.BUILD_TYPE); in getBuildFlavor()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DTestFailureListener.java19 import com.android.tradefed.device.DeviceProperties;
78 if ("user".equals(device.getProperty(DeviceProperties.BUILD_TYPE))) { in captureFailure()
DITestSuite.java32 import com.android.tradefed.device.DeviceProperties;
751 if ("user".equals(mDevice.getProperty(DeviceProperties.BUILD_TYPE))) { in runSingleModule()