Home
last modified time | relevance | path

Searched refs:BuildInfoFileKey (Results 1 – 25 of 27) sorted by relevance

12

/tools/tradefederation/core/src/com/android/tradefed/build/
DDeviceBuildInfo.java19 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
76 return getFile(BuildInfoFileKey.DEVICE_IMAGE); in getDeviceImageFile()
84 return getVersion(BuildInfoFileKey.DEVICE_IMAGE); in getDeviceImageVersion()
92 setFile(BuildInfoFileKey.DEVICE_IMAGE, deviceImageFile, version); in setDeviceImageFile()
100 return getFile(BuildInfoFileKey.USERDATA_IMAGE); in getUserDataImageFile()
108 return getVersion(BuildInfoFileKey.USERDATA_IMAGE); in getUserDataImageVersion()
116 setFile(BuildInfoFileKey.USERDATA_IMAGE, userDataFile, version); in setUserDataImageFile()
124 return getFile(BuildInfoFileKey.TESTDIR_IMAGE); in getTestsDir()
132 return getVersion(BuildInfoFileKey.TESTDIR_IMAGE); in getTestsDirVersion()
140 setFile(BuildInfoFileKey.TESTDIR_IMAGE, testsDir, version); in setTestsDir()
[all …]
DBuildInfo.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
73 BuildInfoFileKey.TESTDIR_IMAGE.getFileKey(),
74 BuildInfoFileKey.HOST_LINKED_DIR.getFileKey(),
75 BuildInfoFileKey.TARGET_LINKED_DIR.getFileKey(),
263 if (origFileConsidered.equals(build.getVersionedFile(BuildInfoFileKey.DEVICE_IMAGE))) { in applyBuildProperties()
299 public File getFile(BuildInfoFileKey key) { in getFile()
315 public VersionedFile getVersionedFile(BuildInfoFileKey key) { in getVersionedFile()
321 public final List<VersionedFile> getVersionedFiles(BuildInfoFileKey key) { in getVersionedFiles()
351 public String getVersion(BuildInfoFileKey key) { in getVersion()
364 BuildInfoFileKey key = BuildInfoFileKey.fromString(name); in setFile()
[all …]
DFolderBuildInfo.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
53 return getFile(BuildInfoFileKey.ROOT_DIRECTORY); in getRootDir()
62 BuildInfoFileKey.ROOT_DIRECTORY, in setRootDir()
64 BuildInfoFileKey.ROOT_DIRECTORY.getFileKey()); in setRootDir()
DDeviceFolderBuildInfo.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
50 return getFile(BuildInfoFileKey.ROOT_DIRECTORY); in getRootDir()
59 BuildInfoFileKey.ROOT_DIRECTORY, in setRootDir()
61 BuildInfoFileKey.ROOT_DIRECTORY.getFileKey()); in setRootDir()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DPushFilePreparerTest.java25 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
347 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
379 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo_remoteZip()
407 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_abiDirectory_noBitness()
443 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_abiDirectory_noBitness_withModule()
479 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_abiDirectory()
520 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_moduleName_dirs()
564 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_moduleName_files()
598 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_moduleName_files_abi_32bit()
630 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_moduleName_files_abi_64bit()
[all …]
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/build/
DBuildInfoKey.java28 public enum BuildInfoFileKey { enum in BuildInfoKey
53 private BuildInfoFileKey(String fileKey, boolean canBeList) { in BuildInfoFileKey() method in BuildInfoKey.BuildInfoFileKey
75 public static BuildInfoFileKey fromString(String keyName) { in fromString()
76 for (BuildInfoFileKey v : BuildInfoFileKey.values()) { in fromString()
89 public static final Set<BuildInfoFileKey> SHARED_KEY = new HashSet<>();
92 SHARED_KEY.add(BuildInfoFileKey.PACKAGE_FILES);
93 SHARED_KEY.add(BuildInfoFileKey.TESTDIR_IMAGE);
94 SHARED_KEY.add(BuildInfoFileKey.ROOT_DIRECTORY);
DIBuildInfo.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
167 public default File getFile(BuildInfoFileKey key) { in getFile()
201 public default VersionedFile getVersionedFile(BuildInfoFileKey key) { in getVersionedFile()
213 public default List<VersionedFile> getVersionedFiles(BuildInfoFileKey key) { in getVersionedFiles()
236 public default String getVersion(BuildInfoFileKey key) { in getVersion()
257 public default void setFile(BuildInfoFileKey key, File file, String version) { in setFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunnerTest.java21 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
125 EasyMock.expect(mBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null) in setUp()
261 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_testMappingsZip()
331 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_testMappingsZipFoundTestsWithKeywords()
403 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_testMappingsZipFailWithKeywords()
451 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.HOST_LINKED_DIR)) in testLoadTests_testMappingsZipHostTests()
498 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_shard()
545 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_shardNoTest()
650 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTestsWithModule()
703 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTestsWithMultiModules()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DShardBuildCloner.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
80 .equals(primaryBuild.getFile(BuildInfoFileKey.TESTDIR_IMAGE))) { in cloneBuildInfos()
83 primaryClone.getFile(BuildInfoFileKey.TESTDIR_IMAGE)); in cloneBuildInfos()
89 .equals(primaryBuild.getFile(BuildInfoFileKey.HOST_LINKED_DIR))) { in cloneBuildInfos()
92 primaryClone.getFile(BuildInfoFileKey.HOST_LINKED_DIR)); in cloneBuildInfos()
98 .equals(primaryBuild.getFile(BuildInfoFileKey.TARGET_LINKED_DIR))) { in cloneBuildInfos()
101 primaryClone.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)); in cloneBuildInfos()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DHostGTestTest.java196 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testRunTest()
225 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testRun_priority_get_testcase_from_hostlinked_folder()
291 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testRun_withSuffix()
315 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testBeforeCmdError()
341 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testTestFailureHandledCorrectly()
362 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testAbnormalTestCmdExitHandled()
385 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testBothStdoutAndStderrCollected()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DBuildInfoTest.java25 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
159 mBuildInfo.getVersionedFiles(BuildInfoFileKey.TESTDIR_IMAGE); in testGetList_error()
172 mBuildInfo.setFile(BuildInfoFileKey.PACKAGE_FILES, testFile, "version"); in testListFiles()
173 mBuildInfo.setFile(BuildInfoFileKey.PACKAGE_FILES, testFile2, "version2"); in testListFiles()
174 assertNotNull(mBuildInfo.getFile(BuildInfoFileKey.PACKAGE_FILES)); in testListFiles()
176 mBuildInfo.getVersionedFiles(BuildInfoFileKey.PACKAGE_FILES); in testListFiles()
DDeviceBuildInfoTest.java24 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
101 mBuildInfo.setFile(BuildInfoFileKey.HOST_LINKED_DIR, mHostLinkedDir, "v1"); in testCloneWithProperties()
114 assertEquals(mHostLinkedDir, copy.getFile(BuildInfoFileKey.HOST_LINKED_DIR)); in testCloneWithProperties()
DDeviceFolderBuildInfoTest.java23 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
131 assertNull(info.getFile(BuildInfoFileKey.DEVICE_IMAGE)); in testProperty_skipCopy()
/tools/tradefederation/core/src/com/android/tradefed/invoker/sandbox/
DSandboxedInvocationExecution.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
83 File testsDir = primaryBuild.getFile(BuildInfoFileKey.TESTDIR_IMAGE); in backFillTestInformation()
89 File targetDir = primaryBuild.getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in backFillTestInformation()
95 File hostDir = primaryBuild.getFile(BuildInfoFileKey.HOST_LINKED_DIR); in backFillTestInformation()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollectorTest.java23 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
595 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
629 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testUnableResolveRelativeFilePath_withDeviceBuildInfo()
662 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testResolveRelativeFilePath_fromModule()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DBaseTestSuite.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
299 File hostSubDir = getBuildInfo().getFile(BuildInfoFileKey.HOST_LINKED_DIR); in loadTests()
304 File targetSubDir = getBuildInfo().getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in loadTests()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DSandboxedInvocationExecutionTest.java27 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
405 info.setFile(BuildInfoFileKey.HOST_LINKED_DIR, buildFile, "1"); in testBackFill()
422 .containsKey(BuildInfoFileKey.HOST_LINKED_DIR.toString())); in testBackFill()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DInvocationExecution.java21 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
797 BuildInfoFileKey.TARGET_LINKED_DIR.getFileKey());
809 BuildInfoFileKey.HOST_LINKED_DIR.getFileKey());
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DSandboxedInvocationExecutionTest.java23 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
61 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, new File("doesnt_matter_testsdir"), "tests"); in testBuildInfo_testTag()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/
DExecutableHostTest.java19 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
80 File targetTestCases = deviceBuild.getFile(BuildInfoFileKey.HOST_LINKED_DIR); in findBinary()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DHostGTest.java20 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
207 File hostLinkedDir = mBuildInfo.getFile(BuildInfoFileKey.HOST_LINKED_DIR); in run()
DIsolatedHostTest.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
209 File testDir = mBuildInfo.getFile(BuildInfoFileKey.TESTDIR_IMAGE); in compileClassPath()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DPushFilePreparer.java21 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
217 File targetTestCases = deviceBuild.getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in resolveRelativeFilePath()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollector.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
493 File targetTestCases = deviceBuild.getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in resolveRelativeFilePath()
/tools/tradefederation/core/src/com/android/tradefed/device/
DLocalAndroidVirtualDevice.java21 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
231 File imageZip = buildInfo.getFile(BuildInfoFileKey.DEVICE_IMAGE); in findDeviceImages()

12