/tools/tradefederation/core/tests/src/com/android/tradefed/build/ |
D | BuildInfoTest.java | 43 private BuildInfo mBuildInfo; field in BuildInfoTest 48 mBuildInfo = new BuildInfo("1", "target"); in setUp() 49 mBuildInfo.addBuildAttribute(ATTRIBUTE_KEY, "value"); in setUp() 52 mBuildInfo.setFile(FILE_KEY, mFile, VERSION); in setUp() 63 BuildInfo copy = (BuildInfo) mBuildInfo.clone(); in testClone() 64 assertEquals(mBuildInfo.getBuildAttributes().get(ATTRIBUTE_KEY), in testClone() 79 assertTrue(mBuildInfo.getFile(FILE_KEY).exists()); in testCleanUp() 80 mBuildInfo.cleanUp(); in testCleanUp() 81 assertNull(mBuildInfo.getFile(FILE_KEY)); in testCleanUp() 88 mBuildInfo.setBuildFlavor("testFlavor"); in testToString() [all …]
|
D | KernelDeviceBuildInfoTest.java | 31 private KernelDeviceBuildInfo mBuildInfo; field in KernelDeviceBuildInfoTest 39 mBuildInfo = new KernelDeviceBuildInfo("kernel_device", "build"); in setUp() 40 mBuildInfo.setDeviceBuild(new DeviceBuildInfo("device", "target")); in setUp() 41 mBuildInfo.setKernelBuild(new KernelBuildInfo("kernel", "ker", 0, "build")); in setUp() 45 mBuildInfo.setDeviceImageFile(mDeviceFile, DEVICE_VERSION); in setUp() 49 mBuildInfo.setKernelFile(mKernelFile, KERNEL_VERSION); in setUp() 64 KernelDeviceBuildInfo copy = (KernelDeviceBuildInfo) mBuildInfo.clone(); in testClone() 67 assertEquals(mBuildInfo.getBuildBranch(), copy.getBuildBranch()); in testClone() 68 assertEquals(mBuildInfo.getBuildFlavor(), copy.getBuildFlavor()); in testClone() 69 assertEquals(mBuildInfo.getBuildId(), copy.getBuildId()); in testClone() [all …]
|
D | KernelBuildInfoTest.java | 29 private IKernelBuildInfo mBuildInfo; field in KernelBuildInfoTest 35 mBuildInfo = new KernelBuildInfo("kernel", "ker", 1, "build"); in setUp() 38 mBuildInfo.setKernelFile(mKernelFile, "1"); in setUp() 51 IKernelBuildInfo copy = (KernelBuildInfo) mBuildInfo.clone(); in testClone() 54 assertEquals(mBuildInfo.getBuildBranch(), copy.getBuildBranch()); in testClone() 55 assertEquals(mBuildInfo.getBuildFlavor(), copy.getBuildFlavor()); in testClone() 56 assertEquals(mBuildInfo.getBuildId(), copy.getBuildId()); in testClone() 57 assertEquals(mBuildInfo.getBuildTargetName(), copy.getBuildTargetName()); in testClone() 58 assertEquals(mBuildInfo.getCommitTime(), copy.getCommitTime()); in testClone() 59 assertEquals(mBuildInfo.getShortSha1(), copy.getShortSha1()); in testClone() [all …]
|
D | DeviceBuildInfoTest.java | 41 private DeviceBuildInfo mBuildInfo; field in DeviceBuildInfoTest 48 mBuildInfo = new DeviceBuildInfo("2", "target"); in setUp() 51 mBuildInfo.setBasebandImage(mImageFile, VERSION); in setUp() 53 mBuildInfo.setTestsDir(mTestsDir, VERSION); in setUp() 61 mBuildInfo.cleanUp(); in tearDown() 68 DeviceBuildInfo copy = (DeviceBuildInfo) mBuildInfo.clone(); in testClone() 88 assertTrue(mBuildInfo.getBasebandImageFile().exists()); in testCleanUp() 89 mBuildInfo.cleanUp(); in testCleanUp() 90 assertNull(mBuildInfo.getBasebandImageFile()); in testCleanUp() 100 mBuildInfo.setFile(BuildInfoFileKey.HOST_LINKED_DIR, mHostLinkedDir, "v1"); in testCloneWithProperties() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | BuildRetrievalError.java | 24 private IBuildInfo mBuildInfo = new BuildInfo(); field in BuildRetrievalError 56 mBuildInfo = build; in BuildRetrievalError() 68 return mBuildInfo; in getBuildInfo() 77 mBuildInfo = build; in setBuildInfo()
|
D | ExistingBuildProvider.java | 24 private final IBuildInfo mBuildInfo; field in ExistingBuildProvider 36 mBuildInfo = buildInfo; in ExistingBuildProvider() 45 return mBuildInfo; in getBuild()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | DeviceSuite.java | 48 private IBuildInfo mBuildInfo; field in DeviceSuite 95 mBuildInfo = buildInfo; in setBuild() 99 if (mBuildInfo == null) { in setBuild() 102 ((IBuildReceiver)r).setBuild(mBuildInfo); in setBuild() 159 if (mBuildInfo == null) { in injectValues() 162 ((IBuildReceiver) testObj).setBuild(mBuildInfo); in injectValues()
|
D | TfTestLauncher.java | 150 mCmdArgs.add(mBuildInfo.getTestTag()); in preRun() 155 mCmdArgs.add(mBuildInfo.getBuildId()); in preRun() 160 } else if (mBuildInfo.getBuildBranch() != null) { in preRun() 161 mCmdArgs.add(mBuildInfo.getBuildBranch()); in preRun() 168 } else if (mBuildInfo.getBuildFlavor() != null) { in preRun() 169 mCmdArgs.add(mBuildInfo.getBuildFlavor()); in preRun() 179 ((IFolderBuildInfo) mBuildInfo).getRootDir().getAbsolutePath(), in preRun()
|
D | DeviceJUnit4ClassRunner.java | 53 private IBuildInfo mBuildInfo; field in DeviceJUnit4ClassRunner 78 if (mBuildInfo == null) { in createTest() 81 ((IBuildReceiver) testObj).setBuild(mBuildInfo); in createTest() 120 mBuildInfo = buildInfo; in setBuild()
|
D | PythonUnitTestRunner.java | 69 private IBuildInfo mBuildInfo; field in PythonUnitTestRunner 98 mBuildInfo = buildInfo; in setBuild() 103 return mBuildInfo; in getBuild()
|
D | VersionedTfLauncher.java | 101 File generalTests = mBuildInfo.getFile("general-tests.zip"); in preRun()
|
/tools/tradefederation/core/prod-tests/src/com/android/sdk/ |
D | EmulatorBootTest.java | 60 IBuildInfo mBuildInfo; field in EmulatorBootTest 75 mBuildInfo = buildInfo; in setBuild() 105 mAvdPreparer.setUp(mDevice, mBuildInfo); in run() 106 mSmsPreparer.setUp(mDevice, mBuildInfo); in run() 107 mGpsPreparer.setUp(mDevice, mBuildInfo); in run()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | KernelFlashPreparerTest.java | 50 private KernelDeviceBuildInfo mBuildInfo; field in KernelFlashPreparerTest 82 mBuildInfo = new KernelDeviceBuildInfo("0", "build"); in setUp() 83 mBuildInfo.setDeviceBuild(mMockDeviceBuildInfo); in setUp() 84 mBuildInfo.setKernelBuild(mMockKernelBuildInfo); in setUp() 132 mFlashPreparer.setUp(mMockDevice, mBuildInfo); in testSetUp() 155 mFlashPreparer.setUp(mMockDevice, mBuildInfo); in testSetup_targetsetuperror() 180 mFlashPreparer.setUp(mMockDevice, mBuildInfo); in testSetup_fastbooterror() 211 mFlashPreparer.setUp(mMockDevice, mBuildInfo); in testSetup_builderror() 242 mFlashPreparer.setUp(mMockDevice, mBuildInfo); in testSetup_unresponsive()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestMappingSuiteRunnerTest.java | 58 private IDeviceBuildInfo mBuildInfo; field in TestMappingSuiteRunnerTest 64 mBuildInfo = EasyMock.createMock(IDeviceBuildInfo.class); in setUp() 76 mRunner.setBuild(mBuildInfo); in setUp() 79 EasyMock.expect(mBuildInfo.getTestsDir()).andReturn(new File(NON_EXISTING_DIR)); in setUp() 82 EasyMock.replay(mBuildInfo, mMockDevice); in setUp()
|
D | AtestRunnerTest.java | 60 private IDeviceBuildInfo mBuildInfo; field in AtestRunnerTest 69 mBuildInfo = spy(new DeviceBuildInfo()); in setUp() 71 mSpyRunner.setBuild(mBuildInfo); in setUp() 79 doReturn(new File("some-dir")).when(mBuildInfo).getTestsDir(); in setUp()
|
D | BaseTestSuiteTest.java | 54 private IDeviceBuildInfo mBuildInfo; field in BaseTestSuiteTest 62 mBuildInfo = new DeviceBuildInfo(); in setUp() 64 mRunner.setBuild(mBuildInfo); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | CollectingTestListener.java | 60 private IBuildInfo mBuildInfo; field in CollectingTestListener 75 mBuildInfo = context.getBuildInfos().get(0); in invocationStarted() 108 return mBuildInfo; in getBuildInfo() 119 mBuildInfo = buildInfo; in setBuildInfo()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTest.java | 75 private IBuildInfo mBuildInfo; field in PythonBinaryHostTest 90 mBuildInfo = buildInfo; in setBuild() 115 if (mBuildInfo instanceof IDeviceBuildInfo) { in findParFiles() 116 testsDir = ((IDeviceBuildInfo) mBuildInfo).getTestsDir(); in findParFiles()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/ |
D | FormattedGeneratorReporterTest.java | 44 private IBuildInfo mBuildInfo; field in FormattedGeneratorReporterTest 49 mBuildInfo = new BuildInfo(); in setUp() 50 mContext.addDeviceBuildInfo("default", mBuildInfo); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/junit4/ |
D | LongevityHostRunner.java | 70 private IBuildInfo mBuildInfo; field in LongevityHostRunner 119 mBuildInfo = buildInfo; in setBuild() 200 ((IBuildReceiver) child).setBuild(mBuildInfo); in run()
|
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/ |
D | PreloadedClassesTest.java | 82 private IBuildInfo mBuildInfo; field in PreloadedClassesTest 92 File preload = mBuildInfo.getFile("preload2.jar"); in run() 246 mBuildInfo = buildInfo; in setBuild()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/ |
D | LongevityHostRunnerTest.java | 96 private IBuildInfo mBuildInfo; field in LongevityHostRunnerTest.DeviceFeaturesTest 104 Assert.assertNotNull(mBuildInfo); in testHasFeatures() 132 mBuildInfo = buildInfo; in setBuild()
|
/tools/tradefederation/core/prod-tests/src/com/android/build/tests/ |
D | ImageStats.java | 88 private IBuildInfo mBuildInfo; field in ImageStats 92 mBuildInfo = buildInfo; in setBuild() 102 statsFile = mBuildInfo.getFile(mStatsFileName); in run()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/ |
D | ShardHelperTest.java | 75 private IBuildInfo mBuildInfo; field in ShardHelperTest 94 mBuildInfo = new BuildInfo(); in setUp() 95 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mBuildInfo); in setUp() 105 mBuildInfo.cleanUp(); in tearDown()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | ITestSuite.java | 232 private IBuildInfo mBuildInfo; field in ITestSuite 300 mDirectModule.setBuild(mBuildInfo); in createExecutionList() 324 module.setBuild(mBuildInfo); in createExecutionList() 665 ((IBuildReceiver) test).setBuild(mBuildInfo); in injectInfo() 704 mBuildInfo = buildInfo; in setBuild() 711 return mBuildInfo; in getBuildInfo()
|