Home
last modified time | relevance | path

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

/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.java222 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andStubReturn(EMPTY_MAP); in setUp()
1323 assertEquals(1, context.getBuildInfo("device1").getBuildAttributes().size()); in testLogDeviceBatteryLevel_physicalDevice()
1327 .getBuildAttributes() in testLogDeviceBatteryLevel_physicalDevice()
1356 assertEquals(1, context.getBuildInfo("device1").getBuildAttributes().size()); in testLogDeviceBatteryLevel_physicalDevice_multi()
1357 assertEquals(1, context.getBuildInfo("device2").getBuildAttributes().size()); in testLogDeviceBatteryLevel_physicalDevice_multi()
1361 .getBuildAttributes() in testLogDeviceBatteryLevel_physicalDevice_multi()
1366 .getBuildAttributes() in testLogDeviceBatteryLevel_physicalDevice_multi()
1403 assertEquals(1, context.getBuildInfo("device1").getBuildAttributes().size()); in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
1404 assertEquals(1, context.getBuildInfo("device2").getBuildAttributes().size()); in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
1408 .getBuildAttributes() in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
[all …]
/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()
DBuildInfo.java167 public Map<String, String> getBuildAttributes() { in getBuildAttributes() method in BuildInfo
545 .add("build_alias", getBuildAttributes().get(BUILD_ALIAS_KEY)) in toString()
568 protoBuilder.putAllAttributes(getBuildAttributes()); in toProto()
DOtaDeviceBuildInfo.java154 public Map<String, String> getBuildAttributes() { in getBuildAttributes() method in OtaDeviceBuildInfo
155 return getReportedBuild().getBuildAttributes(); in getBuildAttributes()
DIBuildInfo.java128 public Map<String, String> getBuildAttributes(); in getBuildAttributes() method
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstallerTest.java72 doReturn(new HashMap<String, String>()).when(mMockBuildInfo).getBuildAttributes(); in testGetTestsDir_noVar_noRootDir()
98 doReturn(attributes).when(mMockBuildInfo).getBuildAttributes(); in testGetTestsDir_noVar()
125 verify(mMockBuildInfo, times(0)).getBuildAttributes(); in testGetLocalPathForFilename_withVariable()
153 doReturn(attributes).when(mMockBuildInfo).getBuildAttributes(); in testGetTestsDir_notDir()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceManagerTest.java160 EasyMock.expect(mMockBuildInfo.getBuildAttributes()) in testBuildGceCommand()
196 EasyMock.expect(mMockBuildInfo.getBuildAttributes()) in testBuildGceCommand_withServiceAccountJsonKeyFile()
236 EasyMock.expect(mMockBuildInfo.getBuildAttributes()) in testBuildGceCommandWithEmulatorBuild()
285 EasyMock.expect(mMockBuildInfo.getBuildAttributes()) in testBuildGceCommandWithGceDriverParam()
363 EasyMock.expect(mMockBuildInfo.getBuildAttributes()) in testBuildGceCommandWithKernelBuild()
DGceSshTunnelMonitorTest.java162 mMockBuildInfo.getBuildAttributes().get(GceSshTunnelMonitor.VIRTUAL_DEVICE_SERIAL)); in testCreateSshTunnel()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstaller.java56 if (buildInfo.getBuildAttributes().get(ROOT_DIR) != null) { in getRootDir()
57 return new File(buildInfo.getBuildAttributes().get(ROOT_DIR)); in getRootDir()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DBuildInfoTest.java70 assertEquals(mBuildInfo.getBuildAttributes().get(ATTRIBUTE_KEY), in testClone()
71 copy.getBuildAttributes().get(ATTRIBUTE_KEY)); in testClone()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DBuildInfoAttributePreparerTest.java48 Map<String, String> map = build.getBuildAttributes(); in testSimple()
/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/device/cloud/
DGceManager.java231 if (b.getBuildAttributes().containsKey("build_target")) { in buildGceCmd()
233 gceArgs.add(b.getBuildAttributes().get("build_target")); in buildGceCmd()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/
DProtoResultParserTest.java211 "build_value", context.getBuildInfos().get(0).getBuildAttributes().get(TEST_KEY)); in testEvents()
489 context.getBuildInfos().get(0).getBuildAttributes().get(TEST_KEY)); in testEvents_subprocess()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DShardMasterResultForwarder.java182 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()
DSubprocessResultsReporter.java222 new InvocationEndedEventInfo(mPrimaryBuildInfo.getBuildAttributes()); in invocationEnded()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DHostTest.java1191 if (buildInfo.getBuildAttributes().get(ROOT_DIR) != null) { in getJarFile()
1193 searchJarFile(new File(buildInfo.getBuildAttributes().get(ROOT_DIR)), jarName); in getJarFile()
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DProtoResultParser.java427 info.addBuildAttributes(endInvocationInfo.getBuildAttributes()); in mergeInvocationContext()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4TestTest.java371 EasyMock.expect(mMockBuild.getBuildAttributes()).andReturn(properties).times(2);
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DSubprocessTestResultsParserTest.java400 Map<String, String> attributes = info.getBuildAttributes(); in testParse_testInvocationEnded()