Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/build/
DDeviceBuildDescriptor.java49 return build.getBuildAttributes().containsKey(DEVICE_BUILD_ID); in describesDeviceBuild()
56 return mBuild.getBuildAttributes().get(DEVICE_BUILD_ID); in getDeviceBuildId()
64 return mBuild.getBuildAttributes().get(DEVICE_BUILD_ALIAS); in getDeviceBuildAlias()
71 return mBuild.getBuildAttributes().get(DEVICE_BUILD_FLAVOR); in getDeviceBuildFlavor()
82 return mBuild.getBuildAttributes().get(DEVICE_DESC); in getDeviceUserDescription()
89 return mBuild.getBuildAttributes().get(DEVICE_PRODUCT); in getDeviceProduct()
DIBuildInfo.java122 public Map<String, String> getBuildAttributes(); in getBuildAttributes() method
DOtaDeviceBuildInfo.java154 public Map<String, String> getBuildAttributes() { in getBuildAttributes() method in OtaDeviceBuildInfo
155 return getReportedBuild().getBuildAttributes(); in getBuildAttributes()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DShardMasterResultForwarderTest.java70 assertTrue(mainBuild.getBuildAttributes().isEmpty()); in testForwardBuildInfo()
90 assertEquals("value1", mainBuild.getBuildAttributes().get("shard1")); in testForwardBuildInfo()
91 assertEquals("value2", mainBuild.getBuildAttributes().get("shard2")); in testForwardBuildInfo()
104 assertTrue(mainBuild1.getBuildAttributes().isEmpty()); in testForwardBuildInfo_multiDevice()
109 assertTrue(mainBuild2.getBuildAttributes().isEmpty()); in testForwardBuildInfo_multiDevice()
139 assertEquals("value1", mainBuild1.getBuildAttributes().get("shard1")); in testForwardBuildInfo_multiDevice()
140 assertEquals("value2", mainBuild1.getBuildAttributes().get("shard2")); in testForwardBuildInfo_multiDevice()
141 assertEquals(2, mainBuild1.getBuildAttributes().size()); in testForwardBuildInfo_multiDevice()
142 assertEquals("value1_device2", mainBuild2.getBuildAttributes().get("shard1_device2")); in testForwardBuildInfo_multiDevice()
143 assertEquals("value2_device2", mainBuild2.getBuildAttributes().get("shard2_device2")); in testForwardBuildInfo_multiDevice()
[all …]
DTestInvocationTest.java210 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andStubReturn(EMPTY_MAP); in setUp()
1373 assertEquals(1, context.getBuildInfo("device1").getBuildAttributes().size()); in testLogDeviceBatteryLevel_physicalDevice()
1377 .getBuildAttributes() in testLogDeviceBatteryLevel_physicalDevice()
1405 assertEquals(1, context.getBuildInfo("device1").getBuildAttributes().size()); in testLogDeviceBatteryLevel_physicalDevice_multi()
1406 assertEquals(1, context.getBuildInfo("device2").getBuildAttributes().size()); in testLogDeviceBatteryLevel_physicalDevice_multi()
1410 .getBuildAttributes() in testLogDeviceBatteryLevel_physicalDevice_multi()
1415 .getBuildAttributes() in testLogDeviceBatteryLevel_physicalDevice_multi()
1449 assertEquals(1, context.getBuildInfo("device1").getBuildAttributes().size()); in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
1450 assertEquals(1, context.getBuildInfo("device2").getBuildAttributes().size()); in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
1454 .getBuildAttributes() in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstallerTest.java66 doReturn(new HashMap<String, String>()).when(mMockBuildInfo).getBuildAttributes(); in testGetTestsDir_noVar_noRootDir()
92 doReturn(attributes).when(mMockBuildInfo).getBuildAttributes(); in testGetTestsDir_noVar()
119 verify(mMockBuildInfo, times(0)).getBuildAttributes(); in testGetLocalPathForFilename_withVariable()
147 doReturn(attributes).when(mMockBuildInfo).getBuildAttributes(); in testGetTestsDir_notDir()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstaller.java55 if (buildInfo.getBuildAttributes().get(ROOT_DIR) != null) { in getTestsDir()
56 return new File(buildInfo.getBuildAttributes().get(ROOT_DIR)); in getTestsDir()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DBuildInfoAttributePreparerTest.java48 Map<String, String> map = build.getBuildAttributes(); in testSimple()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DBuildInfoTest.java64 assertEquals(mBuildInfo.getBuildAttributes().get(ATTRIBUTE_KEY), in testClone()
65 copy.getBuildAttributes().get(ATTRIBUTE_KEY)); in testClone()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DBuildInfoRecorder.java53 String alias = buildInfo.getBuildAttributes().get("build_alias"); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DShardMasterResultForwarder.java189 for (Entry<String, String> entry : shardBuild.getBuildAttributes().entrySet()) { in copyShardBuildInfoToMain()
/tools/tradefederation/core/src/com/android/tradefed/result/
DEmailResultReporter.java223 for (Map.Entry<String, String> buildAttr : build.getBuildAttributes().entrySet()) { in generateEmailBody()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4TestTest.java333 EasyMock.expect(mMockBuild.getBuildAttributes()).andReturn(properties).times(2);
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DHostTest.java1121 if (buildInfo.getBuildAttributes().get(ROOT_DIR) != null) { in getJarFile()
1123 searchJarFile(new File(buildInfo.getBuildAttributes().get(ROOT_DIR)), jarName); in getJarFile()