Home
last modified time | relevance | path

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

/tools/tradefederation/core/javatests/com/android/tradefed/device/
DDeviceSelectionOptionsTest.java189 when(mMockDevice.getProperty(DeviceProperties.VARIANT)).thenReturn(null);
190 when(mMockDevice.getProperty(DeviceProperties.VARIANT_LEGACY_O_MR1))
192 when(mMockDevice.getProperty(DeviceProperties.VARIANT_LEGACY_LESS_EQUAL_O))
200 when(mMockDevice.getProperty(DeviceProperties.VARIANT)).thenReturn(null);
201 when(mMockDevice.getProperty(DeviceProperties.VARIANT_LEGACY_O_MR1))
203 when(mMockDevice.getProperty(DeviceProperties.VARIANT_LEGACY_LESS_EQUAL_O))
211 when(mMockDevice.getProperty(DeviceProperties.VARIANT)).thenReturn("variant");
212 when(mMockDevice.getProperty(DeviceProperties.VARIANT_LEGACY_O_MR1))
214 when(mMockDevice.getProperty(DeviceProperties.VARIANT_LEGACY_LESS_EQUAL_O))
224 when(mMockDevice.getProperty(DeviceProperties.BOARD)).thenReturn(DEVICE_TYPE);
[all …]
DNativeDeviceTest.java2486 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testGetBootHistory()
2500 doReturn("").when(spy).getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testGetBootHistoryEmpty()
2509 doReturn("invalid output").when(spy).getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testGetBootHistoryInvalid()
2524 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testGetBootHistorySince()
2537 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testGetBootHistorySince_limit()
2555 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testGetBootHistorySinceInMillisecond()
2577 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testDeviceSoftRestartedSince()
2610 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testDeviceSoftRestartedSinceWithAbnormalReboot()
2636 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testDeviceSoftRestartedSinceNotAfterNormalReboot()
2656 .getProperty(DeviceProperties.BOOT_REASON_HISTORY); in testDeviceSoftRestartedSinceAfterNormalReboot()
[all …]
DTestDeviceTest.java18 import static com.android.tradefed.device.DeviceProperties.BUILD_CODENAME;
19 import static com.android.tradefed.device.DeviceProperties.SDK_VERSION;
561 setGetPropertyExpectation(DeviceProperties.BOARD, null); in testGetProductType_adbWithRetry()
562 setGetPropertyExpectation(DeviceProperties.HARDWARE, null); in testGetProductType_adbWithRetry()
564 injectSystemProperty(DeviceProperties.BOARD, expectedOutput); in testGetProductType_adbWithRetry()
575 setGetPropertyExpectation(DeviceProperties.HARDWARE, null); in testGetProductType_adbFail()
576 injectSystemProperty(DeviceProperties.BOARD, null); in testGetProductType_adbFail()
595 injectSystemProperty(DeviceProperties.BOARD, ""); in testGetProductType_legacy()
596 injectSystemProperty(DeviceProperties.HARDWARE, expectedOutput); in testGetProductType_legacy()
1434 injectSystemProperty(DeviceProperties.BUILD_ID, "1642709"); in testRuntimePermissionSupportedLmpRelease()
[all …]
DTestDeviceFuncTest.java862 assertNotNull(getDevice().getProperty(DeviceProperties.SDK_VERSION)); in testGetProperty()
864 assertNotNull(getDevice().getProperty(DeviceProperties.SDK_VERSION)); in testGetProperty()
/tools/tradefederation/core/src/com/android/tradefed/build/
DDeviceBuildDescriptor.java19 import com.android.tradefed.device.DeviceProperties;
114 device.getProperty(DeviceProperties.PRODUCT), in injectDeviceAttributes()
115 device.getProperty(DeviceProperties.BUILD_TYPE)); in injectDeviceAttributes()
134 String brand = device.getProperty(DeviceProperties.BRAND); in generateDeviceDesc()
142 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;
94 device.getProperty(DeviceProperties.BRAND), in bootstrapDeviceBuildAttributes()
95 device.getProperty(DeviceProperties.PRODUCT), in bootstrapDeviceBuildAttributes()
97 device.getProperty(DeviceProperties.RELEASE_VERSION)); in bootstrapDeviceBuildAttributes()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDeviceBuildInfoInjector.java23 import com.android.tradefed.device.DeviceProperties;
85 device.getProperty(DeviceProperties.PRODUCT), in setUp()
86 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.java724 String prop = getProperty(device, DeviceProperties.BOARD); in getDeviceProductType()
727 prop = getProperty(device, DeviceProperties.HARDWARE); in getDeviceProductType()
741 String prop = getProperty(device, DeviceProperties.VARIANT); in getDeviceProductVariant()
743 prop = getProperty(device, DeviceProperties.VARIANT_LEGACY_O_MR1); in getDeviceProductVariant()
746 prop = getProperty(device, DeviceProperties.VARIANT_LEGACY_LESS_EQUAL_O); in getDeviceProductVariant()
776 String prop = getProperty(device, DeviceProperties.SDK_VERSION); in getDeviceSdkLevel()
DDeviceProperties.java21 public class DeviceProperties { class
DNativeDevice.java821 String productType = internalGetProperty(DeviceProperties.BOARD, "product", "Product type"); in internalGetProductType()
824 productType = internalGetProperty(DeviceProperties.HARDWARE, "product", "Product type"); in internalGetProductType()
866 String prop = internalGetProperty(DeviceProperties.VARIANT, "variant", "Product variant"); in getProductVariant()
870 DeviceProperties.VARIANT_LEGACY_O_MR1, "variant", "Product variant"); in getProductVariant()
875 DeviceProperties.VARIANT_LEGACY_LESS_EQUAL_O, in getProductVariant()
926 String alias = getProperty(DeviceProperties.BUILD_ALIAS); in getBuildAlias()
938 String bid = getProperty(DeviceProperties.BUILD_ID); in getBuildId()
951 String buildFlavor = getProperty(DeviceProperties.BUILD_FLAVOR); in getBuildFlavor()
955 String productName = getProperty(DeviceProperties.PRODUCT); in getBuildFlavor()
956 String buildType = getProperty(DeviceProperties.BUILD_TYPE); in getBuildFlavor()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DITestSuite.java33 import com.android.tradefed.device.DeviceProperties;
1070 if ("user".equals(mDevice.getProperty(DeviceProperties.BUILD_TYPE))) { in runSingleModule()