/tools/tradefederation/core/tests/src/com/android/tradefed/build/ |
D | BuildInfoTest.java | 49 private BuildInfo mBuildInfo; field in BuildInfoTest 54 mBuildInfo = new BuildInfo("1", "target"); in setUp() 55 mBuildInfo.addBuildAttribute(ATTRIBUTE_KEY, "value"); in setUp() 58 mBuildInfo.setFile(FILE_KEY, mFile, VERSION); in setUp() 69 BuildInfo copy = (BuildInfo) mBuildInfo.clone(); in testClone() 70 assertEquals(mBuildInfo.getBuildAttributes().get(ATTRIBUTE_KEY), in testClone() 85 assertTrue(mBuildInfo.getFile(FILE_KEY).exists()); in testCleanUp() 86 mBuildInfo.cleanUp(); in testCleanUp() 87 assertNull(mBuildInfo.getFile(FILE_KEY)); in testCleanUp() 94 mBuildInfo.setBuildFlavor("testFlavor"); in testToString() [all …]
|
D | DeviceBuildInfoTest.java | 42 private DeviceBuildInfo mBuildInfo; field in DeviceBuildInfoTest 49 mBuildInfo = new DeviceBuildInfo("2", "target"); in setUp() 52 mBuildInfo.setBasebandImage(mImageFile, VERSION); in setUp() 54 mBuildInfo.setTestsDir(mTestsDir, VERSION); in setUp() 62 mBuildInfo.cleanUp(); in tearDown() 69 DeviceBuildInfo copy = (DeviceBuildInfo) mBuildInfo.clone(); in testClone() 89 assertTrue(mBuildInfo.getBasebandImageFile().exists()); in testCleanUp() 90 mBuildInfo.cleanUp(); in testCleanUp() 91 assertNull(mBuildInfo.getBasebandImageFile()); in testCleanUp() 101 mBuildInfo.setFile(BuildInfoFileKey.HOST_LINKED_DIR, mHostLinkedDir, "v1"); in testCloneWithProperties() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | GCSTestResourceProvider.java | 38 private IBuildInfo mBuildInfo; field in GCSTestResourceProvider 43 mBuildInfo = new BuildInfo(); in getBuild() 44 mBuildInfo.setTestResourceBuild(true); in getBuild() 46 return mBuildInfo; in getBuild() 57 mBuildInfo.setFile(key, localFile, ""); in fetchTestResource()
|
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() 341 patterns.add(mBuildInfo.getBuildBranch()); in testTmpDirClean()
|
D | SubprocessTfLauncher.java | 101 protected IBuildInfo mBuildInfo = null; field in SubprocessTfLauncher 148 Assert.assertNotNull(mBuildInfo); in preRun() 150 IFolderBuildInfo tfBuild = (IFolderBuildInfo) mBuildInfo; in preRun() 237 mBuildInfo.addBuildAttribute(PARENT_PROC_TAG_NAME, "true"); in addInvocationData() 285 CLog.d("Successfully ran TF tests for build %s", mBuildInfo.getBuildId()); in run() 289 mBuildInfo.getBuildId(), result.getStatus()); in run() 351 mBuildInfo = buildInfo; in setBuild()
|
D | HostGTest.java | 46 private IBuildInfo mBuildInfo = null; field in HostGTest 61 this.mBuildInfo = buildInfo; in setBuild() 204 File hostLinkedDir = mBuildInfo.getFile(BuildInfoFileKey.HOST_LINKED_DIR); in run() 208 File testsDir = ((DeviceBuildInfo) mBuildInfo).getTestsDir(); in run()
|
D | DeviceJUnit4ClassRunner.java | 64 private IBuildInfo mBuildInfo; field in DeviceJUnit4ClassRunner 92 if (mBuildInfo == null) { in createTest() 95 ((IBuildReceiver) testObj).setBuild(mBuildInfo); in createTest() 160 mBuildInfo = buildInfo; in setBuild()
|
D | PythonUnitTestRunner.java | 73 private IBuildInfo mBuildInfo; field in PythonUnitTestRunner 102 mBuildInfo = buildInfo; in setBuild() 107 return mBuildInfo; in getBuild()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/junit4/ |
D | DeviceParameterizedRunner.java | 62 private IBuildInfo mBuildInfo; field in DeviceParameterizedRunner 84 if (mBuildInfo == null) { in methodInvoker() 87 ((IBuildReceiver) testObj).setBuild(mBuildInfo); in methodInvoker() 126 mBuildInfo = buildInfo; in setBuild()
|
D | LongevityHostRunner.java | 71 private IBuildInfo mBuildInfo; field in LongevityHostRunner 120 mBuildInfo = buildInfo; in setBuild() 201 ((IBuildReceiver) child).setBuild(mBuildInfo); in run()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | AoaTargetPreparerTest.java | 55 @Mock private IBuildInfo mBuildInfo; field in AoaTargetPreparerTest 74 mPreparer.setUp(mTestDevice, mBuildInfo); in testSetUp() 83 mPreparer.setUp(mTestDevice, mBuildInfo); in testSetUp_noActions() 95 mPreparer.setUp(mTestDevice, mBuildInfo); in testSetUp_noDevice() 104 mPreparer.setUp(mTestDevice, mBuildInfo); in testSetUp_skipDeviceCheck()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTest.java | 99 private IBuildInfo mBuildInfo; field in PythonBinaryHostTest 116 mBuildInfo = buildInfo; in setBuild() 141 if (mBuildInfo instanceof IDeviceBuildInfo) { in findParFiles() 142 testsDir = ((IDeviceBuildInfo) mBuildInfo).getTestsDir(); in findParFiles() 177 File updatedAdb = mBuildInfo.getFile(AdbStopServerPreparer.ADB_BINARY_KEY); in runSinglePythonFile()
|
/tools/tradefederation/contrib/src/com/android/fastboot/tests/ |
D | FastbootTest.java | 90 private IBuildInfo mBuildInfo; field in FastbootTest 96 mBuildInfo = buildInfo; in setBuild() 168 File fastboot = getFastbootFile(mBuildInfo); in testFastboot() 180 flasher.setUp(mDevice, mBuildInfo); in testFastboot()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | CollectingTestListener.java | 57 private IBuildInfo mBuildInfo; field in CollectingTestListener 117 return mBuildInfo; in getBuildInfo() 128 mBuildInfo = buildInfo; in setBuildInfo() 135 mBuildInfo = getPrimaryBuildInfo(); in invocationStarted()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
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 | TestMappingSuiteRunnerTest.java | 67 private IDeviceBuildInfo mBuildInfo; field in TestMappingSuiteRunnerTest 73 mBuildInfo = EasyMock.createMock(IDeviceBuildInfo.class); in setUp() 75 mRunner.setBuild(mBuildInfo); in setUp() 78 EasyMock.expect(mBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in setUp() 79 EasyMock.expect(mBuildInfo.getTestsDir()).andReturn(new File(NON_EXISTING_DIR)); in setUp() 82 EasyMock.replay(mBuildInfo, mMockDevice); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/ |
D | TestsPoolPoller.java | 88 private IBuildInfo mBuildInfo; field in TestsPoolPoller 194 ((IBuildReceiver) test).setBuild(mBuildInfo); in run() 271 .resetVirtualDevice(logger, mBuildInfo, /* Collect the logs */ true)) { in HandleDeviceNotAvailable() 371 mBuildInfo = buildInfo; in setBuild()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/ |
D | FormattedGeneratorReporterTest.java | 46 private IBuildInfo mBuildInfo; field in FormattedGeneratorReporterTest 51 mBuildInfo = new BuildInfo(); in setUp() 52 mContext.addDeviceBuildInfo("default", mBuildInfo); in setUp()
|
/tools/tradefederation/contrib/src/com/android/framework/tests/ |
D | PreloadedClassesTest.java | 86 private IBuildInfo mBuildInfo; field in PreloadedClassesTest 94 File preload = mBuildInfo.getFile("preload2.jar"); in run() 252 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/tests/src/com/android/tradefed/invoker/shard/ |
D | ShardHelperTest.java | 80 private IBuildInfo mBuildInfo; field in ShardHelperTest 105 mBuildInfo = new BuildInfo(); in setUp() 106 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mBuildInfo); in setUp() 116 mBuildInfo.cleanUp(); in tearDown()
|
/tools/tradefederation/contrib/src/com/android/build/tests/ |
D | ImageStats.java | 101 private IBuildInfo mBuildInfo; field in ImageStats 105 mBuildInfo = buildInfo; in setBuild() 113 statsFile = mBuildInfo.getFile(mStatsFileName); in run()
|