/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | DeviceSelectionOptionsTest.java | 182 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 …]
|
D | NativeDeviceTest.java | 937 public String getProperty(String name) throws DeviceNotAvailableException { in testIsHeadless() 949 public String getProperty(String name) throws DeviceNotAvailableException { in testIsHeadless_notHeadless() 1367 public String getProperty(String name) throws DeviceNotAvailableException { in testIsNewer() 1399 public String getProperty(String name) throws DeviceNotAvailableException { in testIsNewer_timeOffset() 1432 public String getProperty(String name) throws DeviceNotAvailableException { in testIsNewer_fails() 1461 public String getProperty(String name) throws DeviceNotAvailableException { in testGetBuildAlias() 1475 public String getProperty(String name) throws DeviceNotAvailableException { in testGetBuildAlias_null() 1493 public String getProperty(String name) throws DeviceNotAvailableException { in testGetBuildAlias_empty() 1510 public String getProperty(String name) throws DeviceNotAvailableException { in testGetBuildId() 1523 public String getProperty(String name) throws DeviceNotAvailableException { in testGetBuildId_null() [all …]
|
D | TestDeviceTest.java | 314 EasyMock.expect(mMockIDevice.getProperty(EasyMock.<String>anyObject())).andReturn(null); in testGetProductType_fastboot() 335 EasyMock.expect(mMockIDevice.getProperty(EasyMock.<String>anyObject())).andReturn(null); in testGetProductType_fastbootNonalpha() 356 EasyMock.expect(mMockIDevice.getProperty(EasyMock.<String>anyObject())).andStubReturn(null); in testGetProductType_fastbootFail() 2839 public String getProperty(String name) throws DeviceNotAvailableException { in testStartUser_wait() 2859 public String getProperty(String name) throws DeviceNotAvailableException { in testStartUser_wait_api27() 3043 public String getProperty(String name) throws DeviceNotAvailableException { in testGetCurrentUser() 3068 public String getProperty(String name) throws DeviceNotAvailableException { in testGetCurrentUser_invalid() 3087 public String getProperty(String name) throws DeviceNotAvailableException { in testGetCurrentUser_lowApi() 3287 public String getProperty(String name) throws DeviceNotAvailableException { in testSwitchUser_alreadySameUser() 3318 public String getProperty(String name) throws DeviceNotAvailableException { in testSwitchUser() [all …]
|
D | TestDeviceFuncTest.java | 307 "root".equals(System.getProperty("user.name"))); in testPull_nopermissions() 829 assertNotNull(getDevice().getProperty(DeviceProperties.BOARD)); in testGetProperty() 831 assertNotNull(getDevice().getProperty(DeviceProperties.BOARD)); in testGetProperty() 838 assertEquals("0", getDevice().getProperty("prop.test")); in testGetProperty_volatile() 840 assertEquals("1", getDevice().getProperty("prop.test")); in testGetProperty_volatile()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | AbiFormatterTest.java | 53 EasyMock.expect(device.getProperty("ro.product.cpu.abilist32")).andReturn(null); in testGetDefaultAbi() 54 EasyMock.expect(device.getProperty("ro.product.cpu.abi")).andReturn(null); in testGetDefaultAbi() 59 EasyMock.expect(device.getProperty(EasyMock.eq("ro.product.cpu.abilist32"))) in testGetDefaultAbi() 65 EasyMock.expect(device.getProperty(EasyMock.eq("ro.product.cpu.abilist64"))).andReturn(""); in testGetDefaultAbi() 66 EasyMock.expect(device.getProperty("ro.product.cpu.abi")).andReturn(null); in testGetDefaultAbi() 76 EasyMock.expect(device.getProperty("ro.product.cpu.abilist32")).andReturn("abi1,abi2"); in testGetSupportedAbis() 83 EasyMock.expect(device.getProperty("ro.product.cpu.abilist32")).andReturn(null); in testGetSupportedAbis() 84 EasyMock.expect(device.getProperty("ro.product.cpu.abi")).andReturn("abi"); in testGetSupportedAbis() 90 EasyMock.expect(device.getProperty("ro.product.cpu.abilist")).andReturn(""); in testGetSupportedAbis() 91 EasyMock.expect(device.getProperty("ro.product.cpu.abi")).andReturn("abi"); in testGetSupportedAbis() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestSuiteInfoTest.java | 70 assertEquals("eng.build.5", p.getProperty("build_number")); in testLoadConfig() 71 assertEquals("arm64", p.getProperty("target_arch")); in testLoadConfig() 72 assertEquals("CTS", p.getProperty("name")); in testLoadConfig() 73 assertEquals("Compatibility Test Suite", p.getProperty("fullname")); in testLoadConfig() 74 assertEquals("7.0", p.getProperty("version")); in testLoadConfig() 96 assertEquals("eng.build.5", p.getProperty("build_number")); in testLoadConfig_multiArch() 97 assertEquals("arm64,x86_64", p.getProperty("target_arch")); in testLoadConfig_multiArch() 98 assertEquals("CTS", p.getProperty("name")); in testLoadConfig_multiArch() 99 assertEquals("Compatibility Test Suite", p.getProperty("fullname")); in testLoadConfig_multiArch() 100 assertEquals("7.0", p.getProperty("version")); in testLoadConfig_multiArch()
|
D | ITestSuiteTest.java | 635 EasyMock.expect(mMockDevice.getProperty("ro.build.type")).andReturn("userdebug"); in testRun_rebootBeforeModule() 684 EasyMock.expect(mMockDevice.getProperty("ro.build.type")).andReturn("user"); in testRun_unresponsiveDevice() 743 EasyMock.expect(mMockDevice.getProperty("ro.build.type")).andReturn("user"); in testRun_deviceUnavailable() 811 EasyMock.expect(mMockDevice.getProperty("ro.build.type")).andReturn("user"); in testRun_runtimeException() 877 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.product.cpu.abilist"))) in testGetAbis() 897 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.product.cpu.abilist"))) in testGetAbis_notSupported() 920 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.product.cpu.abi"))) in testGetAbis_primaryAbiOnly() 941 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.product.cpu.abi"))) in testGetAbis_primaryAbiOnly_NotSupported() 964 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.product.cpu.abilist"))) in testGetAbis_skipCtsArchCheck() 1672 EasyMock.expect(mMockDevice.getProperty("ro.product.cpu.abilist")).andReturn(null); in testNoAbi() [all …]
|
D | TestFailureListenerTest.java | 64 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.build.type"))) in testTestFailed() 83 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.build.type"))).andReturn("user"); in testTestFailed_userBuild() 103 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.build.type"))).andReturn("debug"); in testFailed_multiDevice() 106 EasyMock.expect(device2.getProperty(EasyMock.eq("ro.build.type"))).andReturn("debug"); in testFailed_multiDevice()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | NativeDevice.java | 450 String propValue = getProperty(propName); in internalGetProperty() 469 public String getProperty(final String name) throws DeviceNotAvailableException { in getProperty() method in NativeDevice 495 String value = getProperty(name); in getIntProperty() 513 String value = getProperty(name); in getBooleanProperty() 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() 1818 String timezone = getProperty("persist.sys.timezone"); in getDeviceTimezone() [all …]
|
D | DeviceSelectionOptions.java | 479 if (!propEntry.getValue().equals(device.getProperty(propEntry.getKey()))) { in matches() 646 String prop = getProperty(device, DeviceProperties.BOARD); in getDeviceProductType() 649 prop = getProperty(device, DeviceProperties.HARDWARE); in getDeviceProductType() 657 private String getProperty(IDevice device, String propName) { in getProperty() method in DeviceSelectionOptions 658 return device.getProperty(propName); in getProperty() 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()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/module/ |
D | NativeBridgeModuleControllerTest.java | 67 EasyMock.expect(mMockDevice.getProperty(NativeBridgeModuleController.NATIVE_BRIDGE_PROP)) in testNoBridgeSupport() 81 EasyMock.expect(mMockDevice.getProperty(NativeBridgeModuleController.NATIVE_BRIDGE_PROP)) in testBridgeSupport() 83 EasyMock.expect(mMockDevice.getProperty("ro.product.cpu.abilist")) in testBridgeSupport() 97 EasyMock.expect(mMockDevice.getProperty(NativeBridgeModuleController.NATIVE_BRIDGE_PROP)) in testBridgeSupport_differentBitness() 99 EasyMock.expect(mMockDevice.getProperty("ro.product.cpu.abilist")) in testBridgeSupport_differentBitness() 113 EasyMock.expect(mMockDevice.getProperty(NativeBridgeModuleController.NATIVE_BRIDGE_PROP)) in testBridgeSupport_differentArch() 115 EasyMock.expect(mMockDevice.getProperty("ro.product.cpu.abilist")) in testBridgeSupport_differentArch()
|
D | MinApiLevelModuleControllerTest.java | 63 EasyMock.expect(mMockDevice.getProperty(mApiLevelProp)).andReturn("28"); in testDeviceApiLevelLowerThanMinApiLevel() 78 EasyMock.expect(mMockDevice.getProperty(mApiLevelProp)).andReturn("28"); in testDeviceApiLevelHigherThanMinApiLevel() 93 EasyMock.expect(mMockDevice.getProperty(mApiLevelProp)).andReturn(null); in testDeviceApiLevelNotFound()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | TestSuiteInfo.java | 91 return mTestSuiteInfo.getProperty(BUILD_NUMBER); in getBuildNumber() 96 String testInfoArch = mTestSuiteInfo.getProperty(TARGET_ARCH); in getTargetArchs() 104 return mTestSuiteInfo.getProperty(NAME); in getName() 109 return mTestSuiteInfo.getProperty(FULLNAME); in getFullName() 114 return mTestSuiteInfo.getProperty(VERSION); in getVersion() 121 return mTestSuiteInfo.getProperty(name); in get()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/build/ |
D | DeviceBuildDescriptorTest.java | 33 EasyMock.expect(d.getProperty("ro.product.name")).andReturn("yakju"); in testDeviceBuildDescriptor() 34 EasyMock.expect(d.getProperty("ro.build.type")).andReturn("userdebug"); in testDeviceBuildDescriptor() 35 EasyMock.expect(d.getProperty("ro.product.brand")).andReturn("google"); in testDeviceBuildDescriptor() 36 EasyMock.expect(d.getProperty("ro.product.model")).andReturn("Galaxy Nexus"); in testDeviceBuildDescriptor() 37 EasyMock.expect(d.getProperty("ro.build.version.release")).andReturn("4.2"); in testDeviceBuildDescriptor()
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | DeviceBuildDescriptor.java | 106 device.getProperty(DeviceProperties.PRODUCT), in injectDeviceAttributes() 107 device.getProperty(DeviceProperties.BUILD_TYPE)); in injectDeviceAttributes() 126 String brand = device.getProperty(DeviceProperties.BRAND); in generateDeviceDesc() 133 device.getProperty("ro.product.model"), in generateDeviceDesc() 134 device.getProperty(DeviceProperties.RELEASE_VERSION)); in generateDeviceDesc()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/ |
D | SystemServerFileDescriptorCheckerTest.java | 45 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.build.type"))) in testFailToGetPid() 57 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.build.type"))) in testFailToGetFdCount() 73 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.build.type"))) in testAcceptableFdCount() 89 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.build.type"))) in testUnacceptableFdCount() 107 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.build.type"))).andReturn("user"); in testUserBuild()
|
/tools/tradefederation/core/src/com/android/tradefed/result/suite/ |
D | XmlSuiteResultFormatter.java | 238 serializer.attribute(NS, OS_NAME_ATTR, System.getProperty("os.name")); in writeResults() 239 serializer.attribute(NS, OS_VERSION_ATTR, System.getProperty("os.version")); in writeResults() 240 serializer.attribute(NS, OS_ARCH_ATTR, System.getProperty("os.arch")); in writeResults() 241 serializer.attribute(NS, JAVA_VENDOR_ATTR, System.getProperty("java.vendor")); in writeResults() 242 serializer.attribute(NS, JAVA_VERSION_ATTR, System.getProperty("java.version")); in writeResults()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | BuildInfoUtil.java | 91 device.getProperty(DeviceProperties.BRAND), in bootstrapDeviceBuildAttributes() 92 device.getProperty(DeviceProperties.PRODUCT), in bootstrapDeviceBuildAttributes() 94 device.getProperty(DeviceProperties.RELEASE_VERSION)); in bootstrapDeviceBuildAttributes()
|
D | AbiFormatter.java | 98 String abiList = device.getProperty(PRODUCT_CPU_ABILIST_KEY + bitness); in getSupportedAbis() 106 String legacyProperty = device.getProperty(PRODUCT_CPU_ABI_KEY); in getSupportedAbis()
|
/tools/tradefederation/contrib/src/com/android/wireless/tests/ |
D | RadioHelper.java | 47 return mDevice.getProperty("gsm.current.phone-type"); in getPhoneType() 52 return mDevice.getProperty("gsm.sim.state"); in getSimState() 91 return mDevice.getProperty("ro.carrier").contains(WIFI_ONLY); in isWifiOnlyDevice()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/token/ |
D | TelephonyTokenProviderTest.java | 83 .getProperty(TelephonyTokenProvider.GSM_OPERATOR_PROP); in testSimCard_securedElementOrange() 95 .getProperty(TelephonyTokenProvider.GSM_OPERATOR_PROP); in testSimCard_securedElementOrange_dualSim() 107 .getProperty(TelephonyTokenProvider.GSM_OPERATOR_PROP); in testSimCard_securedElement_anySim()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/ |
D | ManifestGenerationTest.java | 64 String lines[] = text.split(System.getProperty("line.separator")); in elementaryManifestGeneration() 100 String lines[] = text.split(System.getProperty("line.separator")); in manifestGenerationOnHalfWrittenFile() 138 String lines[] = text.split(System.getProperty("line.separator")); in manifestGenerationOnExistingFile()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | JsonHttpTestResultReporter.java | 146 mDeviceName = testDevice.getProperty(DEVICE_NAME_PROPERTY); in parseAdditionalDeviceDetails() 151 testDevice.getProperty(SDK_VERSION_PROPERTY), in parseAdditionalDeviceDetails() 152 testDevice.getProperty(BUILD_ID_PROPERTY).charAt(0)); in parseAdditionalDeviceDetails()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterCommandSchedulerTest.java | 1138 workDir = new File(System.getProperty("java.io.tmpdir"), cmd.getAttemptId()); 1174 workDir = new File(System.getProperty("java.io.tmpdir"), cmd.getAttemptId()); 1210 workDir = new File(System.getProperty("java.io.tmpdir"), cmd.getAttemptId()); 1244 File workDir = new File(System.getProperty("java.io.tmpdir"), cmd.getAttemptId()); 1301 workDir = new File(System.getProperty("java.io.tmpdir"), cmd.getAttemptId());
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | InvocationExecution.java | 862 String javaVersion = System.getProperty("java.version"); 866 String javaClasspath = System.getProperty("java.class.path"); 895 .runTimedCmd(60000, "id", "-u", System.getProperty("user.name"));
|