Home
last modified time | relevance | path

Searched refs:getProperty (Results 1 – 25 of 113) sorted by relevance

12345

/tools/tradefederation/core/javatests/com/android/tradefed/util/
DAbiFormatterTest.java55 when(device.getProperty("ro.product.cpu.abilist32")).thenReturn(null); in testGetDefaultAbi()
56 when(device.getProperty("ro.product.cpu.abi")).thenReturn(null); in testGetDefaultAbi()
61 when(device.getProperty(Mockito.eq("ro.product.cpu.abilist32"))) in testGetDefaultAbi()
67 when(device.getProperty(Mockito.eq("ro.product.cpu.abilist64"))).thenReturn(""); in testGetDefaultAbi()
68 when(device.getProperty("ro.product.cpu.abi")).thenReturn(null); in testGetDefaultAbi()
78 when(device.getProperty("ro.product.cpu.abilist32")).thenReturn("abi1,abi2"); in testGetSupportedAbis()
85 when(device.getProperty("ro.product.cpu.abilist32")).thenReturn(null); in testGetSupportedAbis()
86 when(device.getProperty("ro.product.cpu.abi")).thenReturn("abi"); in testGetSupportedAbis()
92 when(device.getProperty("ro.product.cpu.abilist")).thenReturn(""); in testGetSupportedAbis()
93 when(device.getProperty("ro.product.cpu.abi")).thenReturn("abi"); in testGetSupportedAbis()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/
DTestSuiteInfoTest.java70 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()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/module/
DKernelTestModuleControllerTest.java61 Mockito.when(mMockDevice.getProperty(mLowMemProp)).thenReturn("false"); in testModuleAbiMatchesArch()
62 Mockito.when(mMockDevice.getProperty(mProductNameProp)).thenReturn("product"); in testModuleAbiMatchesArch()
73 Mockito.when(mMockDevice.getProperty(mLowMemProp)).thenReturn("false"); in testModuleAbiMatchesOneOfArch()
74 Mockito.when(mMockDevice.getProperty(mProductNameProp)).thenReturn("product"); in testModuleAbiMatchesOneOfArch()
86 Mockito.when(mMockDevice.getProperty(mLowMemProp)).thenReturn("false"); in testModuleAbiMismatchesArch()
87 Mockito.when(mMockDevice.getProperty(mProductNameProp)).thenReturn("product"); in testModuleAbiMismatchesArch()
100 Mockito.when(mMockDevice.getProperty(mLowMemProp)).thenReturn("true"); in testDeviceWithLowMemAndIsLowMemFlagTrue()
101 Mockito.when(mMockDevice.getProperty(mProductNameProp)).thenReturn("product"); in testDeviceWithLowMemAndIsLowMemFlagTrue()
113 Mockito.when(mMockDevice.getProperty(mLowMemProp)).thenReturn("true"); in testDeviceWithLowMemButIsLowMemFalse()
114 Mockito.when(mMockDevice.getProperty(mProductNameProp)).thenReturn("product"); in testDeviceWithLowMemButIsLowMemFalse()
[all …]
DNativeBridgeModuleControllerTest.java69 when(mMockDevice.getProperty(NativeBridgeModuleController.NATIVE_BRIDGE_PROP)) in testNoBridgeSupport()
82 when(mMockDevice.getProperty(NativeBridgeModuleController.NATIVE_BRIDGE_PROP)) in testBridgeSupport()
84 when(mMockDevice.getProperty("ro.product.cpu.abilist")) in testBridgeSupport()
97 when(mMockDevice.getProperty(NativeBridgeModuleController.NATIVE_BRIDGE_PROP)) in testBridgeSupport_differentBitness()
99 when(mMockDevice.getProperty("ro.product.cpu.abilist")).thenReturn("armeabi-v7a,armeabi\n"); in testBridgeSupport_differentBitness()
111 when(mMockDevice.getProperty(NativeBridgeModuleController.NATIVE_BRIDGE_PROP)) in testBridgeSupport_differentArch()
113 when(mMockDevice.getProperty("ro.product.cpu.abilist")).thenReturn("x86_64,x86\n"); in testBridgeSupport_differentArch()
DMinApiLevelModuleControllerTest.java66 when(mMockDevice.getProperty(mApiLevelProp)).thenReturn("28"); in testDeviceApiLevelLowerThanMinApiLevel()
80 when(mMockDevice.getProperty(mApiLevelProp)).thenReturn("28"); in testDeviceApiLevelHigherThanMinApiLevel()
94 when(mMockDevice.getProperty(mApiLevelProp)).thenReturn("S"); in testVndkVersionHasStringCodeName()
108 when(mMockDevice.getProperty(mApiLevelProp)).thenReturn(null); in testDeviceApiLevelNotFound()
DMaxSdkModuleControllerTest.java66 when(mMockDevice.getProperty(SDK_LEVEL_PROPERTY)).thenReturn("31"); in testDeviceApiLevelHigherThanMaxSdkLevel()
78 when(mMockDevice.getProperty(SDK_LEVEL_PROPERTY)).thenReturn("27"); in testDeviceApiLevelLowerThanMaxSdkLevel()
90 when(mMockDevice.getProperty(SDK_LEVEL_PROPERTY)).thenReturn("31"); in testDeviceApiLevelEqualsMaxSdkLevel()
102 when(mMockDevice.getProperty(SDK_LEVEL_PROPERTY)).thenReturn(null); in testDeviceApiLevelNotFound()
/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.java1186 public String getProperty(String name) throws DeviceNotAvailableException { in testIsHeadless()
1199 public String getProperty(String name) throws DeviceNotAvailableException { in testIsHeadless_notHeadless()
1242 public String getProperty(String name) throws DeviceNotAvailableException { in testIsNewer()
1273 public String getProperty(String name) throws DeviceNotAvailableException { in testIsNewer_timeOffset()
1305 public String getProperty(String name) throws DeviceNotAvailableException { in testIsNewer_fails()
1334 public String getProperty(String name) throws DeviceNotAvailableException { in testGetBuildAlias()
1349 public String getProperty(String name) throws DeviceNotAvailableException { in testGetBuildAlias_null()
1369 public String getProperty(String name) throws DeviceNotAvailableException { in testGetBuildAlias_empty()
1388 public String getProperty(String name) throws DeviceNotAvailableException { in testGetBuildId()
1402 public String getProperty(String name) throws DeviceNotAvailableException { in testGetBuildId_null()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/build/
DDeviceBuildDescriptorTest.java37 when(d.getProperty("ro.product.name")).thenReturn("yakju"); in testDeviceBuildDescriptor()
38 when(d.getProperty("ro.build.type")).thenReturn("userdebug"); in testDeviceBuildDescriptor()
39 when(d.getProperty("ro.product.brand")).thenReturn("google"); in testDeviceBuildDescriptor()
40 when(d.getProperty("ro.product.model")).thenReturn("Galaxy Nexus"); in testDeviceBuildDescriptor()
41 when(d.getProperty("ro.build.version.release")).thenReturn("4.2"); in testDeviceBuildDescriptor()
DBootstrapBuildProviderTest.java67 when(mMockDevice.getProperty(Mockito.any())).thenReturn("property"); in testGetBuild()
88 when(mMockDevice.getProperty(Mockito.any())).thenReturn("property"); in testGetBuild_add_extra_file()
139 when(mMockDevice.getProperty(Mockito.any())).thenReturn("property"); in testCleanup_withExistingTestsDir()
162 when(mMockDevice.getProperty(Mockito.any())).thenReturn("property"); in testCleanup_withTestsDirIsNull()
181 when(mMockDevice.getProperty(Mockito.any())).thenReturn("property"); in testCleanup_withTestsDirIsNotDir()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DTestSuiteInfo.java91 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/src/com/android/tradefed/build/
DDeviceBuildDescriptor.java114 device.getProperty(DeviceProperties.PRODUCT), in injectDeviceAttributes()
115 device.getProperty(DeviceProperties.BUILD_TYPE)); in injectDeviceAttributes()
134 String brand = device.getProperty(DeviceProperties.BRAND); in generateDeviceDesc()
141 device.getProperty("ro.product.model"), in generateDeviceDesc()
142 device.getProperty(DeviceProperties.RELEASE_VERSION)); in generateDeviceDesc()
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/
DSystemServerFileDescriptorCheckerTest.java51 when(mMockDevice.getProperty(Mockito.eq("ro.build.type"))).thenReturn("userdebug"); in testFailToGetPid()
61 when(mMockDevice.getProperty(Mockito.eq("ro.build.type"))).thenReturn("userdebug"); in testFailToGetFdCount()
73 when(mMockDevice.getProperty(Mockito.eq("ro.build.type"))).thenReturn("userdebug"); in testAcceptableFdCount()
85 when(mMockDevice.getProperty(Mockito.eq("ro.build.type"))).thenReturn("userdebug"); in testUnacceptableFdCount()
99 when(mMockDevice.getProperty(Mockito.eq("ro.build.type"))).thenReturn("user"); in testUserBuild()
104 verify(mMockDevice).getProperty(Mockito.eq("ro.build.type")); in testUserBuild()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/sync/
DDeviceSyncHelperFuncTest.java39 String buildId = getDevice().getProperty("ro.system.build.version.incremental"); in testSyncDevice()
40 CLog.d("%s / buildid: %s", getDevice().getProperty("ro.build.fingerprint"), buildId); in testSyncDevice()
52 String afterBuildId = getDevice().getProperty("ro.system.build.version.incremental"); in testSyncDevice()
54 CLog.d("%s", getDevice().getProperty("ro.build.fingerprint")); in testSyncDevice()
/tools/tradefederation/core/src/com/android/tradefed/util/
DBuildInfoUtil.java94 device.getProperty(DeviceProperties.BRAND), in bootstrapDeviceBuildAttributes()
95 device.getProperty(DeviceProperties.PRODUCT), in bootstrapDeviceBuildAttributes()
97 device.getProperty(DeviceProperties.RELEASE_VERSION)); in bootstrapDeviceBuildAttributes()
DAbiFormatter.java98 String abiList = device.getProperty(PRODUCT_CPU_ABILIST_KEY + bitness); in getSupportedAbis()
106 String legacyProperty = device.getProperty(PRODUCT_CPU_ABI_KEY); in getSupportedAbis()
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/shard/token/
DTelephonyTokenProviderTest.java83 .getProperty(TelephonyTokenProvider.GSM_OPERATOR_PROP); in testSimCard_securedElementOrange()
95 .getProperty(TelephonyTokenProvider.GSM_OPERATOR_PROP); in testSimCard_securedElementThalesGemalto()
107 .getProperty(TelephonyTokenProvider.GSM_OPERATOR_PROP); in testSimCard_securedElementOrange_dualSim()
119 .getProperty(TelephonyTokenProvider.GSM_OPERATOR_PROP); in testSimCard_securedElement_anySim()
/tools/tradefederation/contrib/src/com/android/wireless/tests/
DRadioHelper.java47 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/src/com/android/tradefed/device/
DDeviceSelectionOptions.java508 String deviceProperty = device.getProperty(propEntry.getKey()); in matches()
724 String prop = getProperty(device, DeviceProperties.BOARD); in getDeviceProductType()
727 prop = getProperty(device, DeviceProperties.HARDWARE); in getDeviceProductType()
735 private String getProperty(IDevice device, String propName) { in getProperty() method in DeviceSelectionOptions
736 return device.getProperty(propName); in getProperty()
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()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDeviceBuildInfoInjector.java85 device.getProperty(DeviceProperties.PRODUCT), in setUp()
86 device.getProperty(DeviceProperties.BUILD_TYPE)); in setUp()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DManifestGenerationTest.java64 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/test_framework/com/android/tradefed/testtype/suite/module/
DKernelTestModuleController.java110 String lowMemString = device.getProperty(lowMemProp); in deviceLowMem()
136 String productName = device.getProperty(productNameProp); in deviceWithHwasan()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/cli/common/
DVersion.kt34 VERSION = properties.getProperty("metalavaVersion")
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DDeviceSetupTest.java919 when(mMockDevice.getProperty("persist.sys.timezone")).thenReturn("America/Los_Angeles"); in testSetup_set_timezone_LA()
1022 when(mMockDevice.getProperty("dalvik.vm.dexopt-flags")).thenReturn("v=n"); in testSetup_disalbe_dalvik_verifier()
1145 when(mMockDevice.getProperty("key")).thenReturn("value"); in testSetup_legacy()
1218 when(mMockDevice.getProperty("key")).thenReturn("value"); in test_restore_properties_previous_exists()
1238 when(mMockDevice.getProperty("key")).thenReturn("value"); in test_restore_properties_previous_doesnt_exists()
1389 when(mMockDevice.getProperty("fooProperty")).thenReturn("1"); in testSetup_rootDisabled_withOptimizedPropSetting()
1550 when(mMockDevice.getProperty("persist.sys.test_harness")).thenReturn("1"); in doSetupExpectations()
1552 when(mMockDevice.getProperty("ro.telephony.disable-call")).thenReturn("true"); in doSetupExpectations()
1553 when(mMockDevice.getProperty("ro.audio.silent")).thenReturn("1"); in doSetupExpectations()
1554 when(mMockDevice.getProperty("ro.test_harness")).thenReturn("1"); in doSetupExpectations()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DATestFileSystemLogSaver.java31 private File mAtestRootReportDir = new File(System.getProperty("java.io.tmpdir"));

12345